Hi Enrico,
Thanks see below.
And GLib's keyfile parser can read these entries as well, i.e. it
returns the value for the current locale when using the
g_key_file_get_locale_string() function.
In theory, we could apply this workflow to the filetype definition
files to get localised build menu labels. But I don't really like this
idea as it would mean we need to rename all these files and add rules
to our both build systems to process each of these files with intltool.
I'd even rather prefer to have unlocalised English labels by default
since the user can change them now as necessary though this isn't
really nice too.
A third possibility would be to list the necessary translatable strings
for the labels in some source file like src/build.c so that the gettext
translation system will pick them up by default and they get localised
by the busy translators and then after reading the label texts from the
filetype definition files, we feed them to gettext() to get the
translation before displaying them. This would be probably the easiest
way while it feels a bit hackish.
What do the others think?
Regards,
Enrico
--
Get my GPG key from http://www.uvena.de/pub.asc
_______________________________________________
Geany-devel mailing list
Geany-devel@uvena.de
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel