Attributron 2000
Translations? (2 posts)

  1. Angry Creative
    Posted 4 years ago #

    Would be great with some more translations! I'd be happy to help out with a Swedish one.


  2. siefca
    Posted 4 years ago #


    You can add translations with some skills, the plug-in is translation ready, so the translations will probably appear in a future versions.

    I resolved the case by creating translation file (for Polish):


    Then I looked into plug-in source:


    and searched for any instructions beggining with _( or __(

    They contain translation keys. Then I put these keys into:


    Partial example:

    msgid ""
    msgstr ""
    "PO-Revision-Date: 2012-07-24 12:41:58+0000\n"
    "MIME-Version: 1.0\n"
    "Content-Type: text/plain; charset=UTF-8\n"
    "Content-Transfer-Encoding: 8bit\n"
    "Project-Id-Version: 3.4.x\n"
    msgid "Sources:"
    msgstr "Wykorzystane materiaƂy:"

    So for the found word Sources: (from code) I created its translated version, and so on.

    Next step is to convert PO file to MO file that WordPress understands. If you have shell access and the system is kind of Unix, then you can use msgfmt. In my case:

    cd wp-content/languages
    msgfmt -o dws_attributron-2000-pl_PL.mo dws_attributron-2000-pl_PL.po

    If you don't have shell access, then see the thread on StackOverflow.

    The last step is telling your theme to load translation files just created. Edit your functions.php and add initializer. In my case it was:

    function attributron_trans_init() {
      load_textdomain('dws_attributron-2000', WP_CONTENT_DIR . "/languages/dws_attributron-2000-pl_PL.mo");
    add_action('init', 'attributron_trans_init');

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Attributron 2000
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.