• 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
DB Localization problem - valueForKey(): lookup of unknown key: 'my_desc'.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DB Localization problem - valueForKey(): lookup of unknown key: 'my_desc'.


  • Subject: DB Localization problem - valueForKey(): lookup of unknown key: 'my_desc'.
  • From: Sreenivasulu A <email@hidden>
  • Date: Fri, 7 Jan 2011 19:35:27 +0530

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: DB Localization problem - valueForKey(): lookup of unknown key: 'my_desc'.
      • From: Ramsey Gurley <email@hidden>
    • Re: DB Localization problem - valueForKey(): lookup of unknown key: 'my_desc'.
      • From: Travis Britt <email@hidden>
  • Prev by Date: Re: multipart upload become garbage
  • Next by Date: Re: DB Localization problem - valueForKey(): lookup of unknown key: 'my_desc'.
  • Previous by thread: Re: multipart upload become garbage
  • Next by thread: Re: DB Localization problem - valueForKey(): lookup of unknown key: 'my_desc'.
  • Index(es):
    • Date
    • Thread