Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
exposed filters
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2009 at 12:45 UTC
Updated:
21 Feb 2010 at 13:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedComment #2
dagmarRelloled
Comment #3
Bilmar commentedPatched without a problem and tested changing the 'Reset' name. It showed up in my exposed form with the new name perfectly.
One question:
I was unable to find my new Reset name (example 'ResetMe') in the translation search http://www.example.com/admin/build/translate/search
Is this string currently not translatable or am I forgetting a step? I flushed cache, ran cron, ran updates and refresh strings at http://www.example.com/admin/build/translate/refresh and made sure to search with the case-sensitive name.
Thanks!
Comment #4
dagmarStrings are only available to localize once they have been processed by t(). This occurs when you display the view in a non English language.
So, to translate the Reset button text:
1) Save the view.
2) Change to the proper language (i.e: French or Spanish)
3) Display the view using this language.
4) Go to Administer -> Site Building -> Translate interface and search for "Reset"
Hopefully we will fix this odd behaviour when this #357529: Implement translation of customized 'translatable' views properties be ready.
Comment #5
dawehnerPatch is fine, works perfect.
Code looks fine, too.
Comment #6
Bilmar commentedthanks dagmar, after following your instructions I was able to find the string for translation.
Comment #7
dagmartagging
Comment #8
merlinofchaos commentedCommitted.
One thing I noticed: Strings are sent through t() that are set 'translatable'. It hink this means we're double t()ing them. Can someone verify?
Comment #9
dawehnerYes i think, too, that this will cause it.
Comment #10
dawehnerremove tag.
Comment #11
dawehnercommited together with a simpletest, commited this test also to drupal6