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

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






SDL MultiTerm 2017
Guarantee a unified, consistent and high-quality translation with terminology software by the industry leaders.

SDL MultiTerm 2017 allows translators to create one central location to store and manage multilingual terminology, and with SDL MultiTerm Extract 2017 you can automatically create term lists from your existing documentation to save time.

More info »
TM-Town
Manage your TMs and Terms ... and boost your translation business

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.

More info »



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