Re: Localization - Need help and want to contribute
Re: Localization - Need help and want to contribute
- Subject: Re: Localization - Need help and want to contribute
- From: Ramsey Gurley <email@hidden>
- Date: Tue, 16 Oct 2012 10:42:04 -0700
Make sure you're using the correct assignment class, the RHS key is the correct one for your localized string, and that the d2wContext is actually being used in the localized template string method.
On Oct 16, 2012, at 10:35 AM, Flavio Donadio wrote:
>
> On 16/10/2012, at 12:42, Ramsey Gurley wrote:
>
>> Yes but you still need a rule if you're using d2w :-) Something like
>>
>> 20: propertyType = 'a' and smartAttribute.userInfo.indefiniteArticles.count > 0 and session.localizer.languageCode = 'en' => indefiniteArticle = smartAttribute.userInfo.indefiniteArticles.en [ERDKeyValueAssignment]
>>
>> Or just put together a custom assignment, since this approach would result in at least two rules per language.
>
> I can't make this work. I opted for a simpler approach, creating only one key in the userInfo dictionary. The key is "indefiniteArticle" and it's value is the String "uma".
>
> No matter how I write my d2w rule, I can't get smartAttribute.userInfo.indefiniteArticle's value.
>
> Where did I got wrong?
>
>
> Cheers,
> Flavio
> _______________________________________________
> 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