WP Native Dashboard - Version 1.2.0

Version Description

Download this release

Release Info

Developer codestyling
Plugin Icon wp plugin WP Native Dashboard
Version 1.2.0
Comparing to
See all releases

Code changes from version 1.1.0 to 1.2.0

automattic.php CHANGED
@@ -84,6 +84,7 @@ class wp_native_dashboard_automattic {
84
  title: '<b><?php echo js_escape('Error', 'wp-native-dashboard'); ?></b>',
85
  buttons: {
86
  "<?php echo js_escape(__('Ok', 'wp-native-dashboard')); ?>": function() {
 
87
  jQuery('#csp-credentials').dialog("close");
88
  },
89
  },
@@ -356,6 +357,12 @@ class wp_native_dashboard_automattic {
356
  $file = basename($_POST['file']);
357
  $dir = $wp_filesystem->find_folder(WP_LANG_DIR.'/');
358
  $filename = $dir.$file;
 
 
 
 
 
 
359
 
360
  ob_start();
361
  if ( WP_Filesystem($credentials) && is_object($wp_filesystem) ) {
@@ -422,6 +429,20 @@ class wp_native_dashboard_automattic {
422
  ob_start();
423
  if ( WP_Filesystem($credentials) && is_object($wp_filesystem) ) {
424
  $dir = $wp_filesystem->find_folder(WP_LANG_DIR.'/');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
425
  $done = $wp_filesystem->put_contents($dir.$file, $response_mo['body']);
426
  if ($done) {
427
  global $wp_version;
84
  title: '<b><?php echo js_escape('Error', 'wp-native-dashboard'); ?></b>',
85
  buttons: {
86
  "<?php echo js_escape(__('Ok', 'wp-native-dashboard')); ?>": function() {
87
+ elem.parent().find('.ajax-feedback').css({visibility : 'hidden' });
88
  jQuery('#csp-credentials').dialog("close");
89
  },
90
  },
357
  $file = basename($_POST['file']);
358
  $dir = $wp_filesystem->find_folder(WP_LANG_DIR.'/');
359
  $filename = $dir.$file;
360
+ if (($dir === false) || !$wp_filesystem->is_file($filename)) {
361
+ header('Status: 404 Not Found');
362
+ header('HTTP/1.1 404 Not Found');
363
+ echo sprintf(__("The language file %s you tried to delete does not exist.", 'wp-native-dashboard'), $file);
364
+ exit();
365
+ }
366
 
367
  ob_start();
368
  if ( WP_Filesystem($credentials) && is_object($wp_filesystem) ) {
429
  ob_start();
430
  if ( WP_Filesystem($credentials) && is_object($wp_filesystem) ) {
431
  $dir = $wp_filesystem->find_folder(WP_LANG_DIR.'/');
432
+ if (!$wp_filesystem->is_dir($dir)) {
433
+ //US original versions doesn't contain any languages folder !
434
+ if($wp_filesystem->method == 'direct')
435
+ $dir = WP_LANG_DIR.'/';
436
+ else
437
+ $dir = '/'.str_replace(ABSPATH, '', WP_LANG_DIR.'/');
438
+ if ($wp_filesystem->mkdir($dir) === false) {
439
+ ob_end_clean();
440
+ header('Status: 404 Not Found');
441
+ header('HTTP/1.1 404 Not Found');
442
+ echo sprintf(__("The missing languages directory could not be created at '%s'.", 'wp-native-dashboard'), $dir);
443
+ exit();
444
+ }
445
+ }
446
  $done = $wp_filesystem->put_contents($dir.$file, $response_mo['body']);
447
  if ($done) {
448
  global $wp_version;
i18n/wp-native-dashboard-de_DE.mo CHANGED
Binary file
i18n/wp-native-dashboard-de_DE.po CHANGED
@@ -19,35 +19,35 @@ msgstr ""
19
  "X-Poedit-SearchPath-0: .\n"
20
  "X-Textdomain-Support: yes"
21
 
22
- #: automattic.php:237
23
  #@ wp-native-dashboard
24
  msgid "The network connection to <strong>svn.automattic.com</strong> is currently not available. Please try again later."
25
  msgstr "Die Netzwerkverbindung zu <strong>svn.automattic.com</strong> ist derzeit nicht verfügbar. Bitte versuchen Sie es später erneut."
26
 
27
- #: automattic.php:284
28
- #: automattic.php:421
29
  #: wp-native-dashboard.php:315
30
  #@ wp-native-dashboard
31
  msgid "right to left"
32
  msgstr "rechts nach links"
33
 
34
- #: automattic.php:287
35
  #@ wp-native-dashboard
36
  msgid "Download"
37
  msgstr "Herunterladen"
38
 
39
- #: automattic.php:349
40
  #@ wp-native-dashboard
41
  msgid "You do not have the permission to delete language files."
42
  msgstr "Sie haben nicht die Berechtigung zum Löschen von Sprachdateien."
43
 
44
- #: automattic.php:423
45
  #: wp-native-dashboard.php:317
46
  #@ wp-native-dashboard
47
  msgid "Delete"
48
  msgstr "Löschen"
49
 
50
- #: automattic.php:434
51
  #@ wp-native-dashboard
52
  msgid "The download is currently not available."
53
  msgstr "Der Download ist derzeit nicht verfügbar."
@@ -137,27 +137,27 @@ msgstr "Native Dashboard Einstellungen"
137
  msgid "cleanup all settings at plugin deactivation."
138
  msgstr "alle Einstellungen bei Plugin-Deaktivierung entfernen."
139
 
140
- #: automattic.php:54
141
- #: automattic.php:75
142
- #: automattic.php:154
143
- #: automattic.php:175
144
  #@ wp-native-dashboard
145
  msgid "Ok"
146
  msgstr "Ok"
147
 
148
- #: automattic.php:58
149
- #: automattic.php:158
150
  #@ wp-native-dashboard
151
  msgid "Cancel"
152
  msgstr "Abbrechen"
153
 
154
- #: automattic.php:173
155
  #@ wp-native-dashboard
156
  msgid "Error"
157
  msgstr "Fehler"
158
 
159
- #: automattic.php:52
160
- #: automattic.php:152
161
  #@ wp-native-dashboard
162
  msgid "User Credentials required"
163
  msgstr "Anmeldeinformationen erforderlich"
@@ -167,3 +167,15 @@ msgstr "Anmeldeinformationen erforderlich"
167
  msgid "A lot of languages should be provided by polyglott translation teams as download into your WordPress installation."
168
  msgstr "Viele Sprachen werden von Polyglott Übersetzungsteams als Download für Ihre WordPress-Installation angeboten."
169
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  "X-Poedit-SearchPath-0: .\n"
20
  "X-Textdomain-Support: yes"
21
 
22
+ #: automattic.php:262
23
  #@ wp-native-dashboard
24
  msgid "The network connection to <strong>svn.automattic.com</strong> is currently not available. Please try again later."
25
  msgstr "Die Netzwerkverbindung zu <strong>svn.automattic.com</strong> ist derzeit nicht verfügbar. Bitte versuchen Sie es später erneut."
26
 
27
+ #: automattic.php:309
28
+ #: automattic.php:466
29
  #: wp-native-dashboard.php:315
30
  #@ wp-native-dashboard
31
  msgid "right to left"
32
  msgstr "rechts nach links"
33
 
34
+ #: automattic.php:312
35
  #@ wp-native-dashboard
36
  msgid "Download"
37
  msgstr "Herunterladen"
38
 
39
+ #: automattic.php:380
40
  #@ wp-native-dashboard
41
  msgid "You do not have the permission to delete language files."
42
  msgstr "Sie haben nicht die Berechtigung zum Löschen von Sprachdateien."
43
 
44
+ #: automattic.php:468
45
  #: wp-native-dashboard.php:317
46
  #@ wp-native-dashboard
47
  msgid "Delete"
48
  msgstr "Löschen"
49
 
50
+ #: automattic.php:479
51
  #@ wp-native-dashboard
52
  msgid "The download is currently not available."
53
  msgstr "Der Download ist derzeit nicht verfügbar."
137
  msgid "cleanup all settings at plugin deactivation."
138
  msgstr "alle Einstellungen bei Plugin-Deaktivierung entfernen."
139
 
140
+ #: automattic.php:62
141
+ #: automattic.php:86
142
+ #: automattic.php:176
143
+ #: automattic.php:200
144
  #@ wp-native-dashboard
145
  msgid "Ok"
146
  msgstr "Ok"
147
 
148
+ #: automattic.php:66
149
+ #: automattic.php:180
150
  #@ wp-native-dashboard
151
  msgid "Cancel"
152
  msgstr "Abbrechen"
153
 
154
+ #: automattic.php:198
155
  #@ wp-native-dashboard
156
  msgid "Error"
157
  msgstr "Fehler"
158
 
159
+ #: automattic.php:60
160
+ #: automattic.php:174
161
  #@ wp-native-dashboard
162
  msgid "User Credentials required"
163
  msgstr "Anmeldeinformationen erforderlich"
167
  msgid "A lot of languages should be provided by polyglott translation teams as download into your WordPress installation."
168
  msgstr "Viele Sprachen werden von Polyglott Übersetzungsteams als Download für Ihre WordPress-Installation angeboten."
169
 
170
+ #: automattic.php:363
171
+ #, php-format
172
+ #@ wp-native-dashboard
173
+ msgid "The language file %s you tried to delete does not exist."
174
+ msgstr "Die Sprachdatei %s die Sie löschen möchten, gibt es nicht."
175
+
176
+ #: automattic.php:442
177
+ #, php-format
178
+ #@ wp-native-dashboard
179
+ msgid "The missing languages directory could not be created at '%s'."
180
+ msgstr "Das fehlenden Sprachdatei-Verzeichnis konnte nicht erstellt werden in '%s'."
181
+
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: codestyling
3
  Tags: wordpress, dashboard, multi-lingual, languages, backend, localization, plugin
4
  Requires at least: 2.7
5
  Tested up to: 2.9-rare
6
- Stable tag: 1.1.0
7
 
8
  Enables selection of administration language either by logon, dashboard quick switcher or user profile setting.
9
 
@@ -46,6 +46,10 @@ Please visit [the official website](http://www.code-styling.de/english/developme
46
 
47
  == Changelog ==
48
 
 
 
 
 
49
  = Version 1.1.0 =
50
  * full support of core file system usage (FTP if necessary)
51
  * locale to language name mapping introduced (user friendly namings)
3
  Tags: wordpress, dashboard, multi-lingual, languages, backend, localization, plugin
4
  Requires at least: 2.7
5
  Tested up to: 2.9-rare
6
+ Stable tag: 1.2.0
7
 
8
  Enables selection of administration language either by logon, dashboard quick switcher or user profile setting.
9
 
46
 
47
  == Changelog ==
48
 
49
+ = Version 1.2.0 =
50
+ * missing language folder (US original version) denies download
51
+ * accidentally empty language display, if no mo is installed (en_US is always inline)
52
+
53
  = Version 1.1.0 =
54
  * full support of core file system usage (FTP if necessary)
55
  * locale to language name mapping introduced (user friendly namings)
wp-native-dashboard.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.code-styling.de/english/development/wordpress-plugin-wp-
5
  Description: You can configure your blog working at administration with different languages depends on users choice and capabilities the admin has been enabled.
6
  Author: Heiko Rabe
7
  Author URI: http://www.code-styling.de/
8
- Version: 1.1.0
9
 
10
  License:
11
  ==============================================================================
@@ -44,7 +44,7 @@ include_once(dirname(__file__).'/language-names.php');
44
  function wp_native_dashboard_collect_installed_languages() {
45
  $installed = array();
46
  $d = @opendir(WP_LANG_DIR);
47
- if (!$d) return false;
48
  while(false !== ($item = readdir($d))) {
49
  $f = str_replace("\\", '/', WP_LANG_DIR.'/' . $item);
50
  if ('.' == $item || '..' == $item)
5
  Description: You can configure your blog working at administration with different languages depends on users choice and capabilities the admin has been enabled.
6
  Author: Heiko Rabe
7
  Author URI: http://www.code-styling.de/
8
+ Version: 1.2.0
9
 
10
  License:
11
  ==============================================================================
44
  function wp_native_dashboard_collect_installed_languages() {
45
  $installed = array();
46
  $d = @opendir(WP_LANG_DIR);
47
+ if (!$d) return array('en_US');
48
  while(false !== ($item = readdir($d))) {
49
  $f = str_replace("\\", '/', WP_LANG_DIR.'/' . $item);
50
  if ('.' == $item || '..' == $item)