|
Translation Instructions for MyBB 1.4
|
|
07-29-2008, 07:51 PM
(This post was last modified: 08-06-2008 02:55 PM by Tochjo.)
Post: #1
|
|||
|
|||
|
Translation Instructions for MyBB 1.4
This thread contains instructions on how to translate MyBB into another language and can serve as a guide for new translators. This information was last updated at 30th July, 2008. Please read this entire thread if you have a question. If you are sure the answer is not mentioned below, feel free to post a reply.
CONTENTS 1. Introduction 2. Getting started 3. Translating text strings 4. Translating other items (e.g. images) 5. Proofreading 6. Finishing steps 1. INTRODUCTION Thanks to the hard work of many volunteers who have translated MyBB in the past it is now available in a great number of languages other than English. If you see that a language pack for a language you speak fluently (very preferably your native language) is not available yet, then you can become one of those volunteers yourself by translating MyBB. Translating is a simple task: you have to translate all English text into your language. It is not difficult, but it is time-consuming. You could try to find someone else that can help you translate and split the work in two. You could also do all the work yourself, if you wish. This thread should contain all the information you need. 2. GETTING STARTED In the MyBB download package you will find the folder inc/languages/. In it you will find a file named english.php and a folder named english. You should copy those to another location (e.g. the desktop) and change the names to the language you will translate into. You should try to use lowercase letters from a to z without any special diacritics. Using the English name for your language is probably best. For example, if you were to translate into German you could use the name german. However, if you think it is better to use another name, for example german96 to indicate you are using the new German spelling (spelling reform or Rechtschreibereform 1996), feel free to do so. After renaming the file and folder move them back to the folder inc/languages/. Say you have chosen the name newlang for your translation. Open the file newlang.php with a text editor of your choice (such as Notepad++). You will see the following (or very similar) lines: PHP Code: // The friendly name of the languageYou need to change these values for your language pack.
3. TRANSLATING TEXT STRINGS In inc/languages/newlang/ you will find the language files for MyBB, ending in .lang.php. You can open these with a text editor. Every language file looks the same way and very similar to the following snippet from akismet.lang.php: PHP Code: <?phpPHP Code: $l['variable'] = "Text string"; ![]() The strings for the Board Settings page in the Admin CP are not found in the language files. You can translate them, though. Simply copy the strings in the next post and paste them in inc/languages/newlang/admin/config_settings.lang.php after the last string and before the ?>. To check your translations you can set up a copy of MyBB and set it to use your language. Go to the User CP and select the language you are translating into on the Edit Options page. The friendly name you have given your language will be used in the list there. Note that you will need to re-upload every file to the server if you make any changes to it if you are not directly altering the files on your server. You can change the language to be used in the Admin CP from the Board Settings page. 4. TRANSLATING OTHER ITEMS (E.G. IMAGES) The image files for the buttons can be found in images/english/. You can create a new folder images/newlang/, copy all buttons from images/english/ to images/newlang/ and replace them by buttons with text in your language (the font used is Trebuchet MS). If you are familiar with an image editing program such as Adobe Photoshop you can also use the MyBB Image GDK: mybb_images.psd (Size: 754.8 KB / Downloads: 363)
The image files for the group images can be foud in images/groupimages/english/. You can create a new folder images/groupimages/newlang/, copy all images from images/groupimages/english/ to images/groupimages/newlang/ and replace them by buttons with text in your language. As you see the buttons are still using the old style. For those a PSD file also exists, made by madmax: groupimages_eng.psd (Size: 221.55 KB / Downloads: 269)
Apart from the images there is also a language file for the installer (install/resources/language.lang.php), however, it does not contain all text for the installer and you might therefore consider not translating it but simply creating a document in your language with instructions on how to install MyBB. In addition, most people will be knowledgeable enough to install MyBB with English instructions so this doesn't have a high priority. 5. PROOFREADING After all the translating has been done be sure to check your translation extensively. Have other native speakers check it, point out mistakes and make suggestions. Check, double check and triple check everything to make sure your translation is of a very high quality. You could post a thread in the Internationalization forum to recruit proofreaders. 6. FINISHING STEPS After you have completed the five steps above you are ready to offer your language pack for public download. A language pack is a zip archive with the translated files in it. It should at least contain - all the files in inc/languages/newlang/ - all the files in images/newlang/ - all the files in images/groupimages/newlang/ - an English readme file - a localised readme file The English readme file is so that administrators who do not speak the language can install it nonetheless. You can find a template for an English readme file here: readme.html (Size: 11 KB / Downloads: 272)
You can edit it to include the English name of your language. Make sure the folder structure mentioned in the readme file matches the folder structure in your archive. Please also ensure that your readme mentions whether or not you have translated the Admin CP as well and adjust the readme file accordingly. After that you can translate the English readme file into your language. That way users who don't speak English well but do speak your language can install the language pack easily. Name the translated file logically, e.g. "lesemich" in German or "lisezmoi" in French. After you have created the language pack, contact Tochjo and inform him that you've translated MyBB. He will see to it that it gets placed on the download page. Additionally, you can post a thread in the Internationalization forum with information about your language pack. We have created a sample text you can use for this thread: thread template.txt (Size: 1.99 KB / Downloads: 243)
You should translate the sample English text into your language, an English translation is not required. You may add or omit paragraphs if you wish. Please note carefully that you should try not to post the language pack itself in your discussion thread: after each update you need to notify Tochjo so he can upload the new version for download from the main page. If you have any questions left, feel free to post them in this thread. Thank you in advance for your translation efforts! |
|||
|
07-29-2008, 07:52 PM
Post: #2
|
|||
|
|||
|
RE: Translator Instructions for MyBB 1.4
PHP Code: // Below are the strings for all the settings and setting groups |
|||
|
04-26-2009, 07:12 PM
(This post was last modified: 04-26-2009 07:12 PM by faviouz.)
Post: #3
|
|||
|
|||
|
RE: Translation Instructions for MyBB 1.4
I can either translate it via-file editing or via ACP, right?
btw shouldn't this be closed? |
|||
|
05-06-2009, 03:01 PM
Post: #4
|
|||
|
|||
|
RE: Translation Instructions for MyBB 1.4
Yes, you can also edit the language strings via the Admin CP (Configuration > Languages), if you have set the file permissions correctly (i.e. allow the language files to be written). The instructions were made before this functionality was available
|
|||
|
06-04-2009, 04:16 PM
Post: #5
|
|||
|
|||
|
RE: Translation Instructions for MyBB 1.4
Why do you don't close it now then?
-- lakridserne Founder and crew member of Virtual Football Manager (VFM) Member of the crew at World Web Wrestling IsMyWebsite - Your Success Is Our Success! |
|||
|
06-05-2009, 01:45 PM
Post: #6
|
|||
|
|||
|
RE: Translation Instructions for MyBB 1.4
If translators have questions they can ask them in this thread.
|
|||
|
06-08-2009, 10:05 AM
Post: #7
|
|||
|
|||
|
RE: Translation Instructions for MyBB 1.4
I have 2 questions:
1) Could someone create the Greek icons after I give them the translated text, since I have no past experience with Photoshop or any other image editor? 2) I'm resuming a translation made by others and I think the translation files I'm using are from myBB 1.4.2. What and how much has changed since that version until 1.4.6 and how can I include the latest changes in my translation? Thanks in advance ![]() |
|||
|
09-12-2009, 04:26 AM
Post: #8
|
|||
|
|||
|
RE: Translation Instructions for MyBB 1.4
I started to translate MyBB 1.4.8 to Hebrew.
I have read the instructions and i switched the system to RTL, but all the text in the main page is still aligned left, what i need to do? http://mybbheb.talk4fun.net/index.php Edit: solved this problem, now this two menus got toghter i mean this menu that located on the left Quote:Welcome back, Gilnaa. You last visited: Today, 06:09 AM (User CP — Log Out)crushed with that menu who located in the right Quote:Current time: 09-11-2009, 08:05 AMand now they look like this(you can see in the site) Quote: * how can i transfer the buddy list menu to the left? |
|||
|
09-21-2009, 08:04 PM
(This post was last modified: 09-21-2009 08:05 PM by Erxaz.)
Post: #9
|
|||
|
|||
|
RE: Translation Instructions for MyBB 1.4
Thank you so much Tochjo for this. Really helped me getting started with translating a swedish language pack.
Making a swedish language pack for 1.4 at the moment. http://unitedforever.co.cc
|
|||
|
09-23-2009, 07:55 AM
Post: #10
|
|||
|
|||
|
RE: Translation Instructions for MyBB 1.4
Nice guide but I have some questions :
1-if my language is rtl , how should I make the admin cp right to left too ? 2-how to make the archive rtl too ?? 3-is there anything else I need to modify to become rtl ?? Thanks My forum is here My Site is here |
|||
|
« Next Oldest | Next Newest »
|
Search
Member List
Calendar
Help
![[Image: wink.gif]](http://community.mybboard.net/images/smilies/wink.gif)





![[Image: newsig2.jpg]](http://bositman.pcsx2.net/newsig2.jpg)
