Unciv/docs/Other/Translating.md

175 lines
20 KiB
Markdown
Raw Normal View History

2022-02-24 15:22:47 +07:00
# Translating
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
## Starting out
The translation files are at [/android/assets/jsons/translations](https://github.com/yairm210/Unciv/tree/master/android/assets/jsons/translations)
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
If you're adding a new language, see [Adding a new language](#adding-a-new-language).
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
If you're adding stuff to an existing language, simply start editing the file!
You don't need to download anything, all translation work can be done on the Github website :)
When you feel that you're ready to add your translation to the game, you'll need to create a merge request, which takes your changes and puts them into the main version of the game - it's pretty straightforward once you do it
Please note that Right-to-Left languages such as Arabic and Hebrew are not supported by the framework :/
## App store text
There are two special entries that won't show in the game but are automatically used to provide short and long descriptions for F-Droid (and possibly other stores soon). They're near the beginning of each language file and marked "Fastlane". See the comments just above each for help, and where to find the actual english original to translate. Do not overlook the note on line breaks in [Other notes](#Other_notes) for the full description!
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
## Pitfalls
- If a translation template (the stuff to the left of "` = `") contains square brackets, you will have to include each of them _verbatim_ in your translation, but you can move them. Upper/lower case is relevant! e.g. `All [personFilter] are cool` can be translated as `Tous les [personFilter] sont cool`, but ***not*** as `Tous les [personnages] sont cool`, and neither as `Nous sommes vraiment cool`. Failing this is the main cause of your PR's showing up with red "x"es and "checks failed".
- Blanks: Watch out for blanks at the start of a line or two of them before the equals sign. If you got such a line - those blanks are part of the translation key and must not be deleted on the left side, and you should probably also include them in your translation (unless your language doesn't need spaces to separate things).
- Changes in the templates: When we find a typo in the english texts and fix it, or marginally change a wording, the template changes. Often the old template will not be automatically fixed in the existing translations, because it's a lot of work _and_ in most cases the developers cannot be sure the translation is still correct. For you, that might look like your translations are simply disappearing with an update. In such a case, you have the option to use github's history to look up old versions, copy the old translation, place it where the new template now says "requires translation" - and proofread and adapt it to the new english version. The history link for each file is in the top right area and has a nice round clock icon.
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
## Wait, what just happened?
Like most open-source projects, Unciv is developed at Github, so if you don't have a user you'll first have to create one. The way Github works is the following:
1. You create a 'fork' repo, i.e. copy, of Unciv that belongs to your user (myUser/Unciv)
2. You make changes to your copy. These changes are called a 'commit'.
3. You make a pull request, which is basically asking for the changes you made on myUser/Unciv to be merged into the main repo (yairm210/Unciv)
When you ask to 'edit' a file in yairm210/Unciv, these stages happen _automatically_ - but it's important to understand what's happening behind the scenes do you understand where the changes actually are!
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
## Other notes
2023-11-30 00:51:40 +07:00
Each untranslated phrase will have a ` # Requires translation!" line before it, so you can quickly find them.
You don't need to remove them yourself - they will be automatically removed the next time we rebuild the file.
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
Do as much as you're comfortable with - it's a big game with a lot of named objects, so don't feel pressured into doing everything =)
2023-11-30 00:51:40 +07:00
If you're making changes to your own repo, make sure that you make the branch you're changing is based on Unciv's master branch
2023-11-30 00:51:40 +07:00
Some entries have line breaks expressed as `\n`: Your translation can and in most cases should use them as well, but you do not need to distribute them exactly as in the original. Try to find a translation that reads nicely, then place the line break codes at roughly the same intervals as the original uses (less if your language's glyphs are wider than latin ones). Important: You cannot use normal line breaks, you must use the `\n` codes, normal line breaks are not part of a translation.
2023-11-30 00:51:40 +07:00
Chinese tutorial: 如果你是中国人那么恭喜你运气不错这里有Unciv中文开发者们专门为中文翻译工作者准备的十分详尽教程视频。[(Video On Bilibili)](https://www.bilibili.com/video/BV1pY4y1u7WH/)
## Adding a new language
If any of the following steps are beyond your skillset, ask for help. All but the first two steps can be postponed.
- You'll need to create a new file ('Create a new file' to the right of the folder name in the UI), and copy into it the contents of template.properties
- For automatic language processing for a release (e.g. adding new templates) there needs to exist a line in [completionPercentages.properties](https://github.com/yairm210/Unciv/tree/master/android/assets/jsons/translations/completionPercentages.properties). Location and number do not matter, what matters is that the language name left of the ` = ` corresponds exactly with your new language file name, case-sensitive, without extension.
- For a nice display in language picker and options, we need a flag. It should be a circle surrounded by transparency within a 128x128px square. Add such a png to [FlagIcons](https://github.com/yairm210/Unciv/tree/master/android/Images.Flags/FlagIcons). For potential sources, look in the [credits](https://github.com/yairm210/Unciv/tree/master/docs/Credits.md), and when done, add your source unless it is already covered.
- A new graphic needs to be converted into the texture atlases (see [Images and the texture atlas](../Modders/Images-and-Audio.md#images-and-the-texture-atlas)) - for a new flag, this usually means running the desktop version once from source, then uploading the updated atlas files via push or manually.
- Lastly, your new language should be represented in the [LocaleCode](https://github.com/yairm210/Unciv/tree/master/core/src/com/unciv/models/metadata/GameSettings.kt#L261) enum - reasons see below. You can add this even if you cannot compile - just make sure you follow the existing pattern, and read the inline documentation.
- The first function of this entry is alphabetical sorting. Unfortunately, it is not easy to tell whether a specific combination is supported by Java. The simplest way to deal with this is trial and error - once your language is established and playable, see if Civilopedia entries seem properly sorted, if not, open an issue and tell us what _other_, more common language may have better sorting rules.
- This entry is also required to enable fastlane description upload to a correct folder - however, whether F-Droid supports your language is not guaranteed ([this page](https://f-droid.org/docs/Translation_and_Localization/) should help - but doesn't).
## Diacritics support
When displaying text, the underlying libraries (libGdx and possibly lwjgl3/GWT) that Unciv uses assume one codepoint in the [UTF-16](https://en.wikipedia.org/wiki/UTF-16) representation corresponds to one rendered glyph,
which causes incorrect display of languages making heavy use of diacritics or of characters outside the [basic multilinguial plane](https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane) like most emoji.
A language file can activate a "trick", where combinations of codepoints that should render as one single glyph are mapped into a "fake alphabet",
which is created on the fly in the [Private Use Area](https://en.wikipedia.org/wiki/Private_Use_Areas) defined by Unicode.
To activate this feature, set `diacritics_support = true` in your translation. There are a few additional "settings" - translation lines where the "translation" is some control instruction instead.
All of these are optional, though your language may show glitches unless you define some. For example, Bangla _needs_ a definition for U+09CD, where the Unicode category does not fully define the required behaviour.
Each of the following definitions represents zero or more characters, and can simply list them as one string.
For readability, they can also be quoted (" surrounding the entire definition), characters can be separated by spaces, or you can use standard "U+xxxx" representations (these need space separators).
These entries, unlike the rest of a translation file, also support entry-specific comments: After the code(s), from a '#' to the end of the line.
Search for the information about the Unicode support in your language, e.g. on https://www.unicode.org/charts/ for information on which codes you might need to specify.
If your language does not need these, feel free to ignore, or use "" to avoid the "requires translation" mark.
### Limitations
- Consider this feature as being in an experimental stage.
- Can only work if the language's script still consists of individual glyphs rendered left to right.
- The underlying libraries (Java AWT or Android) must be able to render the combinations you need - sometimes you will need to select and possibly install a specific font to see the intended results.
- Using diacritics support incurs a performance penalty, but mostly when loading languages starting Unciv.
- The feature also has a "quantity" limitation from the size of the Unicode "Private Use Area" (only the one in the BMP can be used), and this must be shared by the feature whereby Unciv automatically displays ruleset object icons:
The total number of distinct diacritic "combinations" (or glyphs) your translation actually uses plus the number of objects in the loaded mods (or vanilla ruleset) must not exceed 6400.
- When enabled and the range is the default (or spans the unicode range for surrogates), then the engine will treat Unicode surrogate pairs correctly, assigning a fake alphabet codepoint for them and allowing diacritics to include them in a combo.
However, the parser is strict and throws an Exception on violations of the UTF-16 standard. If your translation crashes Unciv, check your editor for incorrect Unicode handling
(translation files are UTF-8 not UTF-16, but unfortunately most encoding converters allow transferring mismatched surrogate pairs).
Also, this possibility could so far not be successfully tested for emoji - no supporting font found, see "experimental".
### Settings (as translation entries in the language file)
- `diacritics_support`: This entry must be set to "true" for the diacritics support to work at all. Any other value will cause text to be passed through unchanged.
- `unicode_block_start_character` and `unicode_block_end_character`: These define the range of characters that should be considered. One character or code each. Defaults to the entire BMP range.
All characters in this range will be categorized, those undefined by Unicode, controls or punctuation, or those outside the range will pass through and reset the diacritics engine for the rest of the line, that is, pending potential combinations will be flushed.
Limiting this range - e.g. to the Unicode page dedicated to your language - is a performance optimization, but ultimately not required.
- `left_joining_diacritics`: Optionally define additional codes meant to join with the character to the left of them, by default the unicode categories "Mn" and "Mc" within the range described above are used.
- `right_joining_diacritics`: Optionally define additional codes meant to join with the character to the right of them, by default none.
- `left_and_right_joiners`: Optionally define additional codes meant to join with the character to the left AND with the character to the right, by default none
These are processed in listed order and can override previous categorizations per character codepoint.
Thus a code specified in `left_and_right_joiners` can be in the "Mn" unicode category, which would put it into the `left_joining_diacritics`, but will still work, because the later definition overrides the earlier one.
## Why not use a crowdsourcing translation website like <...>?
1. Testing. Currently, translations undergo a number of tests for verification. This allows some language changes to be accepted and others not, and it's all in the same platform with the same tests. External translation tools don't allow for this.
2. History and revisions. This is what Git was made for, and nothing like it exists in the world. I'm not exaggerating.
3. Release cycle. We release versions weekly. If we need to take information from an external website every time, and for many that I've checked - you need to download the info as a csv or something and convert it. Every extra step hurts.
4. Discussions. Most crowdsourcing translation websites don't allow for discussions and corrections on translations. Github does.
5. Mass changes. If we're changing the source of the translation but want to keep the various destinations (say, we change "Gold from trade routes +[amount]%" to "+[amount]% Gold from trade routes"), if all the translation files are in Git we can do that in 1 minute. If it's external, this varies greatly.
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
# Translation generation - for developers
## The automatic template generation
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
Before releasing every version, we regenerate the translation files.
Sometimes, new strings (names, uniques, etc) are added in the json files. In order to not have to add every single one to the translation files manually, we have a class - TranslationFileWriter - that, for every language:
- Goes over the template.properties and copies translation lines
- For every json file in the jsons folder
- Selects all string values - both in objects, and in arrays in objects, to any inheritance or nesting level.
(Collections that can be parsed must be derived from List or AbstractCollection)
- Generates a 'key = value' line
- Scans knowledge from UniqueType and UniqueParameterType instances and generates 'key = value' lines for them
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
This means that every text that ISN'T in the jsons or the UniqueType system needs to be added manually to the template.properties in order to be translated!
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
That also means if you've been adding new json structures you (or someone) should check TranslationFileWriter and see if it is able to cope with them.
## Rules for templates added manually
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
Building a new UI and doing something like `popup.add("Hello world".toLabel())` is a typical case: This is not contained in json data, so you'll have to add the template to `template.properties` yourself. For this example, adding `Hello world = ` somewhere in a line of its own could suffice.
Note the space at the end - it's absolutely required, and see to it your editor does not destroy your work. If you want to make sure, use Android Studio for git integration, but edit the file in an external editor, then run the unit tests locally before pushing. (to do: add link for instructions how to do that)
Leading spaces on a translation line or more than one space between the text and the `=` would mean these spaces are a _key part of the string to be translated_. That can work, but be warned: translators often overlook that those spaces are a required part of _both_ template _and_ translation, so if you _can_ do without, then doing without is safer.
Translation templates can use placeholders, and there's two varieties: `[]` and `{}`. Square ones take precedence over curly ones, and nesting works only with a single level of curly nested inside one level of square. I both cases the symbols themselves (`[]{}`) are removed by the translation engine.
Square brackets `[]` mean the outer and inner components are both translated individually. The outer template will use alias names inside the brackets - example: Your code outputs "Everyone gains [5000] gold!", then the translation template should be "Everyone gains [amount] gold! = ". The translation engine would translate the "Everyone gains [] gold!" and "5000" individually and reassemble them - of course, the number is simply passed through. But in other cases that could be e.g. a Unit name that would be translated, and you could trust that translations for units are already handled just fine. Note that [uniques](../Modders/uniques) often use the feature, but it is in no way limited to them. It it makes life easier for translators, use it.
Move wiki pages into repository, fix dozens of broken links. (#5854) * Updated Mods (markdown) * Updated Scenarios (markdown) * Updated Mods (markdown) * Added itch.io release * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Project structure and major classes (markdown) * Updated Mods (markdown) * Created Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Added link to Uniques * Updated Uniques (markdown) * Added 'triggers victory' unique * Updated Making a new Civilization (markdown) * Created Building locally without Android Studio (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Added improvement uniques * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Mods (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * I thought a tutorial on how to create a custom tileset in the first place could not hurt * Moved the sentence to the "Creating a custom tileset" page * Updated Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Destroyed Scenarios (markdown) * Updated Uniques (markdown) * Changed Travis documentation to Github actions documentation * Updated Translating (markdown) * Updated Translating (markdown) * Updated From code to deployment (markdown) * Removed "working on templated rule variants" because we currently don't * Updated Uniques (markdown) * Updated uniques based on everything done during the policy update * Misplaced a unique * Updated Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Updated Translating (markdown) * Updated Uniques (markdown) * Removed [pending] messages for PR's that were no longer pending * Added uniques from telecommuncations/advanced balistics * Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point * Updated Uniques (markdown) * Added missing deprecated unique * Added uniques changed in #4292 * Updated Uniques (markdown) * Added uniques from #4311 and #4301 * Added uniques from #4331 * Added Discord webhook message * Created page with basic information * Typo * Made information not incorrect * Added units.json * Manual new lines was a terrible idea * Updated JSON files for mods (markdown) * Added link to JSON files for mods explanation * Added eras.json * capitalization * Added a header * Improved example * Added Buildings.json * hmmm * Doesn't work, sad * Added information on Specialists.json * Updated JSON files for mods (markdown) * Added uniques from #4372 * Updated Uniques (markdown) * Updated uniques after #4393 * Updated uniques after #4423 * Add new and deprecated uniques of #4487, #4459 * add wonder images * Fixed mod directory * Updated Uniques (markdown) * Updated uniques after #4530, #4505, #4419 * Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection * Added a more indept guide on how to install UnCiv on macOS * Updated Uniques (markdown) * Created Credits.md (markdown) * Destroyed Credits.md (markdown) * Added installing from source method * Improve Sound chapter, added Civilopedia text chapter * Added after #4619 * Added unitTypes.json * Added beliefs.json * Updated Translating (markdown) * Added eras:unitBaseBuyCost * Added after #4568 * Added ruins.json * Added after #4771 * Added rudimentary Difficulties.json doc * Added ruin-specfic uniques explanation * Added TOC and Nations * Detailed Techs chapter * Fix 1 line - tech uniques * Added Quests.json * Added ModOptions * Added ModOptions * Added UnitPromotions, structured TOC * Added Policies * Added crosslinks * Fixed broken links * Added TileResources * Added more crosslinks * Small fix resource tile graphix aren't toggle-able * Added TileImprovements * Added Terrains * Updated JSON files for mods (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated Getting Started (markdown) * Updated JSON files for mods (markdown) * Updated Translating (markdown) * Created Civilization-related JSON files (markdown) * Created Map-related JSON files (markdown) * Double title * Double title * Created Unit-related JSON files (markdown) * Moved sounds * Updated Unit related JSON files (markdown) * Moved Stats * Created Miscellaneous JSON files (markdown) * Removed content that has been moved to separate pages, update TOC * Created _Sidebar (markdown) * Updated Uniques (markdown) * test * Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason * Updated Uniques (markdown) * Fix relative `..` link suddenly leaving the wiki * Updated Miscellaneous JSON files (markdown) * Fix relative links * Fix era links to Units.json * Updated Uniques (markdown) * Updated From code to deployment (markdown) * Added uniques & cityFilters up to #4995 * Mass deprecation as per 422607 * Fixed broken link to redirect to Unit Uniques in Wiki * Fixed broken link to redirect to Unit Uniques in Wiki table * Updated Uniques (markdown) * Updated Getting Started (markdown) * Updated Uniques (markdown) * Added uniques & filters up to #5094 * Removed a deprecated unique * Moved some uniques to better sections, removed an outdated unique * fixed a typo * Updated Uniques (markdown) * eras.json is now required * Removed outdated religion section * Added missing terrain uniques * Added resource uniques * Fixed resource unique link * Added missing unique for tile improvements * Fixed broken link * "Disappearing" translations explained * Updated Home (markdown) * Some atlas info, leader portraits * Created Force rating calculation (markdown) * "Not yet" for Image atlas distribution in mods * Updated uniques after #5259 * Added information on conditionals * Updated growth unique * Added conditional support up to #5270 * Typo * Escape html tags * Add conditionals to table of contents * Updated _Sidebar (markdown) * Created Audiovisual Mods (markdown) * Audiovisual Mods, move Graphics-only info * Updated Audiovisual Mods (markdown) * Audiovisual Mods - Draft done. * Documented translation method * Updated Translations, mods, and modding freedom in Open Source (markdown) * Fix Typos and Links * New Terrain uniques / 2 sections * Atlas control via multiple Images.x folders is now live * Link to atlas paragraph * startBias clarification * Missing bracket * Added uniques & conditionals up to #5345 (my PR's only) * Updated Force rating calculation (markdown) * Updated Getting Started (markdown => asciidoc) * Undid renaming * Updated Getting Started (asciidoc => markdown) * Added fix for Gradle sync fail * Updated Project structure and major classes (markdown) * Bump Java version from JDK 8 to JDK 11 due to gradle upgrade * Updated uniques & conditionals up to #5618 from my PR's * Created Regions (markdown) * Updated Uniques (markdown) * Updated Uniques (markdown) * Mention docs/uniques.md, emphasized Stat capitalization * Move wiki files into `/docs/wiki`. * Migrate inter-Markdown links. * Fix pre-existing broken links and anchors. * Standardize repository links for AS linting. * Add wiki footer. * Updated Uniques (markdown) * Updated Mods Making a new Civilization (markdown) * Updated Making a new Civilization (markdown) * Add GH Action for updating wiki. * Play it safer, and don't `push -f`. (Should be the same either way though.) Co-authored-by: Yair Morgenstern <yairm210@hotmail.com> Co-authored-by: GGGuenni <leonard@eynck.de> Co-authored-by: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Co-authored-by: Martin Pechstein <77325495+Mape6@users.noreply.github.com> Co-authored-by: Arthur van der Staaij <32672293+avdstaaij@users.noreply.github.com> Co-authored-by: SimonCeder <63475501+SimonCeder@users.noreply.github.com> Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Co-authored-by: Alex25820 <50142558+Alex25820@users.noreply.github.com> Co-authored-by: jvy1001 <76390095+jvy1001@users.noreply.github.com> Co-authored-by: Shann Aurelle Ripalda <shannaurelleg@gmail.com> Co-authored-by: NxOne14 <81563289+NxOne14@users.noreply.github.com> Co-authored-by: MenaKing2020 <92416577+MenaKing2020@users.noreply.github.com> Co-authored-by: asda488 <39116917+asda488@users.noreply.github.com>
2022-01-24 02:49:43 +07:00
Curly brackets `{}` are simpler - the contents within the brackets are translated individually, while the outer parts are passed through verbatim. Example: `"+$amount${Fonts.gold} {Gold}".toLabel()` - note the first `${}` is a kotlin template while the second pair becomes part of the string. It tells the translation engine to ignore the numbers and the symbol but to translate the single word "Gold".
## Rules for all sources
The [], {} and <> bracket types are used internally and cannot be part of a translatable text. Use () instead.
# Translation generation - for modders
If you can run desktop with the mod installed, then provide at least one valid translation of something that is present in your mod or the base game in that file. The file can be empty otherwise. Now run Unciv and use options-advanced-"Generate translation files". Reload your translation file and it will have added all the necessary "requires translation" entries specific to your mod (I repeat, works only if there's at least one valid entry already there). AFAIK you can also override base game translations, but those won't be output by the "Generate translation files" tool.
Here's an example:
Say you have a new nation in your mod named "The Borg". You create the translations folder, create an empty file named, say, "Hungarian.properties", add "The Borg = The Borg" to that, run Unciv and run the translation generator from options. Reload the new file, bingo all what Unciv would like to see is there.
If you're modding on Android only - don't. That said, it's not impossible, just make do without the described tool and add everything yourself, test, rinse, repeat. Be aware that the game does not read changed files from disk if it doesn't need to, so on Droid you could either edit locally and force-stop to ensure changes are read, or edit on a github repo and re-install from there, or...
Adding new languages in a mod is not supported (because the completionPercentages.properties file determines which languages Unciv deems as known, and I'm not saying impossible as one could manipulate their GameSettings.json).
Remember, exact case is important both in translations left of the "=" and file names.
## More about translating
Sometimes you'll see a `English.properties` in the translation folder. For example, if you see `gold = credits` in `English.properties`, It means the word 'gold' will be displayed as 'credits' in the English version.
So in your translation file, though 'gold' is already translated in vanilla unciv, you should sill translate the line.
```
gold = credits ( <- in your language)
NOT:gold = gold ( <- in your language)
```
(The example comes from the mod [Alpha-Frontier](https://github.com/carriontrooper/Alpha-Frontier). Thanks @carriontrooper.)
Most Base Ruleset mods contain this feature, so you'd better be careful translating those, or you'll make the translation work really 'amuzing':D
Another thing about translation is 'extra translating'. The aim of 'extra translating' is to make your mod translation closer to the gaming content and give the players a better gaming experience.
A great example is from @SpacedOutChicken's mod Deciv. @The Bucketeer made some 'extra translations' which are excellent.[(link is here)](https://github.com/SpacedOutChicken/DeCiv-Redux/blob/main/jsons/translations/Traditional_Chinese.properties)I've got a few lines here so you can take it as a reference.
```
Your warmongering ways are unacceptable to us. = 即使在野蠻的荒土世界,窮兵黷武的行徑還是無法容忍的!
(English meaning: These warmongering ways are still unaccepable enen in this world of savage)
```