Changeset 1342611
- Timestamp:
- 02/03/2016 08:21:19 PM (10 years ago)
- Location:
- nf-subpages/trunk
- Files:
-
- 1 edited
- 1 copied
- 1 moved
-
lang/nf-subpages.po (moved) (moved from nf-subpages/trunk/lang/nf-captcha.po) (2 diffs)
-
lang/nf-subpages.pot (copied) (copied from nf-subpages/trunk/lang/nf-captcha.po) (2 diffs)
-
nf-subpages.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nf-subpages/trunk/lang/nf-subpages.po
r1342590 r1342611 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: nf- captcha\n"3 "Project-Id-Version: nf-subpages\n" 4 4 "POT-Creation-Date: 2015-03-02 21:39-0500\n" 5 5 "PO-Revision-Date: 2015-03-02 21:39-0500\n" … … 13 13 14 14 #: nf-captcha.php:43 15 msgid "Plugin NF Subpages Plugin deactivated, because the it requires the Ninja Forms plugin to be installed and active"15 msgid "Plugin 'NF Subpages' deactivated, because it requires the Ninja Forms plugin to be installed and active" 16 16 msgstr "" 17 17 -
nf-subpages/trunk/lang/nf-subpages.pot
r1342590 r1342611 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: nf- captcha\n"3 "Project-Id-Version: nf-subpages\n" 4 4 "POT-Creation-Date: 2015-03-02 21:39-0500\n" 5 5 "PO-Revision-Date: 2015-03-02 21:39-0500\n" … … 13 13 14 14 #: nf-captcha.php:43 15 msgid "Plugin NF Subpages Plugin deactivated, because the it requires the Ninja Forms plugin to be installed and active"15 msgid "Plugin 'NF Subpages' deactivated, because it requires the Ninja Forms plugin to be installed and active" 16 16 msgstr "" 17 17 -
nf-subpages/trunk/nf-subpages.php
r1342590 r1342611 14 14 if ( !is_plugin_active( 'ninja-forms/ninja-forms.php' ) ) { 15 15 add_action("admin_notices", function() { 16 echo '<div class="error fade"><p>'. _e( 'Plugin NF Subpages Plugin deactivated, because the it requires the Ninja Forms plugin to be installed and active').'</p></div>';16 echo '<div class="error fade"><p>'. _e("Plugin 'NF Subpages' deactivated, because the it requires the Ninja Forms plugin to be installed and active", "nf-subpages").'</p></div>'; 17 17 }); 18 18 deactivate_plugins( plugin_basename( __FILE__ ) ); … … 29 29 add_action( 'admin_init', 'nf_subpages_extend_setup_license' ); 30 30 31 function nf_subpages_load_lang() { 32 $textdomain = 'nf-subpages'; 33 $locale = apply_filters( 'plugin_locale', get_locale(), $textdomain ); 34 35 load_textdomain( $textdomain, WP_LANG_DIR . '/nf-subpages/' . $textdomain . '-' . $locale . '.mo' ); 36 37 load_plugin_textdomain( $textdomain, FALSE, dirname(plugin_basename(__FILE__)) . '/lang/' ); 38 } 39 add_action( 'init', 'nf_subpages_load_lang'); 40 31 41 function nf_subpages_scripts() { 32 42 wp_register_style( 'nf-subpages-style', plugins_url('css/nf-subpages-no-js-style.css', __FILE__)); … … 41 51 function nf_register_field_fieldset_start(){ 42 52 $args = array( 43 'name' => __( 'Fieldset Start', 'nf- captcha' ),53 'name' => __( 'Fieldset Start', 'nf-subpages' ), 44 54 'sidebar' => 'layout_fields', 45 55 'edit_function' => '', … … 76 86 function nf_register_field_fieldset_end(){ 77 87 $args = array( 78 'name' => __( 'Fieldset End', 'nf- captcha' ),88 'name' => __( 'Fieldset End', 'nf-subpages' ), 79 89 'sidebar' => 'layout_fields', 80 90 'edit_function' => '', … … 108 118 function nf_register_field_subpage_start(){ 109 119 $args = array( 110 'name' => __( 'Subpage Start', 'nf- captcha' ),120 'name' => __( 'Subpage Start', 'nf-subpages' ), 111 121 'sidebar' => 'layout_fields', 112 122 'edit_function' => '', … … 146 156 function nf_register_field_subpage_end(){ 147 157 $args = array( 148 'name' => __( 'Subpage End', 'nf- captcha' ),158 'name' => __( 'Subpage End', 'nf-subpages' ), 149 159 'sidebar' => 'layout_fields', 150 160 'edit_function' => '', … … 177 187 <div class="nf_subpage_footer"> 178 188 <span class="nf_subpage_navigation"> 179 <span class="nf_subpage_button nf_subpage_prev"><?php _e( 'prev', 'nf- captcha' ) ?></span>180 <span class="nf_subpage_button nf_subpage_next"><?php _e( 'next', 'nf- captcha' ) ?></span>189 <span class="nf_subpage_button nf_subpage_prev"><?php _e( 'prev', 'nf-subpages' ) ?></span> 190 <span class="nf_subpage_button nf_subpage_next"><?php _e( 'next', 'nf-subpages' ) ?></span> 181 191 </span> 182 192 <span class="nf_subpage_progressbar_wrap">
Note: See TracChangeset
for help on using the changeset viewer.