xref: /web-php/manual/help-translate.php (revision 57f505ed)
1<?php
2$_SERVER['BASE_PAGE'] = 'manual/help-translate.php';
3include_once __DIR__ . '/../include/prepend.inc';
4include_once __DIR__ . '/../include/shared-manual.inc';
5site_header("Help translate the PHP Manual");
6?>
7
8<h3>Looking for a translation?</h3>
9<p>
10The PHP Manual has over 30 translations already setup, but due to inactivity many have been taken offline. The odds are high that your language has already started a translation, but for various reasons it's no longer being updated or shown at php.net.
11</p>
12
13<h3>How to help translate the PHP Manual</h3>
14<p>
15If you're interested in helping translate a specific language, then please read the translation section of the <a href="http://doc.php.net/tutorial/">Guide for Manual Contributors</a> and contact the appropriate mailing list. Whether or not your language is shown below, you are very welcome to help translate the PHP Manual from English to another language.
16</p>
17
18<h3>Using outdated translations</h3>
19<p>
20The following list of languages already contain SVN modules, and will show up on the documentation development server. Warning: These translations are considered outdated, so content within each may be completely wrong or insecure!
21</p>
22
23<h3>Inactive languages already in SVN</h3>
24<ul>
25<?php
26// $archived are manuals we have old versions of
27$archived = ['da', 'kr', 'pl', 'tw'];
28
29foreach ($INACTIVE_ONLINE_LANGUAGES as $cc => $lang) {
30    $link = 'no archive';
31    if (in_array($cc, $archived, true)) {
32        $link = '<a href="http://docs.php.net/manual/' . $cc . '">archive</a>';
33    }
34    echo '<li>', $lang, ': (', $link, ')</li>';
35}
36?>
37</ul>
38
39<?php
40site_footer();
41