Skip to content

Commit

Permalink
Merge pull request #13 from Ultimaker/fix-plugins-desc-translation-ge…
Browse files Browse the repository at this point in the history
…neration

Fix some translations entries
  • Loading branch information
wawanbreton authored Mar 20, 2024
2 parents a4586af + 54e44f6 commit 6ca058d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/translationextractor/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _create_setting_translation_entry(self, filename: str, setting: str, field:
return "msgctxt \"{0} {1}\"\nmsgid \"{2}\"\nmsgstr \"\"\n\n".format(setting, field, value.replace("\n", "\\n").replace("\"", "\\\""))

def _create_translation_entry(self, filename: str, field: str, value: str) -> str:
return "msgctxt \"{0}\"\nmsgid \"{1}\"\nmsgstr \"\"\n\n".format(field, value.replace("\n", "\\n").replace("\"", "\\\""))
return "\nmsgctxt \"{0}\"\nmsgid \"{1}\"\nmsgstr \"\"\n".format(field, value.replace("\n", "\\n").replace("\"", "\\\""))

def _create_pot_header(self) -> str:
""" Creates a pot file header """
Expand Down

0 comments on commit 6ca058d

Please sign in to comment.