Wrong language for month in Upcoming events module (improved layout)

  • Ignacio Granados
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 weeks 5 days ago #119830 by Ignacio Granados
Hi,

I have a multilingual site with an upcoming events module. It allways shows the trhee letters of the month in english despite the frontend language or the module language. For example, it shows in the "calendar box" DEC (for december) instead of DIC (diciembre, spanish).

It seems that this is not a server issue since upcoming events component shows the correct language (i.e. DIC in the "calender circle".
Attachments:

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
2 weeks 5 days ago #119833 by Tuan Pham Ngoc
Hi

That text is actually rendered by PHP core date function php.net/manual/en/function.date.php , so look like language is not handled properly (by php or Joomla core API) for some reasons

In this case, please submit a support ticket sending us super admin account of your site and link to the page which we can see this error

We will check to see what's wrong and get it sorted

Tuan

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

  • Ignacio Granados
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 weeks 4 days ago #119867 by Ignacio Granados
Solved by Tuan. Thanks!

For others with the same problem: you have to edit your file language/xx-XX/xx-XX.com_eventbooking.ini (xx-XX is your language code) and translate:

EB_JAN_SHORT="JAN"
EB_FEB_SHORT="FEB"
EB_MARCH_SHORT="MAR"
EB_APR_SHORT="APR"
EB_MAY_SHORT="MAY"
EB_JUNE_SHORT="JUN"
EB_JULY_SHORT="JUl"
EB_AUG_SHORT="AUG"
EB_SEP_SHORT="SEP"
EB_OCT_SHORT="OCT"
EB_NOV_SHORT="NOV"
EB_DEC_SHORT="DEC"
The following user(s) said Thank You: Tuan Pham Ngoc

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
2 weeks 4 days ago #119880 by Tuan Pham Ngoc
Yes, that's correct. In this case, it does not work as expected because there were some language items were not translated

Many thanks Ignacio for sharing the reason back to forum

Tuan

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

Moderators: Tuan Pham Ngoc