Automatize translation of .xml Android files? HELP
Thread poster: Diego Bruschetti

Diego Bruschetti
Argentina
Local time: 04:59
Spanish to English
+ ...
Jul 12, 2015

Hello, I have a doubt. I am working with the localization of videogames on Android and I need to translate different .xml files. The problem is that the format of the file is

< resources>
< English>
< string name="app_name">PatientZero
< string name="Title">Patient Zero:
< string name="SubTitle">Day One
< string name="Play">PLAY
< string name="Credits">Credits
< /English>

< Swedish>
< string name="app_name">PatientZero
< string name="Title">Patient Zero:
< string name="SubTitle">Dag Ett
< string name="Play">SPELA
< string name="Credits">Eftertexter
< /Swedish>
< /resources>

and I need to add a new set of strings in Spanish (in my case) after Swedish. In this single file it is really not a problem copying and pasting the original set of strings and only translating those. But I have 321 more files divided among a very complex folder structure.

Is there a way to automatize the process without having to go manually one by one?

(I have the same problem with .txt files with the same structure)

[Edited at 2015-07-13 21:37 GMT]


Direct link Reply with quote
 
Achim Herrmann
Local time: 08:59
English to German
Additional question Aug 1, 2015

Hello Diego,

The file doesn't really look like a valid XML, but this may be related to the forum. Is it ONE single file that contains 2 languages (English and Swedish)? Now you want to add Spanish to the same file, right?

AFAIK this doesn't work with MemoQ, you need a translations tools that support multilingual XML files (i.e. SDL Passolo). Another solution would be to program a small utility that copies the English section into a new Spanish section throughout your 321 files.

Achim Herrmann


Direct link Reply with quote
 

Diego Bruschetti
Argentina
Local time: 04:59
Spanish to English
+ ...
TOPIC STARTER
file structure Aug 3, 2015

In fact the original file is much larger I have just copied and edited one part and I have modify it (with a space and witouth the tabs) so it can be displayed in the forum. I need what you said to add a Spanish translation after the Swedish. For just one file it is not a problem because I copied and pasted the English strings and translated those. But I have anther larger project (180k words divided into a quite complex folder structure) of .txt files with the same structure:

English text:

xxxx
xx
xxxx
xxxx
xxxx

Portuguese Translation:
xxxxxxx
xxxxaaa
aaaaa
aaaaa

and then I have to add my Spanish translation...


Direct link Reply with quote
 
István Lengyel
Hungary
Local time: 08:59
English to Hungarian
+ ...
try the multilingual XML filter Aug 3, 2015

Hi Diego,

While it is not at all simple, you can use the multilingual XML filter in memoQ to set up rules using xPath.

István


Direct link Reply with quote
 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Automatize translation of .xml Android files? HELP

Advanced search






memoQ translator pro
Kilgray's memoQ is the world's fastest developing integrated localization & translation environment rendering you more productive and efficient.

With our advanced file filters, unlimited language and advanced file support, memoQ translator pro has been designed for translators and reviewers who work on their own, with other translators or in team-based translation projects.

More info »
TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search