source: trunk/doc/translators-manual.txt

Last change on this file was 2, checked in by george, 14 years ago
  • Přidáno: Trunk revize 13719.
File size: 3.9 KB
Line 
1
2IMPORTANT: For the latest and extended version of this manual go to http://www.boonex.com/trac/dolphin/wiki/DolLang
3
4== Dolphin Languages ==
5
6'''[http://www.boonex.com/trac/dolphin/wiki/DolLang#Newlanguagecreation New language creation]'''
7
8== New language creation ==
9
10'''''This manual is for Dolphin 7 Beta'''''.[[BR]]
11'''''The manual for Dolphin 6 is available [http://www.boonex.com/trac/dolphin/wiki/GenDolFAQs#HowcanItranslatemysiteintoadifferentlanguage here]'''''
12
13To translate Dolphin's language file you need:
14
151. Install latest Dolphin
16
172. Uninstall all available modules from Dolphin Admin Panel -> Tools -> Modules
18
193. Go to Dolphin administration panel -> Settings -> Languages Settings. In the 'Language Files' block you need to export necessary language file by clicking 'Export' link.
20
214. The downloaded file will have the following structure
22{{{
23 <?php
24 $aLangInfo=array (
25 'Name' => 'en',
26 'Flag' => 'gb',
27 'Title' => 'English',
28 );
29 $aLangContent=array (
30 '_add' => 'add',
31 '_bottom_text' => '2002-{0}. Product of <a class="bottom_text" href="http://www.boonex.com/">BoonEx Group</a>.',
32 '_copyright' => 'Copyright &copy; {0} Your Company.',
33 'test_key' => 'Key\'s string',
34 ...
35 );
36 ?>
37
38}}}
39 * 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 it using the following link http://www.boonex.com/unity/txt/extension_requirements#LanguageFiles
40
41 * If you use (') sign in the language string you need to escape it by replacing with (\'). Take a look at example above -> 'test_key' language key.
42
43 * It is necessary that you open and save this file in UTF-8 format. Otherwise non-latin symbols will not be correctly displayed.
44
45 * It exports only system language file, but not modules language files, which are translated a bit different way.
46
475. 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 in system language file.
48
496. 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:
50
51
52{{{
53Org-Russian-v.1.3
54 modules
55 boonex
56 ads
57 install
58 langs
59 ru.php
60 articles
61 install
62 langs
63 ru.php
64
65 ...
66
67 forum
68 install
69 langs
70 ru.php
71 integrations
72 base
73 langs
74 ru.php
75
76 ...
77
78 wall
79 install
80 langs
81 ru.php
82
83
84 lang-ru.php
85 readme.txt
86
87}}}
88
89Don't forget to put readme.txt file into archive with language file info, compatibility with Dolphin and installation instructions. Pack resulted folder in zip archive.
90
91----
92
93== Installation instructions ==
94
951. Unpack zip archive
96
972. 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.
98
993. Copy all '''modules''' directory to your dolphin root directory - it will create language file in each module.
100
1014. Go to Dolphin admin panel -> Tools -> Modules, scroll down to '''Installed Modules''' block, select all modules and click '''Recompile Language(s)''' button.
102
1035. Go to Modules -> Orca Forum, click '''[L[Compile Lang:]]ru''' link to compile new language file specifically for orca forum.
104
Note: See TracBrowser for help on using the repository browser.