31 ini_set(
'default_charset',
'UTF-8');
33 include
'./include.inc';
34 include
'./local/en.inc';
36 common_header(
'Translators');
40 $skip = array(
'CVS'=>1,
'en.inc'=>1,
'convert.php'=>1);
43 preg_match(
'/\$'.
'Revision: 1\.(\d+)/', file_get_contents(
'./local/en.inc'),
$data);
48 <p>This page is used to keep track of the current translations and their maintainers and revisions.
49 Therefore we thank all the translators listed below
for their work!</p>
50 <p>If you would like to become the maintainer of the translation of a language, please download the
51 <a href=
"/local/en.inc">english file</a> and translate it (please encode the file in UTF-8). Then, send the file
52 and your details (name, site, e-mail) to our <a href="mailto:htmlchecker-devl@lists.sourceforge.net">mailling list</a>.</p>
70 if (isset(
$skip[$file]))
continue;
72 $lang = explode(
'.', $file);
75 $file = file_get_contents(
"./local/$file");
76 $rev = $email = $site = $name =
'';
79 if (preg_match(
'/\$'.
'Revision: 1\.(\d+)/', $file,
$data))
82 if (preg_match(
'/EN-Revision: 1\.(\d+)/', $file,
$data))
85 if(preg_match(
'/Translation:\s*([^(\r\n]+)\s*(\(.+\))?/',$file,
$data)) {
86 $name = rtrim(
$data[1]);
88 if (isset(
$data[2]) && preg_match_all(
'/\(([^)]+)\)/',
$data[2], $contacts)) {
90 foreach($contacts[1] as $contact) {
91 if(strpos($contact,
'@'))
92 $email = str_replace(array(
'@',
'.'), array(
' -at- ',
' ! '), $contact);
100 $lang =
"{$langs[$lang]} ($lang)";
106 $lang =
"<a href='http://cvs.sourceforge.net/viewcvs.py/htmlchecker/validator/local/en.inc?tr1=1.$en_rev&tr2=1.$revision&r1=text&r2=text&diff_format=u'>$lang</a>";
111 $trclass =
'critical';
114 $site = $site ?
"<a href='$site'>$site</a>" :
' ';
115 $email = $email ? $email :
' ';
118 <tr
class=
"$trclass">
135 <div
class=
"centered"><table border=
"1">
140 <td>The translation is up-to-date!</td>
143 <td>The translation is a bit old (revisions <= 5)</td>
145 <tr
class=
"critical">
146 <td>The translation is highly outdated. Please update ASAP!</td>