It's been a while since I set this up, but do you have the localized attributes
in your Currency entity? Attributes like myDesc_en, myDesc_ms ?
tb
On Jan 7, 2011, at 9:05 AM, Sreenivasulu A wrote:
> Hi All,
>
> In my application, I am doing Database Localization.
> For this I did the following:
>
> DB charset = UTF-8
>
> public class _Currency extends ERXGenericRecord {....}
>
> _Currency.plist:
> ==========
> {
> allowsNull = N;
> columnName = "my_desc";
> name = "my_desc";
> prototypeName = "a_text";
> width = 255;
> userInfo = {ERXLanguages = (en, ms); };
> }
>
> In properties file:
> ============
> dbConnectURLGLOBAL=<URL>
> dbConnectUserGLOBAL=<UserName>
> dbConnectPasswordGLOBAL=<Password>
>
> er.extensions.ERXApplication.DefaultEncoding=UTF-8
> er.extensions.ERXLocalizer.defaultLanguage=English
> er.extensions.ERXLocalizer.fileNamesToWatch=("Localizable.strings","ValidationTemplate.strings")
> er.extensions.ERXLocalizer.availableLanguages=(English,Malay)
> er.extensions.ERXLocalizer.frameworkSearchPath=(app, ERExtensions)
> ERXLanguages = (en,ms)
>
> In my Main WOComponent I gave a binding for WOString:
> ======================================
> <webobject name = "CurrencyDescription"/>
>
> CurrencyDescription: WOString {
> value = _currency.my_desc;
> }
>
> And WOComponent is in UTF-8 encoding.
>
> Main.java
> =======
> public _Currency _currency() {
> EOFetchSpecification eoFetchSpecification = new
> EOFetchSpecification("_Currency ",null,null);
> NSArray currencyArray =
> ERXEC.newEditingContext().objectsWithFetchSpecification( eoFetchSpecification
> );
> return (_Currency )currencyArray.objectAtIndex(0);
> }
>
>
> Even though I did all the things, it is not identifying the attribute
> 'my_desc' when the localizer language is
> either in English or Malay(In my app, I used English and Malay for testing
> purpose).
>
>
> Did I provide any thing else other than this?
> Please help me in this.
>
> Thanks in Advance,
> Sreenivasulu Arveti.
>
>
>
>
> _______________________________________________
> 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/tbritt%40phigment.org
>
> This email sent to [email protected]
_______________________________________________
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]