ThemeShaper Forums » Thematic


thematic_doctitle not being translated properly

(3 posts)
  • Started 8 years ago by Gramsen
  • Latest reply from Gramsen
  • This topic is not resolved
  1. Gramsen

    Hello everyone,

    I seem to have a few problems with the thematic_doctitle function, no matter how i try to override it. The current default doctitle displays the doctitle properly for pages and posts; but when it comes to the search pages, the archives and the 404 page - the title is not translated into the language i use.

    The same translation terms works fine for the search page; as they seem to translate properly - but no matter how i override the doctitle, or even chance the source code of it in the header-extenstions (thematic), it doesn't seem to update.

    I'm using a homemade childtheme of Thematic, and Wordpress 3.2.1.

    I hope someone has a clue on how to fix this; or perhaps just a direction i can keep on trying in. You can also see this url (temporary page): ; Notice the header below has been translated, where the doctitle still is in english.

    ~ Thomas

    Posted 8 years ago #
  2. I may have not understood this correctly, but I will take a stab at it.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
    <html xmlns="" dir="ltr" lang="da-DK">

    It sounds like you are trying to change the "EN" in the Doctype, but this should remain EN, because the code itself is in english. The lang="da-DK" is what actually controls the language of the page. So in short, you shouldn't need to change the EN.

    Here is an example with a html5 doctype, which should act as a template if you did really want to modify it.

    // cheater html5 doctype
    function snix_create_doctype() {
        $content = "<!DOCTYPE html>" . "\n";
        $content .= '<html xmlns=""';
        return $content;
    add_filter('thematic_create_doctype', 'snix_create_doctype');
    Posted 8 years ago #
  3. Gramsen

    Hello there Scottnix,

    Thanks for your time and the quick reply.
    I'm afraid that's not quite it. The HTML Doctype is in this case fine.

    What i am trying to change though is the <title></title>, which oddly enough isn't being translated properly on the searchpage for example. Whereas text in the content area IS being translated by the same translation string in the template.

    I hope that has made my problem clear - appolegies for any misunderstandings.

    ~ Thomas

    Posted 8 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.