Mailing List webobjects-dev@wocommunity.org Message #359
From: Ramsey Gurley <ramsey.gurley@practicemojo.com>
Subject: Re: [WO-DEV] Howto debug localization??
Date: Sun, 16 Jan 2022 23:29:43 +0000
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Also, unless something changed since a long time ago, Localizable.strings files need to be in UTF-16 BE with no BOM,

https://wiki.wocommunity.org/display/documentation/UTF-8+Encoding+Tips

> On Jan 17, 2022, at 8:25 AM, Ramsey Gurley <Ramsey.Gurley@practicemojo.com> wrote:
>
> Looking in ERXNavigationMenuItem.displayName(), it looks like you need a property
>
> er.extensions.ERXNavigationManager.localizeDisplayKeys=true
>
> to make it localize properly.
>
>> On Jan 15, 2022, at 6:08 AM, Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch> wrote:
>>
>> Probably trivial, most probably stupid me,
>>
>> but....
>>
>> Why does my D2W app not localize its navigation? It ignores English.lproj/Localizable.strings file!
>>
>> When I create an out-of-the-box new D2WTest app, everything is ok, localizations are picked up when I edit the .strings file. But my app refuses to read that file at all (or ignore its contents). Comparing both projects file by file reveals nothing
>>
>> I have both files Localizable.strings and NavigationMenu.plist in utf-8 at the right place in the project setup.
>>
>> That’s the start of NavigationMenu.plist
>> (
>>      {
>>              name = Root;
>>              children = ("TAB_ServiceStuff", "TAB_ProductStuff", "TAB_LookupLists", "TAB_EDocStuff", "TAB_EMRStuff");
>>      },
>>
>>              /* ********************************************************************************************* */
>>
>>              {
>>                      name = "TAB_ServiceStuff";
>>                      children = ("TAB_Service", "TAB_ServiceStep", "TAB_ServiceType");
>>                      action = "session.navController.genericQueryAction";
>>              },
>>
>>                      /* ========================================================================================= */
>>
>>                      {
>>                              name = "TAB_Service";
>>                              action = "session.navController.genericQueryAction";
>>                      },
>>                      {
>>                              name = "TAB_ServiceStep";
>>                              action = "session.navController.genericQueryAction";
>>                      },
>>                      {
>>                              name = "TAB_ServiceType";
>>                              action = "session.navController.genericQueryAction";
>>                      },
>>
>> and here is the start of Localizable.strings
>>
>> {
>>    "Nav.TAB_ServiceStuff" = "Service";
>>    "Nav.TAB_ProductStuff" = "Product";
>>    "Nav.TAB_LookupLists" = "Lookups";
>>    "Nav.TAB_EDocStuff" = "EDoc";
>>    "Nav.TAB_EMRStuff" = "EMR";
>>
>>    "Nav.TAB_Service = "Service";
>>    "Nav.TAB_ServiceStep = "Service Step";
>>    "Nav.TAB_ServiceType = "Service Type";
>>
>>    "Nav.TAB_Product = "Product";
>>
>>    "Nav.TAB_EDocSurgeryContract" = "Surgery Contract";
>>    "Nav.TAB_EDocSection" = "Section";
>>    "Nav.TAB_EDocTextBlock" = "Text Block";
>>
>>    "Nav.TAB_EMRParam" = "Parameter";
>>    "Nav.TAB_EMRParamAllergy" = "Allergy";
>>    "Nav.TAB_EMRParamBodyComplaint" = "Body Complaint";
>>    "Nav.TAB_EMRParamMedication" = "Medication";
>>    "Nav.TAB_EMRParamOrgan" = "Organ";
>>    "Nav.TAB_EMRParamPastMedicalHistory" = "Med. History";
>>    "Nav.TAB_EMRParamReviewOfSystem" = "Review of System";
>>    "Nav.TAB_EMRParamSocialHistory" = "Social History";
>>
>>    "Nav.TAB_EMRData" = "Data";
>>
>>    "ERD2W.advancedFindButtonLabel" = "Advanced...";
>> }
>>
>> How do I debug this? Anything obvious I am missing (must be! It was a very long work week, though) ?
>>
>>
>> Markus Ruggiero
>>
>> rucotec GmbH                        web https://rucotec.ch
>> Steinenvorstadt 79                email markus.ruggiero@rucotec.ch
>> 4051 Basel / Switzerland         mobile +41 79 508 4701
>>
>>
>>
>>
>>
>>
>>
>>
>

________________________________
Confidentiality Notice: This email, including all attachments and replies thereto, are covered by the Electronic Communications Privacy Act, 18 U.S.C. Sections 2510-2521 and are legally privileged. This information is confidential, and intended only for the use of the individuals or entities named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this transmitted information is strictly prohibited. Please notify us if you have received this transmission in error. Thank you.
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster