Changeset 633075
- Timestamp:
- 12/02/2012 04:30:34 PM (13 years ago)
- Location:
- wp-native-dashboard/trunk
- Files:
-
- 1 added
- 4 edited
-
i18n/wp-native-dashboard-de_DE.mo (modified) (previous)
-
i18n/wp-native-dashboard-de_DE.po (modified) (7 diffs)
-
license.txt (added)
-
loginselector.php (modified) (1 diff)
-
wp-native-dashboard.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-native-dashboard/trunk/i18n/wp-native-dashboard-de_DE.po
r547803 r633075 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: WP Native Dashboard v1. 0\n"3 "Project-Id-Version: WP Native Dashboard v1.3.9\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: \n" 6 "PO-Revision-Date: 20 09-07-13 18:07+0200\n"6 "PO-Revision-Date: 2012-12-02 16:13:43+0000\n" 7 7 "Last-Translator: admin <[email protected]>\n" 8 8 "Language-Team: \n" … … 26 26 27 27 #: automattic.php:326 28 #: automattic.php:5 3229 #: wp-native-dashboard.php: 34828 #: automattic.php:550 29 #: wp-native-dashboard.php:504 30 30 #@ wp-native-dashboard 31 31 msgid "right to left" … … 37 37 msgstr "Herunterladen" 38 38 39 #: automattic.php: 39939 #: automattic.php:405 40 40 #@ wp-native-dashboard 41 41 msgid "You do not have the permission to delete language files." 42 42 msgstr "Sie haben nicht die Berechtigung zum Löschen von Sprachdateien." 43 43 44 #: automattic.php:5 3445 #: wp-native-dashboard.php: 35044 #: automattic.php:552 45 #: wp-native-dashboard.php:506 46 46 #@ wp-native-dashboard 47 47 msgid "Delete" 48 48 msgstr "Löschen" 49 49 50 #: automattic.php:5 4550 #: automattic.php:563 51 51 #@ wp-native-dashboard 52 52 msgid "The download is currently not available." 53 53 msgstr "Der Download ist derzeit nicht verfügbar." 54 54 55 #: wp-native-dashboard.php: 38755 #: wp-native-dashboard.php:543 56 56 #@ wp-native-dashboard 57 57 msgid "Available for download:" 58 58 msgstr "verfügbare Downloads:" 59 59 60 #: loginselector.php:2 760 #: loginselector.php:29 61 61 #: personalprofile.php:20 62 62 #@ wp-native-dashboard … … 69 69 msgstr "Wählen Sie Ihre bevorzugte Sprache, die im Admin-Center verwendet werden soll." 70 70 71 #: wp-native-dashboard.php: 25271 #: wp-native-dashboard.php:343 72 72 #@ wp-native-dashboard 73 73 msgid "Native Dashboard" 74 74 msgstr "Native Dashboard" 75 75 76 #: wp-native-dashboard.php: 27176 #: wp-native-dashboard.php:362 77 77 #@ default 78 78 msgid "Cheatin’ uh?" 79 79 msgstr "" 80 80 81 #: wp-native-dashboard.php:3 0281 #: wp-native-dashboard.php:393 82 82 #@ wp-native-dashboard 83 83 msgid "Capabilities" 84 84 msgstr "Fähigkeiten" 85 85 86 #: wp-native-dashboard.php:3 0386 #: wp-native-dashboard.php:394 87 87 #@ wp-native-dashboard 88 88 msgid "Installed Languages" 89 89 msgstr "Installierte Sprachen" 90 90 91 #: wp-native-dashboard.php:3 0491 #: wp-native-dashboard.php:395 92 92 #@ wp-native-dashboard 93 93 msgid "Downloads" 94 94 msgstr "Downloads" 95 95 96 #: wp-native-dashboard.php: 31196 #: wp-native-dashboard.php:454 97 97 #@ wp-native-dashboard 98 98 msgid "extend the <em>WordPress Logon Screen</em> to choose a language too." 99 99 msgstr "erweitere den <em>WordPress Anmelde-Bildschirm</em> um eine Sprache auszuwählen." 100 100 101 #: wp-native-dashboard.php: 314101 #: wp-native-dashboard.php:462 102 102 #@ wp-native-dashboard 103 103 msgid "extend <a href=\"profile.php\" target=\"_blank\">Personal Profile Settings</a> with users prefered language." 104 104 msgstr "erweitere die <a href=\"profile.php\" target=\"_blank\">persönlichen Profil-Einstellungen</a> um eine benutzerspezifische Sprachwahl." 105 105 106 #: wp-native-dashboard.php: 319106 #: wp-native-dashboard.php:467 107 107 #@ wp-native-dashboard 108 108 msgid "extend <em>Admin Center Headline</em> with a language quick selector." 109 109 msgstr "erweitere die <em>Admin-Center Kopfzeile</em> mit einer Sprachumschaltung." 110 110 111 #: wp-native-dashboard.php: 329111 #: wp-native-dashboard.php:485 112 112 #@ wp-native-dashboard 113 113 msgid "read more »" 114 114 msgstr "Lesen Sie mehr »" 115 115 116 #: wp-native-dashboard.php: 329116 #: wp-native-dashboard.php:485 117 117 #@ wp-native-dashboard 118 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 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 120 121 #: wp-native-dashboard.php: 337121 #: wp-native-dashboard.php:493 122 122 #@ wp-native-dashboard 123 123 msgid "Your WordPress installation currectly supports this list of languages at your Dashboard." 124 124 msgstr "Ihre WordPress-Installation unterstützt momentan diese Liste der Sprachen in Ihrem Dashboard." 125 125 126 #: wp-native-dashboard.php: 396126 #: wp-native-dashboard.php:552 127 127 #@ wp-native-dashboard 128 128 msgid "check repository »" 129 129 msgstr "prüfen »" 130 130 131 #: wp-native-dashboard.php: 417131 #: wp-native-dashboard.php:573 132 132 #@ wp-native-dashboard 133 133 msgid "Native Dashboard Settings" 134 134 msgstr "Native Dashboard Einstellungen" 135 135 136 #: wp-native-dashboard.php: 436136 #: wp-native-dashboard.php:592 137 137 #@ wp-native-dashboard 138 138 msgid "cleanup all settings at plugin deactivation." … … 165 165 msgstr "Anmeldeinformationen erforderlich" 166 166 167 #: wp-native-dashboard.php: 384167 #: wp-native-dashboard.php:540 168 168 #@ wp-native-dashboard 169 169 msgid "A lot of languages should be provided by polyglott translation teams as download into your WordPress installation." … … 176 176 msgstr "Die Sprachdatei %s die Sie löschen möchten, gibt es nicht." 177 177 178 #: automattic.php:46 3178 #: automattic.php:469 179 179 #, php-format 180 180 #@ wp-native-dashboard … … 182 182 msgstr "Das fehlenden Sprachdatei-Verzeichnis konnte nicht erstellt werden in '%s'." 183 183 184 #: wp-native-dashboard.php: 74184 #: wp-native-dashboard.php:82 185 185 #@ wp-native-dashboard 186 186 msgid "-n.a.-" 187 187 msgstr "" 188 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." 193 189 #: wp-native-dashboard.php:401 190 #@ wp-native-dashboard 191 msgid "Overview" 192 msgstr "Übersicht" 193 194 #: wp-native-dashboard.php:407 195 #@ wp-native-dashboard 196 msgid "Template Tags" 197 msgstr "Template-Tags" 198 199 #: wp-native-dashboard.php:418 200 #@ wp-native-dashboard 201 msgid "... use your backend with your prefered language" 202 msgstr "... verwenden Sie Ihre Admin-Oberfläche in Ihrer bevorzugten Sprache" 203 204 #: wp-native-dashboard.php:421 205 #@ wp-native-dashboard 206 msgid "While get in touch with WordPress you will find out, that the initial delivery package comes only with english localization. If you want WordPress to show your native language, you have to provide the appropriated language file at languages folder. This files will be used to replace the english text phrases during the process of page generation. This translation capability has the origin at the gettext functionality which currently been used across a wide range of open source projects." 207 msgstr "" 208 "Wenn man sich mit WordPress näher beschäftigt, fällt einem auf, das man im Auslieferungszustand alles in englisch bekommt. Um WordPress an seine eigene Muttersprache anzupassen, kann man WordPress Sprachdateien zur Verfügung stellen. Diese werden dann dazu benutzt, die in englisch vorgegebenen Textfragmente während der Seitenerzeugung zu ersetzen.\n" 209 "Diese Übersetzungfähigkeiten basieren auf der Verwendung der gettext Funktionalität, die in sehr vielen Open Source Projekten zum Einsatz kommt." 210 211 #: wp-native-dashboard.php:428 212 #@ wp-native-dashboard 213 msgid "Translate WordPress, Themes and Plugins into your Language" 214 msgstr "Übersetzen Sie WordPress, Themes und Plugins in Ihre Sprache" 215 216 #: wp-native-dashboard.php:436 217 #@ wp-native-dashboard 218 msgid "Template Tags within your Plugins or Themes" 219 msgstr "Template-Tags innerhalb Ihrer Plugins oder Themes" 220 221 #: wp-native-dashboard.php:439 222 #@ wp-native-dashboard 223 msgid "If you need the select box from normal login screen within your own login implementation, you can activate the template tags for. Add the following codelines into your widget, template or whereever required." 224 msgstr "Wenn Sie die Sprach-Auswahlbox des Anmeldebildschirm in Ihrer eigenen Implementierung benötigen, können Sie die dafür benötigten Template-Tags aktivieren. Fügen Sie danach folgende Codezeilen in Ihre Widget, Template oder wo immer Sie es brauchen ein." 225 226 #: wp-native-dashboard.php:458 227 #@ wp-native-dashboard 228 msgid "enable template tag usage of login selector (see help screen)." 229 msgstr "Template-Tag Nutzung der Anmeldungsauswahlbox aktivieren (siehe Hilfe-Bildschirm)." 230 231 #: wp-native-dashboard.php:473 232 #@ wp-native-dashboard 233 msgid "extend <em>Backend Admin Bar</em> with a language quick selector." 234 msgstr "erweitere die <em>Backend Admin Bar</em> um die Direktauswahl der Sprache." 235 236 #: wp-native-dashboard.php:477 237 #@ wp-native-dashboard 238 msgid "translate <em>Frontend Admin Bar</em> using backend selected language." 239 msgstr "<em>Frontend-Admin-Bar</em> mit der ausgewählten Backend Sprache übersetzen" 240 241 #: wp-native-dashboard.php:481 242 #@ wp-native-dashboard 243 msgid "enable locale abbreviations behind the language name." 244 msgstr "Gebietsschema Abkürzungen hinter dem Namen der Sprache aktivieren" 245 -
wp-native-dashboard/trunk/loginselector.php
r258520 r633075 8 8 9 9 class wp_native_dashboard_loginselector { 10 function wp_native_dashboard_loginselector( ) {10 function wp_native_dashboard_loginselector($permit_template_tags) { 11 11 add_action('login_head', array(&$this, 'on_login_head')); 12 if ($permit_template_tags) 13 add_action('wp_head', array(&$this, 'on_login_head')); 12 14 add_action('login_form', array(&$this, 'on_login_form')); 13 15 add_action('wp_login', array(&$this, 'on_wp_login')); -
wp-native-dashboard/trunk/wp-native-dashboard.php
r550132 r633075 6 6 Author: Heiko Rabe 7 7 Author URI: http://www.code-styling.de/ 8 Version: 1.3. 88 Version: 1.3.9 9 9 10 10 License: … … 32 32 header('HTTP/1.1 403 Forbidden'); 33 33 exit(); 34 } 35 36 if (!function_exists('plugins_url')) { 37 function plugins_url($plugin) { return WP_PLUGIN_URL . '/' . dirname(plugin_basename($plugin)); } 38 } 39 40 if (!function_exists('get_site_url')) { 41 function get_site_url() { return get_option('site_url'); } 34 42 } 35 43 … … 70 78 71 79 function wp_native_dashboard_get_name_of($locale) { 72 global $wpnd_language_names ;80 global $wpnd_language_names, $my_wp_native_dashboard; 73 81 list($lang,) = explode('_', $locale); 74 82 $name = isset($wpnd_language_names[$lang]) ? $wpnd_language_names[$lang] : __('-n.a.-', 'wp-native-dashboard'); 75 return '<b>'.$name .'</b> <i>('.$locale.')</i>'; 83 $abbr = ($my_wp_native_dashboard->with_abbreviations() ? " <i>($locale)</i>" : ''); 84 return "<b>$name</b>$abbr"; 76 85 } 77 86 … … 85 94 } 86 95 96 function wp_native_dashboard_custom_language_selector() { 97 global $my_wp_native_dashboard; 98 if($my_wp_native_dashboard->with_tag_support()) 99 do_action('login_form'); 100 } 101 87 102 class wp_native_dashboard { 88 103 … … 93 108 $this->defaults->installed = false; 94 109 $this->defaults->enable_login_selector = false; 110 $this->defaults->enable_login_custom = false; 95 111 $this->defaults->enable_profile_extension = false; 96 112 $this->defaults->enable_language_switcher = false; 97 113 $this->defaults->enable_adminbar_switcher = false; 114 $this->defaults->enable_locale_abbreviations= false; 98 115 $this->defaults->translate_front_adminbar = false; 99 116 $this->defaults->cleanup_on_deactivate = false; … … 105 122 if (!isset($this->options->enable_adminbar_switcher)) $this->options->enable_adminbar_switcher = false; 106 123 if (!isset($this->options->translate_front_adminbar)) $this->options->translate_front_adminbar = false; 124 if (!isset($this->options->enable_locale_abbreviations)) $this->options->enable_locale_abbreviations = true; 125 if (!isset($this->options->enable_login_custom)) $this->options->enable_login_custom = false; 107 126 108 127 //keep it for later use 109 $this->plugin_url = WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__)); 128 //bugfix: for FORCE_SSL_ADMIN / $this->plugin_url = WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__)); 129 $this->plugin_url = plugins_url(dirname(plugin_basename(__FILE__))); 110 130 111 131 //detect the current main version … … 115 135 $this->tagged_version = $this->root_tagged_version; 116 136 if (!empty($hits[3])) $this->tagged_version .= '.'.$hits[3]; 117 137 118 138 //register at plugin activation/deactivation hooks 119 139 register_activation_hook(plugin_basename(__FILE__), array(&$this, 'activate_plugin')); … … 134 154 global $wp_version; 135 155 $this->no_dashboard_headline = version_compare($wp_version, '3.0', '>='); 156 157 $this->user_agent_is_wp_native_dashboard = ($_SERVER["HTTP_USER_AGENT"] == "WP_NATIVE_DASHBOARD"); 158 159 if ( $this->user_agent_is_wp_native_dashboard ) { 160 //suppress all except the frontend admin bar rendering 161 ob_start(); 162 add_action('shutdown', array(&$this, 'on_shutdown_render_admin_bar'), 0); 163 } 164 165 } 166 167 function with_abbreviations() { 168 return $this->options->enable_locale_abbreviations; 169 } 170 171 function with_tag_support() { 172 return $this->options->enable_login_custom; 136 173 } 137 174 … … 194 231 function on_locale($loc) { 195 232 $skip = !$this->options->enable_login_selector && !$this->options->enable_profile_extension && !$this->options->enable_language_switcher && !$this->options->enable_adminbar_switcher; 196 if ((is_admin() && !$skip) || ($this->options->translate_front_adminbar && isset($_REQUEST['wpnd']) && $_REQUEST['wpnd'] == 'translate_front_adminbar')) {233 if ((is_admin() && !$skip) || ($this->options->translate_front_adminbar && $this->user_agent_is_wp_native_dashboard)) { 197 234 if (function_exists('wp_get_current_user')) { 198 235 $u = wp_get_current_user(); … … 223 260 if ($this->options->enable_login_selector /*&& (is_admin() || defined('DOING_AJAX'))*/) { 224 261 require_once(dirname(__FILE__).'/loginselector.php'); 225 $this->loginselector = new wp_native_dashboard_loginselector( );262 $this->loginselector = new wp_native_dashboard_loginselector($this->options->enable_login_custom); 226 263 $this->_load_translation_file(); 227 264 if (is_admin()) wp_enqueue_script('jquery'); … … 245 282 246 283 //front end admin bar handling 247 if($this->options->translate_front_adminbar && !is_admin() && is_user_logged_in()) { 248 wp_enqueue_script('jquery'); 249 if (isset($_REQUEST['wpnd']) && $_REQUEST['wpnd'] == 'translate_front_adminbar') { 250 ob_start(array(&$this, 'on_translated_frontend_adminbar')); 251 add_action('wp_before_admin_bar_render', array(&$this, 'on_before_admin_bar_render_rip_on'), 0); 252 add_action('wp_after_admin_bar_render', array(&$this, 'on_after_admin_bar_render_park_content'),9999); 253 }else{ 254 add_action('wp_before_admin_bar_render', array(&$this, 'on_before_admin_bar_render_rip_on'), 0); 255 add_action('wp_after_admin_bar_render', array(&$this, 'on_after_admin_bar_render_rip_off'),9999); 256 } 257 } 258 } 259 260 function on_before_admin_bar_render_rip_on() { 284 if($this->options->translate_front_adminbar && !is_admin() && is_user_logged_in() && !$this->user_agent_is_wp_native_dashboard) { 285 add_action('wp_before_admin_bar_render', array(&$this, 'on_start_suppress_admin_bar'), 0); 286 add_action('wp_after_admin_bar_render', array(&$this, 'on_request_suppressed_admin_bar_translated'),9999); 287 } 288 if($this->options->translate_front_adminbar && !is_admin() && is_user_logged_in() && $this->user_agent_is_wp_native_dashboard) { 289 add_action('wp_before_admin_bar_render', array(&$this, 'on_start_capture_admin_bar'), 0); 290 add_action('wp_after_admin_bar_render', array(&$this, 'on_end_capture_admin_bar'), 9999); 291 } 292 } 293 294 function on_start_capture_admin_bar() { 261 295 ob_start(); 262 296 } 263 297 264 function on_after_admin_bar_render_rip_off() { 298 function on_end_capture_admin_bar() { 299 $this->frontend_admin_bar = ob_get_clean(); 300 } 301 302 function on_shutdown_render_admin_bar() { 265 303 ob_end_clean(); 266 //replace frontend admin bar markup and script with jquery loader, that is abel to translate the bar 267 global $wp, $wp_rewrite; 268 $query_string = $wp_rewrite->using_permalinks() ? '' : $wp->query_string; 269 $query_string = (empty($query_string) ? $query_string.'?' : $query_string.'&').'wpnd=translate_front_adminbar'; 270 $current_url = add_query_arg( $query_string, '', home_url( $wp->request ) ); 271 ?> 272 <script type="text/javascript"> 273 jQuery.get("<?php echo $current_url; ?>", function(data) { 274 jQuery('body').append(data); 275 }); 276 </script> 277 <?php 278 } 279 280 function on_after_admin_bar_render_park_content() { 281 $this->parked_admin_bar = ob_get_clean(); 282 } 283 284 function on_translated_frontend_adminbar($content) { 285 return $this->parked_admin_bar; 286 } 287 304 echo $this->frontend_admin_bar; 305 } 306 function on_start_suppress_admin_bar() { 307 ob_start(); 308 } 309 310 function on_request_suppressed_admin_bar_translated() { 311 ob_end_clean(); 312 $cookies = array(); 313 foreach($_COOKIE as $key => $val) { 314 $cookie = new WP_Http_Cookie( $key ); 315 $cookie->name = $key; 316 $cookie->value = $val; 317 $cookie->expires = mktime( 0, 0, 0, date('m'), date('d') + 7, date('Y') ); // expires in 7 days 318 $cookie->path = '/'; 319 //$cookie->domain = get_site_url(); 320 $cookies[] = $cookie; 321 } 322 $response = wp_remote_get( 323 get_site_url().$_SERVER["REQUEST_URI"], 324 array( 325 'sslverify' => false, 326 'cookies' => $cookies, 327 'user-agent' => 'WP_NATIVE_DASHBOARD' 328 ) 329 ); 330 if (!is_object($response) && isset($response['body'])) 331 echo $response['body']; 332 } 333 288 334 function on_admin_menu() { 289 335 //load the personal profile setting extension if needed … … 347 393 add_meta_box('wp-native-dashboard-installed-i18n', __('Installed Languages', 'wp-native-dashboard'), array(&$this, 'on_print_metabox_installed_i18n'), $this->pagehook, 'normal', 'core'); 348 394 add_meta_box('wp-native-dashboard-download-i18n', __('Downloads', 'wp-native-dashboard').' <small style="font-weight:normal;">(<i>svn.automattic.com</i>)</small>', array(&$this, 'on_print_metabox_automattic_i18n'), $this->pagehook, 'normal', 'core'); 395 global $wp_version; 396 if (version_compare($wp_version, '3.3', '>=')) { 397 $screen = get_current_screen(); 398 //$request = unserialize(csp_fetch_remote_content('http://api.wordpress.org/plugins/info/1.0/codestyling-localization')); 399 $screen->add_help_tab(array( 400 'title' => __('Overview','wp-native-dashboard'), 401 'id' => 'overview', 402 'content' => '', 403 'callback' => array($this, 'on_callback_help_overview') 404 )); 405 $screen->add_help_tab(array( 406 'title' => __('Template Tags','wp-native-dashboard'), 407 'id' => 'template_tags', 408 'content' => '', 409 'callback' => array($this, 'on_callback_help_template_tags') 410 )); 411 } 412 } 413 414 function on_callback_help_overview() { 415 ?> 416 <p> 417 <strong>WP Native Dashboard </strong> - <em>"<?php _e('... use your backend with your prefered language', "wp-native-dashboard"); ?>"</em> 418 </p> 419 <p> 420 <?php _e('While get in touch with WordPress you will find out, that the initial delivery package comes only with english localization. If you want WordPress to show your native language, you have to provide the appropriated language file at languages folder. This files will be used to replace the english text phrases during the process of page generation. This translation capability has the origin at the gettext functionality which currently been used across a wide range of open source projects.', "wp-native-dashboard"); ?> 421 </p> 422 <p style="margin-top: 50px;padding-top:10px; border-top: solid 1px #ccc;"> 423 <small class="alignright" style="position:relative; margin-top: -30px; color: #aaa;">© 2008 - 2012 by Heiko Rabe</small> 424 <a href="http://wordpress.org/extend/plugins/wp-native-dashboard/" target="_blank">Plugin Directory</a> | 425 <a href="http://wordpress.org/extend/plugins/wp-native-dashboard/changelog/" target="_blank">Change Logs</a> | 426 <a href="<?php echo $this->plugin_url."/license.txt";?>" target="_blank">License</a> 427 <a class="alignright" href="http://wordpress.org/extend/plugins/codestyling-localization/" target="_blank"><?php _e('Translate WordPress, Themes and Plugins into your Language',"wp-native-dashboard");?></a> 428 </p> 429 <?php 430 } 431 432 function on_callback_help_template_tags() { 433 ?> 434 <p> 435 <strong><?php _e('Template Tags within your Plugins or Themes',"wp-native-dashboard"); ?></strong> 436 </p> 437 <p> 438 <?php _e('If you need the select box from normal login screen within your own login implementation, you can activate the template tags for. Add the following codelines into your widget, template or whereever required.',"wp-native-dashboard"); ?> 439 </p> 440 <pre> 441 <?php 442 if (function_exists('wp_native_dashboard_custom_language_selector')) 443 wp_native_dashboard_custom_language_selector(); 444 ?> 445 </pre> 446 <?php 349 447 } 350 448 … … 354 452 <input id="enable_login_selector" type="checkbox" value="1" name="enable_login_selector"<?php if ($this->options->enable_login_selector) echo ' checked="checked"'; ?> /> 355 453 <?php _e('extend the <em>WordPress Logon Screen</em> to choose a language too.', "wp-native-dashboard"); ?> 356 </p><p> 454 </p> 455 <p style="margin-left: 16px;"> 456 <input id="enable_login_custom" type="checkbox" value="1" name="enable_login_custom"<?php if ($this->options->enable_login_custom) echo ' checked="checked"'; ?> /> 457 <?php _e('enable template tag usage of login selector (see help screen).', "wp-native-dashboard"); ?> 458 </p> 459 <p> 357 460 <input id="enable_profile_extension" type="checkbox" value="1" name="enable_profile_extension"<?php if ($this->options->enable_profile_extension) echo ' checked="checked"'; ?> /> 358 461 <?php _e('extend <a href="profile.php" target="_blank">Personal Profile Settings</a> with users prefered language.', "wp-native-dashboard"); ?> … … 373 476 <?php _e('translate <em>Frontend Admin Bar</em> using backend selected language.', "wp-native-dashboard"); ?> 374 477 </p> 478 <p> 479 <input id="enable_locale_abbreviations" type="checkbox" value="1" name="enable_locale_abbreviations"<?php if ($this->options->enable_locale_abbreviations) echo ' checked="checked"'; ?> /> 480 <?php _e('enable locale abbreviations behind the language name.', "wp-native-dashboard"); ?> 481 </p> 375 482 <?php endif; ?> 376 483 <p class="csp-read-more"> … … 379 486 <?php 380 487 } 381 488 382 489 function on_print_metabox_installed_i18n() { 383 490 $installed = wp_native_dashboard_collect_installed_languages();
Note: See TracChangeset
for help on using the changeset viewer.