mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
added note to Lang.zig and updated lang script to not process the comment
This commit is contained in:
@@ -40,7 +40,9 @@ fi
|
|||||||
declare -a LANG_STRINGS
|
declare -a LANG_STRINGS
|
||||||
|
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
if [[ "$line" =~ ^([^:]*): ]]; then
|
if [[ -z "$line" || "$line" =~ ^\/\/ ]]; then
|
||||||
|
:
|
||||||
|
elif [[ "$line" =~ ^([^:]*): ]]; then
|
||||||
LANG_STRINGS+=("${BASH_REMATCH[1]}")
|
LANG_STRINGS+=("${BASH_REMATCH[1]}")
|
||||||
else
|
else
|
||||||
echo "ERROR: Line '$line' in file '$ZIG_LANG_FILE' does not contain an entry of the pattern '<lang_item>: ...'." >&2
|
echo "ERROR: Line '$line' in file '$ZIG_LANG_FILE' does not contain an entry of the pattern '<lang_item>: ...'." >&2
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
//
|
||||||
|
// NOTE: After editing this file, please run `/res/lang/fix_missing_entries.sh`
|
||||||
|
// to update all the language files accordingly.
|
||||||
|
//
|
||||||
|
|
||||||
authenticating: []const u8 = "authenticating...",
|
authenticating: []const u8 = "authenticating...",
|
||||||
brightness_down: []const u8 = "decrease brightness",
|
brightness_down: []const u8 = "decrease brightness",
|
||||||
brightness_up: []const u8 = "increase brightness",
|
brightness_up: []const u8 = "increase brightness",
|
||||||
|
|||||||
Reference in New Issue
Block a user