In the game we have a core strings.xml file and a theme strings.xml one for ALL languages.
- core means the common texts among all alternatives (AOs, AOF, AOG and so on, like: main menu button texts, message dialog texts and so on)
- theme means the custom strings for that alternative only (eg. AOS, like: unit names, unit descritions and so on)
If consider translations of an alternative to a language it will have core files (english + target language) + theme files (english + target language) to a sum of 4 files.
how to translate:
rules
1. Editor: use only simple text editors, so Microsoft Word is not good. I use TextPad it is free and will not ruin any formating in xml files. On phone i use Total commender text editor.
2. Keep line order: you must not delete any lines from any file or insert new line into the middle of any file, so line order should be kept. So only APPENDing to the end of files is possible (i mean the target language files)
3. Keep xml format: only translate the blue part from a line, touching any other part will ruin the xml format or will ruin the "key" of the string line
<string name="network_list_emptytext_server_down">Server cannot be reached.</string>
4. Escaping ' character: in strings file all ' characters should be preceded by \ so write like \'
wrong example:
<string name="account_fail_reenter">The two passwords don't match.</string>
good example:
<string name="account_fail_reenter">The two passwords don\'t match.</string>
5. Special signatures in text: There are replacement strings, that are replaced in code, you should keep those untouched, so RED part must not be modified, only blue parts are to be translated:
<string name="dialog_ask_next_turn_skip_player">Skip %1$s\'s turn?</string>
<string name="game_menu_t_score_end_game">If you win now:\nXXX1 (XXX2/XXX3 turns)</string>
6. NO Any extra comments or anything new in files!: There must be no any additional things as compiling to publish (LINT) will fail!
7. NO change in string KEY case!!: if a string key was lowercase must remain lowercase - reason: LINT will fail if a translation line is not matchable.
So specials can be:
newline character:
\n
replacement strings from code:
%1$s
%2$s
%3$s
%1$d
%2$d
XXX1
XXX2
XXX3
How to work on translations:
IF you work on the Core file, you work on both files at the same time the English and the Target language file, do this:
1. Find the last line in the translation file (that is probably shorter than the english one, as english probably has new lines since last translation)
2. Find the same line in the english file
3. Copy all english lines AFTER the last line and and Paste to the END of translation file
4. you can close the english file and from now working only on translation file.
5. go tru the first 3-4 lines to be translated translated, translate and and send the translation file to DEV to check - so He can confirm you are doing it in good format.
6. if DEV confirmed than go tru all new english lines in translation file and translate to the translation language.
7. at the end you will have 2 files with same amount of line in same order, one is in english other is in the translation laguage.
The above sequence is the same for the "theme" file pair too.
How translations and strings files work
Follow this forum if u are a modder (having the modded version)
Contains announcements and how-to guides
Useful for forumers who want to learn how to help out in the game
Contains announcements and how-to guides
Useful for forumers who want to learn how to help out in the game
-
- Site Admin
- Posts: 15754
- Joined: Fri Apr 25, 2014 9:28 pm
Jump to
- Forum rules
- Age Of Strategy
- ↳ FAQ
- ↳ More Q&A
- ↳ Suggestions and Ideas (Design leader: Endru1241)
- ↳ New upgrades (unit, structure, technology, effect)
- ↳ VOTING
- ↳ Voting
- ↳ Old Votes - ARCHIVED
- ↳ Unit - melee infantry
- ↳ Unit - ranged (like archers)
- ↳ Unit - mounted
- ↳ Unit - supportive (buff, heal, repair etc.)
- ↳ Unit - water (ships)
- ↳ Unit - siege engines / machines
- ↳ Techs
- ↳ Structures
- ↳ Neutrals (animals, buildings etc)
- ↳ Unit balancing
- ↳ Closed ones
- ↳ Graphics
- ↳ Maps, campaigns
- ↳ Gameplay & UI
- ↳ Implementeds
- ↳ Main menu
- ↳ New game types in the game (like capture the flag)
- ↳ Others
- ↳ Needs, priorities - Which way would you like the roadmap?
- ↳ ARCHIVED - Implemented suggestions
- ↳ IMPLEMENTED - Infantry
- ↳ IMPLEMENTED - Ranged
- ↳ IMPLEMENTED - Mounted
- ↳ IMPLEMENTED - Water
- ↳ IMPLEMENTED - Siege
- ↳ IMPLEMENTED - Structure
- ↳ IMPLEMENTED - Neutrals
- ↳ IMPLEMENTED - Technologies
- ↳ IMPLEMENTED - Redesigns
- ↳ IMPLEMENTED - New Game Types
- ↳ ARCHIVED - Answered suggestions
- ↳ Reporting Issues
- ↳ Game
- ↳ Solved/Answered
- ↳ Units/techs/effects
- ↳ Implemented/Answered
- ↳ Maps
- ↳ AI
- ↳ Map Editor
- ↳ Main Menu
- ↳ Implemented/Answered
- ↳ Performance problems
- ↳ Crashes
- ↳ Implementeds
- ↳ Documentation
- ↳ Others
- ↳ Implementeds/Answered/Closed
- ↳ Campaign map discussions
- ↳ Multiplayer discussions
- ↳ Dev asks for Help
- ↳ Implemented/Closed
- ↳ Other discussions about the game
- ↳ Unity version workbench
- ↳ Android->Unity missing ones
- ↳ Other ideas
- ↳ Issues - Critical
- ↳ Issues - Normal
- ↳ Issues - Nice to have
- ↳ Issues - Performance
- ↳ IMPLEMENTEDs
- ↳ DEVELOPER version changes
- ↳ Hall of Fame
- Other Age of Strategy variants
- ↳ Age of Fantasy
- ↳ Introduction (AOF design leaders: Savra, Makazuwr32)
- ↳ FAQ
- ↳ AoF Votes and Polls
- ↳ Unit list to vote
- ↳ Subraces and Subfactions
- ↳ Subraces - Humans
- ↳ Subraces - Orcs
- ↳ Subraces - Undeads
- ↳ Subraces - Elves
- ↳ Subraces - Dwarves
- ↳ Subraces - Scalefolks
- ↳ Units & Structures (See Races for accepted Unit Races)
- ↳ Human
- ↳ Orc
- ↳ Undead
- ↳ Elf
- ↳ Dwarf
- ↳ Scaledfolk
- ↳ Technologies, Spells & Abilities
- ↳ Human Technologies
- ↳ Orc Technologies
- ↳ Undead Technologies
- ↳ Elf Technologies
- ↳ Dwarf Technologies
- ↳ Scalefolk Technologies
- ↳ Other asset ideas: terrain, sound, skins
- ↳ Skins for AoF
- ↳ Archive — Skins for AoF
- ↳ Map & campaign ideas/issues
- ↳ Map units request
- ↳ Multiplayer discussions
- ↳ Balancing discussions
- ↳ Closed ones
- ↳ Dev asks for Help
- ↳ Others
- ↳ Reporting Issues
- ↳ DEVELOPER version changes
- ↳ Archive - AoF
- ↳ Archived - FAQ
- ↳ Archived - Subraces
- ↳ Archived - Votes and Polls
- ↳ Archived - Units and Buildings - General Forum
- ↳ Archived - Technologies, Abilities - General Forum
- ↳ Archived - Balancing
- ↳ Archived - Other ideas
- ↳ Archived - Other
- ↳ Archived - Reporting Issues
- ↳ Racial Archives
- ↳ Archived - Humans
- ↳ Archived - Human Units, Buildings
- ↳ Archived - Human Technologies and Spells
- ↳ Archived - Orcs
- ↳ Archived - Orcish Units, Buildings
- ↳ Archived - Orcish Technologies and Spells
- ↳ Archived - Undeads
- ↳ Archived - Undead Units, Buildings
- ↳ Archived - Undead Technologies and Spells
- ↳ Archived - Elves
- ↳ Archived - Elven Units, Buildings
- ↳ Archived - Elven Technologies and Spells
- ↳ Archived - Dwarves
- ↳ Archived - Dwarven Units, Buildings
- ↳ Archived - Dwarven Technologies and Spells
- ↳ Archived - Scalefolks
- ↳ Archived - Scalefolk Units, Buildings
- ↳ Archived - Scalefolk Technologies and Spells
- ↳ Hall of Fames
- ↳ Age of World Wars
- ↳ Introduction (AOW design leader: Samuel & Professiona_Gamer)
- ↳ Nations
- ↳ Factions
- ↳ Units & Structures (See Nations for accepted Unit nations)
- ↳ Implemeteds
- ↳ Tanks (last cleanup: 20240130)
- ↳ Implemented/Closed ones
- ↳ Italian tanks
- ↳ German tanks
- ↳ Russian Tanks
- ↳ France Tanks
- ↳ US Tanks
- ↳ British Tanks
- ↳ Japan Tanks
- ↳ Guns (last cleanup: 20240130)
- ↳ Implemented/Closed ones
- ↳ German Guns
- ↳ US Guns
- ↳ JP Guns
- ↳ Russian Guns
- ↳ British Guns
- ↳ France Guns
- ↳ Italien Guns
- ↳ Infantry (last cleanup: 20240130)
- ↳ Implemented/Closed ones
- ↳ US Infantrie
- ↳ Russian Infantrie
- ↳ German Infantrie
- ↳ Japan Infantrie
- ↳ Franch Infantrie
- ↳ British Infsntrie
- ↳ Italie Infantrie
- ↳ Other Nation inf
- ↳ Vehicles (last cleanup: 20240130)
- ↳ Implemented/Closed ones
- ↳ US Vehicles
- ↳ GB Vehicles
- ↳ Russian Vehicles
- ↳ German Vehicles
- ↳ Italin Vehicles
- ↳ France Vehicles
- ↳ Other Vehicles
- ↳ Ships (last cleanup: 20240130)
- ↳ Implemented/Closed ones
- ↳ Planes (last cleanup: 20240130)
- ↳ Implemented/Closed ones
- ↳ German Planes (last cleanup: 20240130)
- ↳ US Planes (last cleanup: 20240130)
- ↳ Russian Planes (last cleanup: 20240130)
- ↳ Japan Planes (last cleanup: 20240130)
- ↳ British Planes (last cleanup: 20240130)
- ↳ Italian Planes (last cleanup: 20240130)
- ↳ France Planes (last cleanup: 20240130)
- ↳ Buildings (last cleanup: 20240130)
- ↳ Implemented/Closed ones
- ↳ Technologies
- ↳ Issues
- ↳ Implemented/Closed ones
- ↳ Balancing discussions
- ↳ Implemented/Closed
- ↳ Map & campaign designs
- ↳ Dev Asks for Help
- ↳ Others
- ↳ DEVELOPER version changes
- ↳ Hall of Fames
- ↳ Age of Modern wars
- ↳ Others
- ↳ DEVELOPER version changes
- ↳ Units & Structures ( See Nations for Accepted units Nations )
- ↳ Tanks
- ↳ UDSSR Tank
- ↳ US Tanks
- ↳ France Tanks
- ↳ China Tanks
- ↳ German Tanks
- ↳ British Tanks
- ↳ Israel Tanks
- ↳ Swedish Tanks
- ↳ Guns
- ↳ UDSSR Guns
- ↳ US Guns
- ↳ Infantry
- ↳ Vehicles
- ↳ Ships
- ↳ UDSSR Ships
- ↳ US Ships
- ↳ China Ships
- ↳ France Ships
- ↳ Planes
- ↳ UDSSR Planes
- ↳ US Planes
- ↳ British Planes
- ↳ French Planes
- ↳ Sweden Planes
- ↳ Italian Planes
- ↳ Helicopter
- ↳ UDSSR helicopter
- ↳ US helicopter
- ↳ italian helicopters
- ↳ Issues
- ↳ Balancing
- ↳ Map & campaign designs
- ↳ Hall of Fames
- ↳ Age of Galaxy
- ↳ Introduction
- ↳ Factions
- ↳ Units & Structures (See Factions for accepted Unit nations)
- ↳ Humans
- ↳ Space
- ↳ Planetary
- ↳ Archive
- ↳ Reptilians
- ↳ Space
- ↳ Planetary
- ↳ Archive
- ↳ Avian
- ↳ Space
- ↳ Planetary
- ↳ Archive
- ↳ Myconids
- ↳ Space
- ↳ Planetary
- ↳ Archive
- ↳ Insectoids
- ↳ Space
- ↳ Planetary
- ↳ Archive
- ↳ Technologies
- ↳ Humans
- ↳ Archive
- ↳ Reptilians
- ↳ Archive
- ↳ Avian
- ↳ Myconids
- ↳ Archive
- ↳ Insectoids
- ↳ Archive
- ↳ Map & campaign designs ideas
- ↳ Issues
- ↳ Archive
- ↳ Balancing
- ↳ Archive
- ↳ Others
- ↳ Archive
- ↳ Dev Asks for Help
- ↳ DEVELOPER version changes
- ↳ Age of Discovery
- ↳ Units n structures
- ↳ British
- ↳ infantry
- ↳ cavalry
- ↳ artillery
- ↳ ships
- ↳ structures
- ↳ agents
- ↳ French
- ↳ infantry
- ↳ cavalry
- ↳ artillery
- ↳ ships
- ↳ structures
- ↳ agents
- ↳ Mercenaries
- ↳ infantry
- ↳ cavalry
- ↳ artillery
- ↳ ships
- ↳ structures
- ↳ Technologies
- ↳ Unique techs
- ↳ Techs
- ↳ Issues
- ↳ Others
- ↳ OLDies
- ↳ units
- ↳ DEVELOPER version changes
- ↳ Age of Alder
- ↳ Units n structures
- ↳ Technologies
- ↳ Others
- ↳ DEVELOPER version changes
- ↳ Age of Civilization
- ↳ Era 1
- ↳ Units/buildings
- ↳ Techs
- ↳ Others
- ↳ General discussions
- ↳ DEVELOPER version changes
- ↳ Age of Revolution
- ↳ Units & structures
- ↳ Technologies
- ↳ Others
- ↳ Maps, Campaigns
- ↳ DEVELOPER version changes
- ↳ StarWars Strategy - PROJECT STOPPED
- ↳ FAQ
- ↳ Introduction (SWS design leader: Puss_in_Boots)
- ↳ Races
- ↳ Units & Structures
- ↳ Technologies
- ↳ Maps & Campaign designs
- ↳ Reporting Issues
- ↳ Others
- ↳ Others
- ↳ Developer version changes
- ↳ Age of Alerts - PROJECT STOPPED
- ↳ Introduction (AOA design leader: HokanPL)
- ↳ Races
- ↳ Units & Structures (See Races for accepted Unit Races)
- ↳ Technologies
- ↳ Abilities
- ↳ Map & campaign ideas
- ↳ Others
- ↳ New variant ideas
- Ao* Engine Knowledge base
- Modders lounge
- ↳ Under the Hood studies
- ↳ How-to's
- ↳ Game Definition .JSON
- ↳ Unit Design
- ↳ Map Design
- ↳ Terrains and Graphic Design
- ↳ Cosmetics
- ↳ Abstract
- ↳ Q&A
- ↳ Ask questions here
- Mapdesigners lounge
- App Growth
- ↳ App Growth (eg. Promotions)
- Tournaments
- ↳ Introduction
- ↳ FAQ
- ↳ Members
- ↳ News
- ↳ Championship
- ↳ Recruiting
- ↳ Other
- About the Forum
- ↳ Feedback about this forum
- Talent
- ↳ Talent
- ↳ Pixel Art
- ↳ Map Editors
- ↳ .json files
- OFF Topics
- ↳ Your creativity projects
- List of permissions for copyrighted content
- VAC