[sword-devel] Adding abbreviated names to the module conf file

Karl Kleinpaste karl at kleinpaste.org
Tue Dec 16 21:00:41 MST 2008


Peter von Kaehne <refdoc at gmx.net> writes:
> The preference would be to get a locale appropriate name and if not
> the fall back solution which would be English. This is how Gnome does
> the menus and it works well.

The obvious general implementation is for mod->getConfigEntry(entry) to
return the value for entry+"_"+$LC_ALL (or similar appendage, perhaps
entry+"["+$LC_ALL+"]")) if available, otherwise the value for just
entry.  This need not be specific to certain configuration keywords; any
of them could be translated.

Consequently, there is nothing in need of being done in any of the
frontends.  Such modules as can provide the featurefulness of translated
configuration details should be considered welcome.  Highly useful for
i18n friendliness but non-essential for correct operation.  No semantic
value lost for those modules which do not provide such details.



More information about the sword-devel mailing list