Hi!
It would be great to have the possibility to translate titles, descriptions and labels. Using the translation search I have tried with no success to translate these kind of strings defined in the info file. i18 was enabled.
Thanks / Henrik
Hi!
It would be great to have the possibility to translate titles, descriptions and labels. Using the translation search I have tried with no success to translate these kind of strings defined in the info file. i18 was enabled.
Thanks / Henrik
Comments
Comment #1
jacineHi Henrik,
I believe that I have fixed this, though it's only been tested in the Drupal 7 version of Skinr. Can you please test it out?
These are the changes for the 6.x-.1.x branch: http://drupalcode.org/viewvc/drupal/contributions/modules/skinr/skinr.mo...
Comment #2
jacineOops. Didn't mean to change the version.
Comment #3
hs@henrikstrindberg.se commentedHi Jacine!
I've tested 6.x-1.x-dev (2010-mar-29) and 6.x-2.x-dev (2010-Mar-29).
Translation works fine for titles, descriptions and labels using the translate interface > search. Great!
But no hits when searching for the strings ”Skinr node settings” and "Skinr comment settings". I could still not translate these two.
And when using the jQuery UI Dialog in the 6.x-2.x-dev the strings will remain in the same language - I believe in the default language - when you switch language. (Sorry for mixing versions :-)
Comment #4
hs@henrikstrindberg.se commentedHi again!
I can see that the t() function has been used: #title' => t($skin['title'])
There is a discussion about rather using tt() than t() here: http://groups.drupal.org/node/15177
I read about it here too: http://drupal.org/node/292634#comment-2475092
Should it be considered?
Comment #5
jacineI just committed fixes for "Skinr node settings" and "Skinr comment settings." They should be okay now.
tt() is not a core function so I don't know... I defer this one to moonray. :D
I'm also not sure why the strings wouldn't be translated in the Dialog.
Comment #6
jacineComment #7
ericduran commentedIs this still an issue? Jacine seem to have fix the strings that were not translatable. I did a quick pass through the code everything that should be wrapped in t, is.
Regarding the tt function. That's not needed here, that's for user define strings.
Comment #8
jacineThank you Eric! I just needed to know about the
tt()function, and whether or not it should be used here.