Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/tagstudio/qt/translations.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from collections import defaultdict
from pathlib import Path
from platform import system
from typing import Any

import structlog
Expand Down Expand Up @@ -28,6 +29,11 @@ def __get_translation_dict(self, lang: str) -> dict[str, str]:
def change_language(self, lang: str):
self._lang = lang
self._strings = self.__get_translation_dict(lang)
if system() == "Darwin":
for k, v in self._strings.items():
self._strings[k] = (
v.replace("&&", "<ESC_AMP>").replace("&", "", 1).replace("<ESC_AMP>", "&&")
)

def __format(self, text: str, **kwargs) -> str:
try:
Expand Down