Where to translate EB search module mini calendar

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 7 months ago #127189 by Patrick
Hello

I try to find translations for the mini calendar of search module.

I want to change day names:


In EB > translations there EB_MON is translated as "Mo". But it looks like the module does not pull the information from there.

I did search in Extensions > languages > Overrides but did not find "Mon", "Die" etc.

And in language folder > de-DE there is no file for EB search module.

Where can I find the translation?

Thanks.

Patrick

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

More
4 years 7 months ago #127192 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Where to translate EB search module mini calendar
Hi Patrick

The date picker is actually generated by Joomla, so it must be translated in the language file

Maybe you can try to change it using Joomla language override docs.joomla.org/J3.x:Language_Overrides_in_Joomla ?

Regards,

Tuan

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

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 7 months ago - 4 years 7 months ago #127194 by Patrick
Hi Tuan

I already did search in Overrides but I can't find it there. Strange...

But now I found it here:
\media\system\js\fields\calendar-locales\de.js

Patrick
Last edit: 4 years 7 months ago by Patrick.

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

More
4 years 7 months ago #127203 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Where to translate EB search module mini calendar
Honestly I don't know if this file could be override. So if you make change directly to the file, the change will be lost when you update to future releases of Joomla

Tuan

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

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 7 months ago #127236 by Patrick
Overriding here seems not follow standard procedure, but still, it's possible:

In folder media/system/js/fields/calendar-locales/ create a copy of the desired language file and rename it. For example:

Copy and paste
en.js
rename it to
en-gb.js or en-us.js
(depending on language pack you have set up in joomla)

Then do your changes in en-gb.js.

Joomla automatically will load en-gb.js.

Patrick

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

More
4 years 7 months ago #127246 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Where to translate EB search module mini calendar
OK, great. Thanks for sharing the information

Tuan

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

Moderators: Tuan Pham Ngoc