diff --git a/qgispluginci/translation.py b/qgispluginci/translation.py index 8ab566e9..03977113 100644 --- a/qgispluginci/translation.py +++ b/qgispluginci/translation.py @@ -92,6 +92,15 @@ def update_strings(self): project_file.unlink() + output_ts_file = Path(self.ts_file) + ts_file_contents = output_ts_file.read_text() + # Since the source language sent to Transifex is English and it has two plural forms, the produced output must have the `` tag twice. + ts_file_contents = ts_file_contents.replace( + "", + "", + ) + output_ts_file.write_text(ts_file_contents) + if output.returncode != 0: logger.error( f"Translation failed: {output.stderr}", exc_info=TranslationFailed()