diff options
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | languages.ini | 2 | ||||
-rw-r--r-- | problems.php | 15 | ||||
-rw-r--r-- | templates/frontpage.tpl | 2 |
4 files changed, 12 insertions, 9 deletions
@@ -52,7 +52,7 @@ require_once('common.php'); function get_stats() { $languageinfo = languageinfo(); $stats['langstats'] = (file_exists(STATS) ? unserialize(file_get_contents(STATS)) : array()); - $stats['summary'] = array('complete' => 0, 'good' => 0, 'normal' => 0, 'bad' => 0); + $stats['summary'] = array('complete' => -1, 'good' => 0, 'normal' => 0, 'bad' => 0); foreach($stats['langstats'] as $name => &$info) { if ($name == 'summary') continue; $info['percentage'] = ($info['total'] - $info['missing']) / $info['total'] * 100; diff --git a/languages.ini b/languages.ini index 2fa9810..c15572d 100644 --- a/languages.ini +++ b/languages.ini @@ -227,7 +227,7 @@ rtl = 0 [slovak] - name = "Slovenský (Slovak)" + name = "Slovenčina (Slovak)" flag = "Slovakia" code = "sk" rtl = 0 diff --git a/problems.php b/problems.php index 8e23c91..326524b 100644 --- a/problems.php +++ b/problems.php @@ -84,7 +84,7 @@ foreach($english as $id => $phrase) { if (sizeof($strings) > 0) { print("<h2>Missing strings/targets</h2>\n"); print("<p>This is an error that should be fixed</p>\n"); - print(join($strings, '')); + print(join('', $strings)); } $strings = array(); @@ -109,7 +109,7 @@ foreach($phrases as $id => $phrase) { if (sizeof($strings) > 0) { print("<h2>Wrong empty strings</h2>"); print("<p>When the English language is set to \"\" or none, the translation should follow. The strings below don't do this. This is an error and should be fixed.</p>\n"); - print(join($strings, '')); + print(join('', $strings)); } $strings = array(); @@ -136,7 +136,7 @@ foreach($phrases as $id => $phrase) { if (sizeof($strings) > 0) { print("<h2>Identical English and translation</h2>"); printf("<p>Doesn't have to be a problem, if the string is valid in the %s language</p>\n", $languageinfo[$lang]['name']); - print(join($strings, '')); + print(join('', $strings)); } $strings = array(); @@ -159,7 +159,7 @@ foreach($english as $id => $phrase) { if (sizeof($strings) > 0) { print("<h2>Missing voice strings</h2>"); printf("<p>This is almost certainly a mistake unless the string does not make sense in the %s language, and should be fixed before it's possible to generate meaningful voicefiles for the %s language.</p>\n", $languageinfo[$lang]['name'], $languageinfo[$lang]['name']); - print(join($strings, '')); + print(join('', $strings)); } $strings = array(); @@ -190,7 +190,7 @@ foreach($phrases as $id => $phrase) { if (sizeof($strings) > 0) { print("<h2>Same voice and source</h2>"); printf("<p>Doesn't have to be a problem, if the string is valid in the %s language</p>\n", $languageinfo[$lang]['name']); - print(join($strings, '')); + print(join('', $strings)); } print("<!--\n"); @@ -215,9 +215,12 @@ foreach($phrases as $id => $phrase) { if (sizeof($strings) > 0) { print("<h2>Unnecessary voice strings</h2>"); print("<p>These strings are unnecessary, since they're not defined in the English language file. They should probably be removed</p>\n"); - print(join($strings, '')); + print(join('', $strings)); } +print "<h2>Other actions</h2>\n"; +print "<p>Normally the translation edit page only allows flagged/problematic entries to be edited. To enable editing the entire translation, follow <a href='edit.php?lang=$lang&all=1'>this link</a></p>\n"; + if (true || $_SERVER['REMOTE_ADDR'] == trim(file_get_contents($_SERVER['DOCUMENT_ROOT'].'/homeip'))) { echo <<<MOO <h2>Check your work in progress</h2> diff --git a/templates/frontpage.tpl b/templates/frontpage.tpl index 5449416..dd924f7 100644 --- a/templates/frontpage.tpl +++ b/templates/frontpage.tpl @@ -43,7 +43,7 @@ possibly slightly safer way. </tr> </thead> {foreach from=$langstats key=langfile item=language} - {if $language.percentage == 100} + {if $language.percentage == 100 && $language.source == 0} {assign var='rowclass' value='good'} {elseif $language.percentage < 50} {assign var='rowclass' value='poor'} |