Re: ERXLocalizer default language

2012-08-08 Thread Ramsey Gurley
It should be dumping the created keys into your eclipse console. If that isn't happening, no keys were created. Which would be odd if you haven't defined that in your Localizable.strings file yet. On Aug 8, 2012, at 9:24 AM, WebObjects TORAcom wrote: > Oh, Thanks Ramsey. > > Now I understand

Re: ERXLocalizer default language

2012-08-08 Thread WebObjects TORAcom
Oh, Thanks Ramsey. Now I understand, but I think I am doing something worng. I put a wohyperlink setting its bindings as you told me. The hyperlink is inside the user form. I ran the app and entered in the Users edit form, triggered the exception and then clicked on the DUMP link but nothing h

Re: ERXLocalizer default language

2012-08-07 Thread Ramsey Gurley
Did you copy all of the dumped keys from your console to your Localizable.strings file and translate them appropriately? Clicking the link does nothing but dump the created keys to the console. Also, if you did not get the validation exception before you click the link, you will not have the c

Re: ERXLocalizer default language

2012-08-07 Thread WebObjects TORAcom
Hi Ramsey, Thanks for the info. I created the link using your instructions, run the app and clicked on the link. After that, tried the validation string with no luck. ¿Anything else that I could read to understand the behavior of those keys? Thanks again for your time. Miguel Torres. On 06/

Re: ERXLocalizer default language

2012-08-07 Thread Johann Werner
Though sometimes you don't want to have the localization files of every framework. If you are setting up an automatic generated framework search path for that you should make something like er.extensions.ERXLocalizer.frameworkSearchPath=(auto) which could be the default but keep the manual list

Re: ERXLocalizer default language

2012-08-07 Thread ISHIMOTO Ken
Hi With the new Integration wonder you don't have to set the 'er.extensions.ERXLocalizer.frameworkSearchPath' anymore. wonder will pick up every Framework that has Localization inside. This was a pain because after every change of the ClassPath you had to change this Properties. Remove it and

Re: ERXLocalizer default language

2012-08-06 Thread Ramsey Gurley
Dump: WOHyperlink { actionClass = "ERXDirectAction"; directActionName = "dumpCreatedKeys"; } On Aug 6, 2012, at 1:39 PM, WebObjects TORAcom wrote: > Hi Ramsey, > > My App is not a D2W application. > > ¿Can I still dump my created keys? > > Thanks. > > Miguel Torres > > On 06/

Re: ERXLocalizer default language

2012-08-06 Thread WebObjects TORAcom
Hi Ramsey, My App is not a D2W application. ¿Can I still dump my created keys? Thanks. Miguel Torres On 06/08/2012, at 15:20, Ramsey Gurley wrote: > It's the link that says "Created keys" in your ERD2WDebugFlags component. > Click it and it dumps all the created localizer keys to your conso

Re: ERXLocalizer default language

2012-08-06 Thread WebObjects TORAcom
Hi Ramsey, I am not sure what to do in order to dump "my created keys". Could you help me? Thanks. Miguel Torres On 03/08/2012, at 09:59, Ramsey Gurley wrote: > Dump your created keys. The answer should be in them. > > Ramsey > > On Aug 3, 2012, at 7:11 AM, WebObjects TORAcom wrote: > >>

Re: ERXLocalizer default language

2012-08-03 Thread Ramsey Gurley
Dump your created keys. The answer should be in them. Ramsey On Aug 3, 2012, at 7:11 AM, WebObjects TORAcom wrote: > Hi Ramsey thanks for the answer. > > I tried it with no luck. > > This is my configuration on EOModeler: > > > > Entity name: Usuario > Attribute name: usuario > > > ../Res

Re: ERXLocalizer default language

2012-08-02 Thread Ramsey Gurley
Try PropertyKey.usuario and Usuario.usuario D2W uses one, the validation system uses the other. Yes, that's confusing :-) Ramsey On Aug 2, 2012, at 4:53 PM, WebObjects TORAcom wrote: > Thanks for your help. > > Now I am testing the localization of Validations > > In my ValidationTemplate

Re: ERXLocalizer default language

2012-08-02 Thread WebObjects TORAcom
Thanks for your help. Now I am testing the localization of Validations In my ValidationTemplate.string I have this for Spanish_MX: { "NullPropertyException" = "Favor de proporcionar @@displayNameForProperty@@."; } and for English_US: { "NullPropertyException" = "Please provid

Re: ERXLocalizer default language

2012-08-02 Thread WebObjects TORAcom
Ok, Thanks for the advise. On 02/08/2012, at 17:27, Ramsey Gurley wrote: > As a general rule, I only call static methods in a constructor and do > assignments to ivars directly. > > http://www.javapractices.com/topic/TopicAction.do?Id=215 > > Ramsey > > On Aug 2, 2012, at 3:20 PM, WebObject

Re: ERXLocalizer default language

2012-08-02 Thread Amedeo Mantica
You could put all languages you want in the array the "key" is the order Sent from my iPhone On 03/ago/2012, at 00:20, WebObjects TORAcom wrote: > Thanks > > This did the trick > > public Session() { > NSArray langs = new NSArray("Spanish_MX"); > setLanguages(langs

Re: ERXLocalizer default language

2012-08-02 Thread Ramsey Gurley
As a general rule, I only call static methods in a constructor and do assignments to ivars directly. http://www.javapractices.com/topic/TopicAction.do?Id=215 Ramsey On Aug 2, 2012, at 3:20 PM, WebObjects TORAcom wrote: > Thanks > > This did the trick > > public Session() { > NS

Re: ERXLocalizer default language

2012-08-02 Thread WebObjects TORAcom
Thanks This did the trick public Session() { NSArray langs = new NSArray("Spanish_MX"); setLanguages(langs); } On 02/08/2012, at 17:07, Ramsey Gurley wrote: > If you want to default your localizer to spanish in all your sessions instead > of using the

Re: ERXLocalizer default language

2012-08-02 Thread Ramsey Gurley
If you want to default your localizer to spanish in all your sessions instead of using the value set by the browser, then in your ERXSession subclass constructor try adding: _localizer = ERXLocalizer.localizerForLanguage("Spanish") That should probably work. Ramsey On Aug 2, 2012, at 1:55 PM,

Re: ERXLocalizer default language

2012-08-02 Thread WebObjects TORAcom
Oh, Thanks. That makes sense, I have configured my browsers to use English as main language. ¿Is there a way to change this behavior? Just to know. Miguel Torres. On 02/08/2012, at 14:00, Ramsey Gurley wrote: > I may be mistaken, but I believe it respects whatever default is set on the >

Re: ERXLocalizer default language

2012-08-02 Thread Ramsey Gurley
I may be mistaken, but I believe it respects whatever default is set on the browser for each session. Ramsey On Aug 2, 2012, at 11:56 AM, WebObjects TORAcom wrote: > Hi list, > > I am testing ERXLocalizer, it seems very good. > > I want Spanish as the default language for my app, so I set the

ERXLocalizer default language

2012-08-02 Thread WebObjects TORAcom
Hi list, I am testing ERXLocalizer, it seems very good. I want Spanish as the default language for my app, so I set the Properties file like this: er.extensions.ERXLocalizer.defaultLanguage=Spanish er.extensions.ERXLocalizer.fileNamesToWatch=("Localizable.strings","ValidationTemplate.strings")