WordPress.org

Plugin Directory

Changeset 977663


Ignore:
Timestamp:
09/03/14 08:05:13 (3 years ago)
Author:
MTserve
Message:

Added German and Bulgarian translations

Location:
content-protect-by-time-lock/trunk
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • content-protect-by-time-lock/trunk/WP_ContentProtect.php

    r977574 r977663  
    77Author URI: mailto:kiri4a@gmail.com?Subject=ContentProtect-plugin 
    88Author Email: kiri4a@gmail.com 
     9Plugin URI: http://wordpress.org/plugins/content-protect-by-time-lock/ 
    910License: 
    1011 
     
    6263            //Load plugin settings. 
    6364            $this -> settings = get_option('WP_ContentProtect_settings'); 
     65            // Load translation. 
     66            add_action('init', array($this, 'load_translation')); 
    6467            // Specific behavior for admin and front-end areas. 
    6568            if ( is_admin() ){ 
     
    130133 
    131134        /*--------------------------------------------* 
     135         * Loads plugin translation. 
     136         *--------------------------------------------*/ 
     137        public function load_translation(){ 
     138            load_plugin_textdomain('WP_ContentProtect_Textdomain', false, $this -> DIR.'/lang/'); 
     139        } 
     140 
     141        /*--------------------------------------------* 
    132142         * Compares WP version to some version string. 
    133143         *--------------------------------------------*/ 
     
    170180            add_settings_section( 
    171181                'Wp_ContentProtect_settings', 
    172                 'General', 
     182                __('General', 'WP_ContentProtect_Textdomain'), 
    173183                null, 
    174184                'Wp_ContentProtect' //our page name in settings menu (from add_options_page()) 
     
    177187            add_settings_field( 
    178188                'protect_for', 
    179                 'Restrict content', 
     189                __('Restrict content', 'WP_ContentProtect_Textdomain'), 
    180190                array($this, 'settings_field_protect_for' ), 
    181191                'Wp_ContentProtect', 
     
    188198            add_settings_field( 
    189199                'time_format', 
    190                 'Datetime formating', 
     200                __('Datetime formating', 'WP_ContentProtect_Textdomain'), 
    191201                array($this, 'settings_field_time_format' ), 
    192202                'Wp_ContentProtect', 
     
    199209            add_settings_field( 
    200210                'listings_col', 
    201                 'Custom column', 
     211                __('Custom column', 'WP_ContentProtect_Textdomain'), 
    202212                array($this, 'settings_field_listings_col' ), 
    203213                'Wp_ContentProtect', 
     
    210220            add_settings_field( 
    211221                'protect_by_default', 
    212                 'Protect by default', 
     222                __('Protect by default', 'WP_ContentProtect_Textdomain'), 
    213223                array($this, 'settings_field_protect_by_default' ), 
    214224                'Wp_ContentProtect', 
  • content-protect-by-time-lock/trunk/readme.txt

    r977583 r977663  
    1414 
    1515When content is protected it will be excluded from search results, author and post archives, menu navigation, feeds and more. If an anonymous user gets somehow a direct link to content and tries to access/view it, this user gets redirected to the login screen to enter credentials. After successfully log in the user gets redirected again but this time to the content itself. 
     16 
     17= Available in: = 
     18* English 
     19* Deutsch 
     20* Български 
     21 
     22= Contributing = 
     23http://git.io/lSW-AQ 
     24 
     25= Support this work = 
     26As You know every work needs time. But time nowadays is not free... this plugin needs Your support. 
     27https://gittip.com/ColorfullyMe 
    1628 
    1729== Installation == 
Note: See TracChangeset for help on using the changeset viewer.