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

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


  • Subject: Re: DB Localization problem - valueForKey(): lookup of unknown key: 'my_desc'.
  • From: Ramsey Gurley <email@hidden>
  • Date: Fri, 7 Jan 2011 14:04:23 -0500

Try setting a breakpoint in ERXGenericRecord._otherStorageBinding() and see what happens when your my_desc key is passed through it. Does it create a localized binding?

Ramsey

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@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
References: 
 >DB Localization problem - valueForKey(): lookup of unknown key: 'my_desc'. (From: Sreenivasulu A <email@hidden>)

  • Prev by Date: Re: @sum for a group of displayGroups?
  • Next by Date: Re: @sum for a group of displayGroups?
  • Previous by thread: Re: DB Localization problem - valueForKey(): lookup of unknown key: 'my_desc'.
  • Next by thread: @sum for a group of displayGroups?
  • Index(es):
    • Date
    • Thread