How can I translate a xml file?
Thread poster: xxxSanjiv Sadan
xxxSanjiv Sadan
Local time: 16:26
English to Hindi
+ ...
Jul 27, 2006

I generally receive MS Word files for translation and I don't feel any difficulty in translating them because I overwrite the translation on the source text and in this way. the formatting also remains intact.

But, I have received a xml file for translation today. I don't find a way to translate it as I am unable to delete the English text and type the translation over it.

I think it can be translated by opening this file from MS Word but I want to know whether it will work? Which precautions I should take (e.g. saving it as, encoding etc.) while doing so?

Is there some other simple and practical method of translating xml files? I am looking forward to your suggestions.

I think it can also be done by copying the text from the xml file and then pasting in a new Word file. Will it pose any problems or this method can be used without any difficulty whatsoever at a later stage?

Thanks in anticipation.


[Edited at 2006-07-27 19:09]


Direct link Reply with quote
 

A.Đapo  Identity Verified
Bosnia and Herzegovina
Local time: 12:56
Partial member (2007)
English to Serbo-Croat
+ ...
note pad Jul 27, 2006

first open it just by clicking
then go again to the icon and click on it with the right mouse button.
go to Open with
then to Note pad
you can work in the txt file and to see in xml what you have do, go to
File and save
and then in xml to Refresh
hope it helps
Amra


Direct link Reply with quote
 
Vauwe
Local time: 12:56
English to German
+ ...
Trados Jul 27, 2006

One way to translate XML files is using Trados' TagEditor. Maybe a newer version of Arachnophilia will do also. Word is not appropriate for such kind of tagged text.

Direct link Reply with quote
 
mari19
Local time: 05:56
English to Spanish
+ ...
Agree with Vauwe Jul 27, 2006

I agree with Vauwe. Tageditor will protect all the stuff you don't want to mess up with (all the encoding things).
Good luck!


Direct link Reply with quote
 

Samuel Murray  Identity Verified
Netherlands
Local time: 12:56
Member (2006)
English to Afrikaans
+ ...
A few pointers... Jul 28, 2006

Sanjiv Sadana wrote:
I generally receive MS Word files for translation and I don't feel any difficulty in translating them because I overwrite the translation on the source text and in this way. the formatting also remains intact.


This tells me that you don't use any sort of CAT tool.

But, I have received a xml file for translation today. I don't find a way to translate it as I am unable to delete the English text and type the translation over it.


This is very strange. Here are a few pointers:

1. Opening the XML page in MS Word is probably safest, because MS Word will hopefully retain the character formatting of the XML file. You can also translate the XML file in Notepad (if you have Windows 2000 or higher) or in any of a variety of text editors (jEdit if you have Java, for example).

2. Open the XML file not by drag-and-drop or by double-clicking the file, but by using MS Word's File -> Open feature.

3. Before opening the XML file, ensure that the option "Confirm conversion at open" is deactivated at Tools -> Options -> General (otherwise MS Word will parse the XML file and won't display all of it).

4. When you save the XML file, you can save it as MS Word format, or you can save it as "TXT" format. If at the time that you had first opened the XML file, MS Word had asked you anything about "Unicode", you must save the XML file as "Encoded TXT"; otherwise you should use just ordinary "TXT".

Is there some other simple and practical method of translating xml files? I am looking forward to your suggestions.


If you can use a CAT tool (even if you don't use the TM feature), you can go a long way. Wordfast may be a solution for you (you can use it for free if you just delete the TM every 500 segments or so). The only thing with XML and any CAT tool is that you'll have to tag the text yourself. If you're going to use Wordfast, you'll probably use MS Word's advanced find/replace feature with regular expressions to add tw4win styles to the XML file (there are examples in the Wordfast user manual). You may also want to fool around with OmegaT... no tagging required, but you will have to tweak the segmentation rules (and that also requires a basic knowledge of regular expressions).

I think it can also be done by copying the text from the xml file and then pasting in a new Word file.


What you're saying, makes no sense. To copy the text from the XML file, you first have to open the XML file. And that means making sure that whatever program you open the XML file in, does not parse it before displaying it.


Direct link Reply with quote
 

Vito Smolej
Germany
Local time: 12:56
Member (2004)
English to Slovenian
+ ...
Word 2003 supports XML format Jul 28, 2006

... the older versions don't - as a corollary to Sam Murray's information.

I would not try to use Notepad for it - you would end up fussing up the file structure and spend hours trying to fix it (or worse: not even realize the version delivered is broken). Use XMLpad or something similar (1.0 Version by Microsoft is simple enough). here's I hope the correct URL for downloading:

http://www.filesrepository.com/preview/wmhelp-com/xmlpad.html



[Edited at 2006-07-28 11:25]


Direct link Reply with quote
 

Jan Sundström  Identity Verified
Sweden
Local time: 12:56
English to Swedish
+ ...
Get a CAT tool and ask for a DTD Jul 31, 2006

Two important things come to my mind:

1. All XML files are custom defined by the end client. This is in the nature of eXstensible Markup Language - the client creates tag definitions and decides whether the content of the tags should be translatable or not.
For most software to understand the tags, the XML is accompanied by a DTD (Document Type Definition). Without this DTD, you risk translating lots of content in vain that the client won't pay you for, or worse - will corrupt the file!

2. A CAT tool will parse the XML for you, hide tags, and protect content that shouldn't be translated.
In the case of Trados, you can use the DTD to create an .ini-file, or define it manually yourself.
I believe Heartsome has a similar function.

I would strongly advise against editing the XML without either DTD or CAT tool.

/Jan


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 »

How can I translate a xml file?

Advanced search






SDL Trados Studio 2017 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2017 helps translators increase translation productivity whilst ensuring quality. Combining translation memory, terminology management and machine translation in one simple and easy-to-use environment.

More info »
PerfectIt consistency checker
Faster Checking, Greater Accuracy

PerfectIt helps deliver error-free documents. It improves consistency, ensures quality and helps to enforce style guides. It’s a powerful tool for pro users, and comes with the assurance of a 30-day money back guarantee.

More info »



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