Comment déterminer la langue active actuelle dans le plugin qtranslate?
2 réponses
- votes
-
-
Malheureusement,les deux liensne fonctionnentpas,la documentation officielleest redirigée vers leforum WordPress.Unfortunately, both links are not working, official docs is redirected to WordPress forum.
- 0
- 2014-07-23
- Dharmang
-
Thnak's.J'ai supprimé le lien rompu.Thnak's. I've removed the broken link.
- 0
- 2015-03-05
- keatch
-
Notez que qtranxf_getLanguage doit être utilisé à laplacepour qTranslate X. Il y a aussi desfonctions de compatibilité dans les options duplugin selon [this] (https://wordpress.org/support/topic/undefined-function-qtrans_getlanguage)Notice that qtranxf_getLanguage should be used instead for qTranslate X. There is also some compatibility functions in the plugin options according to [this](https://wordpress.org/support/topic/undefined-function-qtrans_getlanguage)
- 3
- 2015-09-30
- toto_tico
-
-
- 2012-09-22
J'aitrouvé une solutionpossible:
if ( 'de' === $GLOBALS['q_config']['language']) { echo "<style>#nav li a { margin-left:3px !important; }</style>"; // menu bar width fix }
Celafonctionnebien simes éléments demenune semblentpas câblés.
I have found a possible solution:
if ( 'de' === $GLOBALS['q_config']['language']) { echo "<style>#nav li a { margin-left:3px !important; }</style>"; // menu bar width fix }
This works well for my menu items being not looking wired.
-
Merci Kaiser.Cetteméthodefonctionne-t-ellepourtoutes les variablesglobales?Thanks Kaiser. Does this method work for all global variables?
- 0
- 2012-09-23
- Darshan Thanki
J'ai une situation oùje souhaite donner un style spécifique àmonmenu denavigation lorsque le site Webesten langue allemande.
Mon site Webfonctionnebien en anglaismais lorsqueje passe à l'allemand,celapose unproblème css.
Alors,commentpuis-je déterminer quelle langueest actuellement active avec leplugin qTranslate?