Browse Source

fixing translation of admin panel

master
MaxMalRichtig 5 years ago
parent
commit
aba7080756
  1. 29
      languages/de_DE.json
  2. 29
      languages/en_US.json
  3. 32
      plugin.php

29
languages/de_DE.json

@ -4,18 +4,19 @@
"name": "Isso Client",
"description": "Isso Kommentare für deinen bludit blog. (Das hier ist nur der Client für Isso. Du benötigst immer noch einen Isso Server! Besuche posativ.org/isso für mehr Infos.) "
},
"enableOnPage": "Isso-Kommentare auf Seiten aktivieren",
"enableOnPost": "Isso-Kommentare für Beiträge aktivieren",
"enableOnDefaultPage": "Isso auf der Basisseite verwenden",
"pathToData": "Pfad zu den Isso-Daten (z.B. dein fcgi Skript)",
"pathToScript": "Pfad zur Skriptquelle für Isso (z.B. embed.js)",
"pathToCss": "Pfad zu einer eigenen CSS Datei",
"settingsRequired": "Benötigte Einstellungen",
"settingsOptional": "Optionale Einstellungen",
"isTrue": "wahr",
"isFalse": "falsch",
"colorCode": "Farbcode",
"languageCode": "Sprachcode",
"numeric": "Zahl",
"noscriptMsg": "Das Kommentarfeld, betrieben mit Isso, kann ohne javascript nicht angezeigt werden!"
"intro-header": "-- Besuch die Projektseite für mehr Infos über Isso: https://posativ.org/isso/ --",
"enable-on-page": "Isso-Kommentare auf Seiten aktivieren",
"enable-on-post": "Isso-Kommentare für Beiträge aktivieren",
"enable-on-default-page": "Isso auf der Basisseite verwenden",
"path-to-data": "Pfad zu den Isso-Daten (z.B. dein fcgi Skript)",
"path-to-script": "Pfad zur Skriptquelle für Isso (z.B. embed.js)",
"path-to-css": "Pfad zu einer eigenen CSS Datei",
"required-settings": "Benötigte Einstellungen",
"optional-settings": "Optionale Einstellungen",
"true": "wahr",
"false": "falsch",
"color-code": "Farbcode (z.B. \"#2277aa\")",
"language-code": "Sprachcode (z.B. \"de\")",
"number": "Anzahl",
"no-script-msg": "Das Kommentarfeld, betrieben mit Isso, kann ohne javascript nicht angezeigt werden!"
}

29
languages/en_US.json

@ -4,18 +4,19 @@
"name": "Isso client",
"description": "Use Isso comments in your bludit blog. (This is only a client implementation. You still need an Isso server! Visit posativ.org/isso for more info.) "
},
"enableOnPage": "Enable Isso on pages",
"enableOnPost": "Enable Isso on posts",
"enableOnDefaultPage": "Enable Isso on default home page",
"pathToData": "Path to Isso data (e.g. your fcgi script)",
"pathToScript": "Path to script source for Isso (e.g. embed.js)",
"pathToCss": "Path to custom CSS file",
"settingsRequired": "Required settings",
"settingsOptional": "Optional settings",
"isTrue": "true",
"isFalse": "false",
"colorCode": "colorcode",
"languageCode": "language code",
"numeric": "number",
"noscriptMsg": "The comment section powered by Isso can not be shown without javascript!"
"intro-header": "-- See the project page for more info about Isso: https://posativ.org/isso/ --",
"enable-on-page": "Enable Isso on pages",
"enable-on-post": "Enable Isso on posts",
"enable-on-default-page": "Enable Isso on default home page",
"path-to-data": "Path to Isso data (e.g. your fcgi script)",
"path-to-script": "Path to script source for Isso (e.g. embed.js)",
"path-to-css": "Path to custom CSS file",
"required-settings": "Required settings",
"optional-settings": "Optional settings",
"true": "true",
"false": "false",
"color-code": "colorcode (e.g. \"#2277aa\")",
"language-code": "language code (e.g. \"en\")",
"number": "number",
"no-script-msg": "The comment section powered by Isso can not be shown without javascript!"
}

32
plugin.php

