Closed (fixed)
Project:
Localizer
Version:
5.x-1.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2007 at 10:17 UTC
Updated:
20 Aug 2007 at 12:16 UTC
Hi,
Checking "Switch by node's language" it was supposed to switch in the node's language, I remember that this was happening in the a past istallation of the module.
Now seems to not work. what about changing locale in a language in which the node is not translated? I would like to notify the user that the node is not traslated in that language but it serves the same page making a bit of confusion.
You can see this behaviour in my test site . I am developing the userbook module which is supposed to rely on localizer.
thanks for hard work,
Elio
Comments
Comment #1
elio commentedSorry I forgot that this happen when the content is not translated in the current language.
Say the node is in English and in Italian and the current language is Spanish, following the node link will not switch the locale.
Is it right? is it a bug?
Comment #2
Roberto Gerola commented> what about changing locale in a language in which the node is not translated?
No language change occurs, of course.
>Say the node is in English and in Italian and the current language is Spanish, following the node link will not switch the locale.
Not sure to understand.
"Switch by node's language" is intended to change language according to the target node.
If you are using the default language change block, this option isn't necessary.
Let me know.
Roberto
Comment #3
elio commentedThat's a way to note this behavior:
on this test site change the language in portugues just clicking the right flag on top (the border will become gray)
on the next page you will see the drupal default welcome message and a block containing two flags that point to a english and italian translation of the user page (me!), following one of this links you will see that the current language in still portugues which means that there was not a switch of the locale.
Regards,
Elio
Comment #4
Roberto Gerola commentedCould you try substituting the code from row 844 to 853 in localzier.module with this ?
Let me know.
Thanks
Roberto
Comment #5
Roberto Gerola commentedComment #6
elio commentedHi Roberto!
I am sorry for the delay but I had to work a lot.
reducing the if statement in the above code to this:
if($pathlocale && localizer_get_uilocale() != $pathlocale )
the switch will work even id that content is not translated in the current language
Thanks,
Elio