bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #36764] GUI does not currently support loading with standard locali


From: Fred Kiefer
Subject: [bug #36764] GUI does not currently support loading with standard localized directories...
Date: Mon, 02 Jul 2012 20:43:21 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0

Update of bug #36764 (project gnustep):

                Category:              Gui/AppKit => Base/Foundation        

    _______________________________________________________

Follow-up Comment #1:

Actually the loading of resources is mostly implemented in base. There we
decide which paths to inspect. Gui has a copy of that code with a different
orde in pathForNibResource: in NSBundleAdditions.m. (This always makes me
wonder where the base order would ever be the more usefull one?)

Whatever you want to change here, should be done in NSBundle.m first.

And please don't remove the old naming schema, it is fine to add the language
codes, but removing the full names would break existing applications.

To me it looks like it would be sufficient to add a few more loops for
language specific directories in 
_bundleResourcePathsWithRootPath:subPath:localization: or addBundlePath().

You just need to figure out a nice way to generate these directory names for a
language. Maybe a reverse of the function GSLanguageFromLocale() in
GSLocale.m? 
BTW the code there looks wrong as it is always using the first two characters
of the language code, we rather should check for the underscore.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36764>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]