Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

[solved] localization problem  RSS feed

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found it, had a naming problem while i had appname in package.properties and that's why only that worked.

i created this property file: ClassName.properties in the ClassNames's path.

It contains:
appname = Loto
tooasltip = Home Page

In the code if i write: <s:text name="appname" /> it works and displays Loto
If i write <s:text name="tooasltip " /> it displays "tooasltip" instead.
What am i doing wrong?

I mention i just change the property name and leave the code in place, and it behaves differently for different property names.
Also the order the properties are defined in their file is irrelevant, as it should, what goes wrong then?
Same weirdness with <s:text name="getText('appname')" /> -it works, <s:text name="getText('tooasltip )" /> doesn't.
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
amazing !!!


appname = Loto
tooasltip = Home Page



i hope issue in deployment. delete the property file test it.
then add the property file and test it
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!