• Resolved Diego Andrade

    (@diegoandrade)


    Hello Alessandro,

    First of all congratulations for the great work! This is a very nice plugin.

    But I’m not able to translate my theme. The theme was made from the scratch. I created the textdomain with the name of my theme and added all the strings in my own language (Brazilian Portuguese). What I’m trying to do is translate it to English.

    When I go to “Ceceppa Multilingua > Theme” I can see my strings to translate, and after I translate some of them and click the save button I get the following error:

    /public_html/news/wp-content/themes/confap/languages/en_US.mo
    exception 'Exception' with message 'This is not a MO string.' in /public_html/news/wp-content/plugins/ceceppa-multilingua/Pgettext/mo.php:148
    Stack trace:
    #0 /public_html/news/wp-content/plugins/ceceppa-multilingua/Pgettext/mo.php(61): CMo::fromString('???????????????...')
    #1 /public_html/news/wp-content/plugins/ceceppa-multilingua/admin/parser.php(312): CMo::fromFile('/public_html/...')
    #2 /public_html/news/wp-content/plugins/ceceppa-multilingua/admin/parser.php(181): CMLParser->print_table_body(Array)
    #3 /public_html/news/wp-content/plugins/ceceppa-multilingua/admin/parser.php(56): CMLParser->print_table()
    #4 /public_html/news/wp-content/plugins/ceceppa-multilingua/admin/layouts/translate-theme.php(33): CMLParser->__construct('Confap', '/public_html/...', '/public_html/...')
    #5 /public_html/news/wp-content/plugins/ceceppa-multilingua/admin/admin-translations.php(86): require_once('/public_html/...')
    #6 /public_html/news/wp-content/plugins/ceceppa-multilingua/admin/admin.php(271): require_once('/public_html/...')
    #7 [internal function]: CMLAdmin->form_translations('')
    #8 /public_html/news/wp-includes/plugin.php(429): call_user_func_array(Array, Array)
    #9 /public_html/news/wp-admin/admin.php(217): do_action('ceceppa-multili...')
    #10 {main}

    And the translation don’t work! I checked and the .po and .mo files are generated on my theme’s directory. I also tried to generate the .mo file with PoEdit and upload to the server but I get the same error with the plugin. I googled about this error but didn’t found anything relevant.

    Can you help me please? I need to finish this job for a client as soon as possible. Cheers.

    https://wordpress.org/plugins/ceceppa-multilingua/

Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Can't translate theme’ is closed to new replies.