WordPress.org

Forums

Codestyling Localization
[resolved] Can only translates theme, not wordpress (7 posts)

  1. Fredly04
    Member
    Posted 2 years ago #

    I'm trying to translate to Norwegian but the plugin will only translate words related to the theme, Super Skeleton, and not generell wordpress words.

    What am i doing wrong?

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

  2. codestyling
    Member
    Plugin Author

    Posted 2 years ago #

    All texts mapped to textdomain "default" have to be inside the WordPress main translation file. Mostly this is a bug by the plugin authors, if the use texts not contained at WordPress main file.
    Even if they would be contained inside the plugins file, they won't be used, cause the textdomain used in PHP code forces to lookup within the WordPress file instead of looking up inside the plugins file.

    So i didn't allow to translate such mistakes, cause even if translated they won't be shown (except they are already inside WordPress core).
    Please contact the plugin author about that, he/she has to repair that.

    Does this help answer your question?

  3. Fredly04
    Member
    Posted 2 years ago #

    Aren't you the plugin author?

  4. codestyling
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, I'm the author of "Codestyling Localization" but what is the relation to your inital question related to a Theme and it's translation?

  5. Fredly04
    Member
    Posted 2 years ago #

    I translated the words in the theme and it is ok. Now I'm trying to translate the words related to wordpress and it doesn't work even though I'm doing the same procedure.

    Maybe this has something to do with it:
    Scripting Guard [ details ] The Plugin Codestyling Localization was forced to protect its own page rendering process against 1 incident !

  6. codestyling
    Member
    Plugin Author

    Posted 2 years ago #

    No it has not. Did you really translate the WordPress itself or the words found inside theme shown as "default"?
    Words related to WordPress within a theme can't be used at all. Only if the WordPress main file contains it, it will appeare. If not, you will never get a translation for those words out of a theme even if they would be packed into the themes file.
    If a theme author is using the "default" textdomain, this is a bug within the theme.

  7. Fredly04
    Member
    Posted 2 years ago #

    Ok, thanks for the help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.