Guest User

wc-shortcodes-editor-i18n.php

a guest
Aug 10th, 2016
114
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3.     exit; // Exit if accessed directly
  4. }
  5.  
  6. $strings = 'tinyMCE.addI18n({' . _WP_Editors::$mce_locale . ': {
  7.     woocommerce_shortcodes: {
  8.         shortcode_title: "' . esc_js( __( 'WooCommerce', 'woocommerce-shortcodes' ) ) . '",
  9.         product: "' . esc_js( __( 'Product', 'woocommerce-shortcodes' ) ) . '",
  10.         list: "' . esc_js( __( 'List', 'woocommerce-shortcodes' ) ) . '",
  11.         add_to_cart: "' . esc_js( __( 'Price/cart button', 'woocommerce-shortcodes' ) ) . '",
  12.         add_to_cart_url: "' . esc_js( __( 'Add to cart URL', 'woocommerce-shortcodes' ) ) . '",
  13.         product_by_sku: "' . esc_js( __( 'By SKU/ID', 'woocommerce-shortcodes' ) ) . '",
  14.         products_by_sku: "' . esc_js( __( 'Products by SKU/ID', 'woocommerce-shortcodes' ) ) . '",
  15.         product_categories: "' . esc_js( __( 'Product categories', 'woocommerce-shortcodes' ) ) . '",
  16.         products_by_cat_slug: "' . esc_js( __( 'Products by category slug', 'woocommerce-shortcodes' ) ) . '",
  17.         products_by_attribute: "' . esc_js( __( 'Products by attributes', 'woocommerce-shortcodes' ) ) . '",
  18.         recent_products: "' . esc_js( __( 'Recent products', 'woocommerce-shortcodes' ) ) . '",
  19.         featured_products: "' . esc_js( __( 'Featured products', 'woocommerce-shortcodes' ) ) . '",
  20.         sale_products: "' . esc_js( __( 'Sale products', 'woocommerce-shortcodes' ) ) . '",
  21.         best_selling_products: "' . esc_js( __( 'Best selling products', 'woocommerce-shortcodes' ) ) . '",
  22.         top_rated_products: "' . esc_js( __( 'Top rated products', 'woocommerce-shortcodes' ) ) . '",
  23.         shop_messages: "' . esc_js( __( 'Shop Messages', 'woocommerce-shortcodes' ) ) . '",
  24.         order_tracking: "' . esc_js( __( 'Order tracking', 'woocommerce-shortcodes' ) ) . '",
  25.         shop_messages_shortcode: "' . esc_js( apply_filters( 'shop_messages_shortcode_tag', 'woocommerce_shop_messages' ) ) . '",
  26.         order_tracking_shortcode: "' . esc_js( apply_filters( 'woocommerce_order_tracking_shortcode_tag', 'woocommerce_order_tracking' ) ) . '",
  27.         id: "' . esc_js( __( 'ID', 'woocommerce-shortcodes' ) ) . '",
  28.         ids: "' . esc_js( __( 'IDs', 'woocommerce-shortcodes' ) ) . '",
  29.         sku: "' . esc_js( __( 'SKU', 'woocommerce-shortcodes' ) ) . '",
  30.         skus: "' . esc_js( __( 'SKUs', 'woocommerce-shortcodes' ) ) . '",
  31.         style: "' . esc_js( __( 'Inline Style', 'woocommerce-shortcodes' ) ) . '",
  32.         show_price: "' . esc_js( __( 'Show Price', 'woocommerce-shortcodes' ) ) . '",
  33.         comma_tooltip: "' . esc_js( __( 'Separate the values with comma', 'woocommerce-shortcodes' ) ) . '",
  34.         number: "' . esc_js( __( 'Number', 'woocommerce-shortcodes' ) ) . '",
  35.         orderby: "' . esc_js( __( 'Order By', 'woocommerce-shortcodes' ) ) . '",
  36.         name: "' . esc_js( __( 'Name', 'woocommerce-shortcodes' ) ) . '",
  37.         count: "' . esc_js( __( 'Count', 'woocommerce-shortcodes' ) ) . '",
  38.         slug: "' . esc_js( __( 'Slug', 'woocommerce-shortcodes' ) ) . '",
  39.         none: "' . esc_js( __( 'None', 'woocommerce-shortcodes' ) ) . '",
  40.         order: "' . esc_js( __( 'Order', 'woocommerce-shortcodes' ) ) . '",
  41.         asc: "' . esc_js( __( 'ASC', 'woocommerce-shortcodes' ) ) . '",
  42.         desc: "' . esc_js( __( 'DESC', 'woocommerce-shortcodes' ) ) . '",
  43.         columns: "' . esc_js( __( 'Columns', 'woocommerce-shortcodes' ) ) . '",
  44.         hide_empty: "' . esc_js( __( 'Hide Empty', 'woocommerce-shortcodes' ) ) . '",
  45.         parent_id: "' . esc_js( __( 'Parent ID', 'woocommerce-shortcodes' ) ) . '",
  46.         category_slug: "' . esc_js( __( 'Category Slug', 'woocommerce-shortcodes' ) ) . '",
  47.         default: "' . esc_js( __( 'Default', 'woocommerce-shortcodes' ) ) . '",
  48.         rand: "' . esc_js( __( 'Random', 'woocommerce-shortcodes' ) ) . '",
  49.         date: "' . esc_js( __( 'Date', 'woocommerce-shortcodes' ) ) . '",
  50.         price: "' . esc_js( __( 'Price', 'woocommerce-shortcodes' ) ) . '",
  51.         popularity: "' . esc_js( __( 'Popularity', 'woocommerce-shortcodes' ) ) . '",
  52.         rating: "' . esc_js( __( 'Rating', 'woocommerce-shortcodes' ) ) . '",
  53.         title: "' . esc_js( __( 'Title', 'woocommerce-shortcodes' ) ) . '",
  54.         operator: "' . esc_js( __( 'Operator', 'woocommerce-shortcodes' ) ) . '",
  55.         in: "' . esc_js( __( 'IN', 'woocommerce-shortcodes' ) ) . '",
  56.         not_in: "' . esc_js( __( 'NOT IN', 'woocommerce-shortcodes' ) ) . '",
  57.         and: "' . esc_js( __( 'AND', 'woocommerce-shortcodes' ) ) . '",
  58.         attribute_slug: "' . esc_js( __( 'Attribute slug', 'woocommerce-shortcodes' ) ) . '",
  59.         terms_slug: "' . esc_js( __( 'Terms slug', 'woocommerce-shortcodes' ) ) . '",
  60.         categories_per_page: "' . esc_js( __( 'Categories Per Page', 'woocommerce-shortcodes' ) ) . '",
  61.         products_per_page: "' . esc_js( __( 'Products Per Page', 'woocommerce-shortcodes' ) ) . '",
  62.         need_id_or_sku: "' . esc_js( __( 'You need to use an ID or SKU!', 'woocommerce-shortcodes' ) ) . '",
  63.         need_ids_or_skus: "' . esc_js( __( 'You need to use an IDs or SKUs!', 'woocommerce-shortcodes' ) ) . '",
  64.         need_category_slug: "' . esc_js( __( 'You need enter with a category slug!', 'woocommerce-shortcodes' ) ) . '",
  65.         need_attribute_and_terms_slugs: "' . esc_js( __( 'You need enter with an attribute and terms slugs!', 'woocommerce-shortcodes' ) ) . '"
  66.     }
  67. }});';
RAW Paste Data