Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am configuring views to display cck nodes, and I have several filters exposed.
The problem is: How to translate labels for these filters?
I cannot find the text of these labels neither as string, nor via the Localization client.
Thank you!
Comment | File | Size | Author |
---|---|---|---|
#3 | i18nviews.patch | 682 bytes | Alice Heaton |
Comments
Comment #1
Jose Reyero CreditAttribution: Jose Reyero commentedViews integration/translation is WIP, see http://drupal.org/node/313262
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
Alice Heaton CreditAttribution: Alice Heaton commentedI'm re-opening this, as I have a patch to offer for this feature. It's implemented as a form_alter hook in i18views.
Patch from the root of i18nviews.
Comment #4
Jose Reyero CreditAttribution: Jose Reyero commentedThe patch looks good.
Any reason why we shouldn't be using the field id as the string key?
Comment #5
Jose Reyero CreditAttribution: Jose Reyero commentedThere's a complete solution for views here, #360024: Write views localization plugin
So I'll be committing that one if the related patch gets into Views. Otherwise we'll go for this one as a temporary solution.
Comment #6
joostvdl CreditAttribution: joostvdl commentedI created a patch for the plugin based in the patch form #3. You can find it at #360024: Write views localization plugin
Comment #7
Boobaasubscribe
Comment #8
Jose Reyero CreditAttribution: Jose Reyero commentedThis should be fixed with #360024: Write views localization plugin
But needs this views patch: #357529: Implement translation of customized 'translatable' views properties
Please follow up here: #641128: [meta] Internationalization tasks for views 3
Comment #9
Jose Reyero CreditAttribution: Jose Reyero commentedModule moved to new package. We have now two branches (views 2.x / 3.x)
Comment #10
cesabal CreditAttribution: cesabal commentedBe careful with function tt() this function is deprecated, use i18n_string() function