留言板

Localization of lang.line.begin and lang.line.end

thumbnail
Milan Jaroš,修改在10 年前。

Localization of lang.line.begin and lang.line.end

Expert 帖子: 268 加入日期: 08-8-18 最近的帖子
Howdy!
I'd like to be really sure what is the purpose of lang.line.begin and lang.line.end. I'm pretty sure that lang.dir should not be "translated" but "specified" to ltr or rtl.

What about lang.line.begin and lang.line.end? Can it contain only values like left and right?
thumbnail
Olaf Kock,修改在10 年前。

RE: Localization of lang.line.begin and lang.line.end

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
Milan Jaroš:
What about lang.line.begin and lang.line.end? Can it contain only values like left and right?


Hi Milan,

I assume you're right - however, the only use of "lang.line.begin" that I've found is in LangBuilder - and there it's only providing a default value. I did not even find any use of "lang.line" so I'll assume for now that this is never used anywhere in the portal. I didn't search the plugins, and I might have missed it, but searching for "left" also didn't reveal anything that seemed relevant (though at least there are lots of hits for "left" - can't say I'm right on this)

Given the way LangBuilder handles the default values, I assume it's safe to assume that "lang.line.begin" was expected to be "left" or "right". And maybe it still is, maybe it's a relict of the past. Maybe someone who can make sense of RTL languages can try if there's an unexpected side effect if "left" and "right" are exchanged for those languages? Or just try it out in english/czech or another LTR language.

Not to mention that I'm curious to see if someone corrects me and points me to the place I've been missing where it's indeed used.
thumbnail
Daniel Sanz,修改在10 年前。

RE: Localization of lang.line.begin and lang.line.end

Regular Member 帖子: 143 加入日期: 10-12-14 最近的帖子
Hi guys,

what I can tell you about this is that I explicitly override any translation provided via Pootle for those 3 keys. I implemented such a mechanism in the sync scripts because prior to that I had to manually "revert" back those keys for all languages to their corresponding values (rtl, ltr, etc).

I think that RTL support is being improved right now here in Spanish office, I'll ask our guys for the lang.line.* usages.

Thanks,
thumbnail
Milan Jaroš,修改在10 年前。

RE: Localization of lang.line.begin and lang.line.end

Expert 帖子: 268 加入日期: 08-8-18 最近的帖子
Ok, thanks, good luck. ;)
thumbnail
Milan Jaroš,修改在10 年前。

RE: Localization of lang.line.begin and lang.line.end

Expert 帖子: 268 加入日期: 08-8-18 最近的帖子
Any news?
thumbnail
Milan Jaroš,修改在10 年前。

RE: Localization of lang.line.begin and lang.line.end

Expert 帖子: 268 加入日期: 08-8-18 最近的帖子
Bump. ;)
thumbnail
Daniel Sanz,修改在9 年前。

RE: Localization of lang.line.begin and lang.line.end

Regular Member 帖子: 143 加入日期: 10-12-14 最近的帖子
Hi,

I talked to one of the developers of RTL support and he thinks that properties are no longer used, but he's not 100% sure.

Since it seems that it won't be easy to find someone who solves the mistery, I decided to do some code archaeology and look for its origins.

I developed a small script that connects to our SVN server and checks each single commit difference to see if contains the interesting stuff. I had to use SVN as changes are pre-git. This will lead us to a set of revisions which could later check. I'm trying with portal repo so far (assuming that plugins don'r make use of them)

The process is not particularly quick, so I can't offer remarkable results so far...

I'll update the thread when more info is available.

Cheers
thumbnail
Milan Jaroš,修改在9 年前。

RE: Localization of lang.line.begin and lang.line.end

Expert 帖子: 268 加入日期: 08-8-18 最近的帖子
Hi, that sounds promising. Thanks! Maybe it could be completely removed. We will see.

I'm lucky man that I use TFS, there is such feature out-of-the-box... Behold!


emoticon
thumbnail
Milan Jaroš,修改在10 年前。

RE: Localization of lang.line.begin and lang.line.end

Expert 帖子: 268 加入日期: 08-8-18 最近的帖子
Hi Olaf,
thank you for digging and your effort. emoticon