Background of the issue:
I am trying to translate a string from my custom WordPress theme using WPML. The string is registered like this in the theme: . My site's default language is Lithuanian, and the language of domain for 'theme' strings is English. I have provided the Lithuanian translation for the string in WPML's String Translation. I have added debugging code to the gettext filter and confirmed that icl_translate() correctly returns the translation ('Susisiekite su mumis').
Symptoms:
On the frontend, the original English string ('Contact us') is displayed instead of the Lithuanian translation. The filter function outputs: Original Text: Contact us, Translated Text: Contact us, Translation via icl_translate: Susisiekite su mumis.
Questions:
Why is the Lithuanian translation not applied in the frontend?
Is there a specific configuration needed for WPML to apply translations correctly?
דצמבר 3, 2024בְּ- 12:55 pm
ניהול הסכמה לקובצי Cookie
אנו משתמשים בקובצי Cookie כדי לייעל את האתר והשירותים שלנו. הסכמתך מאפשרת לנו לעבד נתונים כגון התנהגות גלישה. אי הסכמה עשויה להשפיע על תכונות מסוימות.
פונקציונלי
תמיד פעיל
נדרש כדי שהאתר שלנו יפעל ויתקשר בצורה נכונה.
העדפות
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
סטטיסטיקה
אנו משתמשים בהם כדי לנתח את הנתונים הסטטיסטיים של האתר שלנו. המידע שנאסף הוא אנונימי לחלוטין. האחסון או הגישה הטכנית שמשמשים באופן בלעדי לצרכים סטטיסטיים אנונימיים. ללא זימון, הסכמה וולונטרית מצד ספק שירותי האינטרנט שלך, או רשומות נוספות מצד שלישי, המידע המאוחסן או המוחזר למטרה זו בלבד לא ניתן בדרך כלל לשימוש לצורך זיהויך.
שיווק
קובצי Cookie אלה עוקבים אחר הגלישה שלך כדי לספק מודעות רלוונטיות עבורך.