Contribution: Translating into spanish
Lubomir I. Ivanov
neolit123 at gmail.com
Tue Oct 9 07:27:58 PDT 2012
i'm new to this...
string matching for string retrieval, probably without cashing for any
sorts on each call.
i'm sorry, but if that is what drives gnome no wonder the sluggishness
on 10y/o machines...:(
even with a smart dictionary algorithm i don't think this is an
efficient method...especially for smaller apps.
a vastly superior method is string matching for string retrieval only
once i.e at memory allocation - post a parser stage.
but some of that in fact is redundant given there is already usage of
libxml in the application.
then a global "language" struct holding hardcoded list of pointers to
string data, which gives the form:
gettext("some dialog string from a dictionary with 1000 strings")
instead of XML a majority of windows applications use the INI format
(which is slightly faster to parse), a bit linear yet absolutely fine
then after loading the Windows API gives GetPrivateProfileString(),
which writes to a user buffer and lets _him_ pass pointers around.
also i'm not sure if this call is crucial for gettext to work:
setlocale( LC_ALL, "" );
but i recall that it was unwanted at some point due to GTK issues,
could be wrong.
More information about the subsurface