Changes between Version 10 and Version 11 of DolLang
- Timestamp:
- Jan 28, 2011, 9:11:39 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DolLang
v10 v11 8 8 '''''The manual for Dolphin 6 is available [http://www.boonex.com/trac/dolphin/wiki/GenDolFAQs#HowcanItranslatemysiteintoadifferentlanguage here]''''' 9 9 10 To translate Dolphin's language file you need :10 To translate Dolphin's language file you need to: 11 11 12 1. Install latest Dolphin12 1. Install the latest Dolphin 13 13 14 14 2. Uninstall all available modules from Dolphin Admin Panel -> Tools -> Modules 15 15 16 3. Go to Dolphin administration panel -> Settings -> Languages Settings. In the 'Language Files' block you need to export necessary language file by clicking'Export' link.16 3. Go to the Dolphin administration panel -> Settings -> Languages Settings. In the 'Language Files' block you need to export the necessary language file by clicking the 'Export' link. 17 17 18 18 4. The downloaded file will have the following structure … … 34 34 35 35 }}} 36 * You need to change the 'Name', 'Flag' and 'Title' in accordance with the language you are translating to. Note. You need to use International Language Codes for 'Name' and 'Flag'. You may read more about itusing the following link http://www.boonex.com/unity/txt/extension_requirements#LanguageFiles736 * You need to change the 'Name', 'Flag' and 'Title' in accordance with the language you are translating to. Note. You need to use International Language Codes for 'Name' and 'Flag'. You may read more about this using the following link http://www.boonex.com/unity/txt/extension_requirements#LanguageFiles7 37 37 38 * If you use (') sign in the language string you need to escape it by replacing with (\'). Take a look atexample above -> 'test_key' language key.38 * If you use the (') sign in the language string you need to escape it by replacing it with (\'). Take a look at the example above -> 'test_key' language key. 39 39 40 40 * It is necessary that you open and save this file in UTF-8 format. Otherwise non-latin symbols will not be correctly displayed. 41 41 42 * It exports only system language file, but not modules language files, which are translated a bit different way.42 * It exports only the system language file, but not modules language files, which are translated a bit differently. 43 43 44 5. Translate language file in each module located in modules/boonex/*/install/langs/en.php. Forum has 2 language files first in the regular location and another one in modules\boonex\forum\integrations\base\langs\en.php. Use the same language code for translated files like in 'Name' field insystem language file.44 5. Translate the language file in each module located in modules/boonex/*/install/langs/en.php. The Forum has 2 language files - first in the regular location and another one in the modules\boonex\forum\integrations\base\langs\en.php. Use the same language code for translated files like in the 'Name' field in the system language file. 45 45 46 6. Put all translated files in a folder with all modules structure and exported system language in root of the folder. The name of folder must be named with vendor name, language name,version of the translation. So it may look like this:46 6. Put all translated files in a folder with all modules structure and exported system language in the root of the folder. The name of the folder must be named with the vendor name, language name and version of the translation. So it may look like this: 47 47 48 48 … … 84 84 }}} 85 85 86 Don't forget to put readme.txt file into archive with language file info, compatibility with Dolphin and installation instructions. Pack resulted folder inzip archive.86 Don't forget to put a readme.txt file into the archive with language file info, compatibility with Dolphin and installation instructions. Pack the resulting folder in a zip archive. 87 87 88 88 ---- … … 90 90 == Installation instructions == 91 91 92 1. Unpack zip archive92 1. Unpack the zip archive 93 93 94 2. Go to Dolphin admin panel -> Settings -> Languages Settings and in the 'Create New' block switch tab to 'Import'. Browse for your system language file (in the root of this folder, like lang-ru.php) and click 'Import'. If everything is OK, you should see new language in the 'Language Files' block.94 2. Go to the Dolphin admin panel -> Settings -> Languages Settings, and in the 'Create New' block switch tabs to 'Import'. Browse for your system language file (in the root of this folder, like lang-ru.php) and click 'Import'. If everything is OK, you should see the new language in the 'Language Files' block. 95 95 96 3. Copy all '''modules''' directory to your dolphin root directory - it will create language file in each module.96 3. Copy all the '''modules''' directory to your dolphin root directory - it will create the language file in each module. 97 97 98 4. Go to Dolphin admin panel -> Tools -> Modules, scroll down to '''Installed Modules''' block, select all modules and click'''Recompile Language(s)''' button.98 4. Go to the Dolphin admin panel -> Tools -> Modules, and scroll down to the '''Installed Modules''' block. Select all modules and click the '''Recompile Language(s)''' button. 99 99 100 5. Go to Modules -> Orca Forum, click '''[L[Compile Lang:]]ru''' link to compile new language file specifically for orca forum.100 5. Go to the Modules -> Orca Forum, click '''[L[Compile Lang:]]ru''' link to compile new language file specifically for orca forum.