Re: problem with <wo:localized>
Re: problem with <wo:localized>
- Subject: Re: problem with <wo:localized>
- From: "Daniele Corti" <email@hidden>
- Date: Mon, 5 May 2008 12:46:19 +0200
2008/5/5 Amedeo Mantica <
email@hidden>:
Hello,
I switched from Xcode to Ecplise few monts ago...
now I have a problem localizing strings...
I have put my Localizable.strings files, inside the folders LANGUAGE.lproj inside the resources folder...
If I use WXLocalizedString it works fine
If I use ERXLocalizedString it doenn't work
if I use INLocalizedString (is a mine framework that i created in Xcode time for localizing strings, images, rollovers, database fields, etc...) i get "Localized String not found"
if I use <wo:localized.... it doen't work
Probably bacause localized is a shortcut to ERXlocalizedString...
Can u help me??
Have first a look to
http://en.wikibooks.org/wiki/Programming:WebObjects/WOnder/ERXLocalizerThen check if you Session.java is a subclass of ERXSession, th
en check your Properties file if there are these keys:
er.extensions.ERXLocalizer.defaultLanguage=English
er.extensions.ERXLocalizer.fileNamesToWatch=("Localizable.strings","ValidationTemplate.strings") // At least these two
er.extensions.ERXLocalizer.availableLanguages=(English,German) // At least these two
er.extensions.ERXLocalizer.frameworkSearchPath=(app,ERDirectToWeb,ERExtensions)
I usually set ERXSession.setLanguage(String) with the language requested by the browser (parsing headers) at the first loop (Req-Resp)
Then to change language simply set the language to the choose one.
Regards
Amedeo
_______________________________________________
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
--
Daniele Corti
AIM: S0CR4TE5
Messenger:
email@hidden--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
_______________________________________________
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