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