# merchant/1.8.3/inc/MultiLang/interface-language-strategy.php

Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together &amp; More for WooCommerce – Merchant, version 1.8.3. 39 lines.

- Page: https://pluginprobe.com/plugins/merchant/1.8.3/code/inc/MultiLang/interface-language-strategy.php
- Raw: https://pluginprobe.com/plugins/merchant/1.8.3/raw/inc/MultiLang/interface-language-strategy.php
- Modified: 2024-01-18T16:38:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/merchant/1.8.3/code/inc/MultiLang/interface-language-strategy.php#L10-L20`.

```php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

/**
 * Merchant - Multi Language
 */
if ( ! interface_exists( 'Merchant_Language_Strategy' ) ) {
	interface Merchant_Language_Strategy {

		/**
		 * Register a string for translation.
		 *
		 * @param string $string_to_register The string to translate.
		 * @param string $context            The context of the string.
		 * @param bool   $multiline          Whether the string is multiline or not.
		 */
		public function register_string( $string_to_register, $context, $multiline = false );

		/**
		 * Translate a string.
		 *
		 * @param string $string_to_translate The string to translate.
		 *
		 * @return string
		 */
		public function translate_string( $string_to_translate );

		/**
		 * Get Current language code
		 *
		 * @return string
		 */
		public function get_current_lang();
	}
}

```
