Support Forum

Please use this support forum to submit your questions. But before that please browse to the extension page for previously discussed issue and you may get your solution already. In order to post a new support question, you need to login first. If you don't have account, please register to JoomlaKave.

Support Forum open - (Sunday to Thursday at 9.00am to 7.00pm GMT, UTC +06.00) & Closed on Friday and Saturday)

 

  1. Hrvoje Znaor
  2. JK Weather Forecast
  3. Tuesday, January 31 2017, 10:14 AM
  4.  Subscribe via email
Hello

I just purchased your module.

Please advise how to make module multi-language?
In module options there is settings for language,
but with this option set, module is set in that language only and it doesn't change language when language flag is clicked.
My website is multi-language so module should change language according to selected language flag.

Also, if language is set into Croatian, some characters shows ? instead of actual character, like Ž.
This means that module doesn't use utf-8 code page and it should.

Where are language phrases stored?
I've looked into Module folder and language folder but I couldn't find it.

Joomla 3.6.5
JK Weather Forecast 1.5

Thanks,
Regards
Rate this post:
Comment
There are no comments made yet.
Hrvoje Znaor Accepted Answer
0
Votes
Undo
Hello

I managed to fix it by myself:
1. I converted tmpl/default.php module into utf-8
2. In default.php file, after initial settings, approx line 75, I've added this:

$lang = JFactory::getLanguage();
$apiLanguage = substr($lang->getTag(), 0, 2);


This gets currently selected frontend language tag, and shortens it, for example "en-GB" into "en"
Now your module can use Joomla's native language tag system.

Hint: Maybe you could add this into new versions?

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. JK Weather Forecast
  3. # 1
Ahsan Ahmed Shovon Accepted Answer
0
Votes
Undo
Hello,

At first thanks for advice. We will update it in next version.


Regards
Ahsan Shovon
From
JoomlaKave Support Team
Comment
There are no comments made yet.
  1. more than a month ago
  2. JK Weather Forecast
  3. # 2
Hrvoje Znaor Accepted Answer
0
Votes
Undo
Hello

I just installed latest version and my suggestion is still not implemented :(
Is it so hard to add two lines of well known code and have your module more versatile?

Regards
Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Google+