TBXY - Translation "Terminology Database" files for XY's ITT

Where developers, translators, and users meet...
Post Reply
FluxTorpedoe
Posts: 722
Joined: 05 Oct 2011 13:15

TBXY - Translation "Terminology Database" files for XY's ITT

Post by FluxTorpedoe » 18 Nov 2012 16:01

-----
EDIT: Files Updated! (for ease of use, no important change)
- Removed all duplicate entries
- Ordered entries alphabetically
- Added BOM to UTF-8 files

Previous: Modified post presentation and script to clarify things for newcomers and forum search

-----


Hi'
Here's a repository of "Terminology Database" files for translators:
- Words or segments that are listed as pairs, with the Source language (English) and its translation in the Target language.

:arrow: For their use within XYplorer's Interface Translation Tool (ITT):
- read the XYplorer Translation Guide
- and as of now, the latest beta info
Note: You can also open them in your favorite editor to search for translations.

--- --- ---

Here are the language packs (because the number and size of attachments are limited).

Deutsch, Español:
MicrosoftTermCollection-TBXY (DE, ES).zip
(412.36 KiB) Downloaded 422 times
Français, Polski:
MicrosoftTermCollection-TBXY (FR, PL).zip
(390.59 KiB) Downloaded 332 times
Português, Русский:
MicrosoftTermCollection-TBXY (PT, RU).zip
(418.98 KiB) Downloaded 335 times
Ελληνική, Italiano:
South Slavic Languages (.ba, .bg, .hr, .me, .mk, .rs, .si) with instructions. Dedicated thread by Borut:
ChineseSimplified, ChineseTraditional, Danish, Dutch, Indonesian, Japanese, Korean, Vietnamese, Hindi, Catalan
see here: http://www.xyplorer.com/xyfc/viewtopic. ... 042#p82042 [added by admin 20130202]

Good luck to you all, 8)
Flux

--- --- ---

If your language is not listed, you can download it here:
http://www.microsoft.com/Language/en-US ... ology.aspx

Then select your file and run the following script:

Code: Select all

//
// TBX-XY Cleaner v1.21
//
// - Removes all non-translation data.
// - Reformats with one entry per line,
//    with Source and Target languages separated by the following delimiter.

  $Delimiter = "|--|"; // Change to suit your needs

  if ((<curext> == "tbx") || (<curext> == "xml") || (<curext> LikeI "*htm*")) {
    status "~~~   Processing   ~~~", , "progress";
    $TBX_file = <curbase>;
    $TBX_content = readfile(<curitem>);
    $TBXY_content = regexreplace($TBX_content, '((?:.|\n)(?!=<term id=))+?<langset(?:.|\n)*?<term id="\d+">([^<]+)(?:.|\n)*?<langset(?:.|\n)*?<term id="\d+">([^<]+)', "$2§§§$3<crlf>");
    $TBXY_content = regexreplace($TBXY_content, "\n<[^\n]+", ""); // Remove last line
    $TBXY_content = regexreplace($TBXY_content, "§§§", $Delimiter); // Note: regex is used because regular replace hangs
    writefile ($TBX_file."-XY.tbxy", $TBXY_content);
    wait 400;
    status "TBX converted successfully";
  } else {
    msg "<crlf>You need to select a TBX Terminology Database file,  <crlf 2>     with the extension: TBX, XML or HTML.  <crlf 2>"
  }
Last edited by FluxTorpedoe on 19 Nov 2012 08:42, edited 8 times in total.

FluxTorpedoe
Posts: 722
Joined: 05 Oct 2011 13:15

Re: TBXY - Terminology Database for XYplorer

Post by FluxTorpedoe » 18 Nov 2012 16:02

Ελληνική, Italiano:
MicrosoftTermCollection-TBXY (EL, IT).zip
(360.45 KiB) Downloaded 431 times
Last edited by FluxTorpedoe on 19 Nov 2012 08:09, edited 2 times in total.

FluxTorpedoe
Posts: 722
Joined: 05 Oct 2011 13:15

Re: TBXY - Terminology Database for XYplorer

Post by FluxTorpedoe » 18 Nov 2012 16:03

--- Reserved for new languages ---

admin
Site Admin
Posts: 46876
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: TBXY - Terminology Database for XYplorer

Post by admin » 18 Nov 2012 16:06

Fantastic, thanks! :appl: :appl: :appl:

FluxTorpedoe
Posts: 722
Joined: 05 Oct 2011 13:15

Re: TBXY - Terminology Database for XYplorer

Post by FluxTorpedoe » 18 Nov 2012 16:48

Glad I could help! :D

+ added Italian and Greek

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: TBXY - Terminology Database files for XYplorer ITT

Post by SkyFrontier » 18 Nov 2012 18:29

