# HG changeset patch # User Wuzzy # Date 1479600274 0 # Node ID afa2ae557fb3e022a6896f1aa06cdbc2f354fc09 # Parent 6d9246385399746b87fe254ebf28d744b940e6c0 Translations: Restructure translation files list diff -r 6d9246385399 -r afa2ae557fb3 Translations.wiki --- a/Translations.wiki Sat Nov 19 23:59:23 2016 +0000 +++ b/Translations.wiki Sun Nov 20 00:04:34 2016 +0000 @@ -39,24 +39,20 @@ In a Windows 8 box the path is `C:\Program Files (x86)\Hedgewars 0.9.19\Data\Locale`. == Translation files == - 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. You can edit all these files with a text editor, but for some files special editors are available. - * `/share/hedgewars/Data/Locale/en.txt`—This is the engine's strings - * `/share/hedgewars/Data/Locale/hedgewars_en.ts`—This is the front-end's strings and you can edit it with Qt Linguist +=== Engine (in-game stuff) === + * `/share/hedgewars/Data/Locale/en.txt`—This contains the core in-game strings, such as the mission panel, the messages at the top, ammo names and descriptions + * `/share/hedgewars/Data/Locale/stub.lua`—Strings used by Lua scripts, which includes campaigns, missions and game styles + +=== Frontend (main menu) === + * `/share/hedgewars/Data/Locale/hedgewars_en.ts`—Contains most strings of the frontend and you can edit it with Qt Linguist * `/share/hedgewars/Data/Locale/missions_en.txt`—This is the [Missions mission] description strings * `/share/hedgewars/Data/Locale/campaigns_en.txt`—This is the campaign description strings - * `/share/hedgewars/Data/Locale/stub.lua`—This is all the Lua files (Missions, mission maps etc.) strings * `/share/hedgewars/Data/Locale/tips_en.xml`—This contains the tips shown in the main menu. This file is *not* in XML format! -The following files are not used by Hedgewars itself, but they contain translatable metadata about Hedgewars: - - * `/share/hedgewars/Data/misc/hedgewars.desktop`—[https://wiki.freedesktop.org/www/Specifications/desktop-entry-spec/ Desktop Entry] file for the Hedgewars application - * `/share/hedgewars/Data/misc/hwengine.desktop.in`—Desktop Entry file for the Hedgewars engine for playing savegames and demos - * `/share/hedgewars/Data/misc/hwengine.desktop`—*Do not translate*! This file will be automatically generated from `hwengine.desktop.in` when building Hedgewars - * `/share/hedgewars/Data/misc/hedgewars-mimeinfo.xml`—Description of Hedgewars file types - -The map selection shows brief descriptions for mission maps. Those can be translated and you find those texts in: +==== Mission map descriptions ==== +The map selection shows brief descriptions for mission maps below the preview image. Those can be translated and you find those texts in: * `/share/hedgewars/Data/Maps//desc.txt` @@ -67,6 +63,14 @@ || `_c` || Comma || || `__` || Underscore || +=== Metadata === +The following files are not used by Hedgewars itself, but they contain translatable metadata about Hedgewars: + + * `/share/hedgewars/Data/misc/hedgewars.desktop`—[https://wiki.freedesktop.org/www/Specifications/desktop-entry-spec/ Desktop Entry] file for the Hedgewars application + * `/share/hedgewars/Data/misc/hwengine.desktop.in`—Desktop Entry file for the Hedgewars engine for playing savegames and demos + * `/share/hedgewars/Data/misc/hwengine.desktop`—*Do not translate*! This file will be automatically generated from `hwengine.desktop.in` when building Hedgewars + * `/share/hedgewars/Data/misc/hedgewars-mimeinfo.xml`—Description of Hedgewars file types + == Updating an existing translation == 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.