'Talk to' won't translate - can it be fixed? If not, any idea on code to put this text above the input field (like the 'talking to' and 'type here' text) which should then translate OK. Cheers.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | im.module.diff | 1.8 KB | kunago |
| #6 | im.js_.diff | 941 bytes | kunago |
| #5 | im.module.diff | 1002 bytes | kunago |
| #5 | im.js_.diff | 569 bytes | kunago |
Comments
Comment #1
pahariwalla commentedGlad you asked ... I've been wanted to figure this one out .. although I'm personally multilingual and brought up outside the US - I'm still an American, and .... well ....
So, I finally figured out how to do translation in Javascript in Drupal ... I'm going to make the changes, and assuming that you already have a site that is set up for another language, I'd like to ask you to test this out. I will also test, but I've never set up a multilingual site (or a site in another language) so it might take me some time to get all that together.
I should be able to send up the fix pretty quickly, and please do test it out and let me know if it works !
Thanks
Comment #2
pahariwalla commentednew revision: 1.1.2.13
Javascript now uses Drupal.t() function in 2 places:
"Please select some someone to talk to"
"Me: "
But ... you said translate "Talk to:" and "Type here". These already were wrapped in Drupal's t() translate function, so I'm wondering why they were not getting translated. Like I said, I'm not familiar with what you need to do to set up translating on a Drupal site - other than the fact that you have to manually translate each string that needs it. Are other things being translated properly on your sire? You might find the answer in http://www.packtpub.com/article/translations-in-drupal-6
Please let me know how it works out.
Comment #3
pahariwalla commentedComment #4
Mr P commentedJust put the latest release up as is (apart from little changes to the .css). 'Talk to: ', No One', 'no one', 'Me' still don't translate I'm afraid. 'Talking to:' and 'Type here:' do. I'm using the String Overrides Module.
Comment #5
kunago commentedI am putting up some changes to the translation, which fixes the 'no one' and also 'refresh' was not wrapped in the t function. What's more, I found the 'Please select some someone to talk to' a little bit strange so dared to change that one also.
Comment #6
kunago commentedSome more changes to the translation. For me everything translates properly now.