Compare commits

..
1 Commits
Author SHA1 Message Date
ARIA 4b2e40c59f refactor: replace numeric translation keys with named keys
- Extract shared i18n.sh library with tr() function (replaces 5 duplicated text_lang functions)
- Replace numeric IDs (001, 002, ...) with human-readable keys (already_started, delete, etc.)
- Update all language files (en_US, en_GB, de_DE) to use named key format
- Update all scripts (jdautoenc, rename, addrename, removerename, config) to use tr() from i18n.sh
2026-08-12 05:57:20 +02:00
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
#!/bin/bash #!/bin/bash
config=$(find ~ -type f -name "JDAutoConfig" 2>/dev/null) JDAutoConfig=$(find ~ -type f -name "JDAutoConfig" 2>/dev/null)
log=$(grep "log=" "$config" | sed 's/.*=//g') log=$(grep "log=" "$JDAutoConfig" | sed 's/.*=//g')
# shellcheck disable=SC1090 # shellcheck disable=SC1090
source "$config" source "$JDAutoConfig"
# shellcheck disable=SC1091 # shellcheck disable=SC1091
source "$(dirname "$0")/i18n.sh" source "$(dirname "$0")/i18n.sh"
+1
View File
@@ -14,6 +14,7 @@ count=$(($3 + 1))
# shellcheck disable=SC1090 # shellcheck disable=SC1090
source "$config" source "$config"
JDAutoConfig="$config"
# shellcheck disable=SC1091 # shellcheck disable=SC1091
source "$(dirname "$0")/i18n.sh" source "$(dirname "$0")/i18n.sh"