From: Matthias Schmidt Date: Sun, 21 Jul 2019 12:26:38 +0000 (+0200) Subject: Add notice for missing phrases on acp index page in dev mode X-Git-Tag: 5.2.0_Alpha_3~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c4f1c435adfb578e8e5780a4434698cfd591c617;p=GitHub%2FWoltLab%2FWCF.git Add notice for missing phrases on acp index page in dev mode Close #2983 --- diff --git a/wcfsetup/install/files/acp/templates/index.tpl b/wcfsetup/install/files/acp/templates/index.tpl index dc50a54afd..1eb306a858 100644 --- a/wcfsetup/install/files/acp/templates/index.tpl +++ b/wcfsetup/install/files/acp/templates/index.tpl @@ -31,6 +31,10 @@

{lang}wcf.acp.user.usersAwaitingApprovalInfo{/lang}

{/if} +{if $missingLanguageItemsMTime} +

{lang}wcf.acp.index.missingLanguageItems{/lang}

+{/if} + {event name='userNotice'} {*if ENABLE_PLUGINSTORE_WIDGET} diff --git a/wcfsetup/install/files/lib/acp/page/IndexPage.class.php b/wcfsetup/install/files/lib/acp/page/IndexPage.class.php index cea8621d1c..f36432cd98 100755 --- a/wcfsetup/install/files/lib/acp/page/IndexPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/IndexPage.class.php @@ -113,13 +113,19 @@ class IndexPage extends AbstractPage { } } + $missingLanguageItemsMTime = 0; + if (ENABLE_DEBUG_MODE && ENABLE_DEVELOPER_TOOLS && file_exists(WCF_DIR . 'log/missingLanguageItems.txt')) { + $missingLanguageItemsMTime = filemtime(WCF_DIR . 'log/missingLanguageItems.txt'); + } + WCF::getTPL()->assign([ 'recaptchaWithoutKey' => $recaptchaWithoutKey, 'recaptchaKeyLink' => $recaptchaKeyLink, 'server' => $this->server, 'usersAwaitingApproval' => $usersAwaitingApproval, 'evaluationExpired' => $evaluationExpired, - 'evaluationPending' => $evaluationPending + 'evaluationPending' => $evaluationPending, + 'missingLanguageItemsMTime' => $missingLanguageItemsMTime ]); } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 409ffa177d..9590923f6d 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -927,6 +927,7 @@ Das Fehlerprotokoll enthält {$data[count]} neue Einträge. Die ersten drei, in zu aktivieren.]]>
Für eine weitere Nutzung {if LANGUAGE_USE_INFORMAL_VARIANT}musst du{else}müssen Sie{/if} einen Schlüssel in den Optionen hinterlegen, unterhalb des Eingabefeldes befindet sich eine Anleitung zum Anfordern des Schlüssels.]]>
+ {'WCF_DIR'|constant}log/missingLanguageItems.txt für weitere Informationen.]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index b830d651ef..3b83047068 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -904,6 +904,7 @@ This protocol file contains {$data[count]} new entries. The first three error me enabling it.]]>
For further use you need to provide a key in your options, please follow the instructions below the input field to obtain a key.]]>
+ {'WCF_DIR'|constant}log/missingLanguageItems.txt for more information.]]>