The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Win32::TRADOS::Languages - Simplifies working with TRADOS Registry values

VERSION

Version 0.01

SYNOPSIS

TRADOS 2007 is a fantastically useful tool for the professional translator that is used on Windows. Somewhere back in its history, it was decided to permit the Freelancer version of the tool to install only five languages at once, and that has remained a technical limitation of the tool - the official recommendation of SDL (the current owners of the software) is to de-install and re-install the entire package if the five installed languages need to be changed. (To be fair, I wouldn't want to provide the technical support for any other method, either.)

However, they are all encoded in a single Registry key; this module contains a table of values for the numeric codes used in that key with their ISO codes, and also some simple tools for reading and writing the key. This saves a lot of time in de-installing and re-installing the package for those of us who work with more than five languages.

A command-line script ttx-lang is also included that exposes the functionality to the command line in a convenient manner.

METHODS

get_idng

Reads the value of the Registry key in question. Doesn't require elevated privileges, as it obtains only read access to the Registry to do this. Croaks if it can't find the key.

set_idng ($idng)

Sets the IDNG key to the value supplied. Requires elevated privileges. Croaks if it doesn't have them.

get_languages ($idng)

Given an IDNG value, extracts the numeric language codes from it. Returns a list of the languages encoded. Croaks if the IDNG doesn't look like an IDNG key.

set_languages ($idng, @values)

Given an IDNG value and one to five language codes, builds and returns a new IDNG key. Croaks if the IDNG key given doesn't look like an IDNG key.

idng2iso, idng2lang

Given a TRADOS numeric language code, idng2iso looks up its ISO equivalent in the table of values. idng2lang also calls code2language to convert that ISO code into the name of the language. Has a little more logic to build values that are more appropriate to the TRADOS language list.

iso2idng, lang2idng

Given an ISO code, iso2idng looks for it in the table of numeric values. Returns undef if it can't find it there. lang2idng calls language2code first, and also includes some other logic: returns '84' ("invalid language") for an undefined language or '--', passes hex codes through unaffected, and converts ISO codes directly if they're passed. This is your best bet to make sense of user input.

AUTHOR

Michael Roberts, <michael at vivtek.com>

BUGS

Please report any bugs or feature requests to bug-win32-trados-languages at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Win32-TRADOS-Languages. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Win32::TRADOS::Languages

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2014 Michael Roberts.

This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at:

http://www.perlfoundation.org/artistic_license_2_0

Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license.

If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license.

This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder.

This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed.

Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.