Localization of php.net
| From: | Cary Clark | Date: | Sun, 05 Nov 2000 22:58:25 +0000 |
| Subject: | Localization of php.net | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-2733@lists.php.net to get a copy of this message | ||
Dear PHP Webmaster,
I have a couple of comments on the localization of the site-based PHP
manual.
1. The Hungarian pages of the manual are using the incorrect encoding to
display Hungarian text. While this poses no great problem to most Hungarian
readers, since the text is still mostly legible and many readers are
accustomed to seeing this, it is a problem which is easily remedied and will
add to the quality of this offering. The problem has to do with the fact
that Hungarian uses the Eastern European (also known as Central European, or
CE) series of encodings to display its text on the computer. So for example,
the characters with the Unicode names "Latin Small Letter O With Double
Acute" and "Latin Small Letter U With Double Acute", which look like
lowercase 'o' and 'u' with two acute accents over them (as if they were
elongated umlauts) are showing up as "Latin Small Letter O With Tilde" (õ)
and "Latin Small Letter U With Circumflex" (û). The easy fix for this is to
add the following META tags to the HTML code of each Hungarian page:
<META HTTP-EQUIV="content-language" CONTENT="hu">
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=iso-8859-2">
Note that the first tag is not strictly necessary right now but will become
useful when Internet-based spelling and grammar checkers make use of this
information. Note also that these tags should go above the TITLE definition
to (try to) ensure its proper display also.
You could make this code dynamic, as we have done on many of our sites, if
you keep track of $language and $charset as session or environmental
variables:
<META HTTP-EQUIV="content-language" CONTENT="<?php echo $language;
?>">
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=<?php echo
$charset; ?>">
There is one caveat with this information: extended characters from the
Western European codeset which are included in these pages will now appear
incorrectly. The case I noticed was in the first name given in the
manual.php page: Stig Sæther Bakken (the 2nd character in the 2nd name will
display as "Latin Small Letter C With Acute" instead of "Latin Small Letter
Ae"). The solution to this problem is only slightly more complex than the
one given above, and involves the use of the UTF-8 variant encoding of
Unicode. I will be happy to discuss its use with you at your request.
2. I have noticed that the localized (non-English) annotated manuals do not
contain the comments from the other languages. On the one hand this in
understandable, since the purpose of localizing these manuals is to provide
information to the reader in the language he/she will understand. However,
this leads to a situation in which readers of a particular language will
receive more or less information than readers of another (English appearing
to be the most informative). In a way, this almost defeats the purpose of
these manuals, although obviously not entirely, since the core manual
material is still provided, but a Hungarian reader, for instance, may feel
the need to peruse both Hungarian and English versions of the manual to
obtain the desired volume of information.
What I suggest as a resolution is to include this content for all languages,
and allow the reader to sort out the details of reading the information,
whether that means that the reader will already know the language or the
reader asks a friend/acquaintance/translation agency to make this
information available in the reader's language.
An alternative would be to provide these comments in all languages, but I
don't recommend it since it would likely be a maintenance nightmare for your
team unless you partnered with a localization company to track and update
all information in all languages.
3. Yes, that brings me to my third point: we are a localization company
(eLocale.com), specializing in internationalization and localization or Web
sites. We have developed and revamped many sites for many clients, and a
have great deal of knowledge and experience in creating dynamic multilingual
sites (PHP being our language of choice for creating dynamic sites, of
course :-). We want to offer that expertise to your team on several fronts:
- consultation on site design enhancement/modification (including PHP code,
database schema design, and graphical layout) to include multilingual
capabilities
- localization into multiple languages not already supported on the site,
including Korean, Simplified and Traditional Chinese, Czech, Danish,
Swedish, Finnish, Norwegian, Portuguese, Polish, Russian, Turkish, and
others.
Please feel free to contact me at your convenience with any questions,
comments, etc. Also, visit our Web site for some information on who we are
and what we do - http://www.elocale.com/ - (sorry, it's
a little lacking
since we haven't had time to do anything with it since we first built it 2
years ago).
I look forward to hearing from you.
Best regards,
Cary Clark
éééééééééééééééééééééééééééééééééééééééééééé
Cary Clark e L o c a l e . c o m
Language services
for an interconnected world
cell: 208-440-9018
office: 208-343-2868
e-mail: cary@elocale.com
web: http://www.elocale.com/
éééééééééééééééééééééééééééééééééééééééééééé