How to Create a language pack
Using "german" language as my example
STEP 1: Make copies of the original language file structure
Inside your new folder, eg: german, rename the file english.php to german.php
STEP 2: Change all the values within the new copy files to the translated language.
For example, english.php has:
$_['button_list'] = 'List';
$_['button_insert'] = 'Insert';
$_['button_update'] = 'Update';
$_['button_delete'] = 'Delete';
$_['button_save'] = 'Save';
In the german.php file it would be:
$_['button_list'] = 'Liste';
$_['button_insert'] = 'Einfügen';
$_['button_update'] = 'Aktualisieren';
$_['button_delete'] = 'Löschen';
$_['button_save'] = 'Speichern';
Do that for all the language files.
Be aware when you see %s . This is a place holder for test to be inserted.
$_['text_results'] = 'Results %s - %s of %s';
This would be:
$_['text_results'] = 'Ergebnisse %s - %s von %s';
STEP 3: include a famfamfam icon flag for the matching country. Name it xx.png (match the language code) into the catalog/styles/image folder
Example for german language: de.png in the catalog\styles\image folder
STEP 4: Insert the new language code in admin.
Language Name: German
Flag Image: de.png
Main Filename: german.php
Sort Order: 2
Many codes are listed in library/language/language.php
Also/ for more, see: http://msdn.microsoft.com/en-us/library ... 85%29.aspx
But you should be sure that for each language you install, that you also update all the locations that will refer to that language when selected.
- All categories need to be edited to get the name and description translations.
- All products need to be edited to get the name and description translations.
You will have to add the translations to the following sections:
- Default Order Statuses
- Default Payment Modules
- Default Shipping Modules
knowledge base and frequently asked questions
1 post • Page 1 of 1