mirror of https://github.com/BOINC/boinc.git
- web: check for mismatched "'s in translation files
- build_po.php: add LANG_NAME strings svn path=/trunk/boinc/; revision=18109
This commit is contained in:
parent
13cc42ad2e
commit
9574e8a003
|
@ -4533,3 +4533,13 @@ David 14 May 2009
|
|||
sched/
|
||||
sched_config.cpp,h
|
||||
sched_result.cpp
|
||||
|
||||
David 14 May 2009
|
||||
- web: check for mismatched "'s in translation files
|
||||
- build_po.php: add LANG_NAME strings
|
||||
|
||||
html/
|
||||
inc/
|
||||
translation.inc
|
||||
ops/
|
||||
build_po.php
|
||||
|
|
|
@ -81,9 +81,9 @@ function buildLanguages($langdir,$transdir,$compdir,$append=false){
|
|||
);
|
||||
exit;
|
||||
}
|
||||
if (!$append) {
|
||||
//if (!$append) {
|
||||
fwrite($fh, "<?php\n");
|
||||
}
|
||||
//}
|
||||
foreach ($language as $key => $value){
|
||||
if ($value !== "") {
|
||||
//Skip if the msgstr is empty
|
||||
|
@ -159,7 +159,13 @@ function parseLanguage($file){
|
|||
function getPOLineContent($line){
|
||||
$start = strpos($line, '"')+1;
|
||||
$stop = strrpos($line, '"');
|
||||
return substr($line, $start, $stop-$start);
|
||||
$x = substr($line, $start, $stop-$start);
|
||||
$n = ereg("[^\\]\"", $x);
|
||||
if ($n) {
|
||||
echo "ERROR - MISMATCHED QUOTES\n";
|
||||
return "";
|
||||
}
|
||||
return $x;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,6 +43,11 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\\n"
|
||||
"X-Poedit-SourceCharset: utf-8\\n"
|
||||
|
||||
msgid "LANG_NAME_NATIVE"
|
||||
msgstr "English"
|
||||
|
||||
msgid "LANG_NAME_INTERNATIONAL"
|
||||
msgstr "English"
|
||||
|
||||
HDR;
|
||||
|
||||
|
|
Loading…
Reference in New Issue