help, can't find the new language file

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Lisania

help, can't find the new language file

Post 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.
falk
Regular
Posts: 512
Joined: Tue Sep 27, 2005 10:16 am
Location: DD
Contact:

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lisania

Post by Lisania »

thank you very much. it works just fine now ;)
falk
Regular
Posts: 512
Joined: Tue Sep 27, 2005 10:16 am
Location: DD
Contact:

Post 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?
Guest

Post 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
Post Reply