mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 06:03:38 +09:00
Fx text domain slug for wp.org translation compatibility
This commit is contained in:
+25
-25
@@ -746,7 +746,7 @@ class UM_Fields {
|
||||
return $fields[$key]['title'];
|
||||
if ( isset( $fields[$key]['label'] ) )
|
||||
return $fields[$key]['label'];
|
||||
return __('Custom Field','ultimatemember');
|
||||
return __('Custom Field','ultimate-member');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1021,18 +1021,18 @@ class UM_Fields {
|
||||
if ( $array['min_width'] == '' && $array['crop'] == 3 ) $array['min_width'] = 600;
|
||||
if ( $array['min_height'] == '' && $array['crop'] == 3 ) $array['min_height'] = 600;
|
||||
|
||||
if (!isset($array['invalid_image'])) $array['invalid_image'] = __("Please upload a valid image!",'ultimatemember');
|
||||
if (!isset($array['invalid_image'])) $array['invalid_image'] = __("Please upload a valid image!",'ultimate-member');
|
||||
if (!isset($array['allowed_types'])) {
|
||||
$array['allowed_types'] = "gif,jpg,jpeg,png";
|
||||
} else {
|
||||
$array['allowed_types'] = implode(',',$array['allowed_types']);
|
||||
}
|
||||
if (!isset($array['upload_text'])) $array['upload_text'] = '';
|
||||
if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimatemember');
|
||||
if (!isset($array['extension_error'])) $array['extension_error'] = __("Sorry this is not a valid image.",'ultimatemember');
|
||||
if (!isset($array['max_size_error'])) $array['max_size_error'] = __("This image is too large!",'ultimatemember');
|
||||
if (!isset($array['min_size_error'])) $array['min_size_error'] = __("This image is too small!",'ultimatemember');
|
||||
if (!isset($array['max_files_error'])) $array['max_files_error'] = __("You can only upload one image",'ultimatemember');
|
||||
if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimate-member');
|
||||
if (!isset($array['extension_error'])) $array['extension_error'] = __("Sorry this is not a valid image.",'ultimate-member');
|
||||
if (!isset($array['max_size_error'])) $array['max_size_error'] = __("This image is too large!",'ultimate-member');
|
||||
if (!isset($array['min_size_error'])) $array['min_size_error'] = __("This image is too small!",'ultimate-member');
|
||||
if (!isset($array['max_files_error'])) $array['max_files_error'] = __("You can only upload one image",'ultimate-member');
|
||||
if (!isset($array['max_size'])) $array['max_size'] = 999999999;
|
||||
if (!isset($array['upload_help_text'])) $array['upload_help_text'] = '';
|
||||
if (!isset($array['icon']) ) $array['icon'] = '';
|
||||
@@ -1049,11 +1049,11 @@ class UM_Fields {
|
||||
$array['allowed_types'] = implode(',',$array['allowed_types']);
|
||||
}
|
||||
if (!isset($array['upload_text'])) $array['upload_text'] = '';
|
||||
if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimatemember');
|
||||
if (!isset($array['extension_error'])) $array['extension_error'] = __("Sorry this is not a valid file.",'ultimatemember');
|
||||
if (!isset($array['max_size_error'])) $array['max_size_error'] = __("This file is too large!",'ultimatemember');
|
||||
if (!isset($array['min_size_error'])) $array['min_size_error'] = __("This file is too small!",'ultimatemember');
|
||||
if (!isset($array['max_files_error'])) $array['max_files_error'] = __("You can only upload one file",'ultimatemember');
|
||||
if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimate-member');
|
||||
if (!isset($array['extension_error'])) $array['extension_error'] = __("Sorry this is not a valid file.",'ultimate-member');
|
||||
if (!isset($array['max_size_error'])) $array['max_size_error'] = __("This file is too large!",'ultimate-member');
|
||||
if (!isset($array['min_size_error'])) $array['min_size_error'] = __("This file is too small!",'ultimate-member');
|
||||
if (!isset($array['max_files_error'])) $array['max_files_error'] = __("You can only upload one file",'ultimate-member');
|
||||
if (!isset($array['max_size'])) $array['max_size'] = 999999999;
|
||||
if (!isset($array['upload_help_text'])) $array['upload_help_text'] = '';
|
||||
if (!isset($array['icon']) ) $array['icon'] = '';
|
||||
@@ -1334,7 +1334,7 @@ class UM_Fields {
|
||||
$output .= '<div class="um-field' . $classes . '"' . $conditional . ' data-key="'.$key.'">';
|
||||
|
||||
if ( isset( $data['label'] ) ) {
|
||||
$output .= $this->field_label( __('Current Password','ultimatemember'), $key, $data);
|
||||
$output .= $this->field_label( __('Current Password','ultimate-member'), $key, $data);
|
||||
}
|
||||
|
||||
$output .= '<div class="um-field-area">';
|
||||
@@ -1363,7 +1363,7 @@ class UM_Fields {
|
||||
|
||||
if ( $this->set_mode == 'account' && um_is_core_page('account') || $this->set_mode == 'password' && um_is_core_page('password-reset') ) {
|
||||
|
||||
$output .= $this->field_label( __('New Password','ultimatemember'), $key, $data);
|
||||
$output .= $this->field_label( __('New Password','ultimate-member'), $key, $data);
|
||||
|
||||
} else if ( isset( $data['label'] ) ) {
|
||||
|
||||
@@ -1395,7 +1395,7 @@ class UM_Fields {
|
||||
$output .= '<div class="um-field' . $classes . '"' . $conditional . ' data-key="'.$key.'">';
|
||||
|
||||
if ( isset( $data['label'] ) ) {
|
||||
$output .= $this->field_label( sprintf(__('Confirm %s','ultimatemember'), $data['label'] ), $key, $data);
|
||||
$output .= $this->field_label( sprintf(__('Confirm %s','ultimate-member'), $data['label'] ), $key, $data);
|
||||
}
|
||||
|
||||
$output .= '<div class="um-field-area">';
|
||||
@@ -1617,7 +1617,7 @@ class UM_Fields {
|
||||
$output .= $this->field_label($label, $key, $data);
|
||||
}
|
||||
|
||||
$modal_label = ( isset( $data['label'] ) ) ? $data['label'] : __('Upload Photo','ultimatemember');
|
||||
$modal_label = ( isset( $data['label'] ) ) ? $data['label'] : __('Upload Photo','ultimate-member');
|
||||
|
||||
$output .= '<div class="um-field-area" style="text-align: center">';
|
||||
|
||||
@@ -1636,7 +1636,7 @@ class UM_Fields {
|
||||
|
||||
$output .= '<div class="um-single-image-preview show '. $crop_class .'" data-crop="'.$crop_data.'" data-key="'.$key.'">
|
||||
<a href="#" class="cancel"><i class="um-icon-close"></i></a>' . $img . '
|
||||
</div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change photo','ultimatemember') . '</a>';
|
||||
</div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change photo','ultimate-member') . '</a>';
|
||||
|
||||
} else {
|
||||
|
||||
@@ -1671,8 +1671,8 @@ class UM_Fields {
|
||||
|
||||
$output .= '<div class="um-modal-footer">
|
||||
<div class="um-modal-right">
|
||||
<a href="#" class="um-modal-btn um-finish-upload image disabled" data-key="'.$key.'" data-change="'.__('Change photo','ultimatemember').'" data-processing="'.__('Processing...','ultimatemember').'"> ' . __('Apply','ultimatemember') . '</a>
|
||||
<a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimatemember') . '</a>
|
||||
<a href="#" class="um-modal-btn um-finish-upload image disabled" data-key="'.$key.'" data-change="'.__('Change photo','ultimate-member').'" data-processing="'.__('Processing...','ultimate-member').'"> ' . __('Apply','ultimate-member') . '</a>
|
||||
<a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimate-member') . '</a>
|
||||
</div>
|
||||
<div class="um-clear"></div>
|
||||
</div>';
|
||||
@@ -1701,7 +1701,7 @@ class UM_Fields {
|
||||
$output .= $this->field_label($label, $key, $data);
|
||||
}
|
||||
|
||||
$modal_label = ( isset( $data['label'] ) ) ? $data['label'] : __('Upload Photo','ultimatemember');
|
||||
$modal_label = ( isset( $data['label'] ) ) ? $data['label'] : __('Upload Photo','ultimate-member');
|
||||
|
||||
$output .= '<div class="um-field-area" style="text-align: center">';
|
||||
|
||||
@@ -1717,7 +1717,7 @@ class UM_Fields {
|
||||
<span class="filename">' . $this->field_value( $key, $default, $data ) . '</span>
|
||||
</a>
|
||||
</div>
|
||||
</div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change file','ultimatemember') . '</a>';
|
||||
</div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change file','ultimate-member') . '</a>';
|
||||
|
||||
} else {
|
||||
|
||||
@@ -1759,8 +1759,8 @@ class UM_Fields {
|
||||
|
||||
$output .= '<div class="um-modal-footer">
|
||||
<div class="um-modal-right">
|
||||
<a href="#" class="um-modal-btn um-finish-upload file disabled" data-key="'.$key.'" data-change="'.__('Change file').'" data-processing="'.__('Processing...','ultimatemember').'"> ' . __('Save','ultimatemember') . '</a>
|
||||
<a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimatemember') . '</a>
|
||||
<a href="#" class="um-modal-btn um-finish-upload file disabled" data-key="'.$key.'" data-change="'.__('Change file').'" data-processing="'.__('Processing...','ultimate-member').'"> ' . __('Save','ultimate-member') . '</a>
|
||||
<a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimate-member') . '</a>
|
||||
</div>
|
||||
<div class="um-clear"></div>
|
||||
</div>';
|
||||
@@ -2664,9 +2664,9 @@ class UM_Fields {
|
||||
}
|
||||
|
||||
if ( um_is_myprofile() ) {
|
||||
$output .= '<p class="um-profile-note">' . $emo .'<span>' . sprintf(__('Your profile is looking a little empty. Why not <a href="%s">add</a> some information!','ultimatemember'), um_edit_profile_url() ) . '</span></p>';
|
||||
$output .= '<p class="um-profile-note">' . $emo .'<span>' . sprintf(__('Your profile is looking a little empty. Why not <a href="%s">add</a> some information!','ultimate-member'), um_edit_profile_url() ) . '</span></p>';
|
||||
} else {
|
||||
$output .= '<p class="um-profile-note">'. $emo . '<span>' . __('This user has not added any information to their profile yet.','ultimatemember') . '</span></p>';
|
||||
$output .= '<p class="um-profile-note">'. $emo . '<span>' . __('This user has not added any information to their profile yet.','ultimate-member') . '</span></p>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user