From 57a5c0f743a32f36ac006e345f7623d9df0c0688 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 14 Oct 2025 12:02:33 +0200 Subject: [PATCH] move translations into quickshell folder --- .config/quickshell/ii/services/Translation.qml | 5 +++-- .config/quickshell/{ => ii}/translations/en_US.json | 0 .config/quickshell/{ => ii}/translations/he_HE.json | 0 .config/quickshell/{ => ii}/translations/it_IT.json | 0 .config/quickshell/{ => ii}/translations/ja_JP.json | 0 .config/quickshell/{ => ii}/translations/ru_RU.json | 0 .config/quickshell/{ => ii}/translations/tools/README.md | 0 .../tools/guide/translation-tools-guide-zh_CN.md | 0 .../translations/tools/guide/translation-tools-guide.md | 0 .../{ => ii}/translations/tools/manage-translations.sh | 0 .../{ => ii}/translations/tools/translation-cleaner.py | 0 .../{ => ii}/translations/tools/translation-manager.py | 0 .config/quickshell/{ => ii}/translations/uk_UA.json | 0 .config/quickshell/{ => ii}/translations/vi_VN.json | 0 .config/quickshell/{ => ii}/translations/zh_CN.json | 0 15 files changed, 3 insertions(+), 2 deletions(-) rename .config/quickshell/{ => ii}/translations/en_US.json (100%) rename .config/quickshell/{ => ii}/translations/he_HE.json (100%) rename .config/quickshell/{ => ii}/translations/it_IT.json (100%) rename .config/quickshell/{ => ii}/translations/ja_JP.json (100%) rename .config/quickshell/{ => ii}/translations/ru_RU.json (100%) rename .config/quickshell/{ => ii}/translations/tools/README.md (100%) rename .config/quickshell/{ => ii}/translations/tools/guide/translation-tools-guide-zh_CN.md (100%) rename .config/quickshell/{ => ii}/translations/tools/guide/translation-tools-guide.md (100%) rename .config/quickshell/{ => ii}/translations/tools/manage-translations.sh (100%) rename .config/quickshell/{ => ii}/translations/tools/translation-cleaner.py (100%) rename .config/quickshell/{ => ii}/translations/tools/translation-manager.py (100%) rename .config/quickshell/{ => ii}/translations/uk_UA.json (100%) rename .config/quickshell/{ => ii}/translations/vi_VN.json (100%) rename .config/quickshell/{ => ii}/translations/zh_CN.json (100%) diff --git a/.config/quickshell/ii/services/Translation.qml b/.config/quickshell/ii/services/Translation.qml index 473a2426e..d06075ed3 100644 --- a/.config/quickshell/ii/services/Translation.qml +++ b/.config/quickshell/ii/services/Translation.qml @@ -14,6 +14,7 @@ Singleton { property bool isScanning: scanLanguagesProcess.running property bool isLoading: false property string translationKeepSuffix: "/*keep*/" + property string translationsPath: Quickshell.shellPath("translations") property string languageCode: { var configLang = Config?.options.language.ui ?? "auto"; @@ -26,7 +27,7 @@ Singleton { Process { id: scanLanguagesProcess - command: ["find", FileUtils.trimFileProtocol(Qt.resolvedUrl(Directories.config + "/quickshell/translations/").toString()), "-name", "*.json", "-exec", "basename", "{}", ".json", ";"] + command: ["find", root.translationsPath, "-name", "*.json", "-exec", "basename", "{}", ".json", ";"] running: true stdout: SplitParser { @@ -60,7 +61,7 @@ Singleton { FileView { id: translationFileView - path: root.languageCode?.length > 0 ? Qt.resolvedUrl(Directories.config + "/quickshell/translations/" + root.languageCode + ".json") : "" + path: root.languageCode?.length > 0 ? Qt.resolvedUrl(`${root.translationsPath}/${root.languageCode}.json`) : "" onLoaded: { var textContent = ""; diff --git a/.config/quickshell/translations/en_US.json b/.config/quickshell/ii/translations/en_US.json similarity index 100% rename from .config/quickshell/translations/en_US.json rename to .config/quickshell/ii/translations/en_US.json diff --git a/.config/quickshell/translations/he_HE.json b/.config/quickshell/ii/translations/he_HE.json similarity index 100% rename from .config/quickshell/translations/he_HE.json rename to .config/quickshell/ii/translations/he_HE.json diff --git a/.config/quickshell/translations/it_IT.json b/.config/quickshell/ii/translations/it_IT.json similarity index 100% rename from .config/quickshell/translations/it_IT.json rename to .config/quickshell/ii/translations/it_IT.json diff --git a/.config/quickshell/translations/ja_JP.json b/.config/quickshell/ii/translations/ja_JP.json similarity index 100% rename from .config/quickshell/translations/ja_JP.json rename to .config/quickshell/ii/translations/ja_JP.json diff --git a/.config/quickshell/translations/ru_RU.json b/.config/quickshell/ii/translations/ru_RU.json similarity index 100% rename from .config/quickshell/translations/ru_RU.json rename to .config/quickshell/ii/translations/ru_RU.json diff --git a/.config/quickshell/translations/tools/README.md b/.config/quickshell/ii/translations/tools/README.md similarity index 100% rename from .config/quickshell/translations/tools/README.md rename to .config/quickshell/ii/translations/tools/README.md diff --git a/.config/quickshell/translations/tools/guide/translation-tools-guide-zh_CN.md b/.config/quickshell/ii/translations/tools/guide/translation-tools-guide-zh_CN.md similarity index 100% rename from .config/quickshell/translations/tools/guide/translation-tools-guide-zh_CN.md rename to .config/quickshell/ii/translations/tools/guide/translation-tools-guide-zh_CN.md diff --git a/.config/quickshell/translations/tools/guide/translation-tools-guide.md b/.config/quickshell/ii/translations/tools/guide/translation-tools-guide.md similarity index 100% rename from .config/quickshell/translations/tools/guide/translation-tools-guide.md rename to .config/quickshell/ii/translations/tools/guide/translation-tools-guide.md diff --git a/.config/quickshell/translations/tools/manage-translations.sh b/.config/quickshell/ii/translations/tools/manage-translations.sh similarity index 100% rename from .config/quickshell/translations/tools/manage-translations.sh rename to .config/quickshell/ii/translations/tools/manage-translations.sh diff --git a/.config/quickshell/translations/tools/translation-cleaner.py b/.config/quickshell/ii/translations/tools/translation-cleaner.py similarity index 100% rename from .config/quickshell/translations/tools/translation-cleaner.py rename to .config/quickshell/ii/translations/tools/translation-cleaner.py diff --git a/.config/quickshell/translations/tools/translation-manager.py b/.config/quickshell/ii/translations/tools/translation-manager.py similarity index 100% rename from .config/quickshell/translations/tools/translation-manager.py rename to .config/quickshell/ii/translations/tools/translation-manager.py diff --git a/.config/quickshell/translations/uk_UA.json b/.config/quickshell/ii/translations/uk_UA.json similarity index 100% rename from .config/quickshell/translations/uk_UA.json rename to .config/quickshell/ii/translations/uk_UA.json diff --git a/.config/quickshell/translations/vi_VN.json b/.config/quickshell/ii/translations/vi_VN.json similarity index 100% rename from .config/quickshell/translations/vi_VN.json rename to .config/quickshell/ii/translations/vi_VN.json diff --git a/.config/quickshell/translations/zh_CN.json b/.config/quickshell/ii/translations/zh_CN.json similarity index 100% rename from .config/quickshell/translations/zh_CN.json rename to .config/quickshell/ii/translations/zh_CN.json