Este hilo está resuelto. Aquí tienes una descripción del problema y la solución.
Problem:
The client needed to edit the .pot file of a specific plugin to add more strings and then synchronize the .po file in Spanish to translate the new strings.
Solution:
We explained that WPML handles plugin texts differently than editing PO/POT files directly. We use the gettext function to register strings for translation within the WPML > String Translation screen. To work with translatable strings, the client should register them using
_e('text', 'domain-name')
when echoing content or
__('text', 'domain-name')
when working with strings but not echoing them. WPML can then register the string if the client scans their theme and/or plugin. We provided links to documentation that details the process:
- Enabling text translation for themes not compatible with WPML,
- Translation for texts by other plugins and themes,
- How to scan the theme or plugin for strings,
- How to enable auto-register strings
If this solution is not relevant due to being outdated or not applicable to your case, we recommend opening a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.
If you need further assistance, please contact our support forum.
Este es el foro de soporte técnico de WPML, el plugin multilingüe de WordPress.
Todas las personas pueden leerlo pero solo los clientes de WPML pueden ingresar comentarios. El equipo de WPML responde en los foros 6 días a la semana, 22 horas por día.
Este tema contiene 1 respuesta, tiene 2 voces.
Última actualización por hace 1 año, 1 mes.
Asistido por: Mateus Getulio.