Browse Source

fixing translation of admin panel

MaxMalRichtig 2 years ago
parent
commit
aba7080756
3 changed files with 48 additions and 42 deletions
  1. 15
    14
      languages/de_DE.json
  2. 15
    14
      languages/en_US.json
  3. 18
    14
      plugin.php

+ 15
- 14
languages/de_DE.json View File

@@ -4,18 +4,19 @@
4 4
 		"name": "Isso Client",
5 5
 		"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.) "
6 6
 	},
7
-	"enableOnPage": "Isso-Kommentare auf Seiten aktivieren",
8
-	"enableOnPost": "Isso-Kommentare für Beiträge aktivieren",
9
-	"enableOnDefaultPage": "Isso auf der Basisseite verwenden",
10
-	"pathToData": "Pfad zu den Isso-Daten (z.B. dein fcgi Skript)",
11
-	"pathToScript": "Pfad zur Skriptquelle für Isso (z.B. embed.js)",
12
-	"pathToCss": "Pfad zu einer eigenen CSS Datei",
13
-	"settingsRequired": "Benötigte Einstellungen",
14
-	"settingsOptional": "Optionale Einstellungen",
15
-	"isTrue": "wahr",
16
-	"isFalse": "falsch",
17
-	"colorCode": "Farbcode",
18
-	"languageCode": "Sprachcode",
19
-	"numeric": "Zahl",
20
-	"noscriptMsg": "Das Kommentarfeld, betrieben mit Isso, kann ohne javascript nicht angezeigt werden!"
7
+	"intro-header": "-- Besuch die Projektseite für mehr Infos über Isso: https://posativ.org/isso/ --",
8
+	"enable-on-page":  "Isso-Kommentare auf Seiten aktivieren",
9
+	"enable-on-post": "Isso-Kommentare für Beiträge aktivieren",
10
+	"enable-on-default-page": "Isso auf der Basisseite verwenden",
11
+	"path-to-data": "Pfad zu den Isso-Daten (z.B. dein fcgi Skript)",
12
+	"path-to-script": "Pfad zur Skriptquelle für Isso (z.B. embed.js)",
13
+	"path-to-css": "Pfad zu einer eigenen CSS Datei",
14
+	"required-settings": "Benötigte Einstellungen",
15
+	"optional-settings": "Optionale Einstellungen",
16
+	"true": "wahr",
17
+	"false": "falsch",
18
+	"color-code": "Farbcode (z.B. \"#2277aa\")",
19
+	"language-code": "Sprachcode (z.B. \"de\")",
20
+	"number": "Anzahl",
21
+	"no-script-msg": "Das Kommentarfeld, betrieben mit Isso, kann ohne javascript nicht angezeigt werden!"
21 22
 }

+ 15
- 14
languages/en_US.json View File

@@ -4,18 +4,19 @@
4 4
 		"name": "Isso client",
5 5
 		"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.) "
6 6
 	},
7
-	"enableOnPage": "Enable Isso on pages",
8
-	"enableOnPost": "Enable Isso on posts",
9
-	"enableOnDefaultPage": "Enable Isso on default home page",
10
-	"pathToData": "Path to Isso data (e.g. your fcgi script)",
11
-	"pathToScript": "Path to script source for Isso (e.g. embed.js)",
12
-	"pathToCss": "Path to custom CSS file",
13
-	"settingsRequired": "Required settings",
14
-	"settingsOptional": "Optional settings",
15
-	"isTrue": "true",
16
-	"isFalse": "false",
17
-	"colorCode": "colorcode",
18
-	"languageCode": "language code",
19
-	"numeric": "number",
20
-	"noscriptMsg": "The comment section powered by Isso can not be shown without javascript!"
7
+	"intro-header": "-- See the project page for more info about Isso: https://posativ.org/isso/ --",
8
+	"enable-on-page": "Enable Isso on pages",
9
+	"enable-on-post": "Enable Isso on posts",
10
+	"enable-on-default-page": "Enable Isso on default home page",
11
+	"path-to-data": "Path to Isso data (e.g. your fcgi script)",
12
+	"path-to-script": "Path to script source for Isso (e.g. embed.js)",
13
+	"path-to-css": "Path to custom CSS file",
14
+	"required-settings": "Required settings",
15
+	"optional-settings": "Optional settings",
16
+	"true": "true",
17
+	"false": "false",
18
+	"color-code": "colorcode (e.g. \"#2277aa\")",
19
+	"language-code": "language code (e.g. \"en\")",
20
+	"number": "number",
21
+	"no-script-msg": "The comment section powered by Isso can not be shown without javascript!"
21 22
 }

+ 18
- 14
plugin.php View File

