• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: problem with <wo:localized>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/ERXLocalizer

Then check if you Session.java is a subclass of ERXSession, then 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

References: 
 >problem with <wo:localized> (From: Amedeo Mantica <email@hidden>)

  • Prev by Date: problem with <wo:localized>
  • Next by Date: Re: ModRewriteWOHyperlink
  • Previous by thread: problem with <wo:localized>
  • Next by thread: Hello again
  • Index(es):
    • Date
    • Thread