diff --git a/include/functions.php b/include/functions.php index a98088d..5ccfdd0 100644 --- a/include/functions.php +++ b/include/functions.php @@ -10,9 +10,9 @@ function getMMDVMHostVersion() { } else { showLapTime("getMMDVMHostVersion"); if (strlen($output[0]) > 26) { - return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion(). ", GitID #" . substr($output[0],32,7) . ")"; + return substr($output[0],18,8)." ("._("compiled")." ".getMMDVMHostFileVersion(). ", GitID #" . substr($output[0],32,7) . ")"; } else { - return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion(). ")"; + return substr($output[0],18,8)." ("._("compiled")." ".getMMDVMHostFileVersion(). ")"; } } } @@ -158,10 +158,10 @@ function showMode($mode, $mmdvmconfigs) { if (isProcessRunning(IRCDDBGATEWAY)) { echo "label-success"; } else { - echo "label-danger\" title=\"ircddbgateway is down!"; + echo "label-danger\" title=\""._("ircddbgateway is down!"); } } else { - echo "label-default\" title=\"Remote gateway configured - not checked!"; + echo "label-default\" title=\""._("Remote gateway configured - not checked!"); } break; case "System Fusion Network": @@ -169,17 +169,17 @@ function showMode($mode, $mmdvmconfigs) { if (isProcessRunning("YSFGateway")) { echo "label-success"; } else { - echo "label-danger\" title=\"YSFGateway is down!"; + echo "label-danger\" title=\""._("YSFGateway is down!"); } } else { - echo "label-default\" title=\"Remote gateway configured - not checked!"; + echo "label-default\" title=\""._("Remote gateway configured - not checked!"); } break; default: if (isProcessRunning("MMDVMHost")) { echo "label-success"; } else { - echo "label-danger\" title=\"MMDVMHost is down!"; + echo "label-danger\" title=\""._("MMDVMHost is down!"); } } } else { @@ -547,7 +547,7 @@ function getActualMode($metaLastHeard, $mmdvmconfigs) { $timestamp->add(new DateInterval('PT' . $hangtime . 'S')); } if ($now->format('U') > $timestamp->format('U')) { - return "idle"; + return _("idle"); } else { return "".$mode.""; } @@ -620,7 +620,7 @@ function getActualLink($logLines, $mode) { if (isProcessRunning(IRCDDBGATEWAY)) { return getDSTARLinks(); } else { - return "ircddbgateway not running!"; + return _("ircddbgateway not running!"); } break; case "DMR Slot 1": @@ -637,7 +637,7 @@ function getActualLink($logLines, $mode) { } } } - return "not linked"; + return _("not linked"); break; case "DMR Slot 2": foreach ($logLines as $logLine) { @@ -653,7 +653,7 @@ function getActualLink($logLines, $mode) { } } } - return "not linked"; + return _("not linked"); break; case "YSF": @@ -689,7 +689,7 @@ function getActualLink($logLines, $mode) { } } - return "something went wrong!"; + return _("something went wrong!"); } function getActualReflector($logLines, $mode) { @@ -703,9 +703,9 @@ function getActualReflector($logLines, $mode) { if (strlen($from) == 4 && startsWith($from,"4")) { if ($from == "4000") { - return "Reflector not linked"; + return _("Reflector not linked"); } else { - return "Reflector ".$from; + return _("Reflector")." ".$from; } } $source = "RF"; @@ -716,12 +716,12 @@ function getActualReflector($logLines, $mode) { if ( $source == "RF") { $to = substr($logLine, strpos($logLine, "to") + 3); if (strlen($to) < 6 && startsWith($to, "4")) { - return "Reflector ".$to." (not cfmd)"; + return _("Reflector")." ".$to." ("._("not cfmd").")"; } } } } - return "Reflector not linked"; + return _("Reflector not linked"); } function getActiveYSFReflectors() { @@ -738,9 +738,9 @@ function getActiveYSFReflectors() { function getYSFReflectorById($id, $reflectors) { if ($id ==-1) { - return "not linked"; + return _("not linked"); } else if ($id == -2 ) { - return "YSFGateway not running"; + return _("YSFGateway not running"); } else { foreach($reflectors as $reflector) { if ($reflector[2] === $id) { @@ -827,7 +827,7 @@ function getName($callsign) { } else return "---"; } else { - return "DMRIDs.dat not correct!"; + return _("DMRIDs.dat not correct!"); } } diff --git a/locale/de_DE/LC_MESSAGES/messages.mo b/locale/de_DE/LC_MESSAGES/messages.mo index d3f31ac..91cb1bd 100644 Binary files a/locale/de_DE/LC_MESSAGES/messages.mo and b/locale/de_DE/LC_MESSAGES/messages.mo differ diff --git a/locale/de_DE/LC_MESSAGES/messages.po b/locale/de_DE/LC_MESSAGES/messages.po index 99255ea..04f5df2 100644 --- a/locale/de_DE/LC_MESSAGES/messages.po +++ b/locale/de_DE/LC_MESSAGES/messages.po @@ -660,3 +660,60 @@ msgstr "Mittelwert" #: setup.php:331 msgid "Save configuration" msgstr "Konfiguration speichern" + +#: include/functions.php:13 include/functions.php:15 +msgid "compiled" +msgstr "übersetzt am" + +#: include/functions.php:161 +msgid "ircddbgateway is down!" +msgstr "ircddbgateway läuft nicht!" + +#: include/functions.php:164 include/functions.php:175 +msgid "Remote gateway configured - not checked!" +msgstr "Entferntes Gateway konfiguriert - wird nicht geprüft!" + +#: include/functions.php:172 +msgid "YSFGateway is down!" +msgstr "YSFGateway läuft nicht!" + +#: include/functions.php:182 +msgid "MMDVMHost is down!" +msgstr "MMDVMHost läuft nicht!" + +#: include/functions.php:550 +msgid "idle" +msgstr "wartend" + +#: include/functions.php:623 +msgid "ircddbgateway not running!" +msgstr "ircddbgateway läuft nicht!" + +#: include/functions.php:640 include/functions.php:656 +#: include/functions.php:741 +msgid "not linked" +msgstr "nicht verbunden" + +#: include/functions.php:692 +msgid "something went wrong!" +msgstr "Irgendwas lief schief!" + +#: include/functions.php:706 include/functions.php:724 +msgid "Reflector not linked" +msgstr "Reflektor nicht verbunden" + +#: include/functions.php:708 include/functions.php:719 +msgid "Reflector" +msgstr "Reflektor" + +#: include/functions.php:719 +msgid "not cfmd" +msgstr "unbestätigt" + +#: include/functions.php:743 +msgid "YSFGateway not running" +msgstr "YSFGateway läuft nicht" + +#: include/functions.php:830 +msgid "DMRIDs.dat not correct!" +msgstr "DMRIDs.dat nicht korrekt!" diff --git a/messages.pot b/messages.pot index 69cb2a3..f4f2ab1 100644 --- a/messages.pot +++ b/messages.pot @@ -660,3 +660,60 @@ msgstr "" #: setup.php:331 msgid "Save configuration" msgstr "" + +#: include/functions.php:13 include/functions.php:15 +msgid "compiled" +msgstr "" + +#: include/functions.php:161 +msgid "ircddbgateway is down!" +msgstr "" + +#: include/functions.php:164 include/functions.php:175 +msgid "Remote gateway configured - not checked!" +msgstr "" + +#: include/functions.php:172 +msgid "YSFGateway is down!" +msgstr "" + +#: include/functions.php:182 +msgid "MMDVMHost is down!" +msgstr "" + +#: include/functions.php:550 +msgid "idle" +msgstr "" + +#: include/functions.php:623 +msgid "ircddbgateway not running!" +msgstr "" + +#: include/functions.php:640 include/functions.php:656 +#: include/functions.php:741 +msgid "not linked" +msgstr "" + +#: include/functions.php:692 +msgid "something went wrong!" +msgstr "" + +#: include/functions.php:706 include/functions.php:724 +msgid "Reflector not linked" +msgstr "" + +#: include/functions.php:708 include/functions.php:719 +msgid "Reflector" +msgstr "" + +#: include/functions.php:719 +msgid "not cfmd" +msgstr "" + +#: include/functions.php:743 +msgid "YSFGateway not running" +msgstr "" + +#: include/functions.php:830 +msgid "DMRIDs.dat not correct!" +msgstr "" diff --git a/version.php b/version.php index 30ef499..3a6fdc4 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@