Forums

language declaration (5 posts)

  1. Marcelo
    Member
    Posted 3 years ago #

    Hi! I converted a Green Track template into rtl in order to write in Hebrew (at http://shiatsuhebrew.blogsome.com), and I understand I need to declare the main language (Hebrew) of this blog in order to be well interpreted by browsers and searchers. For what I have seen here (I am a complete newbie so please consider it) it seems to me I should change the definition in RSS 2.0 which reads "<language>en</language>" into "<language>he</language>". Am I right? Else, how do a change the language declaration?

    Thank you!

  2. nielshackius
    Member
    Posted 3 years ago #

    puhh.. I think you have to do this in the wordpress index.php - right?

    You should also check here:
    http://codex.wordpress.org/Installing_WordPress_in_Your_Language
    and maybe here:
    http://codex.wordpress.org/WordPress_in_Your_Language#Hebrew

  3. moshu
    Member
    Posted 3 years ago #

    Probably not in the index, but in the header.
    Some older topics:
    http://wordpress.org/support/topic/24969?replies=3
    http://wordpress.org/support/topic/54243?replies=6
    http://wordpress.org/support/topic/44524?replies=7
    (in this last one I've posted a link to the w3.org - for background)

  4. Marcelo
    Member
    Posted 3 years ago #

    Thanx!
    After reading around, I defined the language thus:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html: lang="he">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>

    Is this OK? And: Shoud this be enough for browsers and searchers purposes?

    Concerning bidirectional writing it seems to complicated an issue for me right now. I plan to write in this blog in Hebrew, so if there is a small piece here and there in a ltr language I will deal with it locally. For the time being at least.

  5. Marcelo
    Member
    Posted 3 years ago #

    Well, the problem is solved. Either as I wrote before or thus:<html xmlns="http://www.w3.org/1999/xhtml" lang="he">, it works. I just was not able to see the difference for I have both Firefox and IE in Hebrew versions, so both of them interpreted well the Hebrew texts even without defining lang. Luckily, Firefox did not with a blog at blogspot in which the language was not defined, so I was able to check it there.

    Thanks for refering me to the right sources, that did it.

Topic Closed

This topic has been closed to new replies.

About this Topic