Welcome, Guest
Username: Password: Remember me
EventList 1.0.2 for Joomla 1.6 - 2.5

TOPIC:

EventList1.0.2 custom plugin -- cannot switch language... 5 years 11 months ago #15785

  • hhtmp88
  • hhtmp88's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 68
  • Karma: 1
  • Thank you received: 4
Dear all,

I have the EventList1.0.2 custom plugin, "plg_simplelist_bycity_25_a2_(Tested_working).zip", see attached file.
-> but it cannot switch language to Chinese and can display in English Only.
-> see attached screen capture on how it looks like
-> so can you give some hints on how to make the plugin to switch to language according to Joomla's Language settings?
-> the default language of Joomla is Traditional Chinese as you see in the screen capture.

Thanks for any kind of help!
JMY(晉明夷)
mfYoga.org -- Mindfulness Yoga Association 靜觀瑜伽協會
YogaJM.com -- YogaJM 晉明瑜伽
jmy89.me -- JMY 晉明日誌
jm3ime.com -- JinMing 3-Key Chinese Input Method 晉明三鍵輸入法
Attachments:

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

EventList1.0.2 custom plugin -- cannot switch language... 5 years 11 months ago #15786

  • Hoffi
  • Hoffi's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 2279
  • Karma: 52
  • Thank you received: 449
I think that's because there is no corresponding language file.
I would say you need to search for the english file (in ...language/en-GB), translate it yourself and store it on ...language/zh-TW with filename adapted. Then I hope it will be used automatically.
Pessimists are optimists with experience!

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

EventList1.0.2 custom plugin -- cannot switch language... 5 years 11 months ago #15787

  • hhtmp88
  • hhtmp88's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 68
  • Karma: 1
  • Thank you received: 4
Yes, I do place the "zh-TW.com_eventlist.ini" in "Joomla/language/zh-TW"
-> but don't know why the custom plugin does not switch language according to Joomla's setting?
-> other eventlist functions, such as "venueevent" view, can switch language
JMY(晉明夷)
mfYoga.org -- Mindfulness Yoga Association 靜觀瑜伽協會
YogaJM.com -- YogaJM 晉明瑜伽
jmy89.me -- JMY 晉明日誌
jm3ime.com -- JinMing 3-Key Chinese Input Method 晉明三鍵輸入法

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

EventList1.0.2 custom plugin -- cannot switch language... 5 years 11 months ago #15788

  • Hoffi
  • Hoffi's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 2279
  • Karma: 52
  • Thank you received: 449
No, I talked about en-GB.plg_content_eventlist_simplelist_bycity*.ini, not the component's language file.

// edit:
But seems these files are located on ...plugins/content/plg_simplelist_by_city/language (or so)
so you need to duplicate the en-GB folder as zh-TW and adapt the files inside (rename and translate).
Pessimists are optimists with experience!

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

Last edit: by Hoffi.

EventList1.0.2 custom plugin -- cannot switch language... 5 years 11 months ago #15797

  • hhtmp88
  • hhtmp88's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 68
  • Karma: 1
  • Thank you received: 4

Hoffi wrote: No, I talked about en-GB.plg_content_eventlist_simplelist_bycity*.ini, not the component's language file.
// edit:
But seems these files are located on ...plugins/content/plg_simplelist_by_city/language (or so)
so you need to duplicate the en-GB folder as zh-TW and adapt the files inside (rename and translate).

Wow, Hoffi, you let me know the right place to go!
-> the exact location is "public_html/Joomla/plugins/content/eventlist_simplelist_bycity/language/zh-TW"
-> I can translate the listing title text now
===================================================
PLG_SIMPLELIST_BYCITY_TABLE_TH_WEEKDAY="週日"
PLG_SIMPLELIST_BYCITY_TABLE_TH_TIME="Time 時間"
PLG_SIMPLELIST_BYCITY_TABLE_TH_TITLE="Title 活動名稱"
PLG_SIMPLELIST_BYCITY_TABLE_TH_VENUE="Venue 活動場館"
PLG_SIMPLELIST_BYCITY_TABLE_TH_STARTDATE="開課日期"

PLG_SIMPLELIST_BYCITY_DATEFORMAT_LABEL="Date format"
PLG_SIMPLELIST_BYCITY_DATEFORMAT_DESC="See strftime documentation"
PLG_SIMPLELIST_BYCITY_TIMEFORMAT_LABEL="Time format"
PLG_SIMPLELIST_BYCITY_TIMEFORMAT_DESC="See strftime documentation"
================================================

However, the "weekday", "time" and the "Start date" info are still in English format, e.g.:
=================================================================
Monday pm 6:00-7:00 KT 觀塘:暢通淋巴 纖體瑜伽班(週一 晚6) (KT-Sleepless-011-D) Sleepless Studio (觀塘 興業街) Dec 01, 2014
=================================================================
-> weekday is displayed as "Monday" and not "週一"
-> time is displayed as "pm 6:00-7:00" and not "下午 6:00-7:00"
-> start date is displayed as "Dec 01, 2014" and not "12月 01, 2014"

So, any hints on how to make the listed info also switch to the right language?
Thanks for any kind of help!
JMY(晉明夷)
mfYoga.org -- Mindfulness Yoga Association 靜觀瑜伽協會
YogaJM.com -- YogaJM 晉明瑜伽
jmy89.me -- JMY 晉明日誌
jm3ime.com -- JinMing 3-Key Chinese Input Method 晉明三鍵輸入法

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

EventList1.0.2 custom plugin -- cannot switch language... 5 years 11 months ago #15798

  • Hoffi
  • Hoffi's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 2279
  • Karma: 52
  • Thank you received: 449
Good morning... ehm evening ;)

Regarding date/time I fear this requires some code patches. I've neot tried this plugin because I'm busy with JEM development but in theory the plugin should use date/time functions respecting the locale and also the right locale must be set before. So maybe the right functions are used but with servers default locale which may say "English format".
An alternativ would be to use JDate which is part of Joomla! and so knows about the site's or user's language.

I hope there is someone else with a bit time and knowledge to fix this.

...or maybe I'm thinking too complicated. You could take a look on the plugin's settings if and how you can configure date and time format (e.g. with cryptic "%Y%m%d" or so). Then you can take a look at the PHP Manual which cryptic codes do what. If the code uses the percent sign % look at strftime, otherwise look at date. Maybe it helps.
Pessimists are optimists with experience!

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

Time to create page: 0.257 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......