• Resolved mohamed.belhassen

    (@mohamedbelhassen)


    Hi,

    Although I configured the Arabic translation file, I get always the index page form shown in english.
    When consulting the webpage source code, I find that there is no lang attribute in the HTML tag.
    Subsequently, the translation engine is not invoked.

    How to fix this issue?

    Cordially,
    M.B

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello @mohamedbelhassen,

    Unfortunately, the plugin doesn’t have a translation in your language.

    Thanks.

    Thread Starter mohamed.belhassen

    (@mohamedbelhassen)

    Hello @georgejipa,
    I have already translated the po file and generated the mo file of arabic language (ar.mo), this is not the problem.
    But, I mean thet the plugin itself is not ready for translation (or at least miscoded)
    since it does not include the “lang” attribute in the <html> tag of the generated website index frontpage.

    Hello @mohamedbelhassen,

    Do you mean: https://www.w3.org/TR/html5/dom.html#attr-lang ? If yes, the lang attribute is not implemented because nobody requested it until now (maybe in a future release it will be implemented).
    But I don’t understand why do you say that the string translation doesn’t work… because it has nothing to do with the lang attribute.

    Disclaimer: the translation files (wp-maintenance-mode-ar.po and wp-maintenance-mode-ar.mo) must be placed in /wp-content/languages/plugins/ and your WP “Site Language” must be Arabic (???????).

    Thanks.

    • This reply was modified 8 years, 3 months ago by George J.
    • This reply was modified 8 years, 3 months ago by George J.
    Thread Starter mohamed.belhassen

    (@mohamedbelhassen)

    Hello @georgejipa,

    I totally agree with you, lang attribute is not required to make the translation working.

    Note that my website language is already set to arabic.

    To demonstrate the problem, I will turn my website into maintenance mode for 4 hours.
    Please let me know when you visit the website to desactivate the plugin as soon as possible.
    Here is my website url: myWebsite

    As you see, all thing is in arabic (text manually edited from the plugin backend) except the form

    Hello @mohamedbelhassen,

    Sorry, but I wasn’t online. Please post a download link with the translation files… because I want to test on my development environment.

    Thanks.

    Thread Starter mohamed.belhassen

    (@mohamedbelhassen)

    Dear @georgejipa

    You find in the following link the mo/po files of Arabic language:
    arabic mo/po translation files

    Note that I only translated the required texts not all the text.

    Cordially,
    M.B

    Hello @mohamedbelhassen,

    Looks like the translation is working fine on my dev environment. Screenshot: https://screenshotlink.ru/3522968c6998397aa51c961b9ecce027.png
    There is only a css bug (on Firefox) but it can be fixed. Are you sure you followed my earlier disclaimer?

    Disclaimer: the translation files (wp-maintenance-mode-ar.po and wp-maintenance-mode-ar.mo) must be placed in /wp-content/languages/plugins/ and your WP “Site Language” must be Arabic (???????).

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘lang attribute is absent in index page’ is closed to new replies.