Translating BEF settings

Last updated on
30 April 2025

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

BEF now has full support for translation of any text used in the BEF settings form.

NOTE: if you were using the I18N Strings module to translate exposed sort rewrite strings, you will need to redo your configurations using core's Locale module. Basically translations created between 30 Jan, 2014 and 27 March, 2015 will need to be redone.

To create translations for BEF settings

First, enable the Locale module and configure the languages you wish to translate into at admin/config/regional/language. This is the same as you would do for any localized site build.

If the strings are in an existing view:

  1. Edit the view containing the strings you wish to translate.
  2. Open the BEF settings form (in the Advanced section, click on "BEF settings") and click the Apply button without making any changes.
  3. Save the view (again, without making any changes).
  4. Navigate to admin/config/regional/translate/translate and the BEF settings strings should be available for translation.

If you are building a new view, the strings will be available once the view is saved.

When entering translations for fields that depend on the newline character -- any of the rewrite settings, for example -- the newline character is stripped when displaying the default language text. However the translations MUST HAVE A NEWLINE for it to work correctly. It should look just the same as in the BEF settings form. See the example below.

If you are editing the .po files directly, ensure there is a \n in your translations. See this comment for more details.

Credit

Drupal users heddn and berliner deserve much of the credit for for translation in BEF. Thank you for your patches!

Help improve this page

Page status: Not set

You can: