ok I was able to show the change in the English.lproj .strings file.. I did
a clean of the project and I saw the actual value in the WOString that has
the .strings file.\
But when I try to use the Sk.. it doesn't work
Im using the ERXLocalizer.setDefaultLanguage("English"); method in the
Application Constructor, but this time instead of english Im setting "Sk"..
seems Sk and WO are not friends :P.
G.
---------- Forwarded message ----------
From: Gustavo Pizano <[email protected]>
Date: Fri, Jun 19, 2009 at 11:47 AM
Subject: Can't make localization
To: WebObjects-Dev Apple <[email protected]>
Hello,
Hello I followed the instructions found here:
http://en.wikibooks.org/wiki/WebObjects/Project_WONDER/Frameworks/ERExtensions/ERXLocalizer
to create localization files and use them in the application. I created
English.lproj and Sk.lproj each of the has their oun Localizable.string
file with the key-value strings. I then set instead of <label> tags in the
htm to <wo:WOString value ="$session.localizer.createProject" > I tried
setting this into the properties under the /resources folder:
er.extensions.ERXLocalizer.defaultLanguage=English
er.extensions.ERXLocalizer.fileNamesToWatch=("Localizable.strings","ValidationTemplate.strings")
er.extensions.ERXLocalizer.availableLanguages=(English,German)
er.extensions.ERXLocalizer.frameworkSearchPath=(app,ERDirectToWeb,ERExtensions)
changed the first line to Sk instead of English.. but nothing happens, I saw
nothing, then suddenly I saw the labels but in English, I thought it was
some how the browser cache, I empty it, and still the same I see English
labels.
I tried then setting another value for the key Im testing, adn I see no
changes.. .
I dunno what is happening...
Also.. the Sk .string file its on UTF -16 as in the wiki suggestion to put
it to UTF-16 due the application its utf-8...
what can I do?
:s
Thanks
\GUstavo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]