Active
Project:
Address Field
Version:
7.x-1.2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2015 at 18:00 UTC
Updated:
7 Jun 2017 at 11:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tsaks commentedI have the exact same problem.
The label is translated but the help text is not translated (Drupal 7.50 and Address Field 7.x-1.2)
Any help would be appreciated.
Thanks,
Tarmo
Comment #3
gurksor commentedNot sure if it's perfect, but it works
Comment #4
kinmen commentedThank you!
I've applied the patch, but the help text in the 2nd language is shown in both original and translated language, not only the 2nd one
Comment #5
gurksor commentedStrange... on my site it's working as expected.
Are you still using Address field 1.2 and Core 7.41?
Could you show me your patched function?
Sorry that I ask this but are you sure the translation of the text is correct?
Comment #6
kinmen commentedHello. Thanks for your answer
Address Field is 7.x-1.2
Drupal core is 7.43
What do you mean with "are you sure the translation of the text is correct?"
Here is a piece of patched addressfield.module:
tnx
Comment #7
gurksor commentedHm, I can't see a problem in the code.
With correct translation I mean under admin/config/regional/translate/translate. Maybe you keept the english text by mistake after the translation or is it possible you tried to fix the problem somewhere in a custom module?
Comment #8
kinmen commentedHello.
To explain it better: the text IS translated with the new text, but when I create a post in a language other than the default, in the address frame shows both the help text strings, the one in the default language and the one translated into the current language. I attach a pic which shows the issue. Under Indirizzo (=address) you can see the help text which is displayed in 2 rows, the translated help in Italian and under it the original English.
The html looks like the following:
<div class="fieldset-wrapper"><div class="fieldset-description">Questo è un campo indirizzo</div><div class="fieldset-description">This is an address field</div>I don't know why... looks like a double entry somewhere
Thanks
K.
Comment #9
tomrogMaybe this patch will be better as it seems the only thing there is to add is usage of t() function
Comment #10
bojanz commentedYou can't pass variables to t(), Drupal's translation system can't discover them. i18n_string() must be used.
Comment #11
tomrog@bojanz good to know :) But to be exact - I can, but I should not use variables in t().
Anyway, patch #3 works for me, so thanks for that ;)
Comment #12
nicola85 commentedComment #13
kinmen commentedPatch applied, but still have the problem: 2 divs "fieldset-description", one in the translated language and the other in the default English. Cache cleared :-(
Comment #14
Anonymous (not verified) commented#12 works.
Flush cache and translate from content type > manage fields > address field > edit > translate
Thanks