PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.8.2
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.8.2
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
merchant / inc / MultiLang / class-merchant-no-plugin-support.php

class-merchant-no-plugin-support.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 1.8.2, at inc/MultiLang/class-merchant-no-plugin-support.php

46 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit; // Exit if accessed directly
5 }
6
7 /**
8 * Merchant - No Plugin Support
9 *
10 * This class is not meant to be used directly. It will be used by the Merchant_Translator class.
11 */
12 if ( ! class_exists( 'Merchant_No_Plugin_Support' ) ) {
13 class Merchant_No_Plugin_Support implements Merchant_Language_Strategy {
14
15 /**
16 * Register a string for translation.
17 *
18 * @param string $string_to_register The string to translate.
19 * @param string $context The context of the string.
20 * @param bool $multiline Whether the string is multiline or not.
21 */
22 public function register_string( $string_to_register, $context, $multiline = false ) {
23 // Do nothing.
24 }
25
26 /**
27 * Translate a string.
28 *
29 * @param string $string_to_translate The string to translate.
30 *
31 * @return string
32 */
33 public function translate_string( $string_to_translate ) {
34 return $string_to_translate;
35 }
36
37 /**
38 * Get WordPress language code
39 *
40 * @return string
41 */
42 public function get_current_lang() {
43 return get_locale();
44 }
45 }
46 }