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.
The site has English and Dutch(default).
I've not translated any menu or content.
English is mainly there because I like it for the admin interface.
Even though the 'Main menu' string has a translation superfish's small-screen menu show the untranslated version.
It seems to have changed a bit from 1.9 to the latest dev so I'll post two patches.
Comment | File | Size | Author |
---|---|---|---|
#5 | superfish-translate_sfsmallscreen_title-2160409-5.patch | 734 bytes | Leksat |
#2 | superfish-translate_sfsmallscreen_title-2160409-2.patch | 551 bytes | ordermind |
#1 | superfish-7.x-2.x-2160409-1.patch | 544 bytes | helmo |
#1 | superfish-7.x-1.9-2160409-1.patch | 749 bytes | helmo |
Comments
Comment #1
helmo CreditAttribution: helmo commentedComment #2
ordermind CreditAttribution: ordermind commentedThe dev patch looks weird, you're actually trying to translate a boolean. I'm attaching a new patch for dev that is tested and works. $output['subject'] appears to come from the menu title so you should be able to talk to i18n_menu to get the translated menu title if present, but in the meantime this should be fine.
Comment #3
Caspa CreditAttribution: Caspa commentedThanks @helmo. I used the patch superfish-7.x-1.9-2160409-1.patch in #1 and it works very well.
the site is in English an dutch (default) with the module l10n_update installed. Nice job!
Comment #4
Caspa CreditAttribution: Caspa commentedComment #5
Leksat CreditAttribution: Leksat at Amazee Labs commentedI have found 3 sources from where the title can come:
1.
superfish_small*_*
variables2. menu item
3. menu title
In my opinion, the text coming from
superfish_small*_*
variables should be translated via the i18n_variable module. The translation should be possible if there is a hook_variable_info() implementation. My patch does not provide it.Menu title/item translations are normally handled my the i18n_menu module. If the title comes from a menu item, the translation is loaded automatically in menu_link_load().
My patch handles the third case, when the title comes from the menu title.
Comment #7
mehrpadin CreditAttribution: mehrpadin commentedHey,
Patch applied, please check, thanks.
Comment #9
hstoellinger CreditAttribution: hstoellinger commentedHello,
I still have the problem that - using "smallscreen" and an accordion menu for viewports less than 560px - the menu-title is not translated. My default language is German, but the site is multilingual (+ English and Italian). My menu title is "Menü" (u-Umlaut) in German and should be "menu" in both the other languages. I have looked at your patch for the superfish.module. However, I see that MY superfish module (version 8.x-1.3) looks very different, The patch seems to be for version 7.x.... Eg., there is no SELECT statement at all in MY superfish.module, and it is MUCH smaller.
I also see that - in the "smallscreen" case - the "normal" (non-accordion) menu is displayed for a second or so before the Accordion-style menu gets displayed. This surely cannot be "works as designed"! Any ideas?
Is there a chance for me to solve these issues?
Regards
H. Stoellinger
Austria