Changeset 1342652
- Timestamp:
- 02/03/2016 09:06:05 PM (10 years ago)
- Location:
- nf-conditional-actions/trunk
- Files:
-
- 6 added
- 2 edited
-
classes/notification-conditional-action-message.php (modified) (5 diffs)
-
lang (added)
-
lang/index.php (added)
-
lang/nf-conditional-actions-de_DE.mo (added)
-
lang/nf-conditional-actions-de_DE.po (added)
-
lang/nf-conditional-actions.po (added)
-
lang/nf-conditional-actions.pot (added)
-
nf-conditional-actions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nf-conditional-actions/trunk/classes/notification-conditional-action-message.php
r1342506 r1342652 15 15 */ 16 16 function __construct() { 17 $this->name = __( 'Conditional Message' );17 $this->name = __( 'Conditional Message' , 'nf-conditional-actions'); 18 18 } 19 19 /** … … 47 47 ?> 48 48 <tr> 49 <th scope="row"><label for="settings-default_conditional_message"><?php _e( 'Standard', ' ' ); ?></label></th>49 <th scope="row"><label for="settings-default_conditional_message"><?php _e( 'Standard', 'nf-conditional-actions' ); ?></label></th> 50 50 <td> 51 51 <?php wp_editor($default_conditional_message, 'settings-default_conditional_message', array('textarea_name' => 'settings[default_conditional_message]') ); ?> … … 63 63 <th scope="row"> </th> 64 64 <td> 65 <input type="button" id="nf_addConditionButton" value=" Hinzufügen" />65 <input type="button" id="nf_addConditionButton" value="<?php _e('Add', 'nf-conditional-actions'); ?>" /> 66 66 </td> 67 67 </tr> … … 75 75 <th scope="row"> 76 76 <label for="settings-conditional_condition_<?php echo $i; ?>"> 77 <?php _e(' Bedingung', ''); ?>77 <?php _e('Condition', 'nf-conditional-actions'); ?> 78 78 79 79 <input type="button" id="nf_removeConditionButton_<?php echo $i; ?>" 80 class="nf_removeConditionButton" value=" Entfernen"/>80 class="nf_removeConditionButton" value="<?php _e('Remove', 'nf-conditional-actions'); ?>"/> 81 81 </label> 82 82 </th> … … 87 87 <tr> 88 88 <th scope="row"><label 89 for="settings-conditional_message_<?php echo $i; ?>"><?php _e(' Nachricht', ''); ?></label></th>89 for="settings-conditional_message_<?php echo $i; ?>"><?php _e('Message', 'nf-conditional-actions'); ?></label></th> 90 90 <td> 91 91 <?php wp_editor($message, 'settings-conditional_message_' . $i, array('textarea_name' => 'settings[conditional_messages][]')); ?> -
nf-conditional-actions/trunk/nf-conditional-actions.php
r1342506 r1342652 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> Plugin "NF Conditional Actions Plugin" <b>deactivated</b>, because it <b>requires</b> the <b>Ninja Forms plugin</b> to be <b><i>installed</i> and <i>active</i></b></p></div>';16 echo '<div class="error fade"><p>'. _e("Plugin 'NF Conditional Actions' deactivated, because it requires the Ninja Forms plugin to be installed and active", "nf-conditional-actions").'</p></div>'; 17 17 }); 18 18 deactivate_plugins( plugin_basename( __FILE__ ) ); … … 28 28 } 29 29 add_action( 'admin_init', 'nf_conditional_actions_extend_setup_license' ); 30 31 function nf_conditional_actions_load_lang() { 32 $textdomain = 'nf-conditional-actions'; 33 $locale = apply_filters( 'plugin_locale', get_locale(), $textdomain ); 34 35 load_textdomain( $textdomain, WP_LANG_DIR . '/nf-conditional-actions/' . $textdomain . '-' . $locale . '.mo' ); 36 37 load_plugin_textdomain( $textdomain, FALSE, dirname(plugin_basename(__FILE__)) . '/lang/' ); 38 } 39 add_action( 'init', 'nf_conditional_actions_load_lang'); 30 40 31 41 function nf_conditional_actions_scripts() {
Note: See TracChangeset
for help on using the changeset viewer.