Does anyone know a method to mass delete all fuzzy translations from a PO file. Something like:
if #, fuzzy == TRUE Then SET msgstr="" AND REMOVE #, fuzzy
Does anyone know a method to mass delete all fuzzy translations from a PO file. Something like:
if #, fuzzy == TRUE Then SET msgstr="" AND REMOVE #, fuzzy
You can remove fuzzy strings with polib, which is THE library in Python for working with gettext po files:
This script removes the fuzzy translation strings + fuzzy flags, but keeps the untranslated original msgids intact. Some languages (ru, cz, ...) have more than two plural forms, therefore, we check on msgstr_plural['2']. The list index has to be a string. Don't use integers for that.
If gettext is installed you can use the msgattrib command to accomplish this:
The full documentation for msgattrib is here:
https://www.gnu.org/software/gettext/manual/html_node/msgattrib-Invocation.html
If you have GNU gettext installed then you can use this command to remove fuzzy messages: