37 For example in an Arch Linux box the path is `/usr/share/Hedgewars/Data/Locale`. |
37 For example in an Arch Linux box the path is `/usr/share/Hedgewars/Data/Locale`. |
38 In a Windows 8 box the path is `C:\Program Files (x86)\Hedgewars 0.9.19\Data\Locale`. |
38 In a Windows 8 box the path is `C:\Program Files (x86)\Hedgewars 0.9.19\Data\Locale`. |
39 |
39 |
40 = Translation files = |
40 = Translation files = |
41 |
41 |
42 I am going to list the different localization files of the English language that you should use as your translation reference/template as it should be the most accurate and up to date. |
42 Here is a list of the different localization files of the English language that you should use as your translation reference/template as it should be the most accurate and up to date. The file locations are relative to the top directory of the Hedgewars source code. |
43 |
43 |
44 * `Data/Locale/en.txt`—This is the engine's strings |
44 * `/share/hedgewars/Data/Locale/en.txt`—This is the engine's strings |
45 * `Data/Locale/hedgewars_en.ts`—This is the front-end's strings and you can edit it with Qt Linguist |
45 * `/share/hedgewars/Data/Locale/hedgewars_en.ts`—This is the front-end's strings and you can edit it with Qt Linguist |
46 * `Data/Locale/missions_en.txt`—This is the [Missions mission] description strings |
46 * `/share/hedgewars/Data/Locale/missions_en.txt`—This is the [Missions mission] description strings |
47 * `Data/Locale/campaigns_en.txt`—This is the campaign description strings |
47 * `/share/hedgewars/Data/Locale/campaigns_en.txt`—This is the campaign description strings |
48 * `Data/Locale/stub.lua`—This is all the Lua files (Missions, mission maps etc.) strings |
48 * `/share/hedgewars/Data/Locale/stub.lua`—This is all the Lua files (Missions, mission maps etc.) strings |
49 * `Data/Locale/tips_en.xml`—This contains the tips shown in the main menu. This file is *not* in XML format! |
49 * `/share/hedgewars/Data/Locale/tips_en.xml`—This contains the tips shown in the main menu. This file is *not* in XML format! |
50 |
50 |
51 The following files are not used by Hedgewars itself, but they contain translatable metadata about Hedgewars: |
51 The following files are not used by Hedgewars itself, but they contain translatable metadata about Hedgewars: |
52 |
52 |
53 * `Data/misc/hedgewars.desktop`—[https://wiki.freedesktop.org/www/Specifications/desktop-entry-spec/ Desktop Entry] file for the Hedgewars application |
53 * `/share/hedgewars/Data/misc/hedgewars.desktop`—[https://wiki.freedesktop.org/www/Specifications/desktop-entry-spec/ Desktop Entry] file for the Hedgewars application |
54 * `Data/misc/hwengine.desktop`—Desktop Entry file for the Hedgewars engine for playing savegames and demos |
54 * `/share/hedgewars/Data/misc/hwengine.desktop.in`—Desktop Entry file for the Hedgewars engine for playing savegames and demos |
55 * `Data/misc/hedgewars-mimeinfo.xml`—Description of Hedgewars file types |
55 * `/share/hedgewars/Data/misc/hwengine.desktop`—*Do not translate*! This file will be automatically generated from `hwengine.desktop.in` when building Hedgewars |
|
56 * `/share/hedgewars/Data/misc/hedgewars-mimeinfo.xml`—Description of Hedgewars file types |
56 |
57 |
57 = Updating an existing translation = |
58 = Updating an existing translation = |
58 |
59 |
59 That is relatively easy. Just edit the existing file. You can edit every file with your favorite editor and the `.ts` file with Qt Linguist. |
60 That is relatively easy. Just edit the existing file. You can edit every file with your favorite editor and the `.ts` file with Qt Linguist. |
60 |
61 |