fix(i18n): add the Slovak label of the Vulkan profile

This commit is contained in:
MacRimi
2026-10-31 00:42:21 +01:00
parent f9fe4d2793
commit 98d8e78dcb
3 changed files with 32 additions and 0 deletions
@@ -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()
+1
View File
@@ -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",