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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RdeBoer’s picture

Hi lorenx,
Is the issue that you want to simultaneously support 2 languages for the label.
Rik

lorenx’s picture

yeah, and i haven't found a way yet.
is it possible?

RdeBoer’s picture

I don't think I've put code in to explicitly handle that situation. Would you like to submit a patch?

lorenx’s picture

well, not actually.
i guess it would be necessary to implement hook_i18n_string_refresh().

lorenx’s picture

hi 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?

RdeBoer’s picture

Hi 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

lorenx’s picture

yeah, 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.

RdeBoer’s picture

Assigned: Unassigned » RdeBoer
Issue summary: View changes
Status: Active » Closed (duplicate)
gapple’s picture

Title: label translation » Translation of user-defined strings
Assigned: RdeBoer » Unassigned
Category: Support request » Feature request
Status: Closed (duplicate) » Needs review
FileSize
4.4 KB

I 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 strings

RdeBoer’s picture

@gapple:
Thanks so much for this!
Rik

alexverb’s picture

Any chance this patch can get in?