jDiction Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

jDiction 2.2.0 released. http://jdiction.org/downloads

Author Topic: jdiction - remember chosen language  (Read 14450 times)

hkk

  • Newbie
  • *
  • Posts: 19
    • View Profile
jdiction - remember chosen language
« on: July 20, 2015, 09:11:48 pm »

Hi. I have site with joomla 3.4 and jdiction. I have some banners with links to articles in my site. The links in the banners are something like index.php/page1  When i change language and use the menus its OK, but when i click on banner the language change to native. Same with the site logo! Can only guess how irritating is this for someone in foreign country who want to use only his language but it often changes to the language according the country.
I think there wasn't such problem in the past.. mby some joomla update did it.

Also i think in the past when change language on site and later load the site on same computer it started with the last chosen lang. Now loads always the native lang.

Tx. And sry for bad English.

Edit. From some months I use mod_rewrite to remove index.php from URL.. mby it is the problem?
« Last Edit: July 20, 2015, 09:28:44 pm by hkk »
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: jdiction - remember chosen language
« Reply #1 on: July 20, 2015, 09:31:55 pm »

jdiction has nothing todo with this, check your links if they include the language its normal that the language change.

if you logo links to /de/ and not to / it will change the language.

using mod rewrite is no problem, you need Joomla 3.4.1+ that all works normal.
Logged
Joomla! 5.0 Release Manager
Vote at JED

hkk

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: jdiction - remember chosen language
« Reply #2 on: July 21, 2015, 06:53:50 am »

i haven't include language in links or logo and i dont want to include them.. links in banners are like i said index.php/page1 , index.php/page2 and so on. i just want these links to load in the selected language not to load in the native language according the country.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: jdiction - remember chosen language
« Reply #3 on: July 21, 2015, 09:29:01 am »

that should work out of the box, no changes (only problems in joomla 3.4.0).

jDiction would translate the url, that could lead to a 404 but that seams not to be your problem.

do you have an url for me?
Logged
Joomla! 5.0 Release Manager
Vote at JED

hkk

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: jdiction - remember chosen language
« Reply #4 on: July 21, 2015, 09:52:55 am »

my Joomla Version is 3.4.3
the site is: http://kavarna-property.com

i tried something else.. i open article and change language to Russian.. the article is translated.. then i go to the url and delete /ru/ and hit enter and language is back to native.. i want somehow to remember /cookies or something else/ that the site must be in Russian until it is changed manually.. i think in the beginning it was that way.. even if close browser and later start again on same computer it was loading in the last chosen language. What went wrong!
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: jdiction - remember chosen language
« Reply #5 on: July 21, 2015, 10:02:11 am »

which components did you install?

also could you please post the output of jdiction check?
Logged
Joomla! 5.0 Release Manager
Vote at JED

hkk

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: jdiction - remember chosen language
« Reply #6 on: July 21, 2015, 10:06:46 am »

i found this.. https://github.com/joomla/joomla-cms/pull/6452
it seems like bug in 3.4 .. cookie problem.. ill try the solution now and see if it will work..

damn didnt get it.. seems very difficult for me.. but 100% its the joomla update which got all wrong now.. all i can do is to hope next update fixes it. 
« Last Edit: July 21, 2015, 10:38:45 am by hkk »
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: jdiction - remember chosen language
« Reply #7 on: July 21, 2015, 10:52:21 am »

report the problem on http://issues.joomla.org/
Logged
Joomla! 5.0 Release Manager
Vote at JED

hkk

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: jdiction - remember chosen language
« Reply #8 on: July 21, 2015, 11:20:40 am »

Problem fixed. I replace /plugins/system/languagefilter/languagefilter.php  with the one here https://github.com/Bakual/joomla-cms/blob/f95ca4c5f3c8c8ed87243ded0313f31c9314aa75/plugins/system/languagefilter/languagefilter.php
All seem OK now.. at first look :)

Still doesnt remember selected language after closing the browser.. but its not so big problem..
Logged

aelias

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: jdiction - remember chosen language
« Reply #9 on: July 21, 2015, 05:14:04 pm »

Hi, just want to say thank you for posting the solution. It fix my website also !

Thanks!!!  ;)
Logged