Created
March 21, 2013 16:10
-
-
Save anonymous/5214270 to your computer and use it in GitHub Desktop.
Internationalized strings, to be used in javascript.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery("form[name='add_coupon']").submit(function() { | |
var title = jQuery("form[name='add_coupon'] input[name='add_coupon_code']").val(); | |
if ( title == '') { | |
jQuery('<div id="notice" class="error"><p>' + wpsc_adminL10n.empty_coupon + '</p></div>').insertAfter('div.wrap > h2').delay(2500).hide(350); | |
return false; | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_enqueue_script( 'wp-e-commerce-admin', WPSC_URL . '/wpsc-admin/js/admin.js', array( 'jquery', 'jquery-ui-core', 'jquery-ui-sortable' ), $version_identifier, false ); | |
wp_localize_script( 'wp-e-commerce-admin', 'wpsc_adminL10n', array( | |
'empty_coupon' => esc_html__( 'Please enter a coupon code.', 'wpsc' ), | |
'bulk_edit_no_vars' => esc_html__( 'Quick Edit options are limited when editing products that have variations. You will need to edit the variations themselves.', 'wpsc' ), | |
'wpsc_core_images_url' => WPSC_CORE_IMAGES_URL, | |
'variation_parent_swap' => esc_html_x( 'New Variation Set', 'Variation taxonomy parent', 'wpsc' ), | |
/* translators : This string is prepended to the 'New Variation Set' string */ | |
'variation_helper_text' => esc_html_x( 'Choose the Variation Set you want to add variants to. If you\'re creating a new variation set then select', 'Variation helper text', 'wpsc' ), | |
'variations_tutorial' => esc_html__( 'Variations allow you to create options for your products. For example, if you\'re selling T-Shirts, they will generally have a "Size" option. Size will be the Variation Set name, and it will be a "New Variant Set". You will then create variants (small, medium, large) which will have the "Variation Set" of Size. Once you have made your set you can use the table on the right to manage them (edit, delete). You will be able to order your variants by dragging and dropping them within their Variation Set.', 'wpsc' ) | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment