In this topic it will try to explain how to create a new language pack for Icy Phoenix
We recommend following these steps:
i. Editing Language Keys
The language/ directory of your phpBB install hosts a lang_english/ directory. All you need to do is to duplicate that folder by copying all the files in that folder (including the emails/ directory located in it), rename the copy lang_xxxx (whatever your language is, e.g. lang_spanish), and then translate all files.
- Example to make Spanish package:
Make a folder: Language_Icy_Phoenix
In this folder, create these folders:
/docs/ and /language/lang_your_language
- Copy Icy Phoenix/docs/readme_english.html to Language_Icy_Phoenix/docs/readme_spanish.html
- Copy Icy Phoenix/language/lang_english/*.* to Language_Icy_Phoenix/language/lang_spanish/
Example, in your newly created language/lang_xxxx/lang_main.php file you might find:
Edit with your text editor to read:
It's very important not to change the '$lang['Thankyou']' value! But go ahead and translate everything else into your own language..
ii. Language Standards
All language strings must be included between single quotes/apostrophes ('), do not use double quotes/apostrophes (")!
Example:
All words containing single quotes/apostrophes must be backslashed () to avoid parsing errors
Example:
iii. Adding your copyright
To add a short copyright message to the footer indicating who translated all files, open the lang_main.php file and add your name. If you are using link urls, please adhere to the default footer copyright text class.
Find:
- // This is optional, if you would like a _SHORT_ message output
- // along with our copyright message indicating you are the translator
- // please add it here.
- // $lang['TRANSLATION'] = '';
Replace With:
- // This is optional, if you would like a _SHORT_ message output
- // along with our copyright message indicating you are the translator
- // please add it here.
- $lang['TRANSLATION'] = 'Translation by <a href="http://yourdomain.com" target="_blank" class="copyright">Name</a>';
iv. Viewing Finished Translation
To install your new language upload all folder to the root directory of your board, either change the overall board language setting, or the language as a user in your profile.