Hello everybody!

First of all, I've got to say that you're doing a great job with this module. I think is very useful, ant it's becoming a better module with the time.

I'm developing a multilingual drupal site (Englis and Spanish), and I'd like to add this module to my site.

The question is: is it possible to translate the 'Guest user prefix' string to something like 'Invitado' (in spanish) ? Is this field somekind of variable that could be multilingual?

As I've said, I'm developing a multilingual site in these languages, and it would be really nice that the prefix 'guest' just doesn't appear when the site is in spanish, and appears the word 'invitado' (for example) instead.

I've tried just to leave empty the 'Guest user prefix' field, but it seems to be confusing and ugly to see the nicknames just with sequencial numbers.

That's all!

I hope an answer! :)

Bye!

Comments

Anonymous’s picture

Title: A multilingual 'Guest user prefix' » Spanish translation for chatroom
Assigned: Unassigned »

thanks for the report.

i haven't looked at the state of the translation files for chatroom, but i'm very interested in working with you to make sure that the entire interface (including the guest prefix) is translatable.

do you know how to create a set of language files for a module?

if i can get you the instructions, would be you be willing to help out with getting a full set of spanish-strings for the interface?

butt-head’s picture

Hello justin!

I'd like so much to help you to translate the whole chatroom interface ... but I'm afraid that I don't know anything about developing modules and including translations to them.

The only thing that I know about this, is the usage of the i18n module, that enables the translations over the modules interfaces. But it doesn't work with variables like Guest user prefix.

I can say, that I learned a time ago a way for translating some specific i18n variables; so If you include this:

$conf['i18n_variables'] = array(
// Site name, slogan, mission, etc..
'site_name',
// 'site_slogan',
// 'site_mission',
// 'site_footer',
// 'anonymous',
// Different front page for each language
'site_frontpage',
// Primary and secondary links
'menu_primary_links_source',
// 'menu_secondary_links_source',
// Contact form information
// 'contact_form_information',
);

... in your settings.php, you'll have multilingual variables ... so these variables can have a different value for each language.

I guess there's a variable behind your 'Guest user prefix' field, but I don't know how it's named .... just maybe If you add your Guest User prefix variable to this section, we can have this translated ...

Anyway, if this solution doesn't work and you figure out how to, just let me know and will be a pleasure to help you translating your chatroom module to my native european spanish language ;)

Waiting for your reply ...

tormi’s picture

butt-head,

You can join Spanish localization team and start contributing here: http://localize.drupal.org/translate/languages/es/view?project=chatroom&....

About 'guest-' user variable - there are 3 instances left in chatroom.module where it's not within t() function (http://api.drupal.org/api/function/t/6) and therefore isn't translatable.

Tormi

tormi’s picture

Justin,

I added those untranslated strings to this patch: http://drupal.org/node/649596#comment-2362592

Tormi

butt-head’s picture

Ok, I've joined to the Spanish team ... and I've translated the existing english strings to spanish.

Let me know when you need my help for spanish traslations.

What can i do then for the Guest user prefix?? :(

Anonymous’s picture

i'll wrap the 'guest-' strings in t() in a patch shortly.

butt-head’s picture

Great! Thanks!

Anonymous’s picture

i've committed the 'guest-' in t() patch from tormi here:

http://drupal.org/cvs?commit=301470

now, looking at the chatroom/po folder, it seems its all very out of date.

i'll investigate getting the base file up to date, then we can look at getting updated translations.

Anonymous’s picture

Assigned: » Unassigned