留言板
Messageboard categorization and categories translation
Sampsa Sohlman,修改在10 年前。
Messageboard categorization and categories translation
Regular Member 帖子: 230 加入日期: 07-9-27 最近的帖子
We are have translation key "category", "categories".
These are used in 2 contexts? Message boards and categories, but messageboard is using the "catogory" keys also and in Finnish with my translation it just does not fit to the context very well.
Any other languages where this might be a problem?
These are used in 2 contexts? Message boards and categories, but messageboard is using the "catogory" keys also and in Finnish with my translation it just does not fit to the context very well.
Category = Luokitus
(Messageboard)Category = Aihealue
Any other languages where this might be a problem?
Corné Aussems,修改在10 年前。
RE: Messageboard categorization and categories translation
Liferay Legend 帖子: 1313 加入日期: 06-10-3 最近的帖子Sampsa Sohlman:
We are have translation key "category", "categories".
These are used in 2 contexts? Message boards and categories, but messageboard is using the "catogory" keys also and in Finnish with my translation it just does not fit to the context very well.Category = Luokitus (Messageboard)Category = Aihealue
Any other languages where this might be a problem?
Disambiguation can be solved as this
title=Title
title\[person\]=Title
https://www.liferay.com/community/forums/-/message_boards/message/5019846
You can ask ( or do it yourselve) to add it to the code.
Like Olaf https://issues.liferay.com/browse/LPS-34251?
Sampsa Sohlman,修改在10 年前。
RE: Messageboard categorization and categories translation
Regular Member 帖子: 230 加入日期: 07-9-27 最近的帖子
Corné Aussems,修改在10 年前。
RE: Messageboard categorization and categories translation
Liferay Legend 帖子: 1313 加入日期: 06-10-3 最近的帖子
So we for example we have a
<aui:select label="title[person]" ..... < code></aui:select>
<br><br><pre><code>
###########
title=Titel
title\[person\]=Titel persoon
#############
</code></pre><br><br><pre><code>
'Title' = LanguageResources.getMessage(locale, *title[person]* );
when: no result but ambiguation sign ']' found
'Titel' = LanguageResources.getMessage(locale, *title* );
</code></pre><br><br>When caught in debugger i find the immediate value on line 377 <br><pre><code>
key "title[person]" (id=29615)
defaultValue "title[person]" (id=29615)
value "Titel Person" (id=29616)
</code></pre><br>.<br>So lines <a href="https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/language/LanguageImpl.java#L379-395">379-395</a> are an escape; As in if the whole key (title\[person\]) is not found try for the base key (title) else default.<br><br>So if you need one, some developer has to code the use of the ambiguation-key and also add this to the Language.properties file so it gets propagated to all other Language files.
Sampsa Sohlman,修改在10 年前。
RE: Messageboard categorization and categories translation
Regular Member 帖子: 230 加入日期: 07-9-27 最近的帖子
Some reason search container does not apply to the rule. I'm investigating.
EDIT: I'm going to write bug report of those places that I require specific rule.
EDIT: I'm going to write bug report of those places that I require specific rule.
Sampsa Sohlman,修改在10 年前。
RE: Messageboard categorization and categories translation
Regular Member 帖子: 230 加入日期: 07-9-27 最近的帖子
Sampsa Sohlman,修改在10 年前。
RE: Messageboard categorization and categories translation
Regular Member 帖子: 230 加入日期: 07-9-27 最近的帖子
Now some issues has been fixed.
You are able to see https://github.com/liferay/liferay-portal/commit/6386b043435dba02d0ac6d6d52ab253007989d88.
That there word category for message board and categories ;)
You are able to see https://github.com/liferay/liferay-portal/commit/6386b043435dba02d0ac6d6d52ab253007989d88.
That there word category for message board and categories ;)