Using Drupal 4.7.2 and cvs version of Internationalization (installed cvs before 4.7 version was released).
Under admin->localization it says to add languages using the English name. But if I do that then then the Translations block displays flags and English name of language.
1. Is it ok to enter the language name in its native form (Cyrillic) under admin->localization?
2. If not, how can I get Translations block to display language names in native form?
3. How do I get Translation block to display only flags?
I've seen some solutions for 4.6 but none that work for 4.7. Thanks.
Comments
Comment #1
lisa commentedOk. I figured out #3 - how to display flags only. Here is what I did:
I found this bit of code in the i18n.inc file that came with i18n (Internationalization) module.
I added this bit of code to the template.php file that came with my theme (box_grey, a phptemplate theme)
Note: It's the same code from i18n.inc. I simply changed 'theme' to 'phptemplate' in the first line and commented out (#) one line - the one that produces the language name.
I would still like to know how to display languages in native form in the Translations block. Can anyone help?
Comment #2
jose reyero commentedYou just need to enter languages -in locale module- in whatever form you want them to be shown.
So if you want native names, just enter native names.
About the 'only flags' option, yes, that's it. It is a themeable function. I think I'll add this somewhere into the documentation, thanx.
Comment #3
lisa commentedThanks, Jose. When I reread your i18n INSTALL.txt file I saw the note that
I missed that the first time through, and had been hesitant to try it since the admin->locale page instructs you to enter the English name. I went there and changed them to native names and they seem to work fine.
Thanks for a great module.
Comment #4
jose reyero commentedComment #5
4v4l0n42 commentedHi,
i've got the snippet to work, but there is something REALLY strange that I can't explain.
If I use firefox i can see the block with the two flags for Italian and English:
http://mediagrouptv.com/trendtv/en/my-events/intrapresae-guggenheim
If I use Safari or IE the block is not there, though the HTML code shows it's supposed to be there! o_O
Help!
Comment #6
4v4l0n42 commentedOK, solved. It was a problem of CSS and overlaying divs. ;)
Comment #7
Niaina commentedThis tuto is very interresting but could you say how to get a translation block to display only flags, BUT IN DRUPAL 6 ?
Please, help me!
thanks.