diff --git a/resources/lang/app.pot b/resources/lang/app.pot index 4298f72..405c3ec 100644 --- a/resources/lang/app.pot +++ b/resources/lang/app.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Probematic\n" -"POT-Creation-Date: 2024-05-10 14:44+0200\n" +"POT-Creation-Date: 2024-05-10 15:03+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -2744,7 +2744,7 @@ msgstr "" #: :stats/active-members-count-tooltip #, ycp-format msgctxt ":stats/active-members-count-tooltip" -msgid "The number of members that were marked as "active" in SNOrga during the timeframe" +msgid "The number of members that were marked as \"active\" in SNOrga during the timeframe" msgstr "" #: :stats/probe-attendance diff --git a/src/clj/app/i18n.clj b/src/clj/app/i18n.clj index 9b42fb1..183b10a 100644 --- a/src/clj/app/i18n.clj +++ b/src/clj/app/i18n.clj @@ -160,12 +160,15 @@ [s] (parse (str/split-lines s))) +(defn escape-quotes [s] + (clojure.string/escape s {\\ "\\\\" \" "\\\""})) + (defn ->po-entry [[key untranslated-str]] (format "#: %s #, ycp-format msgctxt \"%s\" msgid \"%s\" -msgstr \"\"" (str key) (str key) untranslated-str)) +msgstr \"\"" (str key) (escape-quotes (str key)) (escape-quotes untranslated-str))) (defn pot-header [] (format "msgid \"\"