From bfbf96fc4377805fdfd21e16b17bf6ef78e486da Mon Sep 17 00:00:00 2001 From: dg9vh Date: Tue, 14 Mar 2017 19:54:07 +0000 Subject: [PATCH] more translatable text - plus new .pot file for translation... function.php added to items --- include/functions.php | 38 +++++++++--------- locale/de_DE/LC_MESSAGES/messages.mo | Bin 10628 -> 11508 bytes locale/de_DE/LC_MESSAGES/messages.po | 57 +++++++++++++++++++++++++++ messages.pot | 57 +++++++++++++++++++++++++++ version.php | 2 +- 5 files changed, 134 insertions(+), 20 deletions(-) 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 d3f31ac3ee4926e887a58672ec17442bdc68d22f..91cb1bdbcd4c90e6965a57497c0b93b416750717 100644 GIT binary patch delta 4368 zcmZA3eQ;FO8OQPCCJ^4C2@(Tn?j|GzFjU@x6oEp81cdM=P-;osWN(r+$u92Ru#E** z5VR^0WC2A{6ce;SnU3qU*1?Gy{G*nkI4zxa80)l3tL+pRbZnh!+wX7pga*&#+0VJ> z?maKhId@_E>d)3E{+OG+&rpsLV+pUHF&FUkAU-H}4>KkU1DJ;{4#9RDiVxv%+=~OT z69?c49E?B59PB|o_bb%*e~%-KNtlnR^rztq9EG|o^HFn{j2dVb=3^zQ!&=lpji`Y( z+Uw2s{tmo}_73#paqAiU2G^IdnDLE|X=s2_)C#7fI-HByxCBSya%&JZ!FGGS8}+>| z)WnYB%lHcV@GeHv{TgdMj^?@v2Q$8TkP2BhyHJ_fhg#V|Bq^o~)xoQni@&g*MrGs! z>pxN78_t)sfRU(c2bF;m)K*p^f94K85?WaemFqEv4nBff;ZdA|Zy|k~Pp$np2s$hI zSb)<}E2>647ee*>0FK9fs0F@(+R`5DnLP5ZhCkSbk5DVWgk;bB3pKz%dK-tusI96( z4YU?@zZJE04EMJzOZcM{MT!hoH!L~nx zn%D_cM!M0#_fRRmV%tYDJILX+=$7E2_Ul2Ng|VFRG)bP#Jg@$&&dg zvMBQoI(Qx#(|n1VXdb<*!?CCV%21iS4YjpPP!n2%+LC)w-`j=slQ1t*;m^Fzhf@0+ zq;K;PYTz$X59YGbVY~$&!bA8rmU8lH@e_1#F{5b#_nP|>U5t+{>{uN!AKfisz#iQibZj26Z+fxHNGc zIiR8moMxFy`B~JSU$9<5{SN#WmFi*qtZAUpsPC1a+NYwvHy4%SW!3;{B5lY}X0!DG zCe+c-sOZ7BP_NTj)XM&bTGtR4Zvd}`4qHAdBYxEDIS2V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