WordPress.org

Ready to get started?Download WordPress

Forums

Codestyling Localization
[resolved] Doesn't seem to detect twenty[ten|eleven].[p|m]o files (7 posts)

  1. bernhard-reiter
    Member
    Posted 1 year ago #

    I'm using codestyling-localization 1.99.29 with WP 3.5, and it doesn't seem to find the twenty[ten|eleven].[p|m]o files which reside at wp-content/languages/themes.

    The plugin shows those themes as untranslated (inactive). (FWIW, the relevant strings aren't present in the "core" WordPress section either.)

    http://wordpress.org/extend/plugins/codestyling-localization/

  2. codestyling
    Member
    Plugin Author

    Posted 1 year ago #

    This is a known problem since 3.5 version of WordPress.
    The packaged themes like twenty (ten|eleven|twelfe) have had their own language folder but there is only the *.pot file (translation template). The real files are located at the folder you mentioned above.
    Unfortunately my plugin is not aware of this fact and only inspects the themes language folder for existing theme translation. And there are none.

    This will be changed within version 2.0 of my plugin. This version will support this kind of "re-routed" language file folders. The current work arround is to move (or copy) the files into the themes language folder but have to be renamed too (locale.mo).

    This behavoir introduced with WP 3.5 should avoid the overwrite of existing translations. In my opinion this is a first step in right direction but not the full goal as I would expect it. What's about multisite installation, where several sub blog owner need to have their special own modification of the same language file?
    This is currently not covered but will be with my new 2.0 version of my plugin.

    Thatswhy I do not spend more power into 1.x versions (except bugfixing) and I'm working focused on 2.0 which will require at least 3.5 WordPress to be usable.

  3. orsolyanal3
    Member
    Posted 1 year ago #

    Hi!

    Could you please explain in more detail the workaround you mention? Which files do I need to copy and rename?

    Thank you!

  4. codestyling
    Member
    Plugin Author

    Posted 1 year ago #

    As example let's take twenty twelfe Theme.
    The language files will be installed since WP 3.5 at:

    wp-content\languages\themes\twentytwelve-de_DE.mo
    wp-content\languages\themes\twentytwelve-de_DE.po

    Please copy and rename this 2 files to:

    wp-content\themes\twentytwelve\languages\de_DE.mo
    wp-content\themes\twentytwelve\languages\de_DE.po

    Afterwards my plugin is able to detect the languages and you can modify them.

  5. orsolyanal3
    Member
    Posted 1 year ago #

    Thank you very much!

  6. leomatrix2004
    Member
    Posted 1 year ago #

    Hi, I have just installed this plugin and it's not working on Twenty Eleven. I would like to change it to Brazilian Portuguese. I did some translations and generated the .mo .po files and they're already at:

    wp-content\themes\twentytwelve\languages\pt_BR.mo
    wp-content\themes\twentytwelve\languages\pt_BR.po

    There's also another file (original from the template) called twentyeleven.pot.

    I have refreshed the page and it's still all in English. I noticed there's no "Posted on" to be translated and there isn't also the terms from the side bar like "categories, recent posts, recent coments etc."

    Any help will be much appreciated!

  7. jan10
    Member
    Posted 1 year ago #

    I use wordpress 3.5.2, child of twenty twelve theme

    It worked for me to copy these files
    wp-content/languages/nl_NL.mo
    wp-content/languages/nl_NL.po
    (italic: choose the language which you prefer)

    into the languages folder of my theme (not the child theme) and give them another name:
    wp-content/themes/twentytwelve/languages/twentytwelve-nl_NL.mo
    wp-content/themes/twentytwelve/languages/twentytwelve-nl_NL.po

    and then upload them

    then remove the file called twentytwelve.po inside the wp-content/themes/twentytwelve/languages/ folder or if you don't dare: put an - before the name

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic