This site uses cookies.
Some of these cookies are essential to the operation of the site,
while others help to improve your experience by providing insights into how the site is being used.
For more information, please see the ProZ.com privacy policy.

Sorry for my English, I mainly translate Italian>Dutch.I need to translate about 200 small ini.files which can be opened with Bloc note.Such files cannot be opened with SDL Trados 2007, so I found a program INI Translator (http://initranslator.sourceforge.net/wiki/index.php/Main_Page) in order to work within a program that unfortunately does not offer CAT-options.

The sentences I need to translate are all between "..", ex.:yes_label="Yes"I only need to translate "Yes".

Is there any macro or other way to extract the text between ".." for all those files, then translate (prefer. with a CAT - I have SDL Trados 2007) and then reinsert the text using some batch command?

Another solution could be a batch command that converts all INI files to a CAT-compatible format and then reconvert to INI. I tried to do so using TXT collector, I obtained 1 big TXT file that I converted to word, but I still need to extract the text between "..". Forthermore, I need to copy and past the translation from within word in all .ini files after translation.

Does anyone know a way to make this job easier and less time-consuming?

Thanks a lot!

Joris

Subject:

Comment:

The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)

I would imagine Preptags could be used to prepare this kind of file as well. Probably easier than a tutorial on regular expressions? Just a thought.

Subject:

Comment:

The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)

Heike Behl, Ph.D.United States Local time: 14:13Member (2003) English to German + ...

Word

Aug 19, 2009

You could also rename the .ini files as .txt, open them in Word and convert into a two-column table, using the = as delimiter. Then just translate the right column in Trados.

Reverse these steps to get back to your .ini files.

Or you could just define the equal sign as segmentation character in Trados. Then you can just insert source in the first half and translate the second half in Trados. That's my preferred MO for small files.

Subject:

Comment:

The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)

Joris Bogaert wrote:The sentences I need to translate are all between "..", ex.:yes_label="Yes"I only need to translate "Yes".

Piece of cake, if you can use MS Word's regex find/replace system and if you have the style "tw4winExternal" in MS Word. Since you have lots of files, perhaps you should record a macro and assign a keyboard shortcut to it (but this is optional). Your INI file seems fairly regular so you should be able to do it in very few steps:

1. Find: ^pReplace: ^l(this is so that you can use line breaks in regular expressions)

2. Find: (\"^l)(*)(=\")Replace: (nothing, but click "More options", then Formatting, then Style, and select the tw4winWinExternal style. make sure the "replace" box has the style. if you make a mistake, click "No formatting" and try again.)Oh, and put a check in the checkbox "regular expressions".

3. Find: ^lReplace: ^p(without checkbox "regular expressions")

Another method is to use Excel. Sometimes when you open the file in Excel, you can usually select the delimiter, so select "=". If Excel doesn't ask for a delimiter, there is a way to make it ask for it (not sure how).

Another method is to open the file in MS Word and then do:

1. Find: ="Replace: ="^t

2. Find: "^pReplace: ^t"^p

...and then translate the whole thing in Trados (while skipping certain sections). When you're done with the translation, do:

3. Find: ^tReplace: (nothing)

The above suggestions all assume your INI file is fairly regular. You may need to fiddle with each file for some lines of text.

Subject:

Comment:

The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)

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.

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.