mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-01 10:22:08 +00:00
fix(i18n): add the Slovak label of the Vulkan profile
This commit is contained in:
@@ -102,6 +102,12 @@ PROTECTED_TECHNICAL_TERMS = (
|
||||
"WebUI",
|
||||
"Intel",
|
||||
"CUDA",
|
||||
"ROCm",
|
||||
"Vulkan",
|
||||
"SYCL",
|
||||
"QSV",
|
||||
"OpenVINO",
|
||||
"OpenCL",
|
||||
"KFD",
|
||||
"GPU",
|
||||
"CPU",
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
"""A label made only of product and API names is right when it comes back
|
||||
unchanged, so the translation bot keeps it instead of retrying and dropping it."""
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
||||
import build_translation_cache as cache # noqa: E402
|
||||
|
||||
|
||||
class ProtectedTermsTests(unittest.TestCase):
|
||||
def test_acceleration_profile_labels_are_kept_unchanged(self):
|
||||
for label in ("Intel/AMD (Vulkan)", "AMD (ROCm)", "Intel (SYCL)", "NVIDIA (CUDA)",
|
||||
"Intel/AMD (VA-API)", "Intel (OpenVINO)"):
|
||||
with self.subTest(label=label):
|
||||
self.assertTrue(cache.is_fully_protected(label))
|
||||
self.assertFalse(cache.looks_untranslated(label, label))
|
||||
|
||||
def test_a_sentence_coming_back_unchanged_is_still_a_failure(self):
|
||||
sentence = "The GPU is used through Vulkan when it is available"
|
||||
self.assertTrue(cache.looks_untranslated(sentence, sentence))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -3505,6 +3505,7 @@
|
||||
"Intel render device for recognition": "Zariadenie na rozpoznávanie informácií",
|
||||
"Intel/AMD (VA-API and QSV)": "Intel/AMD (VA-API a QSV)",
|
||||
"Intel/AMD (VA-API)": "Intel/AMD (VA-API)",
|
||||
"Intel/AMD (Vulkan)": "Intel/AMD (Vulkan)",
|
||||
"Intel/AMD (streaming rendering and encoding)": "Intel/AMD (vykresľovanie a kódovanie streamu)",
|
||||
"Intel/AMD DRM node (device only)": "Intel/AMD uzol DRM (iba zariadenie)",
|
||||
"Intel/AMD VA-API": "Intel/AMD VA-API",
|
||||
|
||||
Reference in New Issue
Block a user