There's a problem with encoding in PTBR version. Opening with wordpad clearly shows it.
Yet to determine what's causing it.
Tried some tu/ta variations with writefile among other tricks. Opening with notepad, ctrl+c/v and saving with PSpad did the trick.
If someone can explain it, please do so.
Attachments
Terminology_PTBR_byPSpad_FINAL.zip
(241.75 KiB) Downloaded 267 times
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

FluxTorpedoe
Posts: 722
Joined: 05 Oct 2011 13:15

Re: TBXY - Terminology Database files for XYplorer ITT

Post by FluxTorpedoe » 19 Nov 2012 00:18

SkyFrontier wrote:There's a problem with encoding in PTBR version. Opening with wordpad clearly shows it.
Well, not exactly... (at all!) :wink:
This Português-Brasil file was automatically saved by the script in standard UTF-8 without BOM. The problem comes from Wordpad which doesn't detect them correctly, but that's probably one of the only 'editors' that behaves that way - all other editors should work.
Well, even Notepad does! :twisted:

=> If someone really has to use Wordpad, well, just open the file in Notepad and save it. That's it.

BTW, no need to convert it for PSPad which detects UTF files correctly.
And most importantly, XYplorer ITT correctly detects them too... :wink:

Notes:
- I had thought of converting/forcing a save in UTF-8 in the script but dropped it after I saw that would raise much more problems depending on the languages and the editors.
- Anyway, thanks for pointing that out, EDIT: I updated the first post to clarify things and warn against Wordpad.

Have a nice day, 8)
Flux

FluxTorpedoe
Posts: 722
Joined: 05 Oct 2011 13:15

Re: TBXY - Translation "Terminology Database" files for XY's

Post by FluxTorpedoe » 19 Nov 2012 08:31

Hi'
While testing the TBXYs with the new ITT (nice! :D ), I discovered a significant number of duplicate entries, so I've updated all the files without the duplicates, and ordered the entries alphabetically (took this idea from Borut).
And while I was at it --following SkyFrontier's experience-- I added BOM to UTF-8 files (but didn't convert any). As they say, better safe than sorry - though I hope it won't raise new problems. :wink:

Good luck 8)
Flux

admin
Site Admin
Posts: 46876
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: TBXY - Translation "Terminology Database" files for XY's

Post by admin » 02 Feb 2013 15:02

Here is another "Terminology Database" pack for the following languages, prepared with FluxTorpedoe's script:

MicrosoftTermCollection-ChineseSimplified-XY.txt
MicrosoftTermCollection-ChineseTraditional-XY.txt
MicrosoftTermCollection-Danish-XY.txt
MicrosoftTermCollection-Dutch-XY.txt
MicrosoftTermCollection-Indonesian-XY.txt
MicrosoftTermCollection-Japanese-XY.txt
MicrosoftTermCollection-Korean-XY.txt
MicrosoftTermCollection-Vietnamese-XY.txt
MicrosoftTermCollection-Hindi-XY.txt
MicrosoftTermCollection-Catalan-XY.txt

Download Pack:
TBXY.zip
(1.5 MiB) Downloaded 298 times
Usage Example:
In the ITT, select menu Tools / Configuration (F9). Then add the path to your MicrosoftTermCollection manually like this (e.g. Vietnamese).

Code: Select all

[Settings]
WordList1=E:\XYtranslation\MicrosoftTermCollection-Vietnamese-XY.txt
EditFontSize=10
Now the ITT will suggest translations from this MicrosoftTermCollection wherever it finds a matching term in XYplorer's strings.

Anselma
Posts: 78
Joined: 17 Jan 2012 07:31

Re: TBXY - Translation "Terminology Database" files for XY's

Post by Anselma » 08 Jul 2013 10:15

I can't seem to download anything. Anyone faces same issue with me?

admin
Site Admin
Posts: 46876
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: TBXY - Translation "Terminology Database" files for XY's

Post by admin » 08 Jul 2013 10:17

Works fine here.

Anselma
Posts: 78
Joined: 17 Jan 2012 07:31

Re: TBXY - Translation "Terminology Database" files for XY's

Post by Anselma » 08 Jul 2013 11:17

Then could you please download the Malay (Malaysian) language for me?

admin
Site Admin
Posts: 46876
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: TBXY - Translation "Terminology Database" files for XY's

Post by admin » 08 Jul 2013 12:08

Anselma wrote:Then could you please download the Malay (Malaysian) language for me?
Here you are:
Attachments
MicrosoftTermCollection-Malay.zip
(626.74 KiB) Downloaded 216 times

Anselma
Posts: 78
Joined: 17 Jan 2012 07:31

Re: TBXY - Translation "Terminology Database" files for XY's

Post by Anselma » 08 Jul 2013 12:44

Great! :)
Thanks, Don!

admin
Site Admin
Posts: 46876
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: TBXY - Translation "Terminology Database" files for XY's

Post by admin » 25 Jul 2013 18:08

Here is the term collection for Turkish:
Attachments
MicrosoftTermCollection-Turkish-XY.zip
(228.85 KiB) Downloaded 247 times

Post Reply