| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
exit; // Exit if accessed directly |
| 5 |
} |
| 6 |
|
| 7 |
/** |
| 8 |
* Merchant - Multi Language |
| 9 |
*/ |
| 10 |
if ( ! interface_exists( 'Merchant_Language_Strategy' ) ) { |
| 11 |
interface Merchant_Language_Strategy { |
| 12 |
|
| 13 |
/** |
| 14 |
* Register a string for translation. |
| 15 |
* |
| 16 |
* @param string $string_to_register The string to translate. |
| 17 |
* @param string $context The context of the string. |
| 18 |
* @param bool $multiline Whether the string is multiline or not. |
| 19 |
*/ |
| 20 |
public function register_string( $string_to_register, $context, $multiline = false ); |
| 21 |
|
| 22 |
/** |
| 23 |
* Translate a string. |
| 24 |
* |
| 25 |
* @param string $string_to_translate The string to translate. |
| 26 |
* |
| 27 |
* @return string |
| 28 |
*/ |
| 29 |
public function translate_string( $string_to_translate ); |
| 30 |
|
| 31 |
/** |
| 32 |
* Get Current language code |
| 33 |
* |
| 34 |
* @return string |
| 35 |
*/ |
| 36 |
public function get_current_lang(); |
| 37 |
} |
| 38 |
} |
| 39 |
|