Initial commit from Ventoy@7cbdc5c
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
|
||||
File encoding: UTF-8
|
||||
|
||||
language name must in the format: "Language-XXX (YYY)"
|
||||
1. Language- fixed 9 characters
|
||||
2. XXX: name in English
|
||||
3. a space (ASCII: 0x20)
|
||||
4. a left brace (ASCII: 0x28)
|
||||
5. YYY: name in the specified language
|
||||
6. a right brace (ASCII: 0x29)
|
||||
|
||||
string translation:
|
||||
all the String Define
|
||||
#@ will be replaced with \r\n
|
||||
|
||||
All the languages will be sorted by the name
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
|
||||
VTOY_PATH=$1
|
||||
|
||||
if [ ! -f $VTOY_PATH/LANGUAGES/languages.json ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
gcc -DFOR_VTOY_JSON_CHECK $VTOY_PATH/Ventoy2Disk/Ventoy2Disk/VentoyJson.c -I $VTOY_PATH/Ventoy2Disk/Ventoy2Disk/ -o checkjson
|
||||
|
||||
RET=0
|
||||
|
||||
./checkjson $VTOY_PATH/LANGUAGES/languages.json
|
||||
ret=$?
|
||||
if [ $ret -eq 0 ]; then
|
||||
for i in $(ls $VTOY_PATH/INSTALL/grub/menu); do
|
||||
echo "check INSTALL/grub/menu/$i ..."
|
||||
./checkjson $VTOY_PATH/INSTALL/grub/menu/$i
|
||||
ret=$?
|
||||
if [ $ret -ne 0 ]; then
|
||||
echo "INSTALL/grub/menu/$i invalid json format"
|
||||
break
|
||||
fi
|
||||
done
|
||||
else
|
||||
echo "languages.json invalid json format"
|
||||
fi
|
||||
|
||||
rm -f ./checkjson
|
||||
[ $ret -eq 0 ]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user