Hello!
I've already added to CVS 'ru.po' and modified 'LINGUAS'.
Also some cyrillic specifics:
1) 'ru.po' is encoded using UTF-8. Nevertheless, to get any LaTeX output
in function 'gretl_tex_preamble' I've made following:
----------------------------------------------------------------------
texprint.c : 1072-1077 inserted
----------------------------------------------------------------------
char* lang = getenv("LANG");
if(lang!=NULL) {
if(!strncmp(lang,"ru",2)) {
pputs(prn, "\\usepackage[russian]{babel}\n");
}
}
2) Russian encodings are: iso-8859-5 and cp1251. So, I've modified some
functions in 'gretl_intl.c':
----------------------------------------------------------------------
gretl_intl.c
----------------------------------------------------------------------
int iso_latin_version (void) // inserted in proper parts of function
...
gretl_cset_min == 5 ||
...
else if (gretl_cpage == 1251) {
return 5;
}
...
else if (!strncmp(lang, "ru", 2)) {
return 5;
}
static char *get_gp_encoding_set (char *s, int targ) // inserted in
proper parts of function
...
else if (latin == 5) {
strcat(s, "5");
}
...
else if (latin == 5) {
strcat(s, "1");
}
...
3) Names of months are return in 'strange' form, all months are 'DDD',
so in function 'get_month_name' I've commented out:
----------------------------------------------------------------------
gretl_intl.c
----------------------------------------------------------------------
#ifdef ENABLE_NLS
//real_iso_to_ascii(mname, gretl_cset_min);
#endif
Of course, this can be language dependent, something like in 'texprint.c'.
4) When data is monthly, then originally periodic dummies' names are:
djan, dfeb,... After previous change names are readable, but latin and
cyrillic symbols are mixed. By analogy with quarterly dummies (dq1, dq2,
...) I've changed names to dm1, dm2, ...:
----------------------------------------------------------------------
genfuncs.c : 1065 replaced
----------------------------------------------------------------------
sprintf(vname, "dm%d", vi); // sprintf(vname, "d%s", mname);
Also can be language dependent.
5) One more trouble I've got is gnuplot titles - seems like UTF-8 output
in Russian is not supported. When running gnuplot outside gretl titles
are correct, until one runs 'export LANG="ru_RU.UTF-8"'.
Best regards,
Alexander Gedranovich