diff --git a/mapcss/mapcss_lib.py b/mapcss/mapcss_lib.py index 3e9b89bea..2af94410a 100644 --- a/mapcss/mapcss_lib.py +++ b/mapcss/mapcss_lib.py @@ -445,7 +445,10 @@ def JOSM_search(string): # translate from English to the current language (only for strings in the JOSM user interface) [since 6506] def tr(string, *args): if string is not None: - return T_(string, *args) + # Treat '' as ' so JOSM translations work in Osmose too. + # A ' is a special character in JOSM, see https://josm.openstreetmap.de/wiki/Translations + t = T_(string, *args) + return {k: t[k].replace("''", "'") for k in t.keys()} #regexp_test(regexp, string) # test if string matches pattern regexp [since 5699]