Automatize translation of .xml Android files? HELP
Thread poster: Diego Bruschetti
Diego Bruschetti
Diego Bruschetti
Argentina
Local time: 19:40
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>
... See more
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]
Collapse


 
Achim Herrmann
Achim Herrmann
Local time: 00:40
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 32
... See more
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
Collapse


 
Diego Bruschetti
Diego Bruschetti
Argentina
Local time: 19:40
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:

Engli
... See more
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...
Collapse


 
István Lengyel
István Lengyel
Hungary
Local time: 00:40
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


 


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






Trados Studio 2022 Freelance
The leading translation software used by over 270,000 translators.

Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop and cloud solution, empowering you to work in the most efficient and cost-effective way.

More info »
Protemos translation business management system
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!

The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.

More info »