Forums de discussion
Messageboard categorization and categories translation
Sampsa Sohlman, modifié il y a 10 années.
Messageboard categorization and categories translation
Regular Member Publications: 230 Date d'inscription: 27/09/07 Publications récentes
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, modifié il y a 10 années.
RE: Messageboard categorization and categories translation
Liferay Legend Publications: 1313 Date d'inscription: 03/10/06 Publications récentesSampsa 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, modifié il y a 10 années.
RE: Messageboard categorization and categories translation
Regular Member Publications: 230 Date d'inscription: 27/09/07 Publications récentes
Corné Aussems, modifié il y a 10 années.
RE: Messageboard categorization and categories translation
Liferay Legend Publications: 1313 Date d'inscription: 03/10/06 Publications récentes
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, modifié il y a 10 années.
RE: Messageboard categorization and categories translation
Regular Member Publications: 230 Date d'inscription: 27/09/07 Publications récentes
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, modifié il y a 10 années.
RE: Messageboard categorization and categories translation
Regular Member Publications: 230 Date d'inscription: 27/09/07 Publications récentes
Sampsa Sohlman, modifié il y a 10 années.
RE: Messageboard categorization and categories translation
Regular Member Publications: 230 Date d'inscription: 27/09/07 Publications récentes
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 ;)