[Skip to main content](#vessel-content)

#   Multilanguage in the shipping plugin

##

- **[IGrock](/forum/user/37695-igrock "View IGrock's Profile")**
- [![IGrock's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37695.jpg)](/forum/user/37695-igrock "View IGrock's Profile") Topic Author
- [ Offline](/forum/user/37695-igrock)

Less More

- Posts: 76
- Thank you received: 9
-
-

9 years 2 months ago [\#276911](#276911) by [IGrock](/forum/user/37695-igrock "View IGrock's Profile")  *[Multilanguage in the shipping plugin](/forum/31-development/891685-multilanguage-in-the-shipping-plugin#276911 "Hi,  I'm developing a plugin delivery. I want to use multilanguage in myplugin&#95;configuration.php. The code snippet:  Created en-GB.plg&#95;hikashopshipping&#95;myplugin.ini and in myplugin.xml added unit:  After installing the plugin en-GB.plg&#95;hikashopshipping&#95;myplugin.ini appeared in /mysite/administrator/language/en-GB/en-GB.plg&#95;hikashopshipping&#95;myplugin.ini, but the constants are not framed on the page (screenshot).  Am I doing something not right or a multilanguage in hikashopshipping not supported?")* was created by *[IGrock](/forum/user/37695-igrock "View IGrock's Profile")*

Hi,

I'm developing a plugin delivery.
I want to use multilanguage in myplugin_configuration.php. The code snippet: Code:

&lt;td class="key"&gt; &lt;label for="data[shipping][shipping_params][googleApiKey]"&gt;&lt;?php echo JText::_('PLG_HIKASHOPSHIPPING_BYDISTANCE_GOOGLE_API_KEY'); ?&gt;&lt;/label&gt; &lt;/td&gt;

Created en-GB.plg_hikashopshipping_myplugin.ini and in myplugin.xml added unit: Code:

&lt;languages&gt; &lt;language tag="en-GB"&gt;en-GB.plg_hikashopshipping_myplugin.ini&lt;/language&gt; &lt;/languages&gt;

After installing the plugin en-GB.plg_hikashopshipping_myplugin.ini appeared in /mysite/administrator/language/en-GB/en-GB.plg_hikashopshipping_myplugin.ini, but the constants are not framed on the page (screenshot).

Am I doing something not right or a multilanguage in hikashopshipping not supported?

- [ ![2017-08-25&#95;13-03-57.png](/forum/attachment/39981) ](/forum/attachment/39981 "...5&#95;13-03-57.png") [ ](/forum/attachment/39981?download=1 "...5&#95;13-03-57.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5MTY4NS1tdWx0aWxhbmd1YWdlLWluLXRoZS1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

9 years 2 months ago [\#276920](#276920) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Multilanguage in the shipping plugin](/forum/31-development/891685-multilanguage-in-the-shipping-plugin#276920 "Hi,  I'm developing a plugin delivery. I want to use multilanguage in myplugin&#95;configuration.php. The code snippet:  Created en-GB.plg&#95;hikashopshipping&#95;myplugin.ini and in myplugin.xml added unit:  After installing the plugin en-GB.plg&#95;hikashopshipping&#95;myplugin.ini appeared in /mysite/administrator/language/en-GB/en-GB.plg&#95;hikashopshipping&#95;myplugin.ini, but the constants are not framed on the page (screenshot).  Am I doing something not right or a multilanguage in hikashopshipping not supported?")*

Hello,

The multilanguage should be supported, shipping plugins are also Joomla plugins so checking that page will probably help :
[ docs.joomla.org/J3.x:Developing\_an\_MVC\_C...\_language\_management](https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_language_management)

Modifying the "language" code of your xml file by : Code:

&lt;languages folder="language"&gt; &lt;language tag="en-GB"&gt;en-GB/en-GB.plg_hikashopshipping_myplugin.ini&lt;/language&gt; &lt;/languages&gt;

Will probably do the job.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5MTY4NS1tdWx0aWxhbmd1YWdlLWluLXRoZS1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[IGrock](/forum/user/37695-igrock "View IGrock's Profile")**
- [![IGrock's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37695.jpg)](/forum/user/37695-igrock "View IGrock's Profile") Topic Author
- [ Offline](/forum/user/37695-igrock)

Less More

- Posts: 76
- Thank you received: 9
-
-

9 years 2 months ago [\#276972](#276972) by [IGrock](/forum/user/37695-igrock "View IGrock's Profile")  Replied by *[IGrock](/forum/user/37695-igrock "View IGrock's Profile")* on topic *[Multilanguage in the shipping plugin](/forum/31-development/891685-multilanguage-in-the-shipping-plugin#276972 "Hi,  I'm developing a plugin delivery. I want to use multilanguage in myplugin&#95;configuration.php. The code snippet:  Created en-GB.plg&#95;hikashopshipping&#95;myplugin.ini and in myplugin.xml added unit:  After installing the plugin en-GB.plg&#95;hikashopshipping&#95;myplugin.ini appeared in /mysite/administrator/language/en-GB/en-GB.plg&#95;hikashopshipping&#95;myplugin.ini, but the constants are not framed on the page (screenshot).  Am I doing something not right or a multilanguage in hikashopshipping not supported?")*

It didn't help. What was to change? The former option "language" in the XML file also worked, when you install the plugin file is copied to /MySite/administrator/language/EN-GB/. But the problem is that the language constants are not read from /MySite/administrator/language/EN-GB/EN-GB.plg_hikashopshipping_myplugin.ini.

By the way, exactly the same code in plugins hikashoppayment working fine!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5MTY4NS1tdWx0aWxhbmd1YWdlLWluLXRoZS1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

9 years 2 months ago [\#276991](#276991) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Multilanguage in the shipping plugin](/forum/31-development/891685-multilanguage-in-the-shipping-plugin#276991 "Hi,  I'm developing a plugin delivery. I want to use multilanguage in myplugin&#95;configuration.php. The code snippet:  Created en-GB.plg&#95;hikashopshipping&#95;myplugin.ini and in myplugin.xml added unit:  After installing the plugin en-GB.plg&#95;hikashopshipping&#95;myplugin.ini appeared in /mysite/administrator/language/en-GB/en-GB.plg&#95;hikashopshipping&#95;myplugin.ini, but the constants are not framed on the page (screenshot).  Am I doing something not right or a multilanguage in hikashopshipping not supported?")*

Hi,

Both types of plugins are normal Joomla plugins and you can use translation files with them.
If the translation file is not loaded, it's probably an error in the translation file breaking the parsing of the file.
Turn on the "debug language" setting of the Joomla configuration page and try again.
You'll see at the bottom of the page with the issue the list of language files and if there was an error in them and if yes, on which line.
Make sure that your translation file has no errors.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5MTY4NS1tdWx0aWxhbmd1YWdlLWluLXRoZS1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[IGrock](/forum/user/37695-igrock "View IGrock's Profile")**
- [![IGrock's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37695.jpg)](/forum/user/37695-igrock "View IGrock's Profile") Topic Author
- [ Offline](/forum/user/37695-igrock)

Less More

- Posts: 76
- Thank you received: 9
-
-

9 years 2 months ago [\#276994](#276994) by [IGrock](/forum/user/37695-igrock "View IGrock's Profile")  Replied by *[IGrock](/forum/user/37695-igrock "View IGrock's Profile")* on topic *[Multilanguage in the shipping plugin](/forum/31-development/891685-multilanguage-in-the-shipping-plugin#276994 "Hi,  I'm developing a plugin delivery. I want to use multilanguage in myplugin&#95;configuration.php. The code snippet:  Created en-GB.plg&#95;hikashopshipping&#95;myplugin.ini and in myplugin.xml added unit:  After installing the plugin en-GB.plg&#95;hikashopshipping&#95;myplugin.ini appeared in /mysite/administrator/language/en-GB/en-GB.plg&#95;hikashopshipping&#95;myplugin.ini, but the constants are not framed on the page (screenshot).  Am I doing something not right or a multilanguage in hikashopshipping not supported?")*

No errors in **Parsing errors in language file**. But in the **Language Files Loaded** my file is missing. And in the **Untranslated Strings** is my language constants. Do you have a working example of third-party multilanguage shipping plugin?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5MTY4NS1tdWx0aWxhbmd1YWdlLWluLXRoZS1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

9 years 2 months ago [\#277002](#277002) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Multilanguage in the shipping plugin](/forum/31-development/891685-multilanguage-in-the-shipping-plugin#277002 "Hi,  I'm developing a plugin delivery. I want to use multilanguage in myplugin&#95;configuration.php. The code snippet:  Created en-GB.plg&#95;hikashopshipping&#95;myplugin.ini and in myplugin.xml added unit:  After installing the plugin en-GB.plg&#95;hikashopshipping&#95;myplugin.ini appeared in /mysite/administrator/language/en-GB/en-GB.plg&#95;hikashopshipping&#95;myplugin.ini, but the constants are not framed on the page (screenshot).  Am I doing something not right or a multilanguage in hikashopshipping not supported?")*

We include the translations we need directly in the main language file of HikaShop for the plugins included in HikaShop.
This shipping plugin from brainforge has translation files and is free to download:
[ brainforge.co.uk/downloads/hikashop-deli.../3-brainforge-manual](https://brainforge.co.uk/downloads/hikashop-delivery-date-plug-ins/product/3-brainforge-manual)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5MTY4NS1tdWx0aWxhbmd1YWdlLWluLXRoZS1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[IGrock](/forum/user/37695-igrock "View IGrock's Profile")**
- [![IGrock's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37695.jpg)](/forum/user/37695-igrock "View IGrock's Profile") Topic Author
- [ Offline](/forum/user/37695-igrock)

Less More

- Posts: 76
- Thank you received: 9
-
-

9 years 2 months ago [\#277007](#277007) by [IGrock](/forum/user/37695-igrock "View IGrock's Profile")  Replied by *[IGrock](/forum/user/37695-igrock "View IGrock's Profile")* on topic *[Multilanguage in the shipping plugin](/forum/31-development/891685-multilanguage-in-the-shipping-plugin#277007 "Hi,  I'm developing a plugin delivery. I want to use multilanguage in myplugin&#95;configuration.php. The code snippet:  Created en-GB.plg&#95;hikashopshipping&#95;myplugin.ini and in myplugin.xml added unit:  After installing the plugin en-GB.plg&#95;hikashopshipping&#95;myplugin.ini appeared in /mysite/administrator/language/en-GB/en-GB.plg&#95;hikashopshipping&#95;myplugin.ini, but the constants are not framed on the page (screenshot).  Am I doing something not right or a multilanguage in hikashopshipping not supported?")*

Obviously the developers of the bfmanual plugin are faced with the same problem, so they are in the plugin there is a method: Code:

public static function trans($text) { $language = JFactory::getLanguage(); $language-&gt;load('plg_hikashopshipping_bfmanual', JPATH_ADMINISTRATOR, 'en-GB', true); return jText::_($text); }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5MTY4NS1tdWx0aWxhbmd1YWdlLWluLXRoZS1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

9 years 2 months ago [\#277012](#277012) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Multilanguage in the shipping plugin](/forum/31-development/891685-multilanguage-in-the-shipping-plugin#277012 "Hi,  I'm developing a plugin delivery. I want to use multilanguage in myplugin&#95;configuration.php. The code snippet:  Created en-GB.plg&#95;hikashopshipping&#95;myplugin.ini and in myplugin.xml added unit:  After installing the plugin en-GB.plg&#95;hikashopshipping&#95;myplugin.ini appeared in /mysite/administrator/language/en-GB/en-GB.plg&#95;hikashopshipping&#95;myplugin.ini, but the constants are not framed on the page (screenshot).  Am I doing something not right or a multilanguage in hikashopshipping not supported?")*

Hi,

Well, the JPlugin class (that your plugin extends through the hikashopPlugin class) has an attribute called $autoloadLanguage which will load the translation file of the plugin for you if you set it to yes by overriding the attribute in the definition of the class. Maybe you and brainforge didn't know about it and thus didn't set it ?
If you don't, then it's up to you to load the translation file like brainforge does.

The following user(s) said Thank You: [IGrock](/forum/user/37695-igrock "View IGrock's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5MTY4NS1tdWx0aWxhbmd1YWdlLWluLXRoZS1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[IGrock](/forum/user/37695-igrock "View IGrock's Profile")**
- [![IGrock's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37695.jpg)](/forum/user/37695-igrock "View IGrock's Profile") Topic Author
- [ Offline](/forum/user/37695-igrock)

Less More

- Posts: 76
- Thank you received: 9
-
-

9 years 2 months ago [\#277028](#277028) by [IGrock](/forum/user/37695-igrock "View IGrock's Profile")  Replied by *[IGrock](/forum/user/37695-igrock "View IGrock's Profile")* on topic *[Multilanguage in the shipping plugin](/forum/31-development/891685-multilanguage-in-the-shipping-plugin#277028 "Hi,  I'm developing a plugin delivery. I want to use multilanguage in myplugin&#95;configuration.php. The code snippet:  Created en-GB.plg&#95;hikashopshipping&#95;myplugin.ini and in myplugin.xml added unit:  After installing the plugin en-GB.plg&#95;hikashopshipping&#95;myplugin.ini appeared in /mysite/administrator/language/en-GB/en-GB.plg&#95;hikashopshipping&#95;myplugin.ini, but the constants are not framed on the page (screenshot).  Am I doing something not right or a multilanguage in hikashopshipping not supported?")*

Oh, really I didn't have $autoloadLanguage = true. Thank You, Nicolas.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5MTY4NS1tdWx0aWxhbmd1YWdlLWluLXRoZS1zaGlwcGluZy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.073 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
