Make en-AU the default language

  • Posts: 167
  • Thank you received: 26
  • Hikashop Business
23 hours 4 minutes ago #373160

-- HikaShop version -- : 6.5.2 [2608261812]
-- Joomla version -- : 6.1.3
-- PHP version -- : 8.4.24

I have the following language situation

Joomla en-AU = enabled
Joomla en-AU = default
Joomla en-GB = disabled

HikaShop en-AU = available
HikaShop en-GB = available

How do I force HikaShop to adopt en-AU as the default language and potentially disable en-GB?

I've been chasing language file updates and its doing my head in as both languages are available with HikaShop and some parts of the HikaShop Component are en-GB and others en-AU and emails sent are using one or the other in no particular order.

OK I can edit both Overrides, as a workaround .... but it would be just great to customise one language file and not two

Hoping I'm missing something simple

Last edit: 23 hours 2 minutes ago by yerg55. Reason: alterations and speeeellling

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

  • Posts: 86080
  • Thank you received: 14187
  • MODERATOR
19 hours 45 minutes ago #373161

Hi,

HikaShop is written in English (en-GB), and every other language, en-AU included, is a translation file loaded on top of that English file. Any text the translation does not carry keeps its English wording. Disabling en-GB in Joomla changes nothing there: HikaShop's English file is always the base, and it is not tied to the en-GB language of your site.

Three things worth checking:

1. The version of your Australian file. Open HikaShop > System > Configuration. If a warning about the language file appears at the top of the page, click the link in it to load the latest one. A file left at an older version has none of the keys added since, and those display in English.

2. The file itself. PHP refuses eight words as keys in an ini file: NULL, YES, NO, TRUE, FALSE, ON, OFF and NONE. One line such as:

YES="Yes"

in language/en-AU/en-AU.com_hikashop.ini or in language/overrides/en-AU.override.ini makes PHP drop the whole file without a word, and every text in it goes back to English. A key containing one of ! | & ~ ( ) { } $ " ^ does the same. Setting Debug Language to Yes in Joomla's global configuration makes Joomla report the faulty file instead of staying silent.

3. Where your overrides are. Translation overrides are per language. Joomla does read en-GB.override.ini on a site running en-AU, but only as a base layer, which any text defined by the en-AU or the English file of HikaShop then replaces, and that is nearly every text. So on your site the overrides have to be in en-AU.override.ini. The translation editor of HikaShop, the pencil next to each language in System > Configuration > Languages, writes them there for you.

The emails are a bug on our side. When a notification has to go out in a language other than the one of the page, HikaShop switches the translations and switches them back afterwards by loading the previous language on top. That only brings back the texts the previous language actually translates, so everything it leaves to English, and every override you made, kept the wording of the notification for the rest of the page and for the notifications sent after it. I've made a patch for this on our end. Download the install package of HikaShop on our website and install it on yours in order to get the patch. Then, you should not have the override issue you describe.

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

  • Posts: 167
  • Thank you received: 26
  • Hikashop Business
2 hours 47 minutes ago #373170

Making absolute sense now.

I installed the latest component again, and downloaded the latest en-AU file as well, made no difference which is what sent me down the rabbit hole.

Thinking overnight I'll forget an-AU altogether and do all my specific overrides and the AU tax etc in the en-BG lang file to make life easier

I've been getting the click to update the lang file but that appears as a distraction as when I log back in the alert remains.

Thanks as always for your brilliant support

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

Time to create page: 0.038 seconds
Powered by Kunena Forum