Version Description
Download this release
Release Info
Developer | codestyling |
Plugin | WP Native Dashboard |
Version | 1.3.7 |
Comparing to | |
See all releases |
Code changes from version 1.3.6 to 1.3.7
- automattic.php +12 -6
- css/style-rtl.css +15 -4
- css/style.css +15 -5
- i18n/wp-native-dashboard-de_DE.po +33 -33
- img/countries/ba.gif +0 -0
- img/countries/gl.gif +0 -0
- img/countries/ka.gif +0 -0
- img/countries/mm.gif +0 -0
- img/countries/mn.gif +0 -0
- langswitcher.php +43 -4
- language-names.php +7 -0
- readme.txt +18 -2
- wp-native-dashboard.php +43 -5
automattic.php
CHANGED
@@ -120,7 +120,12 @@ class wp_native_dashboard_automattic {
|
|
120 |
jQuery('#svn-downloads .progressbar').show();
|
121 |
jQuery('#csp-check-repository').parent().find('.ajax-feedback').css({visibility : 'visible' });
|
122 |
}
|
123 |
-
jQuery.post("admin-ajax.php", {
|
|
|
|
|
|
|
|
|
|
|
124 |
function(data) {
|
125 |
if (data != '') {
|
126 |
jQuery('#table_svn_i18n>tbody').append(data);
|
@@ -270,18 +275,18 @@ class wp_native_dashboard_automattic {
|
|
270 |
<script type="text/javascript">
|
271 |
//<![CDATA[
|
272 |
var wp_native_dashboard_repository = {
|
273 |
-
error: "<?php if(
|
274 |
entries: <?php echo count($langs); ?>,
|
275 |
langs : ["<?php echo implode('","', $langs); ?>"]
|
276 |
}
|
277 |
-
if(wp_native_dashboard_repository.error.length
|
278 |
jQuery('#csp-check-repository').hide();
|
279 |
jQuery('#table_svn_i18n tbody').html('');
|
280 |
analyse_automattic_repository(0);
|
281 |
}
|
282 |
else {
|
283 |
jQuery('#csp-check-repository').hide();
|
284 |
-
jQuery('#table_svn_i18n tbody').html('<tr><td align="center">'+wp_native_dashboard_repository.error+'</td></tr>').parent().show();
|
285 |
}
|
286 |
//]]>
|
287 |
</script>
|
@@ -292,9 +297,10 @@ class wp_native_dashboard_automattic {
|
|
292 |
function on_ajax_wp_native_dashboard_check_language() {
|
293 |
$lang = $_POST['language'];
|
294 |
$row = $_POST['row'];
|
|
|
295 |
$installed = wp_native_dashboard_collect_installed_languages();
|
296 |
$url = "http://svn.automattic.com/wordpress-i18n/".$lang."/tags/".$this->tagged_version."/messages/";
|
297 |
-
$url_root = "http://svn.automattic.com/wordpress-i18n/".$lang."/tags/".$
|
298 |
$response_mo = @wp_remote_get($url);
|
299 |
$found = false;
|
300 |
$tagged = $this->tagged_version;
|
@@ -305,7 +311,7 @@ class wp_native_dashboard_automattic {
|
|
305 |
}
|
306 |
if ($found === false) {
|
307 |
$url = $url_root;
|
308 |
-
$tagged = $
|
309 |
$response_mo = @wp_remote_get($url);
|
310 |
if (!is_wp_error($response_mo)&&($response_mo['response']['code'] != 404)){
|
311 |
if (preg_match("/href\s*=\s*\"".$lang."\.mo\"/", $response_mo['body']))
|
120 |
jQuery('#svn-downloads .progressbar').show();
|
121 |
jQuery('#csp-check-repository').parent().find('.ajax-feedback').css({visibility : 'visible' });
|
122 |
}
|
123 |
+
jQuery.post("admin-ajax.php", {
|
124 |
+
action: 'wp_native_dashboard_check_language',
|
125 |
+
language: wp_native_dashboard_repository.langs[idx],
|
126 |
+
row: last_auto_row,
|
127 |
+
ver: jQuery('#svn_wp_version').val()
|
128 |
+
},
|
129 |
function(data) {
|
130 |
if (data != '') {
|
131 |
jQuery('#table_svn_i18n>tbody').append(data);
|
275 |
<script type="text/javascript">
|
276 |
//<![CDATA[
|
277 |
var wp_native_dashboard_repository = {
|
278 |
+
error: "<?php if($error) { echo __('The network connection to <strong>svn.automattic.com</strong> is currently not available. Please try again later.', 'wp-native-dashboard'); } ?>",
|
279 |
entries: <?php echo count($langs); ?>,
|
280 |
langs : ["<?php echo implode('","', $langs); ?>"]
|
281 |
}
|
282 |
+
if(wp_native_dashboard_repository.error.length==0) {
|
283 |
jQuery('#csp-check-repository').hide();
|
284 |
jQuery('#table_svn_i18n tbody').html('');
|
285 |
analyse_automattic_repository(0);
|
286 |
}
|
287 |
else {
|
288 |
jQuery('#csp-check-repository').hide();
|
289 |
+
jQuery('#table_svn_i18n tbody').html('<tr><td align="center">'+wp_native_dashboard_repository.error+'</td></tr><tr><td align="center"><small><em><?php if($error) { echo esc_js(implode('<br/>',$response->get_error_messages())); } ?></em></small></td></tr>').parent().show();
|
290 |
}
|
291 |
//]]>
|
292 |
</script>
|
297 |
function on_ajax_wp_native_dashboard_check_language() {
|
298 |
$lang = $_POST['language'];
|
299 |
$row = $_POST['row'];
|
300 |
+
$ver = isset($_POST['ver']) ? $_POST['ver'] : $this->root_tagged_version;
|
301 |
$installed = wp_native_dashboard_collect_installed_languages();
|
302 |
$url = "http://svn.automattic.com/wordpress-i18n/".$lang."/tags/".$this->tagged_version."/messages/";
|
303 |
+
$url_root = "http://svn.automattic.com/wordpress-i18n/".$lang."/tags/".$ver."/messages/";
|
304 |
$response_mo = @wp_remote_get($url);
|
305 |
$found = false;
|
306 |
$tagged = $this->tagged_version;
|
311 |
}
|
312 |
if ($found === false) {
|
313 |
$url = $url_root;
|
314 |
+
$tagged = $ver;
|
315 |
$response_mo = @wp_remote_get($url);
|
316 |
if (!is_wp_error($response_mo)&&($response_mo['response']['code'] != 404)){
|
317 |
if (preg_match("/href\s*=\s*\"".$lang."\.mo\"/", $response_mo['body']))
|
css/style-rtl.css
CHANGED
@@ -85,14 +85,19 @@ html:first-child>b\ody #csp-langswitcher-current span { padding-right: 0px !impo
|
|
85 |
}
|
86 |
|
87 |
.csp-langoption { display: block; text-decoration: none !important; color:#ddd; padding: 0px 0px 2px 0px; background:transparent url(../img/countries/unknown.gif) no-repeat right 4px;}
|
88 |
-
.csp-langoption span {padding-right: 24px;}
|
89 |
html:first-child>b\ody .csp-langoption span { padding-right: 0 !important; padding-left: 24px; } /*opera*/
|
90 |
*:first-child + html .csp-langoption span { padding-right: 0 !important; padding-left: 24px; } /*IE*/
|
91 |
|
92 |
a.csp-langoption:hover { background-color: #FFFABF !important; color: #000; }
|
93 |
|
|
|
|
|
|
|
|
|
|
|
94 |
#wp-admin-bar-wpnd-lang-cur a span span { padding-right: 24px !important; }
|
95 |
-
.csp-langoption-adminbar a span { padding-right: 24px !important;
|
96 |
|
97 |
.lang-installed { background-color: #E7F7D3 !important; }
|
98 |
|
@@ -106,7 +111,7 @@ a.csp-langoption:hover { background-color: #FFFABF !important; color: #000; }
|
|
106 |
.csp-af, .csp-af_AF { background:transparent url(../img/countries/af.gif) no-repeat right 2px !important; }
|
107 |
.csp-bn_BD { background:transparent url(../img/countries/bd.gif) no-repeat right 2px !important; }
|
108 |
.csp-bg_BG { background:transparent url(../img/countries/bg.gif) no-repeat right 2px !important; }
|
109 |
-
.csp-zh_CN { background:transparent url(../img/countries/cn.gif) no-repeat right 2px !important; }
|
110 |
.csp-zh_HK { background:transparent url(../img/countries/hk.gif) no-repeat right 2px !important; }
|
111 |
.csp-zh_TW { background:transparent url(../img/countries/tw.gif) no-repeat right 2px !important; }
|
112 |
.csp-cs_CZ { background:transparent url(../img/countries/cz.gif) no-repeat right 2px !important; }
|
@@ -118,7 +123,8 @@ a.csp-langoption:hover { background-color: #FFFABF !important; color: #000; }
|
|
118 |
.csp-en_US { background:transparent url(../img/countries/us.gif) no-repeat right 2px !important; }
|
119 |
.csp-eo, .csp-eo_EO { background:transparent url(../img/countries/eo.gif) no-repeat right 2px !important; }
|
120 |
.csp-et, .csp-et_EE { background:transparent url(../img/countries/ee.gif) no-repeat right 2px !important; }
|
121 |
-
.csp-es, .csp-es_ES, .csp-
|
|
|
122 |
.csp-eu, .csp-eu_ES { background:transparent url(../img/countries/eu.gif) no-repeat right 2px !important; }
|
123 |
.csp-fa_IR { background:transparent url(../img/countries/ir.gif) no-repeat right 2px !important; }
|
124 |
.csp-fi, .csp-fi_FI { background:transparent url(../img/countries/fi.gif) no-repeat right 2px !important; }
|
@@ -132,6 +138,7 @@ a.csp-langoption:hover { background-color: #FFFABF !important; color: #000; }
|
|
132 |
.csp-id_ID, .csp-su_ID { background:transparent url(../img/countries/id.gif) no-repeat right 2px !important; }
|
133 |
.csp-it_IT { background:transparent url(../img/countries/it.gif) no-repeat right 2px !important; }
|
134 |
.csp-ja, .csp-ja_JP { background:transparent url(../img/countries/jp.gif) no-repeat right 2px !important; }
|
|
|
135 |
.csp-ko_KR { background:transparent url(../img/countries/kr.gif) no-repeat right 2px !important; }
|
136 |
.csp-ky_KY { background:transparent url(../img/countries/ky.gif) no-repeat right 2px !important; }
|
137 |
.csp-lv, .csp-lv_LV { background:transparent url(../img/countries/lv.gif) no-repeat right 2px !important; }
|
@@ -158,3 +165,7 @@ a.csp-langoption:hover { background-color: #FFFABF !important; color: #000; }
|
|
158 |
.csp-th, .csp-th_TH { background:transparent url(../img/countries/th.gif) no-repeat right 2px !important; }
|
159 |
.csp-tr, .csp-tr_TR, .csp-ckb { background:transparent url(../img/countries/tr.gif) no-repeat right 2px !important; }
|
160 |
.csp-uz_UZ { background:transparent url(../img/countries/uz.gif) no-repeat right 2px !important; }
|
|
|
|
|
|
|
|
85 |
}
|
86 |
|
87 |
.csp-langoption { display: block; text-decoration: none !important; color:#ddd; padding: 0px 0px 2px 0px; background:transparent url(../img/countries/unknown.gif) no-repeat right 4px;}
|
88 |
+
.csp-langoption span, #wp-admin-bar-wpnd-lang-cur span { padding-right: 24px; }
|
89 |
html:first-child>b\ody .csp-langoption span { padding-right: 0 !important; padding-left: 24px; } /*opera*/
|
90 |
*:first-child + html .csp-langoption span { padding-right: 0 !important; padding-left: 24px; } /*IE*/
|
91 |
|
92 |
a.csp-langoption:hover { background-color: #FFFABF !important; color: #000; }
|
93 |
|
94 |
+
#wp-admin-bar-wpnd-lang-cur * { text-shadow: none !important; }
|
95 |
+
#wp-admin-bar-wpnd-lang-cur a * , #wp-admin-bar-wpnd-lang-cur.hover > a > span * { color: #21759B; }
|
96 |
+
#wp-admin-bar-wpnd-lang-cur > a > span * { color: #fff; }
|
97 |
+
|
98 |
+
|
99 |
#wp-admin-bar-wpnd-lang-cur a span span { padding-right: 24px !important; }
|
100 |
+
.csp-langoption-adminbar a span { padding-right: 24px !important; }
|
101 |
|
102 |
.lang-installed { background-color: #E7F7D3 !important; }
|
103 |
|
111 |
.csp-af, .csp-af_AF { background:transparent url(../img/countries/af.gif) no-repeat right 2px !important; }
|
112 |
.csp-bn_BD { background:transparent url(../img/countries/bd.gif) no-repeat right 2px !important; }
|
113 |
.csp-bg_BG { background:transparent url(../img/countries/bg.gif) no-repeat right 2px !important; }
|
114 |
+
.csp-zh_CN, .csp-ug_CN { background:transparent url(../img/countries/cn.gif) no-repeat right 2px !important; }
|
115 |
.csp-zh_HK { background:transparent url(../img/countries/hk.gif) no-repeat right 2px !important; }
|
116 |
.csp-zh_TW { background:transparent url(../img/countries/tw.gif) no-repeat right 2px !important; }
|
117 |
.csp-cs_CZ { background:transparent url(../img/countries/cz.gif) no-repeat right 2px !important; }
|
123 |
.csp-en_US { background:transparent url(../img/countries/us.gif) no-repeat right 2px !important; }
|
124 |
.csp-eo, .csp-eo_EO { background:transparent url(../img/countries/eo.gif) no-repeat right 2px !important; }
|
125 |
.csp-et, .csp-et_EE { background:transparent url(../img/countries/ee.gif) no-repeat right 2px !important; }
|
126 |
+
.csp-es, .csp-es_ES, .csp-ca { background:transparent url(../img/countries/es.gif) no-repeat right 2px !important; }
|
127 |
+
.csp-gl_ES { background:transparent url(../img/countries/gl.gif) no-repeat right 2px !important; }
|
128 |
.csp-eu, .csp-eu_ES { background:transparent url(../img/countries/eu.gif) no-repeat right 2px !important; }
|
129 |
.csp-fa_IR { background:transparent url(../img/countries/ir.gif) no-repeat right 2px !important; }
|
130 |
.csp-fi, .csp-fi_FI { background:transparent url(../img/countries/fi.gif) no-repeat right 2px !important; }
|
138 |
.csp-id_ID, .csp-su_ID { background:transparent url(../img/countries/id.gif) no-repeat right 2px !important; }
|
139 |
.csp-it_IT { background:transparent url(../img/countries/it.gif) no-repeat right 2px !important; }
|
140 |
.csp-ja, .csp-ja_JP { background:transparent url(../img/countries/jp.gif) no-repeat right 2px !important; }
|
141 |
+
.csp-ka_GE { background:transparent url(../img/countries/ka.gif) no-repeat right 2px !important; }
|
142 |
.csp-ko_KR { background:transparent url(../img/countries/kr.gif) no-repeat right 2px !important; }
|
143 |
.csp-ky_KY { background:transparent url(../img/countries/ky.gif) no-repeat right 2px !important; }
|
144 |
.csp-lv, .csp-lv_LV { background:transparent url(../img/countries/lv.gif) no-repeat right 2px !important; }
|
165 |
.csp-th, .csp-th_TH { background:transparent url(../img/countries/th.gif) no-repeat right 2px !important; }
|
166 |
.csp-tr, .csp-tr_TR, .csp-ckb { background:transparent url(../img/countries/tr.gif) no-repeat right 2px !important; }
|
167 |
.csp-uz_UZ { background:transparent url(../img/countries/uz.gif) no-repeat right 2px !important; }
|
168 |
+
.csp-mn_MN { background:transparent url(../img/countries/mn.gif) no-repeat right 2px !important; }
|
169 |
+
.csp-bs_BA { background:transparent url(../img/countries/ba.gif) no-repeat right 2px !important; }
|
170 |
+
.csp-en_CA { background:transparent url(../img/countries/ca.gif) no-repeat right 2px !important; }
|
171 |
+
.csp-es_PE { background:transparent url(../img/countries/pe.gif) no-repeat right 2px !important; }
|
css/style.css
CHANGED
@@ -83,9 +83,14 @@
|
|
83 |
}
|
84 |
|
85 |
.csp-langoption { display: block; text-decoration: none !important; color:#ddd; padding: 0px 0px 0px 0px; margin-bottom: 6px; background:transparent url(../img/countries/unknown.gif) no-repeat 2px 3px;}
|
86 |
-
.csp-langoption span { padding-left: 24px; }
|
87 |
a.csp-langoption:hover { background-color: #FFFABF !important; color: #000; }
|
88 |
|
|
|
|
|
|
|
|
|
|
|
89 |
#wp-admin-bar-wpnd-lang-cur a span span { padding-left: 24px !important; }
|
90 |
#wp-admin-bar-wpnd-lang-cur span { display: inline !important; padding-right: 0.4em; }
|
91 |
.csp-langoption-adminbar a span { padding-left: 24px !important; background-position: 2px top !important; }
|
@@ -102,7 +107,7 @@ a.csp-langoption:hover { background-color: #FFFABF !important; color: #000; }
|
|
102 |
.csp-af_AF { background:transparent url(../img/countries/af.gif) no-repeat 2px top !important; }
|
103 |
.csp-bn_BD { background:transparent url(../img/countries/bd.gif) no-repeat 2px top !important; }
|
104 |
.csp-bg_BG { background:transparent url(../img/countries/bg.gif) no-repeat 2px top !important; }
|
105 |
-
.csp-zh_CN { background:transparent url(../img/countries/cn.gif) no-repeat 2px top !important; }
|
106 |
.csp-zh_HK { background:transparent url(../img/countries/hk.gif) no-repeat 2px top !important; }
|
107 |
.csp-zh_TW { background:transparent url(../img/countries/tw.gif) no-repeat 2px top !important; }
|
108 |
.csp-cs_CZ { background:transparent url(../img/countries/cz.gif) no-repeat 2px top !important; }
|
@@ -118,9 +123,9 @@ a.csp-langoption:hover { background-color: #FFFABF !important; color: #000; }
|
|
118 |
.csp-eo,
|
119 |
.csp-eo_EO { background:transparent url(../img/countries/eo.gif) no-repeat 2px top !important; }
|
120 |
.csp-es,
|
121 |
-
.csp-es_ES,
|
122 |
-
.csp-
|
123 |
-
.csp-
|
124 |
.csp-et,
|
125 |
.csp-et_EE { background:transparent url(../img/countries/ee.gif) no-repeat 2px top !important; }
|
126 |
.csp-eu,
|
@@ -144,6 +149,7 @@ a.csp-langoption:hover { background-color: #FFFABF !important; color: #000; }
|
|
144 |
.csp-it_IT { background:transparent url(../img/countries/it.gif) no-repeat 2px top !important; }
|
145 |
.csp-ja,
|
146 |
.csp-ja_JP { background:transparent url(../img/countries/jp.gif) no-repeat 2px top !important; }
|
|
|
147 |
.csp-ko_KR { background:transparent url(../img/countries/kr.gif) no-repeat 2px top !important; }
|
148 |
.csp-ky_KY { background:transparent url(../img/countries/ky.gif) no-repeat 2px top !important; }
|
149 |
.csp-lv,
|
@@ -180,3 +186,7 @@ a.csp-langoption:hover { background-color: #FFFABF !important; color: #000; }
|
|
180 |
.csp-tr_TR,
|
181 |
.csp-ckb { background:transparent url(../img/countries/tr.gif) no-repeat 2px top !important; }
|
182 |
.csp-uz_UZ { background:transparent url(../img/countries/uz.gif) no-repeat 2px top !important; }
|
|
|
|
|
|
|
|
83 |
}
|
84 |
|
85 |
.csp-langoption { display: block; text-decoration: none !important; color:#ddd; padding: 0px 0px 0px 0px; margin-bottom: 6px; background:transparent url(../img/countries/unknown.gif) no-repeat 2px 3px;}
|
86 |
+
.csp-langoption span, #wp-admin-bar-wpnd-lang-cur span { padding-left: 24px; }
|
87 |
a.csp-langoption:hover { background-color: #FFFABF !important; color: #000; }
|
88 |
|
89 |
+
#wp-admin-bar-wpnd-lang-cur * { text-shadow: none !important; }
|
90 |
+
#wp-admin-bar-wpnd-lang-cur a * , #wp-admin-bar-wpnd-lang-cur.hover > a > span * { color: #21759B; }
|
91 |
+
#wp-admin-bar-wpnd-lang-cur > a > span * { color: #fff; }
|
92 |
+
|
93 |
+
|
94 |
#wp-admin-bar-wpnd-lang-cur a span span { padding-left: 24px !important; }
|
95 |
#wp-admin-bar-wpnd-lang-cur span { display: inline !important; padding-right: 0.4em; }
|
96 |
.csp-langoption-adminbar a span { padding-left: 24px !important; background-position: 2px top !important; }
|
107 |
.csp-af_AF { background:transparent url(../img/countries/af.gif) no-repeat 2px top !important; }
|
108 |
.csp-bn_BD { background:transparent url(../img/countries/bd.gif) no-repeat 2px top !important; }
|
109 |
.csp-bg_BG { background:transparent url(../img/countries/bg.gif) no-repeat 2px top !important; }
|
110 |
+
.csp-zh_CN, .csp-ug_CN { background:transparent url(../img/countries/cn.gif) no-repeat 2px top !important; }
|
111 |
.csp-zh_HK { background:transparent url(../img/countries/hk.gif) no-repeat 2px top !important; }
|
112 |
.csp-zh_TW { background:transparent url(../img/countries/tw.gif) no-repeat 2px top !important; }
|
113 |
.csp-cs_CZ { background:transparent url(../img/countries/cz.gif) no-repeat 2px top !important; }
|
123 |
.csp-eo,
|
124 |
.csp-eo_EO { background:transparent url(../img/countries/eo.gif) no-repeat 2px top !important; }
|
125 |
.csp-es,
|
126 |
+
.csp-es_ES,
|
127 |
+
.csp-ca { background:transparent url(../img/countries/es.gif) no-repeat 2px top !important; }
|
128 |
+
.csp-gl_ES { background:transparent url(../img/countries/gl.gif) no-repeat 2px top !important; }
|
129 |
.csp-et,
|
130 |
.csp-et_EE { background:transparent url(../img/countries/ee.gif) no-repeat 2px top !important; }
|
131 |
.csp-eu,
|
149 |
.csp-it_IT { background:transparent url(../img/countries/it.gif) no-repeat 2px top !important; }
|
150 |
.csp-ja,
|
151 |
.csp-ja_JP { background:transparent url(../img/countries/jp.gif) no-repeat 2px top !important; }
|
152 |
+
.csp-ka_GE { background:transparent url(../img/countries/ka.gif) no-repeat 2px top !important; }
|
153 |
.csp-ko_KR { background:transparent url(../img/countries/kr.gif) no-repeat 2px top !important; }
|
154 |
.csp-ky_KY { background:transparent url(../img/countries/ky.gif) no-repeat 2px top !important; }
|
155 |
.csp-lv,
|
186 |
.csp-tr_TR,
|
187 |
.csp-ckb { background:transparent url(../img/countries/tr.gif) no-repeat 2px top !important; }
|
188 |
.csp-uz_UZ { background:transparent url(../img/countries/uz.gif) no-repeat 2px top !important; }
|
189 |
+
.csp-mn_MN { background:transparent url(../img/countries/mn.gif) no-repeat 2px top !important; }
|
190 |
+
.csp-bs_BA { background:transparent url(../img/countries/ba.gif) no-repeat 2px top !important; }
|
191 |
+
.csp-en_CA { background:transparent url(../img/countries/ca.gif) no-repeat 2px top !important; }
|
192 |
+
.csp-es_PE { background:transparent url(../img/countries/pe.gif) no-repeat 2px top !important; }
|
i18n/wp-native-dashboard-de_DE.po
CHANGED
@@ -19,40 +19,40 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
"X-Textdomain-Support: yes"
|
21 |
|
22 |
-
#: automattic.php:
|
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:
|
28 |
-
#: automattic.php:
|
29 |
-
#: wp-native-dashboard.php:
|
30 |
#@ wp-native-dashboard
|
31 |
msgid "right to left"
|
32 |
msgstr "rechts nach links"
|
33 |
|
34 |
-
#: automattic.php:
|
35 |
#@ wp-native-dashboard
|
36 |
msgid "Download"
|
37 |
msgstr "Herunterladen"
|
38 |
|
39 |
-
#: automattic.php:
|
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:
|
45 |
-
#: wp-native-dashboard.php:
|
46 |
#@ wp-native-dashboard
|
47 |
msgid "Delete"
|
48 |
msgstr "Löschen"
|
49 |
|
50 |
-
#: automattic.php:
|
51 |
#@ wp-native-dashboard
|
52 |
msgid "The download is currently not available."
|
53 |
msgstr "Der Download ist derzeit nicht verfügbar."
|
54 |
|
55 |
-
#: wp-native-dashboard.php:
|
56 |
#@ wp-native-dashboard
|
57 |
msgid "Available for download:"
|
58 |
msgstr "verfügbare Downloads:"
|
@@ -68,114 +68,114 @@ msgstr "Sprache"
|
|
68 |
msgid "Select your prefered language that will be used to show the Admin Center."
|
69 |
msgstr "Wählen Sie Ihre bevorzugte Sprache, die im Admin-Center verwendet werden soll."
|
70 |
|
71 |
-
#: wp-native-dashboard.php:
|
72 |
#@ wp-native-dashboard
|
73 |
msgid "Native Dashboard"
|
74 |
msgstr "Native Dashboard"
|
75 |
|
76 |
-
#: wp-native-dashboard.php:
|
77 |
#@ default
|
78 |
msgid "Cheatin’ uh?"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: wp-native-dashboard.php:
|
82 |
#@ wp-native-dashboard
|
83 |
msgid "Capabilities"
|
84 |
msgstr "Fähigkeiten"
|
85 |
|
86 |
-
#: wp-native-dashboard.php:
|
87 |
#@ wp-native-dashboard
|
88 |
msgid "Installed Languages"
|
89 |
msgstr "Installierte Sprachen"
|
90 |
|
91 |
-
#: wp-native-dashboard.php:
|
92 |
#@ wp-native-dashboard
|
93 |
msgid "Downloads"
|
94 |
msgstr "Downloads"
|
95 |
|
96 |
-
#: wp-native-dashboard.php:
|
97 |
#@ wp-native-dashboard
|
98 |
msgid "extend the <em>WordPress Logon Screen</em> to choose a language too."
|
99 |
msgstr "erweitere den <em>WordPress Anmelde-Bildschirm</em> um eine Sprache auszuwählen."
|
100 |
|
101 |
-
#: wp-native-dashboard.php:
|
102 |
#@ wp-native-dashboard
|
103 |
msgid "extend <a href=\"profile.php\" target=\"_blank\">Personal Profile Settings</a> with users prefered language."
|
104 |
msgstr "erweitere die <a href=\"profile.php\" target=\"_blank\">persönlichen Profil-Einstellungen</a> um eine benutzerspezifische Sprachwahl."
|
105 |
|
106 |
-
#: wp-native-dashboard.php:
|
107 |
#@ wp-native-dashboard
|
108 |
msgid "extend <em>Admin Center Headline</em> with a language quick selector."
|
109 |
msgstr "erweitere die <em>Admin-Center Kopfzeile</em> mit einer Sprachumschaltung."
|
110 |
|
111 |
-
#: wp-native-dashboard.php:
|
112 |
#@ wp-native-dashboard
|
113 |
msgid "read more »"
|
114 |
msgstr "Lesen Sie mehr »"
|
115 |
|
116 |
-
#: wp-native-dashboard.php:
|
117 |
#@ wp-native-dashboard
|
118 |
msgid "If you are using one of the current available <a href=\"http://wordpress.org/extend/plugins/search.php?q=multilingual\" target=\"_blank\">multilingual plugins</a>, which permits you writing and publishing posts in several languages, you may also have the need, that native speaking authors should be able to choose their prefered backend language while writing. It's your decision if and how this will be possible. This feature set does not impact your frontend language (defined by config or by any multilingual plugin)."
|
119 |
msgstr "Wenn Sie eines der aktuellen <a href=\"http://wordpress.org/extend/plugins/search.php?q=multilingual\" target=\"_blank\">Plugins für Mehrsprachigkeit</a> benutzen, das Ihnen erlaubt, Beiträge in mehreren Sprachen zu schreiben und zu veröffentlichen, könnte es notwendig werden, dass die muttersprachlichen Autoren in der Lage sein sollten, in ihrer bevorzugte Sprache im Backend zu schreiben. Es ist Ihre Entscheidung, ob und wie dies möglich sein wird. Diese Funktionen haben keinen Einfluss auf Ihre Frontend Sprache (definiert durch die Konfiguration oder durch ein Plugin für Mehrsprachigkeit)."
|
120 |
|
121 |
-
#: wp-native-dashboard.php:
|
122 |
#@ wp-native-dashboard
|
123 |
msgid "Your WordPress installation currectly supports this list of languages at your Dashboard."
|
124 |
msgstr "Ihre WordPress-Installation unterstützt momentan diese Liste der Sprachen in Ihrem Dashboard."
|
125 |
|
126 |
-
#: wp-native-dashboard.php:
|
127 |
#@ wp-native-dashboard
|
128 |
msgid "check repository »"
|
129 |
msgstr "prüfen »"
|
130 |
|
131 |
-
#: wp-native-dashboard.php:
|
132 |
#@ wp-native-dashboard
|
133 |
msgid "Native Dashboard Settings"
|
134 |
msgstr "Native Dashboard Einstellungen"
|
135 |
|
136 |
-
#: wp-native-dashboard.php:
|
137 |
#@ wp-native-dashboard
|
138 |
msgid "cleanup all settings at plugin deactivation."
|
139 |
msgstr "alle Einstellungen bei Plugin-Deaktivierung entfernen."
|
140 |
|
141 |
#: automattic.php:71
|
142 |
#: automattic.php:95
|
143 |
-
#: automattic.php:
|
144 |
-
#: automattic.php:
|
145 |
#@ wp-native-dashboard
|
146 |
msgid "Ok"
|
147 |
msgstr "Ok"
|
148 |
|
149 |
#: automattic.php:75
|
150 |
-
#: automattic.php:
|
151 |
#@ wp-native-dashboard
|
152 |
msgid "Cancel"
|
153 |
msgstr "Abbrechen"
|
154 |
|
155 |
#: automattic.php:93
|
156 |
-
#: automattic.php:
|
157 |
#@ wp-native-dashboard
|
158 |
msgid "Error"
|
159 |
msgstr "Fehler"
|
160 |
|
161 |
#: automattic.php:69
|
162 |
-
#: automattic.php:
|
163 |
#@ wp-native-dashboard
|
164 |
msgid "User Credentials required"
|
165 |
msgstr "Anmeldeinformationen erforderlich"
|
166 |
|
167 |
-
#: wp-native-dashboard.php:
|
168 |
#@ wp-native-dashboard
|
169 |
msgid "A lot of languages should be provided by polyglott translation teams as download into your WordPress installation."
|
170 |
msgstr "Viele Sprachen werden von Polyglott Übersetzungsteams als Download für Ihre WordPress-Installation angeboten."
|
171 |
|
172 |
-
#: automattic.php:
|
173 |
#, php-format
|
174 |
#@ wp-native-dashboard
|
175 |
msgid "The language file %s you tried to delete does not exist."
|
176 |
msgstr "Die Sprachdatei %s die Sie löschen möchten, gibt es nicht."
|
177 |
|
178 |
-
#: automattic.php:
|
179 |
#, php-format
|
180 |
#@ wp-native-dashboard
|
181 |
msgid "The missing languages directory could not be created at '%s'."
|
@@ -186,7 +186,7 @@ msgstr "Das fehlenden Sprachdatei-Verzeichnis konnte nicht erstellt werden in '%
|
|
186 |
msgid "-n.a.-"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: wp-native-dashboard.php:
|
190 |
#@ wp-native-dashboard
|
191 |
msgid "extend <em>WordPress Admin Bar</em> with a language quick selector."
|
192 |
msgstr "erweitere die <em>WordPress Admin Bar</em> mit einer Sprachumschaltung."
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
"X-Textdomain-Support: yes"
|
21 |
|
22 |
+
#: automattic.php:278
|
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:326
|
28 |
+
#: automattic.php:532
|
29 |
+
#: wp-native-dashboard.php:348
|
30 |
#@ wp-native-dashboard
|
31 |
msgid "right to left"
|
32 |
msgstr "rechts nach links"
|
33 |
|
34 |
+
#: automattic.php:329
|
35 |
#@ wp-native-dashboard
|
36 |
msgid "Download"
|
37 |
msgstr "Herunterladen"
|
38 |
|
39 |
+
#: automattic.php:399
|
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:534
|
45 |
+
#: wp-native-dashboard.php:350
|
46 |
#@ wp-native-dashboard
|
47 |
msgid "Delete"
|
48 |
msgstr "Löschen"
|
49 |
|
50 |
+
#: automattic.php:545
|
51 |
#@ wp-native-dashboard
|
52 |
msgid "The download is currently not available."
|
53 |
msgstr "Der Download ist derzeit nicht verfügbar."
|
54 |
|
55 |
+
#: wp-native-dashboard.php:387
|
56 |
#@ wp-native-dashboard
|
57 |
msgid "Available for download:"
|
58 |
msgstr "verfügbare Downloads:"
|
68 |
msgid "Select your prefered language that will be used to show the Admin Center."
|
69 |
msgstr "Wählen Sie Ihre bevorzugte Sprache, die im Admin-Center verwendet werden soll."
|
70 |
|
71 |
+
#: wp-native-dashboard.php:252
|
72 |
#@ wp-native-dashboard
|
73 |
msgid "Native Dashboard"
|
74 |
msgstr "Native Dashboard"
|
75 |
|
76 |
+
#: wp-native-dashboard.php:271
|
77 |
#@ default
|
78 |
msgid "Cheatin’ uh?"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: wp-native-dashboard.php:302
|
82 |
#@ wp-native-dashboard
|
83 |
msgid "Capabilities"
|
84 |
msgstr "Fähigkeiten"
|
85 |
|
86 |
+
#: wp-native-dashboard.php:303
|
87 |
#@ wp-native-dashboard
|
88 |
msgid "Installed Languages"
|
89 |
msgstr "Installierte Sprachen"
|
90 |
|
91 |
+
#: wp-native-dashboard.php:304
|
92 |
#@ wp-native-dashboard
|
93 |
msgid "Downloads"
|
94 |
msgstr "Downloads"
|
95 |
|
96 |
+
#: wp-native-dashboard.php:311
|
97 |
#@ wp-native-dashboard
|
98 |
msgid "extend the <em>WordPress Logon Screen</em> to choose a language too."
|
99 |
msgstr "erweitere den <em>WordPress Anmelde-Bildschirm</em> um eine Sprache auszuwählen."
|
100 |
|
101 |
+
#: wp-native-dashboard.php:314
|
102 |
#@ wp-native-dashboard
|
103 |
msgid "extend <a href=\"profile.php\" target=\"_blank\">Personal Profile Settings</a> with users prefered language."
|
104 |
msgstr "erweitere die <a href=\"profile.php\" target=\"_blank\">persönlichen Profil-Einstellungen</a> um eine benutzerspezifische Sprachwahl."
|
105 |
|
106 |
+
#: wp-native-dashboard.php:319
|
107 |
#@ wp-native-dashboard
|
108 |
msgid "extend <em>Admin Center Headline</em> with a language quick selector."
|
109 |
msgstr "erweitere die <em>Admin-Center Kopfzeile</em> mit einer Sprachumschaltung."
|
110 |
|
111 |
+
#: wp-native-dashboard.php:329
|
112 |
#@ wp-native-dashboard
|
113 |
msgid "read more »"
|
114 |
msgstr "Lesen Sie mehr »"
|
115 |
|
116 |
+
#: wp-native-dashboard.php:329
|
117 |
#@ wp-native-dashboard
|
118 |
msgid "If you are using one of the current available <a href=\"http://wordpress.org/extend/plugins/search.php?q=multilingual\" target=\"_blank\">multilingual plugins</a>, which permits you writing and publishing posts in several languages, you may also have the need, that native speaking authors should be able to choose their prefered backend language while writing. It's your decision if and how this will be possible. This feature set does not impact your frontend language (defined by config or by any multilingual plugin)."
|
119 |
msgstr "Wenn Sie eines der aktuellen <a href=\"http://wordpress.org/extend/plugins/search.php?q=multilingual\" target=\"_blank\">Plugins für Mehrsprachigkeit</a> benutzen, das Ihnen erlaubt, Beiträge in mehreren Sprachen zu schreiben und zu veröffentlichen, könnte es notwendig werden, dass die muttersprachlichen Autoren in der Lage sein sollten, in ihrer bevorzugte Sprache im Backend zu schreiben. Es ist Ihre Entscheidung, ob und wie dies möglich sein wird. Diese Funktionen haben keinen Einfluss auf Ihre Frontend Sprache (definiert durch die Konfiguration oder durch ein Plugin für Mehrsprachigkeit)."
|
120 |
|
121 |
+
#: wp-native-dashboard.php:337
|
122 |
#@ wp-native-dashboard
|
123 |
msgid "Your WordPress installation currectly supports this list of languages at your Dashboard."
|
124 |
msgstr "Ihre WordPress-Installation unterstützt momentan diese Liste der Sprachen in Ihrem Dashboard."
|
125 |
|
126 |
+
#: wp-native-dashboard.php:396
|
127 |
#@ wp-native-dashboard
|
128 |
msgid "check repository »"
|
129 |
msgstr "prüfen »"
|
130 |
|
131 |
+
#: wp-native-dashboard.php:417
|
132 |
#@ wp-native-dashboard
|
133 |
msgid "Native Dashboard Settings"
|
134 |
msgstr "Native Dashboard Einstellungen"
|
135 |
|
136 |
+
#: wp-native-dashboard.php:436
|
137 |
#@ wp-native-dashboard
|
138 |
msgid "cleanup all settings at plugin deactivation."
|
139 |
msgstr "alle Einstellungen bei Plugin-Deaktivierung entfernen."
|
140 |
|
141 |
#: automattic.php:71
|
142 |
#: automattic.php:95
|
143 |
+
#: automattic.php:192
|
144 |
+
#: automattic.php:216
|
145 |
#@ wp-native-dashboard
|
146 |
msgid "Ok"
|
147 |
msgstr "Ok"
|
148 |
|
149 |
#: automattic.php:75
|
150 |
+
#: automattic.php:196
|
151 |
#@ wp-native-dashboard
|
152 |
msgid "Cancel"
|
153 |
msgstr "Abbrechen"
|
154 |
|
155 |
#: automattic.php:93
|
156 |
+
#: automattic.php:214
|
157 |
#@ wp-native-dashboard
|
158 |
msgid "Error"
|
159 |
msgstr "Fehler"
|
160 |
|
161 |
#: automattic.php:69
|
162 |
+
#: automattic.php:190
|
163 |
#@ wp-native-dashboard
|
164 |
msgid "User Credentials required"
|
165 |
msgstr "Anmeldeinformationen erforderlich"
|
166 |
|
167 |
+
#: wp-native-dashboard.php:384
|
168 |
#@ wp-native-dashboard
|
169 |
msgid "A lot of languages should be provided by polyglott translation teams as download into your WordPress installation."
|
170 |
msgstr "Viele Sprachen werden von Polyglott Übersetzungsteams als Download für Ihre WordPress-Installation angeboten."
|
171 |
|
172 |
+
#: automattic.php:382
|
173 |
#, php-format
|
174 |
#@ wp-native-dashboard
|
175 |
msgid "The language file %s you tried to delete does not exist."
|
176 |
msgstr "Die Sprachdatei %s die Sie löschen möchten, gibt es nicht."
|
177 |
|
178 |
+
#: automattic.php:463
|
179 |
#, php-format
|
180 |
#@ wp-native-dashboard
|
181 |
msgid "The missing languages directory could not be created at '%s'."
|
186 |
msgid "-n.a.-"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: wp-native-dashboard.php:325
|
190 |
#@ wp-native-dashboard
|
191 |
msgid "extend <em>WordPress Admin Bar</em> with a language quick selector."
|
192 |
msgstr "erweitere die <em>WordPress Admin Bar</em> mit einer Sprachumschaltung."
|
img/countries/ba.gif
CHANGED
Binary file
|
img/countries/gl.gif
ADDED
Binary file
|
img/countries/ka.gif
ADDED
Binary file
|
img/countries/mm.gif
CHANGED
Binary file
|
img/countries/mn.gif
ADDED
Binary file
|
langswitcher.php
CHANGED
@@ -35,12 +35,15 @@ class wp_native_dashboard_langswitcher {
|
|
35 |
}
|
36 |
}
|
37 |
if (function_exists("admin_url")) {
|
38 |
-
$this->admin_url = rtrim(
|
39 |
}else{
|
40 |
-
$this->admin_url = rtrim(
|
41 |
}
|
42 |
|
43 |
add_action( 'bp_adminbar_menus', array(&$this, 'bp_adminbar_switcher_menu') , 1 );
|
|
|
|
|
|
|
44 |
}
|
45 |
|
46 |
function bp_adminbar_switcher_menu() {
|
@@ -63,6 +66,20 @@ class wp_native_dashboard_langswitcher {
|
|
63 |
<?php
|
64 |
}
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
function on_print_dashboard_switcher() {
|
67 |
$langs = wp_native_dashboard_collect_installed_languages();
|
68 |
$loc = get_locale();
|
@@ -88,11 +105,29 @@ class wp_native_dashboard_langswitcher {
|
|
88 |
function csl_extend_dashboard_header(html) {
|
89 |
<?php if($this->as_head) : ?>
|
90 |
if (html) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
jQuery("#csp-langswitcher-actions").remove();
|
92 |
jQuery("h1:first").before(html);
|
93 |
-
|
|
|
|
|
|
|
94 |
jQuery("h1:first").before('<?php $this->on_print_dashboard_switcher(); ?>');
|
95 |
}
|
|
|
96 |
jQuery("#csp-langswitcher").click(function() {
|
97 |
jQuery(this).blur();
|
98 |
jQuery("#csp-langoptions").toggle();
|
@@ -136,7 +171,11 @@ class wp_native_dashboard_langswitcher {
|
|
136 |
}
|
137 |
|
138 |
function on_ajax_wp_native_dashboard_refresh_switcher() {
|
139 |
-
$this->
|
|
|
|
|
|
|
|
|
140 |
exit();
|
141 |
}
|
142 |
}
|
35 |
}
|
36 |
}
|
37 |
if (function_exists("admin_url")) {
|
38 |
+
$this->admin_url = rtrim(admin_url(), '/');
|
39 |
}else{
|
40 |
+
$this->admin_url = rtrim(get_option('siteurl').'/wp-admin/', '/');
|
41 |
}
|
42 |
|
43 |
add_action( 'bp_adminbar_menus', array(&$this, 'bp_adminbar_switcher_menu') , 1 );
|
44 |
+
|
45 |
+
global $wp_version;
|
46 |
+
$this->no_dashboard_headline = version_compare($wp_version, '3.0', '>=');
|
47 |
}
|
48 |
|
49 |
function bp_adminbar_switcher_menu() {
|
66 |
<?php
|
67 |
}
|
68 |
|
69 |
+
function on_print_admin_bar_switcher() {
|
70 |
+
$langs = wp_native_dashboard_collect_installed_languages();
|
71 |
+
$loc = get_locale();
|
72 |
+
?>
|
73 |
+
<li class="menupop csp-langoption" id="wp-admin-bar-wpnd-lang-cur"><a href="#" aria-haspopup="true" tabindex="10" class="ab-item"><span class="csp-<?php echo $loc; ?>"><?php echo wp_native_dashboard_get_name_of($loc); ?></span></a><div class="ab-sub-wrapper"><ul class="ab-submenu" id="wp-admin-bar-wpnd-lang-cur-default">
|
74 |
+
<?php foreach($langs as $lang) {
|
75 |
+
if ($lang == $loc) continue;
|
76 |
+
?>
|
77 |
+
<li class=" csp-langoption csp-langoption-adminbar" id="wp-admin-bar-wpnd-lang-<?php echo $lang; ?>"><a href="#" tabindex="10" class="ab-item"><span hreflang="<?php echo $lang; ?>" class="csp-<?php echo $lang; ?>"><?php echo wp_native_dashboard_get_name_of($lang); ?></span></a></li>
|
78 |
+
<?php } ?>
|
79 |
+
</ul></div></li>
|
80 |
+
<?php
|
81 |
+
}
|
82 |
+
|
83 |
function on_print_dashboard_switcher() {
|
84 |
$langs = wp_native_dashboard_collect_installed_languages();
|
85 |
$loc = get_locale();
|
105 |
function csl_extend_dashboard_header(html) {
|
106 |
<?php if($this->as_head) : ?>
|
107 |
if (html) {
|
108 |
+
<?php if ($this->no_dashboard_headline): ?>
|
109 |
+
jQuery('#wp-admin-bar-wpnd-lang-cur').replaceWith(html);
|
110 |
+
jQuery('#wp-admin-bar-wpnd-lang-cur').hoverIntent({
|
111 |
+
over: function(e){
|
112 |
+
jQuery(this).addClass('hover');
|
113 |
+
},
|
114 |
+
out: function(e){
|
115 |
+
jQuery(this).removeClass('hover');
|
116 |
+
},
|
117 |
+
timeout: 180,
|
118 |
+
sensitivity: 7,
|
119 |
+
interval: 100
|
120 |
+
});
|
121 |
+
<?php else : ?>
|
122 |
jQuery("#csp-langswitcher-actions").remove();
|
123 |
jQuery("h1:first").before(html);
|
124 |
+
<?php endif; ?>
|
125 |
+
}
|
126 |
+
<?php if (!$this->no_dashboard_headline): ?>
|
127 |
+
else{
|
128 |
jQuery("h1:first").before('<?php $this->on_print_dashboard_switcher(); ?>');
|
129 |
}
|
130 |
+
<?php endif; ?>
|
131 |
jQuery("#csp-langswitcher").click(function() {
|
132 |
jQuery(this).blur();
|
133 |
jQuery("#csp-langoptions").toggle();
|
171 |
}
|
172 |
|
173 |
function on_ajax_wp_native_dashboard_refresh_switcher() {
|
174 |
+
if($this->no_dashboard_headline) {
|
175 |
+
$this->on_print_admin_bar_switcher();
|
176 |
+
}else{
|
177 |
+
$this->on_print_dashboard_switcher();
|
178 |
+
}
|
179 |
exit();
|
180 |
}
|
181 |
}
|
language-names.php
CHANGED
@@ -5,6 +5,7 @@ $wpnd_language_names = array(
|
|
5 |
'ar' => 'العربية/الإمارات',
|
6 |
'be' => 'Беларускі',
|
7 |
'bg' => 'Български',
|
|
|
8 |
'by' => 'Беларускі',
|
9 |
'ca' => 'Сatalà',
|
10 |
'ckb' => 'Kurdi',
|
@@ -23,6 +24,7 @@ $wpnd_language_names = array(
|
|
23 |
'fr' => 'Français',
|
24 |
'fy' => 'Frysk',
|
25 |
'ga' => 'Gaeilge',
|
|
|
26 |
'he' => 'עברית',
|
27 |
'hi' => 'हिन्दी',
|
28 |
'hr' => 'Hrvatski',
|
@@ -32,6 +34,7 @@ $wpnd_language_names = array(
|
|
32 |
'is' => 'Íslenska',
|
33 |
'it' => 'Italiano',
|
34 |
'ja' => "日本語",
|
|
|
35 |
'kk' => 'Қазақша',
|
36 |
'ko' => '한국어',
|
37 |
'ky' => 'Кыргызча',
|
@@ -39,6 +42,8 @@ $wpnd_language_names = array(
|
|
39 |
'lt' => 'Lietuvių',
|
40 |
'lv' => 'Latviešu',
|
41 |
'mk' => 'Македонски',
|
|
|
|
|
42 |
'nb' => 'Norsk Bokmål',
|
43 |
'nl' => 'Nederlands',
|
44 |
'nn' => 'Norsk',
|
@@ -48,11 +53,13 @@ $wpnd_language_names = array(
|
|
48 |
'ru' => 'Русский',
|
49 |
'sk' => 'Slovenčina',
|
50 |
'sl' => 'Slovenščina',
|
|
|
51 |
'sr' => 'Српски',
|
52 |
'sv' => 'Svenska',
|
53 |
'th' => 'ไทย/ประเทศไทย',
|
54 |
'tl' => 'Tagalog',
|
55 |
'tr' => 'Türkçe',
|
|
|
56 |
'uk' => 'Українська',
|
57 |
'vi' => 'Tiếng Việt',
|
58 |
'xh' => 'isiXhosa',
|
5 |
'ar' => 'العربية/الإمارات',
|
6 |
'be' => 'Беларускі',
|
7 |
'bg' => 'Български',
|
8 |
+
'bs' => 'Bosanski',
|
9 |
'by' => 'Беларускі',
|
10 |
'ca' => 'Сatalà',
|
11 |
'ckb' => 'Kurdi',
|
24 |
'fr' => 'Français',
|
25 |
'fy' => 'Frysk',
|
26 |
'ga' => 'Gaeilge',
|
27 |
+
'gl' => 'Galego',
|
28 |
'he' => 'עברית',
|
29 |
'hi' => 'हिन्दी',
|
30 |
'hr' => 'Hrvatski',
|
34 |
'is' => 'Íslenska',
|
35 |
'it' => 'Italiano',
|
36 |
'ja' => "日本語",
|
37 |
+
'ka' => "ქართული",
|
38 |
'kk' => 'Қазақша',
|
39 |
'ko' => '한국어',
|
40 |
'ky' => 'Кыргызча',
|
42 |
'lt' => 'Lietuvių',
|
43 |
'lv' => 'Latviešu',
|
44 |
'mk' => 'Македонски',
|
45 |
+
'mn' => 'ᠮᠣᠨᠭᠭᠣᠯ',
|
46 |
+
'my' => 'myanma bhasa',
|
47 |
'nb' => 'Norsk Bokmål',
|
48 |
'nl' => 'Nederlands',
|
49 |
'nn' => 'Norsk',
|
53 |
'ru' => 'Русский',
|
54 |
'sk' => 'Slovenčina',
|
55 |
'sl' => 'Slovenščina',
|
56 |
+
'sq' => 'gjuha shqipe',
|
57 |
'sr' => 'Српски',
|
58 |
'sv' => 'Svenska',
|
59 |
'th' => 'ไทย/ประเทศไทย',
|
60 |
'tl' => 'Tagalog',
|
61 |
'tr' => 'Türkçe',
|
62 |
+
'ug' => '中文',
|
63 |
'uk' => 'Українська',
|
64 |
'vi' => 'Tiếng Việt',
|
65 |
'xh' => 'isiXhosa',
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: codestyling
|
3 |
Tags: wordpress, dashboard, multi-lingual, languages, backend, localization, plugin
|
4 |
Requires at least: 2.7
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 1.3.
|
7 |
|
8 |
Enables selection of administration language either by logon, dashboard quick switcher or user profile setting.
|
9 |
|
@@ -21,6 +21,7 @@ Several options can be enabled and also combinations out of:
|
|
21 |
The plugin also includes a repository scan on demand (svn.automattic.com) for available language file downloads.
|
22 |
You can download the required files into your installation and immediately use them at admin pages.
|
23 |
The new administration page is restricted to administrators only, the profile setting also work for subscriber.
|
|
|
24 |
|
25 |
= Download and File Management =
|
26 |
|
@@ -48,6 +49,21 @@ Please visit [the official website](http://www.code-styling.de/english/developme
|
|
48 |
|
49 |
== Changelog ==
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
= Version 1.3.6 =
|
52 |
* feature: supports now BuddyPress own Adminbar to be able to switch the languages.
|
53 |
* remark: BuddyPress badly supports RTL languages especially for AdminBar, so my AdminBar switcher may not work for RTL (BuddyPress Bug)
|
2 |
Contributors: codestyling
|
3 |
Tags: wordpress, dashboard, multi-lingual, languages, backend, localization, plugin
|
4 |
Requires at least: 2.7
|
5 |
+
Tested up to: 3.4-beta4-20838
|
6 |
+
Stable tag: 1.3.7
|
7 |
|
8 |
Enables selection of administration language either by logon, dashboard quick switcher or user profile setting.
|
9 |
|
21 |
The plugin also includes a repository scan on demand (svn.automattic.com) for available language file downloads.
|
22 |
You can download the required files into your installation and immediately use them at admin pages.
|
23 |
The new administration page is restricted to administrators only, the profile setting also work for subscriber.
|
24 |
+
The dashboard quick switcher handling has been changed startion WordPress version 3.0 because there is no longer a header. You can use the quickswitcher at the admin bar anyway, this is prefered use case at higher versions of WordPress.
|
25 |
|
26 |
= Download and File Management =
|
27 |
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= Version 1.3.7 =
|
53 |
+
* bugfix: stylesheet correction for admin bar integration
|
54 |
+
* bugfix: svn download doesn't work at some installations but doesn't show the error for
|
55 |
+
* bugfix: case sensitive admin url may lead to unpredicable behavior (especially at multisite folder installs)
|
56 |
+
* bugfix: WordPress versions equal or higher than 3.0 will not longer support head switcher but admin bar switcher
|
57 |
+
* bugfix: downloaded language will be show immediately at the selector dropdown after success.
|
58 |
+
* bugfix: delete language file but active selected will be reverted to 'en_US'
|
59 |
+
* feature: language search now provides a selectable fallback version for language file downloads
|
60 |
+
* feature: supports Galego language
|
61 |
+
* feature: supports Mongolian language
|
62 |
+
* feature: supports Georgian language
|
63 |
+
* feature: supports Uighur language
|
64 |
+
* feature: supports Albanian language
|
65 |
+
* feature: supports Burmese language
|
66 |
+
|
67 |
= Version 1.3.6 =
|
68 |
* feature: supports now BuddyPress own Adminbar to be able to switch the languages.
|
69 |
* remark: BuddyPress badly supports RTL languages especially for AdminBar, so my AdminBar switcher may not work for RTL (BuddyPress Bug)
|
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.3.
|
9 |
|
10 |
License:
|
11 |
==============================================================================
|
@@ -76,7 +76,7 @@ function wp_native_dashboard_get_name_of($locale) {
|
|
76 |
}
|
77 |
|
78 |
function wp_native_dashboard_is_rtl_language($locale) {
|
79 |
-
$rtl = array('ar', 'ckb', 'fa', 'he', 'ur');
|
80 |
return in_array(array_shift(split('_',$locale)), $rtl);
|
81 |
}
|
82 |
|
@@ -128,6 +128,9 @@ class wp_native_dashboard {
|
|
128 |
add_action('admin_post_wp_native_dashoard_save_settings', array(&$this, 'on_save_settings'));
|
129 |
|
130 |
$this->i18n_loaded = false;
|
|
|
|
|
|
|
131 |
}
|
132 |
|
133 |
//check required versions
|
@@ -197,6 +200,8 @@ class wp_native_dashboard {
|
|
197 |
else
|
198 |
$u->wp_native_dashboard_language = 'en_US';
|
199 |
}
|
|
|
|
|
200 |
return $u->wp_native_dashboard_language;
|
201 |
}
|
202 |
}
|
@@ -229,7 +234,7 @@ class wp_native_dashboard {
|
|
229 |
//load the language switcher ajax module if it has been enabled to provide the dropdown extenstion
|
230 |
if ($this->options->enable_language_switcher || $this->options->enable_adminbar_switcher) {
|
231 |
require_once(dirname(__FILE__).'/langswitcher.php');
|
232 |
-
$this->langswitcher = new wp_native_dashboard_langswitcher($this->plugin_url, $this->options->enable_language_switcher, $this->options->enable_adminbar_switcher);
|
233 |
$this->_load_translation_file();
|
234 |
wp_enqueue_script('jquery');
|
235 |
}
|
@@ -307,10 +312,13 @@ class wp_native_dashboard {
|
|
307 |
</p><p>
|
308 |
<input id="enable_profile_extension" type="checkbox" value="1" name="enable_profile_extension"<?php if ($this->options->enable_profile_extension) echo ' checked="checked"'; ?> />
|
309 |
<?php _e('extend <a href="profile.php" target="_blank">Personal Profile Settings</a> with users prefered language.', "wp-native-dashboard"); ?>
|
310 |
-
</p
|
|
|
|
|
311 |
<input id="enable_language_switcher" type="checkbox" value="1" name="enable_language_switcher"<?php if ($this->options->enable_language_switcher) echo ' checked="checked"'; ?> />
|
312 |
<?php _e('extend <em>Admin Center Headline</em> with a language quick selector.', "wp-native-dashboard"); ?>
|
313 |
</p>
|
|
|
314 |
<?php if (function_exists('is_admin_bar_showing')) : ?>
|
315 |
<p>
|
316 |
<input id="enable_adminbar_switcher" type="checkbox" value="1" name="enable_adminbar_switcher"<?php if ($this->options->enable_adminbar_switcher) echo ' checked="checked"'; ?> />
|
@@ -349,13 +357,43 @@ class wp_native_dashboard {
|
|
349 |
<?php
|
350 |
}
|
351 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
function on_print_metabox_automattic_i18n() {
|
|
|
353 |
$color = '#21759B';
|
354 |
$perc = 0.0;
|
355 |
$revision = null;
|
356 |
?>
|
357 |
<p><?php echo sprintf(__('A lot of languages should be provided by polyglott translation teams as download into your WordPress installation.','wp-native-dashboard'), $revision); ?></p>
|
358 |
-
<p class="csp-read-more center"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
<div id="svn-downloads">
|
360 |
<div class="progressbar" style="display:none;">
|
361 |
<div class="widget" style="height:12px; border:1px solid #DDDDDD; background-color:#F9F9F9;width:100%; margin: 3px 0;">
|
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.3.7
|
9 |
|
10 |
License:
|
11 |
==============================================================================
|
76 |
}
|
77 |
|
78 |
function wp_native_dashboard_is_rtl_language($locale) {
|
79 |
+
$rtl = array('ar', 'ckb', 'fa', 'he', 'ur', 'ug');
|
80 |
return in_array(array_shift(split('_',$locale)), $rtl);
|
81 |
}
|
82 |
|
128 |
add_action('admin_post_wp_native_dashoard_save_settings', array(&$this, 'on_save_settings'));
|
129 |
|
130 |
$this->i18n_loaded = false;
|
131 |
+
|
132 |
+
global $wp_version;
|
133 |
+
$this->no_dashboard_headline = version_compare($wp_version, '3.0', '>=');
|
134 |
}
|
135 |
|
136 |
//check required versions
|
200 |
else
|
201 |
$u->wp_native_dashboard_language = 'en_US';
|
202 |
}
|
203 |
+
if(!@file_exists(WP_LANG_DIR.'/' . $u->wp_native_dashboard_language.'.mo'))
|
204 |
+
return $loc ? $loc : 'en_US';
|
205 |
return $u->wp_native_dashboard_language;
|
206 |
}
|
207 |
}
|
234 |
//load the language switcher ajax module if it has been enabled to provide the dropdown extenstion
|
235 |
if ($this->options->enable_language_switcher || $this->options->enable_adminbar_switcher) {
|
236 |
require_once(dirname(__FILE__).'/langswitcher.php');
|
237 |
+
$this->langswitcher = new wp_native_dashboard_langswitcher($this->plugin_url, $this->options->enable_language_switcher || $this->options->enable_adminbar_switcher, $this->options->enable_adminbar_switcher);
|
238 |
$this->_load_translation_file();
|
239 |
wp_enqueue_script('jquery');
|
240 |
}
|
312 |
</p><p>
|
313 |
<input id="enable_profile_extension" type="checkbox" value="1" name="enable_profile_extension"<?php if ($this->options->enable_profile_extension) echo ' checked="checked"'; ?> />
|
314 |
<?php _e('extend <a href="profile.php" target="_blank">Personal Profile Settings</a> with users prefered language.', "wp-native-dashboard"); ?>
|
315 |
+
</p>
|
316 |
+
<?php if ($this->no_dashboard_headline == FALSE) : ?>
|
317 |
+
<p>
|
318 |
<input id="enable_language_switcher" type="checkbox" value="1" name="enable_language_switcher"<?php if ($this->options->enable_language_switcher) echo ' checked="checked"'; ?> />
|
319 |
<?php _e('extend <em>Admin Center Headline</em> with a language quick selector.', "wp-native-dashboard"); ?>
|
320 |
</p>
|
321 |
+
<?php endif; ?>
|
322 |
<?php if (function_exists('is_admin_bar_showing')) : ?>
|
323 |
<p>
|
324 |
<input id="enable_adminbar_switcher" type="checkbox" value="1" name="enable_adminbar_switcher"<?php if ($this->options->enable_adminbar_switcher) echo ' checked="checked"'; ?> />
|
357 |
<?php
|
358 |
}
|
359 |
|
360 |
+
function __list_versions_by_de_de() {
|
361 |
+
$url = 'http://svn.automattic.com/wordpress-i18n/de_DE/tags/';
|
362 |
+
$response = @wp_remote_get($url);
|
363 |
+
$error = is_wp_error($response);
|
364 |
+
$versions = array();
|
365 |
+
if(!$error) {
|
366 |
+
$lines = split("\n",$response['body']);
|
367 |
+
foreach($lines as $line) {
|
368 |
+
if (preg_match("/href\s*=\s*\"(\S+)\/\"/", $line, $hits)) {
|
369 |
+
if (in_array($hits[1], array('..', 'http://subversion.tigris.org'))) continue;
|
370 |
+
$versions[] = $hits[1];
|
371 |
+
}
|
372 |
+
}
|
373 |
+
sort($versions);
|
374 |
+
}
|
375 |
+
return array_reverse($versions);
|
376 |
+
}
|
377 |
+
|
378 |
function on_print_metabox_automattic_i18n() {
|
379 |
+
global $wp_version;
|
380 |
$color = '#21759B';
|
381 |
$perc = 0.0;
|
382 |
$revision = null;
|
383 |
?>
|
384 |
<p><?php echo sprintf(__('A lot of languages should be provided by polyglott translation teams as download into your WordPress installation.','wp-native-dashboard'), $revision); ?></p>
|
385 |
+
<p class="csp-read-more center">
|
386 |
+
<?php
|
387 |
+
_e('Available for download:', 'wp-native-dashboard');
|
388 |
+
$versions = $this->__list_versions_by_de_de();
|
389 |
+
if(count($versions) > 0) {
|
390 |
+
echo "<select id=\"svn_wp_version\" name=\"svn_wp_version\">";
|
391 |
+
foreach($versions as $version) {
|
392 |
+
echo "<option value=\"$version\"";selected($wp_version, $version);echo">$version</option>";
|
393 |
+
}
|
394 |
+
echo "</select>";
|
395 |
+
}
|
396 |
+
?> <a id="csp-check-repository" href="#svn"><?php _e('check repository »','wp-native-dashboard'); ?></a> <span><img src="images/loading.gif" class="ajax-feedback" title="" alt="" /></span></p>
|
397 |
<div id="svn-downloads">
|
398 |
<div class="progressbar" style="display:none;">
|
399 |
<div class="widget" style="height:12px; border:1px solid #DDDDDD; background-color:#F9F9F9;width:100%; margin: 3px 0;">
|