Garland gets translated (again!)

Ok so I approached it all wrong last time, I guess you have to learn some how right?

Now I have replaced the translated strings with default wordpress ones, so it should all work nicely.

You can check it out on the garland test blog here. Its running the default lt_LT translation file.

Garland gets translated (again!)

23 thoughts on “Garland gets translated (again!)

  1. niska says:

    Since switching from Garland to Garland Revisited I’ve noticed that *every page* on my blog is blue for a moment, then it switch colors to the colors that I’ve defined.

    Using Firebug for Firefox I can see that every time a page loads, the page myblog.com/?garland_css=1 is called. If it is possible, would you consider adding some kind of caching to this css file?

    I think the code is in file css.php, in garland_css_colors_css().

    Since the old Garland theme didn’t have this behaviour, I hope that it is possible to fix this issue.

    Thanks!

  2. pross says:

    Ive looked into this, never noticed it before. It seems to be a Internet Explorer only issue, Firefox is not affected.
    It is the background images that actually flash, because they are dynamic php created IE will not cache them, firefox has no issue with this.
    I will look further into it.

  3. niska says:

    I’m using Firefox. It seems to be a cache issue. The server sends “No cache” to the browser – which cause the browser to always get a new copy. This was not a issue in the old Garland theme, so it might be something that you’ve added (or removed?).

  4. niska says:

    I’ve tracked down the problem. I think that there is a problem with the webserver. I’ve contacted the webhotel and they are looking into it.

  5. niska says:

    I’ve now tested the theme and almost all texts are automatically translated. Fantastic! 🙂

    I found some texts in commens.php that are not translated/hardcoded. They should be:

    _e(‘Mail (will not be published)’);
    and
    _e(‘(required)’);

    I’ll tell you if I find anything else.

    Thanks again!

  6. pross says:

    I have fixed the flashing images error!!!!

    Check out the test blog : garland.pross.org.uk

    It loads the same in IE as well as FF 🙂

    It was a headers problem, IE would not cache the images.

    here is a quick fix, i will update the theme soon…

    open garland-image.php find these lines:
    header("Vary: Accept-Encoding"); // Handle proxies
    header("Expires: " . gmdate("D, d M Y H:i:s", time() + 864000) . " GMT"); // 10 days

    replace those lines with:
    $interval = 86400;
    $now = time();
    $pretty_lmtime = gmdate('D, d M Y H:i:s', $now) . ' GMT';
    $pretty_extime = gmdate('D, d M Y H:i:s', $now + $interval) . 'GMT';
    // Backwards Compatibility for HTTP/1.0 clients
    header("Last Modified: $pretty_lmtime");
    header("Expires: $pretty_extime");
    // HTTP/1.1 support
    header("Cache-Control: public,max-age=$interval");

  7. pross says:

    ok, functions.php line 257 chage it to:
    [php] echo ‘@import url(‘ . get_bloginfo(‘wpurl’) . ‘/?garland_css=1);’;[/php]
    try that.

  8. latest has been released early due to a bug, suggest you upgrade, next version will support 2.9 and post image thumbnails, its already running on the test blog.

  9. Kia says:

    Thanks! You’re fast! I’ve installed the update and everything is working very good. I’ll try the new image in the header soon.

    Looking forward to post image thumbnails!

  10. Kia says:

    The “next” link in single.php isn’t right aligned. I’ve tried this in FF, IE and Chrome. I’m using the latest version.

    / Kia

  11. It was commented out in the stylesheet!
    open style.css and find

    /*
    .alignleft {
    float: left;
    }
    .alignright {
    float: right;
    }
    */

    replace with

    .alignleft {
    float: left;
    }
    .alignright {
    float: right;
    }

Leave a Reply

Your email address will not be published. Required fields are marked *