EspañolDeutschFrançaisItalianoPortuguêsРусскийΕλληνικά日本語中文(简体)हिन्दी; हिंदीالعربية
डिफ़ॉल्ट भाषा के रूप में सेट करें
PF प्रश्न - फोरम

कैसे मैं जब एकाधिक भाषाओं का उपयोग कर WordPress के एक पृष्ठ की भाषा वर्तमान निर्धारित??

Busco una variable que guarde el idioma que se esté usando en ese momento. Algo como:

if ( $current_lang == 'es' ) {

 

Share on Facebook Tweet about this on Twitter Share on Google+ Pin on Pinterest Share on Reddit Share on VK Share on StumbleUpon Share on Tumblr Share on LinkedIn Email this to someone Print this page
ReilQ पूछा करता है 7 साल
1 जवाब
उत्तम उत्तर

Muy fácil ReilQ, prueba así:

if (get_locale() == 'es_ES') {

समारोह get_locale() आप वापस आ जाएगी, dependiendo del idioma, una cadena del tipo ‘es_ES’, ‘en_GB’, ‘en_US, …

Share on Facebook Tweet about this on Twitter Share on Google+ Pin on Pinterest Share on Reddit Share on VK Share on StumbleUpon Share on Tumblr Share on LinkedIn Email this to someone Print this page
tirex कहा करता है 7 साल