Hi,

I wanted to translate the text for "Start a new" but it is not translatable. To be able to translate this text I changed the following in views_search.form_view_attachment.inc in includes folder:

line 60

    '#value' => 'Start a new ' . $form_state['storage']['view_info']['title'],

changed to

    '#value' => t('Start a new ') . $form_state['storage']['view_info']['title'],

Greez,
Tobias

Comments

tobiberlin’s picture

Also the cancel button was not translatable... so I change the following lines in views_search.module:

line 191

              '#value' => 'Cancel',

changed to

              '#value' => t('Cancel'),
haagendazs’s picture

Assigned: Unassigned » haagendazs

Servus Tobi: I'll create a dev version of the module shortly. Sorry for having missed both t() functions. I'll add those and would love to have you confirm that everything still works fine.

tobiberlin’s picture

I would be pleased to support you in this way

haagendazs’s picture

Status: Active » Needs review

Servus Tobias. I created a 6.x-1.x-dev version, which should be available for download shortly. If you could test to make sure that the missing t() functions work correctly, that'd be great. Thanks!

tobiberlin’s picture

I tested the dev-version and still these strings are translated. Thanks!

haagendazs’s picture

Status: Needs review » Reviewed & tested by the community

Awesome. I'm going to mark this issue as closed.