https://www.icyphoenix.com/viewtopic.php?f=5&t=76
-----------------------------------
ThE KuKa
Tue 15 Aug, 2006 14:33

Create a New Language for Icy Phoenix
-----------------------------------
[size=20][b][color=red]Creating A New Language Pack For Icy Phoenix[/color][/b][/size]

In this topic it will try to explain how to create a new language pack for Icy Phoenix

We recommend following these steps:

[list][*]Text Editor - e.g. UltraEdit, [url=http://www.emeditor.com/download.htm]EmEditor, or [url=http://www.phpide.com/go/downloads.htm#PHP%20Coder]PHP Coder.[/list]

[size=18][b]i. Editing Language Keys[/b][/size]
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.

[list][*]Example to make Spanish package:[/list]
[b]Make a folder:[/b] Language_Icy_Phoenix
In this folder, create these folders:
[color=green][b]/docs/[/b][/color] and [color=green][b]/language/lang_your_language[/b][/color]
[list][*]Copy [b]Icy Phoenix/docs/readme_english.html[/b] to [b]Language_Icy_Phoenix/docs/readme_spanish.html[/b]

[*]Copy [b]Icy Phoenix/language/lang_english/*.*[/b] to [b]Language_Icy_Phoenix/language/lang_spanish/[/b][/list]
Example, in your newly created language/lang_xxxx/lang_main.php file you might find:
[code]$lang['Thankyou'] = 'Thank you';[/code]
Edit with your text editor to read:
[code]$lang['Thankyou'] = 'Gracias';[/code]
It's very important not to change the '$lang['Thankyou']' value! But go ahead and translate everything else into your own language..

[size=18][b]ii. Language Standards[/b][/size]
All language strings must be included between single quotes/apostrophes ('), do not use double quotes/apostrophes (")!

Example:
[code]/* wrong */
$lang['who_is'] = "Who is there?";[/code]
[code]/* right */
$lang['who_is'] = 'Who is there?';[/code]
All words containing single quotes/apostrophes must be backslashed () to avoid parsing errors

Example:
[code]/* wrong */
$lang['who_is'] = 'Who's there?';[/code]
[code]/* right */
$lang['who_is'] = 'Who\'s there?';[/code]

[size=18][b]iii. Adding your copyright[/b][/size]
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]
// 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'] = '';[/code]
Replace With:
[code]
// 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>';[/code]

[size=18][b]iv. Viewing Finished Translation[/b][/size]
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

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

Re: Create a New Language for Icy Phoenix
-----------------------------------
Icy Phoenix Buttons in others languages:
http://www.icyphoenix.com/viewtopic.php?t=789


