WordPress.org

Plugin Directory

Changeset 1562545


Ignore:
Timestamp:
12/27/16 08:27:13 (6 months ago)
Author:
glueckpress
Message:

0.2.2 release prep

Location:
stringintelligenz/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • stringintelligenz/trunk/readme.txt

    r1557068 r1562545  
    1616This plugin swaps the German language packs for WordPress core with a set of language files containing a gender-sensitive translation of WordPress. 
    1717 
    18 The most prominent change you will see after activating **Stringintelligenz** (and only if German is your site language) is the admin menu item “Profile” instead of “Benutzer”. Happy exploring! 
     18The most prominent change you will see after activating **Stringintelligenz** (and only if German is your site language or user language) is the admin menu item “Profile” instead of “Benutzer”. Happy exploring! 
    1919 
    2020== Installation == 
     
    6969 
    7070= 0.2.1 = 
     71* Support für eigene Profilsprache (neu in WordPress 4.7), danke @tfrommen! 
     72 
     73= 0.2.1 = 
    7174* String-Update von WordPress 4.7 
    7275* Beidnennung mit Schrägstrich im Singular gemäß Duden-Empfehlung verkürzt: `Autor/-in` anstatt `Autorin/Autor` 
  • stringintelligenz/trunk/src/Stringintelligenz.php

    r1509439 r1562545  
    9797 
    9898        // Only for de_DE (informal) for now. 
    99         if ( 'de_DE' !== get_locale() ) { 
     99        if ( 'de_DE' !== $this->get_locale() ) { 
    100100            add_action( 'admin_notices', array( new StringintelligenzAdminNotice( 
    101101                $this->templates_folder . '/admin-notice-locale-not-supported.php' 
     
    136136        add_filter( 'override_load_textdomain', array( $override, 'override' ), 10, 3 ); 
    137137    } 
     138 
     139    /** 
     140     * Returns the (user) locale. 
     141     * 
     142     * @return string The (user) locale. 
     143     */ 
     144    private function get_locale() { 
     145 
     146        return (string) ( function_exists( 'get_user_locale' ) ? get_user_locale() : get_locale() ); 
     147    } 
    138148} 
  • stringintelligenz/trunk/stringintelligenz.php

    r1557063 r1562545  
    22/** 
    33 * Plugin Name: Stringintelligenz 
    4  * Description: Gender-sensitive language for WordPress in German 
    5  * Version:     0.2.1 
     4 * Description: Open language for WordPress in German 
     5 * Version:     0.2.2 
    66 * Author:      Caspar Hübinger 
    77 * Author URI:  https://profiles.wordpress.org/glueckpress 
     
    1919require_once dirname( __FILE__ ) . '/src/Stringintelligenz.php'; 
    2020 
    21 $stringintelligenz = new Stringintelligenz( __FILE__ ); 
    22 $stringintelligenz->initialize(); 
     21/** 
     22 * Initializes Stringintelligenz. 
     23 * 
     24 * @since   0.2.2 
     25 * @wp-hook plugins_loaded 
     26 * 
     27 * @return void 
     28 */ 
     29function initialize_stringintelligenz() { 
     30 
     31    $stringintelligenz = new Stringintelligenz( __FILE__ ); 
     32    $stringintelligenz->initialize(); 
     33} 
     34 
     35add_action( 'plugins_loaded', 'initialize_stringintelligenz' ); 
  • stringintelligenz/trunk/templates/admin-notice-locale-not-supported.php

    r1509429 r1562545  
    44    printf( 
    55        __( 
    6             'Switch to <strong>“Deutsch”</strong> in <a href="%s">Settings→General→Site&#160;Language</a> in order to enable gender-sensitive German in your WordPress admin interface.<br><em>(Quick check: As an administrator you should see the word “Profile” instead of “Benutzer” in your admin menu after you have activated Deutsch.)</em>', 
     6            'Switch to <strong>“Deutsch”</strong> at <a href="%1$s">Settings→General→Site&#160;Language</a> or at <a href="%2$s">Profile→Personal&#160;Options→Language</a> in order to enable inclusive German in your WordPress admin interface.<br><em>(Quick check: As an administrator you should see the word “Profile” instead of “Benutzer” in your admin menu after you have activated Deutsch.)</em>', 
    77            'stringintelligenz' 
    88        ), 
    9         admin_url( 'options-general.php' ) 
     9        admin_url( 'options-general.php' ), 
     10        admin_url( 'profile.php' ) 
    1011    ); 
    1112    ?> 
Note: See TracChangeset for help on using the changeset viewer.