'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.

CommentFileSizeAuthor
#6 im.module.diff1.8 KBkunago
#6 im.js_.diff941 byteskunago
#5 im.module.diff1002 byteskunago
#5 im.js_.diff569 byteskunago

Comments

pahariwalla’s picture

Glad 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

pahariwalla’s picture

new 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.

pahariwalla’s picture

Status: Active » Needs review
Mr P’s picture

Just 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.

kunago’s picture

StatusFileSize
new569 bytes
new1002 bytes

I 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.

kunago’s picture

StatusFileSize
new941 bytes
new1.8 KB

Some more changes to the translation. For me everything translates properly now.