Can't translate the theme

  • Posted in : Photographer
  • jclucena0804
    Participant

    Hi!
    I’ve tried to translate the theme following the documentation, but I haven’t succeded.
    When I try to “scan” the language, my WordPress installation returns an error in my log file:
    “PHP Fatal error: Cannot use object of type WP_Error as array in /var/www/html/photomoments.com.br/web/newsite/wp-content/plugins/codestyling-localization/codestyling-localization.php on line 2778, referer: http://photomoments.com.br/newsite/wp-admin/tools.php?page=codestyling-localization%2Fcodestyling-localization.php&type=themes”

    And than is impossible to translate the few words that remains in English.
    I’m trying to translate to pt-br.

    I’m using WordPress 4.2.2–pt_BR, and Codestyling Localization(en) version 1.99.25

    Any suggestion?

    Thanks a lot!
    Regards, Juan Carlos

    Mehmet S.
    Keymaster

    Hi, you can try Poedit editor to translate the theme.

    Thanks

    jclucena0804
    Participant

    Hi!
    I’ve tried the Poedit and is working. :-)
    I’ve translated almost everything that I need.
    However, was impossible to find out 2 messages in source-code: “THIS FIELD IS REQUIRED.” and “PLEASE ENTER A VALID EMAIL ADDRESS.” from E-mail form.
    Does anyone know what entry I have to fill inside my .po file, to be possible to translate these messages?

    Thanks!
    Regards, Juan Carlos

    ahmetsali
    Keymaster

    Hi, paste this code to Theme Options > Style > External Js area;

    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/localization/messages_##.js"></script>
    

    where ## is the localization code; such as es for Spanish.

Viewing 4 posts - 1 through 4 (of 4 total)

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

License required for the following item
Login and Registration Log in · Register