Mobile menu

Adding lines w new lang into multilingual text files?
Thread poster: Jan Sundström

Jan Sundström  Identity Verified
Sweden
Local time: 23:24
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 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


Direct link Reply with quote
 

Jabberwock  Identity Verified
Poland
Local time: 23:24
Member (2004)
English to Polish
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!):

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]


Direct link Reply with quote
 

Samuel Murray  Identity Verified
Netherlands
Local time: 23:24
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


Direct link Reply with quote
 

Jan Sundström  Identity Verified
Sweden
Local time: 23:24
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


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 »

Adding lines w new lang into multilingual text files?

Advanced search






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 »
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 »



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