Some localization support is needed for user entered text in the admin UI.

I will wait for #2290511: `unpack_translatable` not supported for display extenders to see which way to go.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stefan.r’s picture

Any workaround we can use in the mean time?

eugenesia’s picture

Hi, this is a patch to translate Mefibs button labels in the meantime, while we wait for @berliner to make the labels translatable via Views translatables.

@berliner - maybe if I have time I can submit a patch to make the labels translatable via Views translatables, but this is just a quick fix for now.

This patch uses string translation to translate the Submit and Reset button labels. The context for these strings will be in the format: mefibs:myview:mydisplay:submit_button_label where "myview" will be the View's machine name, and "mydisplay" will be the View display's machine name.

ThuleNB’s picture

I would need this, too. Similar to the issue I posted here: Can we make the blocks' reset button translatable? - I will mark this one as duplicate.
Hopefully we can translate this soon. Right now, I just use the word "Reset" as label for both, English and German, as most people in Germany understand it. Nevertheless, not the best solution :-).

maxlife58’s picture

The patch #2 doesn't work for me.

I use BEF combined with MEFIBS to expose filter in different block:

the submit button label doesn't appear in string translation interface as mefibs:myview:mydisplay:submit_button_label or as normal views internalization string

instead sort by label appear as normal views international string views:my_view_name:page:exposed_form:exposed_sorts_label but translated text doesn't appear when switch language

Any help to solve this?

ThuleNB’s picture

Doesn't seem that there is any prgress in the refered issue. Could there be a way to implement this into MEFIBS without waiting for this issue?