Mailing List webobjects-dev@wocommunity.org Message #357
From: Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch>
Subject: Howto debug localization??
Date: Fri, 14 Jan 2022 16:08:00 -0500
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Signed Data (Text SHA256)
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








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