Page 1 of 1

help, can't find the new language file

Posted: Wed Dec 14, 2005 7:40 am
by Lisania
sorry about my engligh...

i've made a new language file called 'serendipity_lang_th.inc.php' and put in two folders: lang and lang/utf-8.

but when i'm in the personal settings in the admin area, i can't find the language to choose.

please help me.

Posted: Wed Dec 14, 2005 10:14 am
by falk
delete the serendipity_ prefix -> lang_th.inc.php and have fun! ;-)
Have a look in the plugin dirs, there are some th-languages. Use this filename for your translations.

Posted: Wed Dec 14, 2005 3:58 pm
by garvinhicking
Falk, I'm afraid the user is talking about internal language files, not language files of plugins.

For internal files, serendipity_lang_XX.inc.php is required. But for the language to show up in the configuration, one needs to edit serendipity_config.inc.php and adjust the $serendipity['languages'] array.

This is also described on http://www.s9y.org/46.html :-))

Thanks for helping,
Garvin

Posted: Thu Dec 15, 2005 5:28 am
by Lisania
thank you very much. it works just fine now ;)

Posted: Thu Dec 15, 2005 8:59 am
by falk
garvinhicking wrote:Falk, I'm afraid the user is talking about internal language files, not language files of plugins.

For internal files, serendipity_lang_XX.inc.php is required. But for the language to show up in the configuration, one needs to edit serendipity_config.inc.php and adjust the $serendipity['languages'] array.

This is also described on http://www.s9y.org/46.html :-))

Thanks for helping,
Garvin
Sorry, here you can see i'am a plugin programmer and no core programmar. Never mind. So here now both answers for the forum search ;-)

Can't you insert languages in the array were no translation exists to make this for translators easier?

Posted: Thu Dec 15, 2005 11:35 am
by Guest
Falk: The reason we have a static array is that else we'd have to iterate and parse the whole lang/ directory, for each page request. That'd be really slow. :-)

Best regards,
Garvin