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/ _______________________________________________ Bug-gnustep mailing list Bug-gnustep@gnu.org https://lists.gnu.org/mailman/listinfo/bug-gnustep