New Landing How can we help? Cardinal Translation issues

Viewing 5 posts - 16 through 20 (of 20 total)
  • Posted in: Cardinal
  • #110283
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @javierojuel,

    Just checked here with the spanish translation, and all working fine.. https://www.dropbox.com/s/phrz6cdfdv0ay93/Screenshot%202014-09-13%2003.57.09.png?dl=0

    Do you have any other languages set up?

    – Ed

    #110341
    javierojuel
    Member
    Post count: 44

    Hello Ed,

    I must miss something:

    I have written in the file wp-config.php define(‘WPLANG’,’es_ES’);
    My computer and browser is set to Spanish.
    I have installed the plugin Codestyle Localization and I have translated some strings.
    No other languages installed.

    Any idea about what is wrong?

    #110370
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Is your WordPress admin area appearing in Spanish? I’ve tried the wp-config.php method before, and have never gotten it to work – I always use WPML.

    – Ed

    #110412
    javierojuel
    Member
    Post count: 44

    Hello,

    I found a solution for this problem. In my opinion, there is an error with the system you use to translate the theme to different languages. By deafult, if you want wordpress and the theme to be in other language (just one), it is not needed any plugin (WPML or similar). You just have to define the language in wp-config.php and have the right po files for the theme.

    With the structure of your theme, wordpress does not know which file is the right one and cannot show the theme in the right language. There are several directories with language files and I suppose that you should tell wordpress where the right one is. I found this page that tells you must define the language directory in functions.php.

    MY SOLUITON

    I installed this plugin CodeStyling Localization Preserver that forces wordpress to read the language file from /wp-content/languages/themes . So in this way, when I save the Spanish .po file in Codestyle Localization plugin, it copies the file to that directory.

    This is “a plugin of a plugin” and Codestyle Localization plugin is needed.

    I would say that I have translated at least 10 themes before and I have never had this problem before. So It is strange that no other have had this problem before.

    #110450
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @javierojuel

    That is strange, because that’s exactly how we’ve declared the load_textdomain() function in our functions.php file, exactly as it’s meant to.

    I’ll look into it further, however we do have lots of users who have managed to translate without issue.

    – Ed

Viewing 5 posts - 16 through 20 (of 20 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register