EspañolDeutschFrançaisItalianoPortuguêsРусскийΕλληνικά日本語中文(简体)हिन्दी; हिंदीالعربية
تعيين اللغة الافتراضية
أسئلة PF - المنتدى

كيف يمكنني تحديد اللغة الحالية من صفحة وورد، عند استخدام لغات متعددة؟?

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
ريلق سأل 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 السنوات