Default en-US not being used

  • Posts: 332
  • Thank you received: 6
4 years 7 months ago #317939

-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.18
-- PHP version -- : 7.3
-- Browser(s) name and version -- : Chrome/Firefox/Edge - all updated
-- Error-message(debug-mod must be tuned on) -- : No error message

I have en-US installed and set as default. en-GB is installed but disabled under the Joomla Extensions > Languages > Content Languages.

In HikaShop > Configuration > Languages, it shows both en-GB and en-US. I needed to change the text for a code HIKASHOP_DISCOUNT_CODE. When I added it in the en-US file, it did not display on the orders page. When I added it in the en-GB file, it displayed it on the orders page. This tells me that although en-US is the default and is enabled, that HikaShop is using the installed en-GB file even though it is disabled in the Joomla Content Languages.

How can I disable the en-GB language for Hikashop?

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
4 years 7 months ago #317944

Hi,

The en-GB is the fall back language in both HikaShop and Joomla.
So if HikaShop/Joomla doesn't find a translation key in the current language, it checks if it can find it in the en-GB language.
So you can't disable the en-GB translation keys.
However, what you describe indicates that you probably have an error in the en-US language file or its override preventing Joomla from parsing the file and thus it can't use the translation keys of the en-US language, and thus it defaults to the en-GB translation keys.
I would recommend to activate the "debug language" setting of the Joomla configuration and check again the page where that translation key is used while logged in with the en-US language. At the bottom of the page, you'll see language debug information which will tell you which line of which translation file has an error.

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum