index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Daniel <blackrabbit256@gmail.com> | 2022-02-15 18:44:58 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-15 08:44:58 +0100 |
commit | 6489a417aa8d43bd58ec0fd1268d0dd734b0073f (patch) | |
tree | 476033ff0d6a2650ff5202f42b248e7b4bbe2f8d /archinstall/lib/translation.py | |
parent | d9118a33b3a25839fde8626cde313115ddb79376 (diff) |
-rw-r--r-- | archinstall/lib/translation.py | 8 |
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) |