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: Sat, 21 Jul 2012 13:02:31 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0

Follow-up Comment #5, bug #36764 (project gnustep):

I checked again in the base implemenation and this still returns the
non-localized paths in preference of the localized ones. And this is even
required by the specification from Apple.
This means we still need a specific implementation in gui, but this could be
simplified a lot and would in that process support the new localisation
names.

I think what we need to do is add a method to GSModelLoaderFactory to get the
different extensions (.gorm, .nib and .xib) for NIB files in priority order.
Then in pathForNibResource: we would loop over these extensions and for each
call [NSBundle pathsForResourcesOfType:inDirectory:] with a nil subPath. Next
we loop over the result path and check whether they are for the right file
name, but skip over the the non-localized ones. Or rather set a local variable
to each matching path, but only break out of the loop for localized paths.
When we find a matching path we break out of the file extension loop as well.

Not the most efficient way to implement this, but at the moment I don't see a
better method using the base mechanism.

    _______________________________________________________

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]