Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/translation.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/translation.py')
-rw-r--r--archinstall/lib/translation.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/archinstall/lib/translation.py b/archinstall/lib/translation.py
index b8a27fed..767d6d36 100644
--- a/archinstall/lib/translation.py
+++ b/archinstall/lib/translation.py
@@ -8,6 +8,7 @@ from pathlib import Path
from typing import List, Dict
from .exceptions import TranslationError
+
class Languages:
def __init__(self):
self._mappings = self._get_language_mappings()
@@ -46,6 +47,13 @@ class DeferredTranslation:
def __gt__(self, other) -> bool:
return self.message > other
+ def __add__(self, other) -> DeferredTranslation:
+ if isinstance(other, str):
+ other = DeferredTranslation(other)
+
+ concat = self.message + other.message
+ return DeferredTranslation(concat)
+
def format(self, *args) -> str:
return self.message.format(*args)