Re: Can't make localization
Re: Can't make localization
- Subject: Re: Can't make localization
- From: Timo Hoepfner <email@hidden>
- Date: Fri, 19 Jun 2009 18:00:55 +0200
You probably never get a localizer for language "Sk", if you don't set
the language explicitly. By default, the language is determined by
looking at some headers in the browser request. The language
abbreviations in the request are replaced with language names using
the mapping in
/System/Library/Frameworks/JavaWebObjects.framework/Resources/
Languages.plist
Try renaming Sk.lproj to Slovak.lproj and also use Slovak in the
properties file.
Then, if it still doesn't work, try setting the language by hand:
session().setLanguage("Slovak")
Timo
Am 19.06.2009 um 11:47 schrieb Gustavo Pizano:
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden