Mailing List webobjects-dev@wocommunity.org Message #362
From: Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch>
Subject: Re: [WO-DEV] Howto debug localization??
Date: Fri, 8 Apr 2022 12:40:53 +0200
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Signed Data (Text SHA256)


On 17 Jan 2022, at 00:25, 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.


Ramsey,

I knew it was something trivial. Thanks a lot.

---markus---


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.

#############################################################
This message is sent to you because you are subscribed to
 the mailing list <webobjects-dev@wocommunity.org>.
To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send administrative queries to  <webobjects-dev-request@wocommunity.org>



Markus Ruggiero


rucotec GmbH                        web https://rucotec.ch
Steinenvorstadt 79                email markus.ruggiero@rucotec.ch
4051 Basel / Switzerland         mobile +41 79 508 4701








Content Unaltered as verified By:
<markus.ruggiero@rucotec.ch>
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster