Plugin Directory

Changeset 633075


Ignore:
Timestamp:
12/02/2012 04:30:34 PM (13 years ago)
Author:
codestyling
Message:

new release 1.3.9 - initial update

Location:
wp-native-dashboard/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-native-dashboard/trunk/i18n/wp-native-dashboard-de_DE.po

    r547803 r633075  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: WP Native Dashboard v1.0\n"
     3"Project-Id-Version: WP Native Dashboard v1.3.9\n"
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: \n"
    6 "PO-Revision-Date: 2009-07-13 18:07+0200\n"
     6"PO-Revision-Date: 2012-12-02 16:13:43+0000\n"
    77"Last-Translator: admin <[email protected]>\n"
    88"Language-Team: \n"
     
    2626
    2727#: automattic.php:326
    28 #: automattic.php:532
    29 #: wp-native-dashboard.php:348
     28#: automattic.php:550
     29#: wp-native-dashboard.php:504
    3030#@ wp-native-dashboard
    3131msgid "right to left"
     
    3737msgstr "Herunterladen"
    3838
    39 #: automattic.php:399
     39#: automattic.php:405
    4040#@ wp-native-dashboard
    4141msgid "You do not have the permission to delete language files."
    4242msgstr "Sie haben nicht die Berechtigung zum Löschen von Sprachdateien."
    4343
    44 #: automattic.php:534
    45 #: wp-native-dashboard.php:350
     44#: automattic.php:552
     45#: wp-native-dashboard.php:506
    4646#@ wp-native-dashboard
    4747msgid "Delete"
    4848msgstr "Löschen"
    4949
    50 #: automattic.php:545
     50#: automattic.php:563
    5151#@ wp-native-dashboard
    5252msgid "The download is currently not available."
    5353msgstr "Der Download ist derzeit nicht verfügbar."
    5454
    55 #: wp-native-dashboard.php:387
     55#: wp-native-dashboard.php:543
    5656#@ wp-native-dashboard
    5757msgid "Available for download:"
    5858msgstr "verfügbare Downloads:"
    5959
    60 #: loginselector.php:27
     60#: loginselector.php:29
    6161#: personalprofile.php:20
    6262#@ wp-native-dashboard
     
    6969msgstr "Wählen Sie Ihre bevorzugte Sprache, die im Admin-Center verwendet werden soll."
    7070
    71 #: wp-native-dashboard.php:252
     71#: wp-native-dashboard.php:343
    7272#@ wp-native-dashboard
    7373msgid "Native Dashboard"
    7474msgstr "Native Dashboard"
    7575
    76 #: wp-native-dashboard.php:271
     76#: wp-native-dashboard.php:362
    7777#@ default
    7878msgid "Cheatin&#8217; uh?"
    7979msgstr ""
    8080
    81 #: wp-native-dashboard.php:302
     81#: wp-native-dashboard.php:393
    8282#@ wp-native-dashboard
    8383msgid "Capabilities"
    8484msgstr "Fähigkeiten"
    8585
    86 #: wp-native-dashboard.php:303
     86#: wp-native-dashboard.php:394
    8787#@ wp-native-dashboard
    8888msgid "Installed Languages"
    8989msgstr "Installierte Sprachen"
    9090
    91 #: wp-native-dashboard.php:304
     91#: wp-native-dashboard.php:395
    9292#@ wp-native-dashboard
    9393msgid "Downloads"
    9494msgstr "Downloads"
    9595
    96 #: wp-native-dashboard.php:311
     96#: wp-native-dashboard.php:454
    9797#@ wp-native-dashboard
    9898msgid "extend the <em>WordPress Logon Screen</em> to choose a language too."
    9999msgstr "erweitere den <em>WordPress Anmelde-Bildschirm</em> um eine Sprache auszuwählen."
    100100
    101 #: wp-native-dashboard.php:314
     101#: wp-native-dashboard.php:462
    102102#@ wp-native-dashboard
    103103msgid "extend <a href=\"profile.php\" target=\"_blank\">Personal Profile Settings</a> with users prefered language."
    104104msgstr "erweitere die <a href=\"profile.php\" target=\"_blank\">persönlichen Profil-Einstellungen</a> um eine benutzerspezifische Sprachwahl."
    105105
    106 #: wp-native-dashboard.php:319
     106#: wp-native-dashboard.php:467
    107107#@ wp-native-dashboard
    108108msgid "extend <em>Admin Center Headline</em> with a language quick selector."
    109109msgstr "erweitere die <em>Admin-Center Kopfzeile</em> mit einer Sprachumschaltung."
    110110
    111 #: wp-native-dashboard.php:329
     111#: wp-native-dashboard.php:485
    112112#@ wp-native-dashboard
    113113msgid "read more &raquo;"
    114114msgstr "Lesen Sie mehr »"
    115115
    116 #: wp-native-dashboard.php:329
     116#: wp-native-dashboard.php:485
    117117#@ wp-native-dashboard
    118118msgid "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)."
    119119msgstr "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)."
    120120
    121 #: wp-native-dashboard.php:337
     121#: wp-native-dashboard.php:493
    122122#@ wp-native-dashboard
    123123msgid "Your WordPress installation currectly supports this list of languages at your Dashboard."
    124124msgstr "Ihre WordPress-Installation unterstützt momentan diese Liste der Sprachen in Ihrem Dashboard."
    125125
    126 #: wp-native-dashboard.php:396
     126#: wp-native-dashboard.php:552
    127127#@ wp-native-dashboard
    128128msgid "check repository &raquo;"
    129129msgstr "prüfen »"
    130130
    131 #: wp-native-dashboard.php:417
     131#: wp-native-dashboard.php:573
    132132#@ wp-native-dashboard
    133133msgid "Native Dashboard Settings"
    134134msgstr "Native Dashboard Einstellungen"
    135135
    136 #: wp-native-dashboard.php:436
     136#: wp-native-dashboard.php:592
    137137#@ wp-native-dashboard
    138138msgid "cleanup all settings at plugin deactivation."
     
    165165msgstr "Anmeldeinformationen erforderlich"
    166166
    167 #: wp-native-dashboard.php:384
     167#: wp-native-dashboard.php:540
    168168#@ wp-native-dashboard
    169169msgid "A lot of languages should be provided by polyglott translation teams as download into your WordPress installation."
     
    176176msgstr "Die Sprachdatei %s die Sie löschen möchten, gibt es nicht."
    177177
    178 #: automattic.php:463
     178#: automattic.php:469
    179179#, php-format
    180180#@ wp-native-dashboard
     
    182182msgstr "Das fehlenden Sprachdatei-Verzeichnis konnte nicht erstellt werden in '%s'."
    183183
    184 #: wp-native-dashboard.php:74
     184#: wp-native-dashboard.php:82
    185185#@ wp-native-dashboard
    186186msgid "-n.a.-"
    187187msgstr ""
    188188
    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
     191msgid "Overview"
     192msgstr "Übersicht"
     193
     194#: wp-native-dashboard.php:407
     195#@ wp-native-dashboard
     196msgid "Template Tags"
     197msgstr "Template-Tags"
     198
     199#: wp-native-dashboard.php:418
     200#@ wp-native-dashboard
     201msgid "... use your backend with your prefered language"
     202msgstr "... verwenden Sie Ihre Admin-Oberfläche in Ihrer bevorzugten Sprache"
     203
     204#: wp-native-dashboard.php:421
     205#@ wp-native-dashboard
     206msgid "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."
     207msgstr ""
     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
     213msgid "Translate WordPress, Themes and Plugins into your Language"
     214msgstr "Übersetzen Sie WordPress, Themes und Plugins in Ihre Sprache"
     215
     216#: wp-native-dashboard.php:436
     217#@ wp-native-dashboard
     218msgid "Template Tags within your Plugins or Themes"
     219msgstr "Template-Tags innerhalb Ihrer Plugins oder Themes"
     220
     221#: wp-native-dashboard.php:439
     222#@ wp-native-dashboard
     223msgid "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."
     224msgstr "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
     228msgid "enable template tag usage of login selector (see help screen)."
     229msgstr "Template-Tag Nutzung der Anmeldungsauswahlbox aktivieren (siehe Hilfe-Bildschirm)."
     230
     231#: wp-native-dashboard.php:473
     232#@ wp-native-dashboard
     233msgid "extend <em>Backend Admin Bar</em> with a language quick selector."
     234msgstr "erweitere die <em>Backend Admin Bar</em> um die Direktauswahl der Sprache."
     235
     236#: wp-native-dashboard.php:477
     237#@ wp-native-dashboard
     238msgid "translate <em>Frontend Admin Bar</em> using backend selected language."
     239msgstr "<em>Frontend-Admin-Bar</em> mit der ausgewählten Backend Sprache übersetzen"
     240
     241#: wp-native-dashboard.php:481
     242#@ wp-native-dashboard
     243msgid "enable locale abbreviations behind the language name."
     244msgstr "Gebietsschema Abkürzungen hinter dem Namen der Sprache aktivieren"
     245
  • wp-native-dashboard/trunk/loginselector.php

    r258520 r633075  
    88
    99class wp_native_dashboard_loginselector {
    10     function wp_native_dashboard_loginselector() {
     10    function wp_native_dashboard_loginselector($permit_template_tags) {
    1111        add_action('login_head', array(&$this, 'on_login_head'));
     12        if ($permit_template_tags)
     13            add_action('wp_head', array(&$this, 'on_login_head'));
    1214        add_action('login_form', array(&$this, 'on_login_form'));
    1315        add_action('wp_login', array(&$this, 'on_wp_login'));
  • wp-native-dashboard/trunk/wp-native-dashboard.php

    r550132 r633075  
    66Author: Heiko Rabe
    77Author URI: http://www.code-styling.de/
    8 Version: 1.3.8
     8Version: 1.3.9
    99
    1010License:
     
    3232        header('HTTP/1.1 403 Forbidden');
    3333        exit();
     34}
     35
     36if (!function_exists('plugins_url')) {
     37    function plugins_url($plugin) {  return WP_PLUGIN_URL . '/' . dirname(plugin_basename($plugin)); }
     38}
     39
     40if (!function_exists('get_site_url')) {
     41    function get_site_url() { return get_option('site_url'); }
    3442}
    3543
     
    7078
    7179function wp_native_dashboard_get_name_of($locale) {
    72     global $wpnd_language_names;
     80    global $wpnd_language_names, $my_wp_native_dashboard;
    7381    list($lang,) = explode('_', $locale);
    7482    $name = isset($wpnd_language_names[$lang]) ? $wpnd_language_names[$lang] : __('-n.a.-', 'wp-native-dashboard');
    75     return '<b>'.$name .'</b>&nbsp;<i>('.$locale.')</i>';
     83    $abbr = ($my_wp_native_dashboard->with_abbreviations() ? "&nbsp;<i>($locale)</i>" : '');
     84    return "<b>$name</b>$abbr";
    7685}
    7786
     
    8594}
    8695   
     96function 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
    87102class wp_native_dashboard {
    88103
     
    93108        $this->defaults->installed                  = false;
    94109        $this->defaults->enable_login_selector      = false;
     110        $this->defaults->enable_login_custom        = false;
    95111        $this->defaults->enable_profile_extension   = false;
    96112        $this->defaults->enable_language_switcher   = false;
    97113        $this->defaults->enable_adminbar_switcher   = false;
     114        $this->defaults->enable_locale_abbreviations= false;
    98115        $this->defaults->translate_front_adminbar   = false;
    99116        $this->defaults->cleanup_on_deactivate      = false;
     
    105122        if (!isset($this->options->enable_adminbar_switcher)) $this->options->enable_adminbar_switcher = false;
    106123        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;
    107126
    108127        //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__)));
    110130               
    111131        //detect the current main version
     
    115135        $this->tagged_version = $this->root_tagged_version;
    116136        if (!empty($hits[3])) $this->tagged_version .= '.'.$hits[3];
    117 
     137       
    118138        //register at plugin activation/deactivation hooks
    119139        register_activation_hook(plugin_basename(__FILE__), array(&$this, 'activate_plugin'));
     
    134154        global $wp_version;
    135155        $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;
    136173    }
    137174   
     
    194231    function on_locale($loc) {
    195232        $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)) {
    197234            if (function_exists('wp_get_current_user')) {
    198235                $u = wp_get_current_user();
     
    223260        if ($this->options->enable_login_selector /*&& (is_admin() || defined('DOING_AJAX'))*/) {
    224261            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);
    226263            $this->_load_translation_file();
    227264            if (is_admin()) wp_enqueue_script('jquery');
     
    245282       
    246283        //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() {
    261295        ob_start();
    262296    }
    263297   
    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() {
    265303        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       
    288334    function on_admin_menu() {
    289335        //load the personal profile setting extension if needed
     
    347393        add_meta_box('wp-native-dashboard-installed-i18n', __('Installed Languages', 'wp-native-dashboard'), array(&$this, 'on_print_metabox_installed_i18n'), $this->pagehook, 'normal', 'core');
    348394        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;">&copy; 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    &lt;?php
     442        if (function_exists('wp_native_dashboard_custom_language_selector'))
     443            wp_native_dashboard_custom_language_selector();
     444    ?&gt;
     445    </pre>
     446<?php
    349447    }
    350448
     
    354452                <input id="enable_login_selector" type="checkbox" value="1" name="enable_login_selector"<?php if ($this->options->enable_login_selector) echo ' checked="checked"'; ?> />
    355453                <?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>
    357460                <input id="enable_profile_extension" type="checkbox" value="1" name="enable_profile_extension"<?php if ($this->options->enable_profile_extension) echo ' checked="checked"'; ?> />
    358461                <?php _e('extend <a href="profile.php" target="_blank">Personal Profile Settings</a> with users prefered language.', "wp-native-dashboard"); ?>
     
    373476                <?php _e('translate <em>Frontend Admin Bar</em> using backend selected language.', "wp-native-dashboard"); ?>
    374477            </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>
    375482            <?php endif; ?>
    376483            <p class="csp-read-more">
     
    379486        <?php
    380487    }
    381 
     488   
    382489    function on_print_metabox_installed_i18n() {
    383490        $installed = wp_native_dashboard_collect_installed_languages();
Note: See TracChangeset for help on using the changeset viewer.