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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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]. With older versions of polib, the index to
msgstr_pluralis a string, so this would becomemsgstr_plural['2'].