• Ezequiel

    (@ezequiel6arrido)


    I’m going to make this as detailed as possible since my previous post was kind of ignored.

    This is my problem, I’ve installed King Composer in a clean WordPress installation with Spanish (Spain) as the language.

    Then I’ve downloaded the kingcomposer.pot file from /wp-content/plugins/kingcomposer/locales.

    I’ve opened up the file in Po Edit, and generated a translation for Spanish (Spain), and then proceeded to translate the following strings.

    Edit with KingComposer -> Editar con KingComposer (As seen in the button that opens the KC Editor)

    Add a 2-column row -> A?adir una fila de 2 columnas (As seen in the tooltip of a column in the bottom bar of the editor)

    After that I’ve renamed the es_ES.mo and es_ES.po files that Po Edit created to kingcomposer-es_ES.mo and kingcomposer-es_ES.po per documentation and uploaded them to the /wp-content/plugins/kingcomposer/locales folder.

    Stay with me here, then I go to edit a page, check the button, and it’s translated, however, when I check the column tooltip, it’s not.

    I thought it was a mistake in the template, so I did a grep search for both Edit with KingComposer and Add a 2-column row, here are the results.

    grep -rn “Edit with KingComposer” . (In KC’s root directory)

    
    ./locales/kingcomposer-es_ES.po:810:msgid "Edit with KingComposer"
    Coincidencia en el archivo binario ./locales/kingcomposer-es_ES.mo
    ./locales/kingcomposer.pot:784:msgid "Edit with KingComposer"
    ./includes/kc.actions.php:463:<?php _e('Edit with KingComposer', 'kingcomposer'); ?>
    

    grep -rn “Add a 2-column-row” . (In KC’s root directory)

    
    ./locales/kingcomposer-es_ES.po:99:msgid "Add a 2-column row"
    Coincidence in binary file ./locales/kingcomposer-es_ES.mo
    ./locales/kingcomposer.pot:88:msgid "Add a 2-column row"
    ./includes/kc.templates.php:75: <span class="m-a-tips"><?php _e('Add a 2-column row', 'kingcomposer'); ?></span>
    

    So as you can see, both translations look exactly the same, it does not look like there’s any errors in the template.

    Then, why is one translation showing up, and the other one isn’t?

    This has been a simplified example, there are plenty of translations that don’t work and this can be replicated by following the exact same process I did.

    Can you help me? Am I doing something wrong? I’ll be happy to provide more information.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Tung Tran

    (@blackdevilk9it)

    Hi Ezequiel,

    Thanks for your comment.

    Maybe during the scan, some text is missing.

    Please use tool and rescan https://www.icanlocalize.com/tools/php_scanner

    Best regards,

    Tung

    Hi, I am exactly in same situation of Ezequiel.

    kingcomposer.pot translated 100% with PoEdit = kingcomposer-fr_FR.po
    I’ve compiled the .mo = kingcomposer-fr_FR.mo

    KingComposer BackOffice Panel Setup is translated
    “Edit with King Composer” button is translated

    All other entry is not translated…

    • This reply was modified 6 years, 7 months ago by daivernon.
    Thread Starter Ezequiel

    (@ezequiel6arrido)

    @blackdevilk9it can you please provide an answer? Clearly this isn’t a single isolated incident. Does KC not care about localization and internationalization?

    I can’t translate it with .po and mo , didn’t work at all.

    I wonder if the developer tried to use it or not, maybe he didn’t do a test before release.

    “Edit this element” can’t be translated , kingcomposer-zh_CN.mo useless.

    • This reply was modified 6 years, 5 months ago by chrisqie.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Why is KC ignoring some translations?’ is closed to new replies.