Adding lines w new lang into multilingual text files?
Thread poster: Jan Sundström
Jan Sundström
Jan Sundström  Identity Verified
Sweden
Local time: 10:29
English to Swedish
+ ...
Aug 14, 2007

Hi all,

I've received a bunch of multilingual text files, looking lke this:

$nextWindowMenuLabel {
english "Next";
swedish "Nästa";
norwegian "Neste";
}

Now the translator is supposed to add one line to every paragraph with an additional language.

Is there any smart way to do this?
I was thinking about converting all files to Word, duplicate the English line in each paragraph with GREP, and apply tw4wi
... See more
Hi all,

I've received a bunch of multilingual text files, looking lke this:

$nextWindowMenuLabel {
english "Next";
swedish "Nästa";
norwegian "Neste";
}

Now the translator is supposed to add one line to every paragraph with an additional language.

Is there any smart way to do this?
I was thinking about converting all files to Word, duplicate the English line in each paragraph with GREP, and apply tw4winExternal to the whole lot except the dupe lines (again with some advanced search/replace).

But maybe there are much better tricks out there, that I haven't though of yet???
Vito, Jabberwock, Robert Tucker et al: keep it coming!

Thanks a lot in advance,

Jan
Collapse


 
Jaroslaw Michalak
Jaroslaw Michalak  Identity Verified
Poland
Local time: 10:29
Member (2004)
English to Polish
SITE LOCALIZER
Basically this is it... Aug 14, 2007

Interesting! But you already know I love this stuff...

I think basically your route is OK... I'll try to outline it below for the future generations

1. Paste the text file into Word.

2. Style everything as twExternal.

3. Search and replace with regular expressions (make sure that smart quotes are off!):

... See more
Interesting! But you already know I love this stuff...

I think basically your route is OK... I'll try to outline it below for the future generations

1. Paste the text file into Word.

2. Style everything as twExternal.

3. Search and replace with regular expressions (make sure that smart quotes are off!):

Find: english "(*)";?
Replace: english "\1";^pyourlang "%$\1%&";^p

4. Then find and replace with regular expressions and replacement style set as Normal:

Find: %$(*)%&
Replace: \1

This should be enough I think (as my short tests indicate).

However, I might also be tempted to go strictly txt, and check out the new Trados function: regular expression text files. However, this would require more time for experiments and probably even reading the manual!

[Zmieniono 2007-08-14 15:17]
Collapse


 
Samuel Murray
Samuel Murray  Identity Verified
Netherlands
Local time: 10:29
Member (2006)
English to Afrikaans
+ ...
MS Word Aug 14, 2007

Jan Sundström wrote:
$nextWindowMenuLabel {
english "Next";
swedish "Nästa";
norwegian "Neste";
}

Now the translator is supposed to add one line to every paragraph with an additional language.


If you are allowed to add your language directly beneath English (or the language that you translate from), then it's simple:

1. Find: ^p
Replace: ^l

2. Find: (english \")(*)(\";^l)
Replace: \1\2\3 esperanto "\2";^l
(with wildcards enabled)

3. Find: ^l
Replace: ^p


 
Jan Sundström
Jan Sundström  Identity Verified
Sweden
Local time: 10:29
English to Swedish
+ ...
TOPIC STARTER
Thanks! Aug 16, 2007

Samuel Murray wrote:
If you are allowed to add your language directly beneath English...


Yes, sure I can add it on the next line. Samuel, can you elaborate what your expression does? This is written in Word dialect, right?

Jabberwock, I haven't heard abt the new Trados function. From which version is it available? And what is it supposed to do?

Thanks to both of you, you're great!

/Jan


 


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


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

Adding lines w new lang into multilingual text files?






CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

Buy now! »
Trados Business Manager Lite
Create customer quotes and invoices from within Trados Studio

Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.

More info »