|
|
Website Localization Tips
Continuing
with our tips on the types of website programming and
the ways to deal with these types for later localization,
we will examine in this edition what can be done and
how to do it.
There
is not any tool that "understands" all the existing
programming codes for client or server and makes available
to translators only what really needs to be translated. Some
programs try to facilitate such task by highlighting what
needs to be translated by following some of the patterns of
each programming language. However, each programmer can use
a great variety of techniques and programming methods, which
allows for these tools to include programming codes into the
translatable texts. During translation, the removal or addition
of quotation marks, full stop, semi-colons or any other character
used by the programming language may prevent the code from
functioning. To
avoid accidents in the programming codes, files are usually
pre-prepared for translation. Later on, the localization engineer
(who must be acutely aware of the programming languages and
the translation processes) reviews the pre-prepared files
and makes the necessary adjustments to assure that only what
needs to be translated is available. This
saves time and prevents problems related to code debugging.
Hence, it will be easier to detect the problem and find a
solution for it. TIPS: However,
to avoid additional steps in the translation process the best
choice is to have the developers change some (bad) habits
that are commonplace in the creation of programming codes.
The
following two examples demonstrate how the process is usually
carried out and how it could be improved: 1.
Never separate the parts of a text that will make a sentence
when the code runs pag_num
= 3; myString
= new String(“You are on page %n of the open
document.”);
2. Do not leave the translatable texts together with
the code pag_num
= 3; text.js
code.html
rExp = /%n/gi;
</SCRIPT> In
our next edition, we will examine more tips on website programming
to facilitate the localization process. We will also discuss
the fourth type of programming mentioned in the first tip
of this series: sites built on databases. See
you then!
This
article was originally published in Сcaps Newsletter
(http://www.ccaps.net)
E-mail this article to your colleague! Need more translation jobs? Click here! Translation agencies are welcome to register here - Free! Freelance translators are welcome to register here - Free! |
|
|
Legal Disclaimer Site Map |