You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
Fix an issue that may happen in Apatch
and update translation guide
This commit is contained in:
@@ -21,7 +21,7 @@ if [ ! -s "$OUTPUT" ]; then
|
||||
fi
|
||||
|
||||
# Find xposed package name
|
||||
pm list packages -3 | awk -F: '{print $2}' | while read -r PACKAGE; do
|
||||
pm list packages -3 </dev/null 2>&1 | cat | awk -F: '{print $2}' | while read -r PACKAGE; do
|
||||
if ! grep -Fq "$PACKAGE" "$SKIPLIST"; then
|
||||
pm path "$PACKAGE" | grep "base.apk" | awk -F: '{print $2}' | tr -d '\r' | while read -r APK_PATH; do
|
||||
aapt dump xmltree "$APK_PATH" AndroidManifest.xml 2>/dev/null | grep -qE "xposed.category|xposeddescription" && echo "$PACKAGE" >> "$OUTPUT"
|
||||
|
||||
@@ -41,15 +41,15 @@ else
|
||||
done
|
||||
echo "# This file is generated from service.sh to speed up load time" > "$OUTPUT_APP"
|
||||
echo "# This file is generated from service.sh to speed up load time" > "$OUTPUT_SKIP"
|
||||
pm list packages -3 | awk -F: '{print $2}' | while read -r PACKAGE; do
|
||||
APK_PATH=$(pm path "$PACKAGE" | grep "base.apk" | awk -F: '{print $2}' | tr -d '\r')
|
||||
pm list packages -3 </dev/null 2>&1 | cat | awk -F: '{print $2}' | while read -r PACKAGE; do
|
||||
APK_PATH=$(pm path "$PACKAGE" </dev/null 2>&1 | cat | grep "base.apk" | awk -F: '{print $2}' | tr -d '\r')
|
||||
if [ -n "$APK_PATH" ]; then
|
||||
APP_NAME=$(aapt dump badging "$APK_PATH" 2>/dev/null | grep "application-label:" | sed "s/application-label://g; s/'//g")
|
||||
APP_NAME=$(aapt dump badging "$APK_PATH" </dev/null 2>&1 | cat | grep "application-label:" | sed "s/application-label://g; s/'//g")
|
||||
echo "app-name: $APP_NAME, package-name: $PACKAGE" >> "$OUTPUT_APP"
|
||||
else
|
||||
echo "app-name: Unknown App package-name: $PACKAGE" >> "$OUTPUT_APP"
|
||||
fi
|
||||
if ! aapt dump xmltree "$APK_PATH" AndroidManifest.xml 2>/dev/null | grep -qE "xposed.category|xposeddescription"; then
|
||||
if ! aapt dump xmltree "$APK_PATH" AndroidManifest.xml </dev/null 2>&1 | cat | grep -qE "xposed.category|xposeddescription"; then
|
||||
echo "$PACKAGE" >> "$OUTPUT_SKIP"
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# Translation Guide
|
||||
## Fix Translation Error
|
||||
- Fork this repository.
|
||||
- Edit the string value with translated incorrectly.
|
||||
- Create a Pull Request.
|
||||
1. Fork this repository.
|
||||
2. Find your language string file in `/module/webroot/locales/`.
|
||||
3. Edit the string value with translated incorrectly.
|
||||
4. Create a Pull Request.
|
||||
|
||||
---
|
||||
## Create a New Language
|
||||
@@ -29,4 +30,5 @@ Format:
|
||||
function detectUserLanguage() {
|
||||
const availableLanguages = ['en-US', 'ru-RU', 'tl-PH', 'zh-CN', 'zh-TW'];
|
||||
}
|
||||
```
|
||||
```
|
||||
6. Create a Pull Request
|
||||
Reference in New Issue
Block a user