Closed (fixed)
Project:
Translatable Comments
Version:
6.x-1.1
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Reporter:
Created:
21 Nov 2009 at 16:30 UTC
Updated:
6 Sep 2010 at 13:00 UTC
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
Comment #1
vako commentedAny hope that this request is feasible? no rush...;)
Comment #2
davidtrainer commentedAs 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.
Comment #3
vako commentedI 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.
Comment #4
vako commentedHi 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: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!
Comment #5
AntiNSA commented+1
Comment #6
vako commentedI 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.
Comment #7
srobert72 commentedSubscribe #6 option C)
Comment #8
deverman commentedI 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.
Comment #9
davidtrainer commentedAs 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