feat(action): i18n the clear-keys confirmation
Add action_i18n.sh with 22 language arms (ar, az, bn, de, el, es-ES, fa, fr, id, it, ja, ko, pl, pt-BR, ru, th, tl, tr, uk, vi, zh-CN, zh-TW) plus an English default. Detect device locale via persist.sys.locale with ro.product.locale and ro.system.locale fallbacks; split Chinese on Hans/Hant. action.sh sources the helper at top and substitutes every echoed literal with $(_msg <key>). The confirm() flow stays unchanged. Wire action_i18n.sh into customize.sh's per-file extraction list so the helper lands alongside action.sh in /data/adb/modules/tricky_store at install time. Pattern mirrors tricky-addon-enhanced/install_i18n.sh.
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ install_file() {
|
||||
|
||||
# --- Installation ---
|
||||
ui_print "- Extracting module files"
|
||||
for file in customize.sh module.prop service.sh sepolicy.rule daemon action.sh uninstall.sh; do
|
||||
for file in customize.sh module.prop service.sh sepolicy.rule daemon action.sh action_i18n.sh uninstall.sh; do
|
||||
install_file "$file" "$MODPATH"
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user