Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
would do you think, when is the translation working again?
Comment | File | Size | Author |
---|---|---|---|
#22 | 1112928-22-i18n_menu.patch | 602 bytes | zambrey |
#21 | 1112928_21_superfish_i18n_menu_transalation_missing.patch | 601 bytes | GiorgosK |
Comments
Comment #1
mehrpadin CreditAttribution: mehrpadin commentedHey there,
As far as I know it does, I'm not quite confident though, but on the test sites I had everything worked fine even without that function.
Comment #2
Apfel007 CreditAttribution: Apfel007 commentedmhm .. ok .. did you try taxonomy menu , too? My primary menu is working wit translations well - without superfish. Using the superfish block, the translations not working...
Will check it again..
Comment #3
Prancz_Adam CreditAttribution: Prancz_Adam commentedThis translation issue means that I cant use the menu item os a same view in a different languages?
Why you turned off the translation function?
Comment #4
Prancz_Adam CreditAttribution: Prancz_Adam commentedThis translation issue means that I cant use the menu item os a same view in a different languages?
Why you turned off the translation function?
Comment #5
richardchui CreditAttribution: richardchui commentedWhy was this function removed? It is hugely important for multinational sites. Thanks!
Comment #6
mehrpadin CreditAttribution: mehrpadin commentedHey all,
As a matter of fact, it was supposed to be a temporary removal, and only for the beta release, but then we ran into problems with the releases and I was forced to create a stable release; anyhow, on all test sites I had - like 3 or 4 - the i18n module was working like a charm, perhaps they changed the way i18n translates the menus, no gen, still busy and no chance to have a close look.
P.S.: You can add the function right after
$cache['menu'] = menu_tree_all_data($menu_name);
(D7: line #777, D6: #750)Comment #7
tivie CreditAttribution: tivie commentedAnyone else tried this?
When I injected the code as instructed, superfish menu just disapeared. It's possible I did something wrong.
This is what i did:
Comment #8
Apfel007 CreditAttribution: Apfel007 commentedI would say that the "i18nmenu_localize_tree" is fired without that, BUT there is no lang information transmitted, if you localize a menu item. In order to that, "i18nmenu_localize_tree" can't work right in this case..
$cache_key = "links:$menu_name:$mlid:$user->uid:$language->language:". md5($menu_name);
It seems that thsi position makes trouble. In my case a got a default cache_key like that "links:primary-links:0:1:de:b0fe473da02e5ec04f7bc0331f761c56"
If I change the lang., I got this: "links:primary-links:0:1:en:b0fe473da02e5ec04f7bc0331f761c56"
This key is not existing in the db, the function step to "$cache['menu'] = menu_tree_all_data($menu_name);" - not lang data at this position, too
Comment #9
daniorama CreditAttribution: daniorama commentedI'm using i18n and I have no problems with superfish. The way I did it was to include a menu link with each translation and adding it to the same menu as the nontranslated ones. You'll see in the menu just the links related to only a language. There is also a new handbook for i18n and maybe there is a better way, but this one is easy and works perfectly with no code changes.
Example:
-Menu
--News
---Sports
---Tech
--Noticias
---Deportes
---Tecnología
--Stories
--Historias
Comment #10
kevinwal CreditAttribution: kevinwal commentedThe correct code is:
Comment #11
tivie CreditAttribution: tivie commentedthank you kevinwal
It is working now! kudos!
Comment #12
turboflash CreditAttribution: turboflash commentedI'm currently using Drupal 7.4 and Internationalization 7.x-1.0-rc1. Took me sometime to find out why the code in #6 and #10 are not working. The following code now works for me and hope it helped someone else with the same problem.
Comment #13
vb CreditAttribution: vb commented@turboflash thanks, works
Comment #14
manos_ws CreditAttribution: manos_ws commentedI dont know if this is the correct thread but I will post here because it is concerning the i18n and superfish module.
I use superfish 7.x-1.8 and Internationalization 7.x-1.0-rc1 and I have a menu with "Translate and Localize"
The problem was that I was getting all language items for any language I choose at the language switcher.
Enabling the "Multilingual select" solved the problem without any code modification in the superfish module
(although I had another problem with Multilingual select see #1222244: Multilingual select Illegal choice )
The above code (#12 , etc ) when should be used?
Comment #15
mangelp CreditAttribution: mangelp commentedWithout that function custom menu items are not filtered for the current language, so all of them are shown regardless of the configured language, but menu items added from content nodes do. So I ended with some menu items showing in all supported languages and others showing only in the currently selected one.
Adding the removed language function back (#12) solved the issue for me.
If it cannot be added again, could we have a configuration option to enable it and avoid patching?
Comment #16
Bright Web Design CreditAttribution: Bright Web Design commented#12
Worked for me too...
Looking forward to see this in the next version of the module!
Thank you so much turboflash
Reagrds,
Ciril Tomy Tharayil
Tokyo, Japan
Comment #17
healycn CreditAttribution: healycn commentedsubscribe
Comment #18
massud CreditAttribution: massud commentedsubscribe
Comment #19
mrsinguyen CreditAttribution: mrsinguyen commentedThanks
The comment #12 worked for me.
Comment #20
Zarevac CreditAttribution: Zarevac commentedThe solution in #12 works for me with Drupal 7.8 and the latest i8n version. Can this be added to the next release?
Comment #21
GiorgosKAs per #12 and reports above this patch has been tested by the community
please commit or create a dev for everyone to test
Comment #22
zambrey CreditAttribution: zambrey commentedHello, patch at #21 didn't apply. Here's proper patch.
Please test it and then mark as rtbc. Thanks.
Comment #23
GiorgosKWorks and as per a few other reports above (22,21,20,19, 16,15,12) we all used #12 and report it to be working
lets move it to RTBC
Comment #24
mehrpadin CreditAttribution: mehrpadin commentedHey everybody,
Codes added back to the module (v1.9-beta3) thank you all :)
Comment #25
mehrpadin CreditAttribution: mehrpadin commentedComment #27
Yémokô mbK CreditAttribution: Yémokô mbK commentedHi ,
I experiment the same issue.... but where is this v1.9-beta3 version?
Thank you.
Mediator
Comment #28
zambrey CreditAttribution: zambrey commentedYou can find it at the following page
http://drupal.org/node/711944/release
Comment #29
int_ua CreditAttribution: int_ua commentedIt's still displaying all items in beta4. Will check the patch.
Comment #30
int_ua CreditAttribution: int_ua commentedPatch from #22 worked.
Comment #31
Vacilando CreditAttribution: Vacilando commentedI also confirm that version 1.9-beta3 works OK. Time to make it downloadable on the project page?
Comment #32
smartango CreditAttribution: smartango commentedif menu item has "show as expanded" checked it is shown even with this patch
Comment #33
GiorgosKsmartango
don't use patch use this version
http://drupal.org/node/711944/release
Comment #34
smartango CreditAttribution: smartango commentedGiorgosK
I was using beta3, now beta4, same problem, only if "show as expanded" is checked.
Also, the weird part is that this check broke only menu links generated by taxonomy menu.
Currently I am using taxonomy menu to generate menu links, then I set language, and translate (i18n_menu) all links.
Also I am using entity translation for taxonomy, I would to add support for it in taxonony menu (or maybe make another module), but for the next project, I think end of July .. there should be something like translation support for menu then ..
Comment #35
richsky CreditAttribution: richsky commentedHi folks,
I still cannot make it work (7.x-1.9-beta4). Is superfish suppose to use translated menu items or you mean it can just provide a superfish menu block in a fixed language that visibility switch with?
It seems I cannot set the variable Title for translatable block. It remain greyed and if you submit without any variable set here you go with:
But I just found that the 7.x-1.8 with patch #22 does.
Cheers.
Comment #36
marktheshark CreditAttribution: marktheshark commentedConfirming that #22 works for 7.x-1.8.
Since more people have confirmed this, perhaps it would be time to commit the fix.
Thank you
Comment #37
Chimos CreditAttribution: Chimos commentedI was using Superfish 7x-1.8 before and had all, original and translated, menu items always visible in any language. I'm using i18n version 7x-1.7 too.
Installing version 7x-1.9-beta4 of Superfish, as said above, solved the problem for me.
Thanks!
Comment #38
phreadom CreditAttribution: phreadom commented@#25 richsky, I found that making sure to add a default language version first before you translate it gets around this error (at least in the block I was translating, for a Language chooser.)
Comment #39
_redfog CreditAttribution: _redfog commentedHello,
I've installed the version "7.x-1.x-dev" from 2013-Feb-08, it resolved me the issue !
Comment #40
rooby CreditAttribution: rooby commentedLooks like this is fixed in the latest release.