Here are two suggestions to display the translation language option for the user:
A) Create a pull-down to choose the language name. e.g.: Translate to: {drop down list of languages}. This will also take a small space and be more intuitive.

B) When we hover the cursor on the 2-character country codes a pop-up with the actual language name should be displayed. e.g.: Hebrew for iw, Armenian for hy, Greek for el, etc.

Comments

vako’s picture

Any hope that this request is feasible? no rush...;)

davidtrainer’s picture

Title: Replace country codes with Country Names » Replace country codes with languages
Assigned: Unassigned » davidtrainer

As an intermediate step I am going to add an option to the settings page, to display either the codes or the languages. Ultimately I'm not sure yet whether it can be made themeable because all the markup comes from jQuery. My intention is to keep the markup and appearance of the buttons as minimal as possible by default, so it will be as extensible as possible for theme developers. That's also the motivation for #638516: Load css externally.

vako’s picture

I hope you can keep the 2character country codes (as it's now) with a pop-up of the country name once we hover on it.
or better yet, a drop-down list to choose the language, that way it will occupy the least space.

vako’s picture

Hi David, I hope you have some good news for us about this issue...
It would be nice to replace the country codes with real language names like [iw] - Hebrew, etc.
I noticed that in the file translatablecomments.module there is a function called translatablecomments_languages() which already has the names entered:

'af' => 'Afrikaans',
    'sq' => 'Albanian',
    'am' => 'Amharic',
    'ar' => 'Arabic',
    'hy' => 'Armenian',

Is there an easy way to make those names pop-up when they hover the cursor over the language codes?

Also where in that file can I insert a line to display the sentence: "Translate to..." so it will appear above the codes.

thanks!

AntiNSA’s picture

Priority: Normal » Critical

+1

vako’s picture

I want to add a third option to the initial post above:

C) Replace the codes with their corresponding country flags. Although this might look nice but will take too much space, so option A) would be the best solution, if possible.

David, hopefully we can get a solution for this option soon, thanks a lot for your efforts.

srobert72’s picture

Subscribe #6 option C)

deverman’s picture

I had a problem with language codes for Chinese on this module: http://drupal.org/node/724194

Maybe there is some commonality between these modules that could be shared.

davidtrainer’s picture

Priority: Critical » Major
Status: Active » Fixed

As of the latest dev snapshot, the functions the build the markup are themeable. To do what you're asking you would override this function in your theme: Drupal.theme.prototype.translator = function (code, language)

More details: http://drupal.org/node/171213

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.