By aaron on
At Grasshopper Arts, I'm creating a multi-lingual site, using the I18n module. I've been somewhat successful, figuring out how the module works. On the top left, I've set up primary links, which translate properly when you switch the locale.
However, I would like the Workshops link (or Talleres in Spanish) expand to show several sub-options when you're in that category.
I installed the taxonomy menu module as well, hoping that would work. It does, but it always show the categories, and I can't figure out how to have it show a category only for a certain locale/language.
Any ideas?
Thanks,
Aaron Winborn
Culture Fix Web Identity & Design
Digital Folk Art (my blog)
Comments
A simple patch
I have just fixed the same thing on my site, here is a patch for taxonomy_menu.module. I am not a drupal developer, but it seems to work :)
If someone knows about a better solution, I am interested.
Unable to Install Patch
Thanks! I'm trying to apply the patch now. However, I'm also having to figure out how to do a patch. I've been reading through the documentation, and installed Cygwin on my wk2 machine. Then I run patch, with the code you gave as taxonomy_menu.module.patch, but I get the following error:
What am I doing wrong?
Thanks,
Aaron
Culture Fix Web Identity & Design
Digital Folk Art (my blog)
Patch install
Hi!
It's possible that the patch is not compatible with your patch prog. I'm not very familiar with patch creating, sorry :)
I include the full taxonomy_menu_menu() function from taxonomy_menu.module. You can edit it by hand and add the two lines in bold:
Parse error
Hello Szilu!!!
Have serached all the world, and Yours is the only solution proposed to this problem, thanks a lot for this one!!!!
After I replaced the function, I am getting the following error message:
Parse error: syntax error, unexpected T_STRING in C:\home\drupal\modules\taxonomy_menu\taxonomy_menu.module on line 40
On line 40:
if ($term->depth depth + 1;
I don't know how to fix it (I dont know what is wrong/missing)
Thanks a lot in advance, hope you can help on this one more :-)
how did you manage to have primary link correctly translated
hello aaron. could you explain how did you manage to have the primary link correctly translated with i18n module? what should i put in the theme configuration form (for the primary links)? many thanks in advance!
Primary links
hi!
You can find a paragraph about "Language dependent variables" in the i18n module INSTALL.TXT. If you copy the definitions from there to your sites settings file then you will have variables with languages.
Yes, what Szilu said. And
Yes, what Szilu said. And after you do that, you'll be able to go to admin/themes/configure to change the primary & secondary links for the first language. Then click on the flag to change to the next language, and you'll see blank fields again where you can put in the translated links. If you're using PHPTemplate, you'll make the changes in the appropriate theme instead.
-Aaron
Culture Fix Web Identity & Design
Digital Folk Art (my blog)
thank you!
ditto!