Create a New Language for Icy Phoenix »  Show posts from    to     

Icy Phoenix


Translations - Create a New Language for Icy Phoenix



ThE KuKa [ Tue 15 Aug, 2006 14:33 ]
Post subject: Create a New Language for Icy Phoenix
Creating A New Language Pack For Icy Phoenix

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:
Code: [Hide]
  1. $lang['Thankyou'] = 'Thank you'; 

Edit with your text editor to read:
Code: [Hide]
  1. $lang['Thankyou'] = 'Gracias'; 

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:
Code: [Hide]
  1. /* wrong */  
  2. $lang['who_is'] = "Who is there?"; 

Code: [Hide]
  1. /* right */  
  2. $lang['who_is'] = 'Who is there?'; 

All words containing single quotes/apostrophes must be backslashed () to avoid parsing errors

Example:
Code: [Hide]
  1. /* wrong */  
  2. $lang['who_is'] = 'Who's there?'; 

Code: [Hide]
  1. /* right */  
  2. $lang['who_is'] = 'Who\'s there?'; 


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:
Code: [Hide]
  1. // This is optional, if you would like a _SHORT_ message output  
  2. // along with our copyright message indicating you are the translator  
  3. // please add it here.  
  4. // $lang['TRANSLATION'] = ''; 

Replace With:
Code: [Hide]
  1. // This is optional, if you would like a _SHORT_ message output  
  2. // along with our copyright message indicating you are the translator  
  3. // please add it here.  
  4. $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.


Mighty Gorgon [ Thu 17 Aug, 2006 13:02 ]
Post subject: Re: Create a New Language for XS 2
Great document! :wink:

I've edited a couple of typos and grammar errors... I hope you don't mind! :wink:


ThE KuKa [ Wed 02 May, 2007 20:02 ]
Post subject: Re: Create a New Language for Icy Phoenix
Icy Phoenix Buttons in others languages:
http://www.icyphoenix.com/viewtopic.php?t=789




Powered by Icy Phoenix