Why is KC ignoring some translations?
-
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
andes_ES.po
files that Po Edit created tokingcomposer-es_ES.mo
andkingcomposer-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
andAdd 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!
- The topic ‘Why is KC ignoring some translations?’ is closed to new replies.