9

T2: Translate Templates

Thumbnail for T2: Translate Templates

All default templates are in English, and there are a lot of users that need them translated into own languages. With recent changes in 1.6.4 translating is much easier because reassigning the templates is now done automatically by the plugin.

As said before, you CAN’T edit default templates. That is done to ensure that plugin can fall back to defaults if you make an error with your own templates. So, if you want your own language you need to duplicate template and translate them. We will start with the simplest template used for word vote, I will translate them into Serbian language:

Editor

Editor

  1. Go to the T2 Templates panel, find Default Element Word Votes template, and click duplicate. You will get the editor window as the one on the right.
  2. Give your new template a name, that is best to feature the language name also. You can add description, but that’s not required.
  3. There are two checkboxes at the top, and you need to check both of them. First one will set this template as default. The second one is much more important and will cause for all templates using this one to switch to this newly created template, and that will cause for all templates to show word vote in your own language.
  4. The bottom has two template elements that you need to translate, with singular and plural of word votes. Replace the words with your language translations and click save.

The same princip can be used for all the other templates. Here is the list of default templates that actually have words for translation in them:

  • Default Standard Rating Text
  • Default Comments Rating Text
  • Default Multi Ratings Text
  • Standard RSS Rating Block
  • Default Element Word Votes
  • Default Widget Star Rating
  • Default Widget Blog Rating
  • Default Widget Comments Rating
  • Default Thumbs Article Rating Text
  • Default Thumbs Comment Rating Text

This doesn’t mean that you can’t use any text in other templates, it all depends on the your needs and the design you want for the rating blocks and results.

GD Star Rating
loading...
T2: Translate Templates7.51046

Share this:

RSS DiGG Google Buzz Google Technorati StumbleUpon Design Float Microsoft Live PDF Favorites

9 Responses to “T2: Translate Templates”

  1. Edenya

    September 17, 2009
    at 4:28 PM

    Great, but it doesnt support cyrilic alphabet at all. BTW i got an russian language blog and script has not auto translated into russian. What the fault ?

    GD Star Rating
    loading...
    • MillaN

      September 17, 2009
      at 5:12 PM

      Plugin supports cyrilic letters just fine. Your database on the other hand is most likely not set to proper encoding for all tables, and you should check and set all tables right. Plugin also has a russian translation, but that also depends on the WordPress installation and set language code.

      GD Star Rating
      loading...
      • Edenya

        September 17, 2009
        at 8:36 PM

        Dear Sir, when I installed fully russian version of WP I`v set up the database encoding to utf8_cyrillic. And the plugin is fully translated on admin panel but on the blog i still have English default language. I`v tried to change the words as you described in this article but all the words I typed in russian were not shown at all at articles.
        Ill keep investigating on it cause rather my fault, but to be sure, can you test it?
        Thanks in anticipate.

        GD Star Rating
        loading...
        • MillaN

          September 17, 2009
          at 9:17 PM

          I told you to check each table collation, not database.

          GD Star Rating
          loading...
  2. AzzePis

    September 18, 2009
    at 5:59 PM

    I installed fully russian version of WP, I`v set up the database encoding to utf8 and i’v made duplicate of all needed template, translate whem to russian, and seems all is OK :)
    see my blog

    GD Star Rating
    loading...
    • Timmy

      September 30, 2009
      at 9:08 PM

      Thanks for the example! :)

      GD Star Rating
      loading...
  3. AzzePis

    October 12, 2009
    at 10:06 AM

    But one problem still is. every time the plugin update reset’s my default templates. and i have to set my templates to default again.

    GD Star Rating
    loading...
    • MillaN

      October 12, 2009
      at 12:39 PM

      I will check this, but I didn’t noticed the problem on my blogs where all are using non standard templates.

      GD Star Rating
      loading...

Trackbacks/Pingbacks

  1. Webmaster Crap » Blog Archive » GD Star Rating | Customization: T2: Translate Templates - September 17, 2009

    [...] More: GD Star Rating | Customization: T2: Translate Templates [...]

Comments are closed.

Social Networks

Subscribe via Feedburner Flickr Images

Feedburner updatesFeedburner

Sign up to receive all latest news about GD Star Rating directly to your email.