@@ -49,39 +49,43 @@ class pluginIsso extends Plugin {
49 49
 	public function form()
50 50
 	{
51 51
 		global $Language;
52
+		
53
+		$html = '<div style="margin: 2em 0;">';
54
+		$html .= '<i>'.$Language->get('intro-header').'</i>';
55
+		$html .= '</div>';
52 56
 
53
-		$html  = '<div>';
57
+		$html .= '<div>';
54 58
 		$html .= '<input name="enablePages" type="hidden" value="0">';
55 59
 		$html .= '<input name="enablePages" id="jsenablePages" type="checkbox" value="1" '.($this->getDbField('enablePages')?'checked':'').'>';
56
-		$html .= '<label class="forCheckbox" for="jsenablePages">'.$Language->get('Enable Isso on pages').'</label>';
60
+		$html .= '<label class="forCheckbox" for="jsenablePages">'.$Language->get('enable-on-page').'</label>';
57 61
 		$html .= '</div>';
58 62
 
59 63
 		$html .= '<div>';
60 64
 		$html .= '<input name="enablePosts" type="hidden" value="0">';
61 65
 		$html .= '<input name="enablePosts" id="jsenablePosts" type="checkbox" value="1" '.($this->getDbField('enablePosts')?'checked':'').'>';
62
-		$html .= '<label class="forCheckbox" for="jsenablePosts">'.$Language->get('Enable Isso on posts').'</label>';
66
+		$html .= '<label class="forCheckbox" for="jsenablePosts">'.$Language->get('enable-on-post').'</label>';
63 67
 		$html .= '</div>';
64 68
 
65 69
 		$html .= '<div>';
66 70
 		$html .= '<input name="enableDefaultHomePage" type="hidden" value="0">';
67 71
 		$html .= '<input name="enableDefaultHomePage" id="jsenableDefaultHomePage" type="checkbox" value="1" '.($this->getDbField('enableDefaultHomePage')?'checked':'').'>';
68
-		$html .= '<label class="forCheckbox" for="jsenableDefaultHomePage">'.$Language->get('Enable Isso on default home page').'</label>';
72
+		$html .= '<label class="forCheckbox" for="jsenableDefaultHomePage">'.$Language->get('enable-on-default-page').'</label>';
69 73
 		$html .= '</div>';
70 74
 		
71
-		$html .= '<p><h3>'.$Language->get('Required settings').':</h3></p>';
75
+		$html .= '<p><h3>'.$Language->get('required-settings').':</h3></p>';
72 76
 		
73 77
 		$html .= '<div>';
74
-		$html .= '<label>data-isso: '.$Language->get('Path to Isso data (e.g. your fcgi script)').'</label>';
78
+		$html .= '<label>data-isso: '.$Language->get('path-to-data').'</label>';
75 79
 		$html .= '<input name="pathData" id="jsdata" type="text" value="'.$this->getDbField('pathData').'">';
76 80
 		$html .= '</div>';
77 81
 		
78 82
 		$html .= '<div>';
79
-		$html .= '<label>src: '.$Language->get('Path to script source for Isso (e.g. embed.js)').'</label>';
83
+		$html .= '<label>src: '.$Language->get('path-to-script').'</label>';
80 84
 		$html .= '<input name="pathSrc" id="jssource" type="text" value="'.$this->getDbField('pathSrc').'">';
81 85
 		$html .= '</div>';
82 86
 		
83 87
 
84
-		$html .= '<p><h3>'.$Language->get('Optional settings').':</h3></p>';
88
+		$html .= '<p><h3>'.$Language->get('optional-settings').':</h3></p>';
85 89
 		
86 90
 		$html .= '<div>';
87 91
 		$html .= '<label>data-isso-reply-to-self: ['.$Language->get('true').'/'.$Language->get('false').']</label>';
@@ -124,17 +128,17 @@ class pluginIsso extends Plugin {
124 128
 		$html .= '</div>';
125 129
 
126 130
 		$html .= '<div>';
127
-		$html .= '<label>data-isso-avatar-fg: ['.$Language->get('colorcode').']</label>';
131
+		$html .= '<label>data-isso-avatar-fg: ['.$Language->get('color-code').']</label>';
128 132
 		$html .= '<input name="dataAvatarFg" id="jsdataavatarfg" type="text" value="'.$this->getDbField('dataAvatarFg').'">';
129 133
 		$html .= '</div>';
130 134
 		
131 135
 		$html .= '<div>';
132
-		$html .= '<label>data-isso-avatar-bg: ['.$Language->get('colorcode').']</label>';
136
+		$html .= '<label>data-isso-avatar-bg: ['.$Language->get('color-code').']</label>';
133 137
 		$html .= '<input name="dataAvatarBg" id="jsdataavatarbg" type="text" value="'.$this->getDbField('dataAvatarBg').'">';
134 138
 		$html .= '</div>';
135 139
 		
136 140
 		$html .= '<div>';
137
-		$html .= '<label>data-isso-lang: ['.$Language->get('language code').']</label>';
141
+		$html .= '<label>data-isso-lang: ['.$Language->get('language-code').']</label>';
138 142
 		$html .= '<input name="dataLang" id="jsdatalang" type="text" value="'.$this->getDbField('dataLang').'">';
139 143
 		$html .= '</div>';
140 144
 		
@@ -154,7 +158,7 @@ class pluginIsso extends Plugin {
154 158
 		$html .= '</div>';
155 159
 		
156 160
 		$html .= '<div>';
157
-		$html .= '<label>'.$Language->get('Path to custom CSS file').'</label>';
161
+		$html .= '<label>'.$Language->get('path-to-css').'</label>';
158 162
 		$html .= '<input name="pathCss" id="jsdatacss" type="text" value="'.$this->getDbField('pathCss').'">';
159 163
 		$html .= '</div>';
160 164
 
@@ -167,7 +171,7 @@ class pluginIsso extends Plugin {
167 171
 
168 172
 		if( $this->enable ) {
169 173
 			$html = '<section id="isso-thread"></section>';
170
-			$html .= '<noscript>'.$Language->get('The comment section powered by isso can not be shown without javascript!');
174
+			$html .= '<noscript>'.$Language->get('no-script-msg');
171 175
 			$html .= '</noscript>';
172 176
 			return $html;
173 177
 		}
@@ -185,7 +189,7 @@ class pluginIsso extends Plugin {
185 189
 
186 190
 		if( $this->enable && !$Url->notFound()) {
187 191
 			$html = '<section id="isso-thread"></section>';
188
-			$html .= '<noscript>'.$Language->get('The comment section powered by isso can not be shown without javascript!');
192
+			$html .= '<noscript>'.$Language->get('no-script-msg');
189 193
 			$html .= '</noscript>';
190 194
 			return $html;
191 195
 		}

Loading…
Cancel
Save