@ -49,39 +49,43 @@ class pluginIsso extends Plugin {
public function form()
{
global $Language;
$html = '<div style="margin: 2em 0;">';
$html .= '<i>'.$Language->get('intro-header').'</i>';
$html .= '</div>';
$html = '<div>';
$html .= '<div>';
$html .= '<input name="enablePages" type="hidden" value="0">';
$html .= '<input name="enablePages" id="jsenablePages" type="checkbox" value="1" '.($this->getDbField('enablePages')?'checked':'').'>';
$html .= '<label class="forCheckbox" for="jsenablePages">'.$Language->get('Enable Isso on pages').'</label>';
$html .= '<label class="forCheckbox" for="jsenablePages">'.$Language->get('enable-on-page').'</label>';
$html .= '</div>';
$html .= '<div>';
$html .= '<input name="enablePosts" type="hidden" value="0">';
$html .= '<input name="enablePosts" id="jsenablePosts" type="checkbox" value="1" '.($this->getDbField('enablePosts')?'checked':'').'>';
$html .= '<label class="forCheckbox" for="jsenablePosts">'.$Language->get('Enable Isso on posts').'</label>';
$html .= '<label class="forCheckbox" for="jsenablePosts">'.$Language->get('enable-on-post').'</label>';
$html .= '</div>';
$html .= '<div>';
$html .= '<input name="enableDefaultHomePage" type="hidden" value="0">';
$html .= '<input name="enableDefaultHomePage" id="jsenableDefaultHomePage" type="checkbox" value="1" '.($this->getDbField('enableDefaultHomePage')?'checked':'').'>';
$html .= '<label class="forCheckbox" for="jsenableDefaultHomePage">'.$Language->get('Enable Isso on default home page').'</label>';
$html .= '<label class="forCheckbox" for="jsenableDefaultHomePage">'.$Language->get('enable-on-default-page').'</label>';
$html .= '</div>';
$html .= '<p><h3>'.$Language->get('Required settings').':</h3></p>';
$html .= '<p><h3>'.$Language->get('required-settings').':</h3></p>';
$html .= '<div>';
$html .= '<label>data-isso: '.$Language->get('Path to Isso data (e.g. your fcgi script)').'</label>';
$html .= '<label>data-isso: '.$Language->get('path-to-data').'</label>';
$html .= '<input name="pathData" id="jsdata" type="text" value="'.$this->getDbField('pathData').'">';
$html .= '</div>';
$html .= '<div>';
$html .= '<label>src: '.$Language->get('Path to script source for Isso (e.g. embed.js)').'</label>';
$html .= '<label>src: '.$Language->get('path-to-script').'</label>';
$html .= '<input name="pathSrc" id="jssource" type="text" value="'.$this->getDbField('pathSrc').'">';
$html .= '</div>';
$html .= '<p><h3>'.$Language->get('Optional settings').':</h3></p>';
$html .= '<p><h3>'.$Language->get('optional-settings').':</h3></p>';
$html .= '<div>';
$html .= '<label>data-isso-reply-to-self: ['.$Language->get('true').'/'.$Language->get('false').']</label>';
@ -124,17 +128,17 @@ class pluginIsso extends Plugin {
$html .= '</div>';
$html .= '<div>';
$html .= '<label>data-isso-avatar-fg: ['.$Language->get('colorcode').']</label>';
$html .= '<label>data-isso-avatar-fg: ['.$Language->get('color-code').']</label>';
$html .= '<input name="dataAvatarFg" id="jsdataavatarfg" type="text" value="'.$this->getDbField('dataAvatarFg').'">';
$html .= '</div>';
$html .= '<div>';
$html .= '<label>data-isso-avatar-bg: ['.$Language->get('colorcode').']</label>';
$html .= '<label>data-isso-avatar-bg: ['.$Language->get('color-code').']</label>';
$html .= '<input name="dataAvatarBg" id="jsdataavatarbg" type="text" value="'.$this->getDbField('dataAvatarBg').'">';
$html .= '</div>';
$html .= '<div>';
$html .= '<label>data-isso-lang: ['.$Language->get('language code').']</label>';
$html .= '<label>data-isso-lang: ['.$Language->get('language-code').']</label>';
$html .= '<input name="dataLang" id="jsdatalang" type="text" value="'.$this->getDbField('dataLang').'">';
$html .= '</div>';
@ -154,7 +158,7 @@ class pluginIsso extends Plugin {
$html .= '</div>';
$html .= '<div>';
$html .= '<label>'.$Language->get('Path to custom CSS file').'</label>';
$html .= '<label>'.$Language->get('path-to-css').'</label>';
$html .= '<input name="pathCss" id="jsdatacss" type="text" value="'.$this->getDbField('pathCss').'">';
$html .= '</div>';
@ -167,7 +171,7 @@ class pluginIsso extends Plugin {
if( $this->enable ) {
$html = '<section id="isso-thread"></section>';
$html .= '<noscript>'.$Language->get('The comment section powered by isso can not be shown without javascript!');
$html .= '<noscript>'.$Language->get('no-script-msg');
$html .= '</noscript>';
return $html;
}
@ -185,7 +189,7 @@ class pluginIsso extends Plugin {
if( $this->enable && !$Url->notFound()) {
$html = '<section id="isso-thread"></section>';
$html .= '<noscript>'.$Language->get('The comment section powered by isso can not be shown without javascript!');
$html .= '<noscript>'.$Language->get('no-script-msg');
$html .= '</noscript>';
return $html;
}

Loading…
Cancel
Save