Simple Machines Community Forum

SMF Support => Language Specific Support => Topic started by: sonexay on December 10, 2017, 11:54:36 PM

Title: Lao Language
Post by: sonexay on December 10, 2017, 11:54:36 PM
Hi

I'm new user of SMF i'm try to find Lao language but not found but only thai which is almost the same language like Lao. i'm here really like to support to translate into Lao. does anyone could tell me how to create Lao language pack to download for SMF.

can I translate from thai and save its file?
Title: Re: Lao Language
Post by: vbgamer45 on December 11, 2017, 12:13:02 AM
Here is a link https://www.simplemachines.org/community/index.php?topic=552017.0

Easy way is to take a base language files and translate them to your native language.
Title: Re: Lao Language
Post by: sonexay on December 11, 2017, 10:59:32 PM
I've submmit the forum request and so what is next?
Title: Re: Lao Language
Post by: vbgamer45 on December 11, 2017, 11:18:20 PM
Wait to hear back. But I would suggest you can start doing the translation that share it in this forum when done
Title: Re: Lao Language
Post by: jaideejung007 on December 18, 2017, 09:22:34 AM
Hi sonexay!

I'm so good to hear that. and I'm Thai people.

You can translate Thai to Lao language by your self.

change from index.thai-utf8.php to index.lao-utf8.php file.

and open index.lao-utf8.php file, edit below:

$txt['lang_locale'] = 'lo_LA';
$txt['lang_dictionary'] = 'lo';
$txt['lang_spelling'] = 'lao';


and change *.thai-utf8.php to *.lao-utf8.php all files in languages folder.

ex: Settings.thai-utf8.php change to Settings.lao-utf8.php

PS: if you have any question, just you tell me...
Title: Re: Lao Language
Post by: sonexay on June 04, 2018, 07:46:50 AM
Quote from: jaideejung007 on December 18, 2017, 09:22:34 AM
Hi sonexay!

I'm so good to hear that. and I'm Thai people.

You can translate Thai to Lao language by your self.

change from index.thai-utf8.php to index.lao-utf8.php file.

and open index.lao-utf8.php file, edit below:

$txt['lang_locale'] = 'lo_LA';
$txt['lang_dictionary'] = 'lo';
$txt['lang_spelling'] = 'lao';


and change *.thai-utf8.php to *.lao-utf8.php all files in languages folder.

ex: Settings.thai-utf8.php change to Settings.lao-utf8.php

PS: if you have any question, just you tell me...

it's really nice to have you here jaideejung007 i  have changed file name from "Thai" into "lao" as your advice  and now where can to translate thai words, texts, sentence etc from thai to Lao? or i have to translate all php file which i've changed name? which software should I use to modify these php file?
Title: Re: Lao Language
Post by: GigaWatt on June 04, 2018, 09:17:57 AM
Quote from: sonexay on June 04, 2018, 07:46:50 AM
...i  have changed file name from "Thai" into "lao" as your advice  and now where can to translate thai words, texts, sentence etc from thai to Lao?

Download the Thai language pack from here (https://download.simplemachines.org/index.php?languages;id=46), extract the content and start translating the php files (basically, they are text files) in Themes\default\languages. Make a copy of each file and rename it. For example, copy Admin.thai.php, rename it to Admin.lao.php and start translating it.

Alternatively, if it helps (it does in many cases ;)), you can download the UTF-8 English language pack as well. You can download it here (https://download.simplemachines.org/index.php?languages;id=1). It's a great reference and may (probably will) come in handy when translating the words/phrases ;).

In any case, it's preferable that you download the UTF-8 language packs ;). The file names differ. For example, the Thai language pack admin menu file is named Admin.thai.php, but the UTF-8 Thai Admin menu file is named Admin.thai-utf8.php. One file has one code page,  the other has another code page. So, when you're translating in one code page (one file), stick to it, don't change files, and don't change the name of the file to something-utf8. For example, if you start translating Admin.thai.php and you're done translating it to Tao, you're allowed to change the name to Admin.tao.php, but not to Admin.tao-utf8.php, since this file is not written in the UTF-8 code page.

Quote from: sonexay on June 04, 2018, 07:46:50 AM
which software should I use to modify these php file?

Notepad++ is the preferred tool to do these sorts of changes. You can download it from here (https://notepad-plus-plus.org/download/). It supports tabs, so you can open multiple files in the same window and switch from one to another for reference ;). It supports code highlighting, files with all sorts of code pages, opening up files is as easy as drag and drop and I think that by default it remembers sessions (files you've opened up before you've closed the program, open up in the same tab order and in the same scroll position where you last left them, before you closed the program). If it doesn't support this feature by default, you can enable it ;).

Here are some Wiki links on languages ;): SMF 2.0 Languages (https://wiki.simplemachines.org/smf/SMF2.0:Languages), UTF-8 Readme (https://wiki.simplemachines.org/smf/UTF-8_Readme), Installing a Language (https://wiki.simplemachines.org/smf/How_do_I_add_a_new_language)
Title: Re: Lao Language
Post by: sonexay on June 04, 2018, 10:03:51 AM
wow this is really helpful, I'd  start translate and will came back when done to share with you all. :laugh: