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.
i set up a couple of global filter with your useful module but i'm stuck an i18n issue.
after setting them up, i navigated to structure > blocks > (my global filter block) > configuration
. here i can adjust some filter settings and, inside the Widget to render the global filter
section, i filled in the Widget label override
text input.
now i'm not able to translate the label in any way. am i missing something?
thanks a lot.
Comment | File | Size | Author |
---|---|---|---|
#9 | global_filter-1988172-9-config-i18n.patch | 4.4 KB | gapple |
Comments
Comment #1
RdeBoerHi lorenx,
Is the issue that you want to simultaneously support 2 languages for the label.
Rik
Comment #2
lorenx CreditAttribution: lorenx commentedyeah, and i haven't found a way yet.
is it possible?
Comment #3
RdeBoerI don't think I've put code in to explicitly handle that situation. Would you like to submit a patch?
Comment #4
lorenx CreditAttribution: lorenx commentedwell, not actually.
i guess it would be necessary to implement
hook_i18n_string_refresh()
.Comment #5
lorenx CreditAttribution: lorenx commentedhi RdeBoer.
i've just found these two articles that might be useful:
i read them but they don't seem too clear to me, what about you?
Comment #6
RdeBoerHi lorenx,
Well some of it is clear, but I'm not sure what the BEST way is to proceed, as I've never really delved into this I18n stuff except for making my strings translatable.
Maybe I should use this Variable module: http://drupal.org/project/variable
Have you used modules that require the Variable module?
Rik
Comment #7
lorenx CreditAttribution: lorenx commentedyeah, i use to install the variable module cause i18n needs it but, honestly, i don't know if you have to declare your string using the
hook_variable_info()
or not...the only thing i think i understood is that the
hook_i18n_string_info()
seems to be the starting point to let your strings be managed using the translate interface section.Comment #8
RdeBoerSee #2110573: Views Output with Multilingual Support
Comment #9
gappleI don't think this is a duplicate of the views output issue, as this deals with global_filter's configurable interface text.
Here's a patch to get things started
Some remaining work:
- Add any additional strings that need translation
- Implement
refresh_callback
to set all available stringsComment #10
RdeBoer@gapple:
Thanks so much for this!
Rik
Comment #11
alexverb CreditAttribution: alexverb as a volunteer commentedAny chance this patch can get in?