On Mon, 16 Mar 2015 22:01:19 -0400 Rich Felker wrote: > On Tue, Mar 17, 2015 at 08:40:04AM +0700, Рысь wrote: > > On Mon, 16 Mar 2015 14:41:56 +0100 > > Szabolcs Nagy wrote: > > > > > * ???????? [2015-03-16 11:18:46 +0700]: > > > > I have this test program: > > > > > > > > % cat > > > > dt.c #include > > > > #include > > > > > > > > int main(void) > > > > { > > > > char x[32]; > > > > struct tm *tm; > > > > time_t t; > > > > > > > > t = time(NULL); > > > > tm = localtime(&t); > > > > strftime(x, sizeof(x), "%x", tm); > > > > printf("%s\n", x); > > > > > > > > return 0; > > > > } > > > > > > > > > > i think you need to call setlocale(LC_ALL, "") > > > > Thanks! Now it worked as needed! > > Great! > > > Rich: from this point I probably do understand how to translate > > certain strings in C library, can you provide more info about what > > should be translated? > > LC_TIME: Day and month names, am/pm, and some locale-specific formats. > See src/locale/langinfo.c for a list. > > LC_MONETARY: Not supported yet. > > LC_MESSAGES: Error strings (src/errno/__strerror.h), signal strings > (src/string/strsignal.c), and the yes/no regex/strings in > src/locale/langinfo.c. Maybe some other things too. Eventually dynamic > linker related messages and maybe some other things will be added. > > LC_NUMERIC: Nothing. > > LC_CTYPE: Nothing. > > LC_COLLATE: Not supported yet. > > Rich Attached is my draft of translated strings you mentioned to Russian. Some strings I borrowed from glibc, but only few of them (things like "Broken pipe" and similar). Certain translations may be inaccurate, but mostly if I did not know context I did an additional quick research by grepping man pages. I think this should be additionally reviewed by russian subscribers. File compiles with msgfmt but I did not tested it. I will do when I will establish a locale kvm machine to test and finally fix my locale issue. Let me know if additional places in libc need to be translated.