summaryrefslogtreecommitdiff
path: root/src/web/lang
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/lang')
-rwxr-xr-xsrc/web/lang/_bin/transpile.sh7
-rw-r--r--src/web/lang/en_US/common_lang.php2
2 files changed, 5 insertions, 4 deletions
diff --git a/src/web/lang/_bin/transpile.sh b/src/web/lang/_bin/transpile.sh
index 18bb4c4..e6e826c 100755
--- a/src/web/lang/_bin/transpile.sh
+++ b/src/web/lang/_bin/transpile.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
lang_part() {
echo "$1" | awk "{split(\$0,a,\" = \"); print a[$2]}"
@@ -10,7 +10,8 @@ handle_line() {
left=$(lang_part "$line" 1)
right=$(lang_part "$line" 2)
echo "$left" | grep -Ev '_content|_line' > /dev/null
- if [ "$?" -eq 0 ]; then
+ code=$?
+ if [ $code -eq 0 ]; then
right=$(echo "$right" | uwuify)
fi;
right=${right%;};
@@ -23,7 +24,7 @@ transpile() {
out="$2"
printf "" > "$out"
printf "<?php /* Copyright (c) 2024 Freya Murphy */\n\n" > "$out";
- cat "$file" | grep '$lang' | xargs -d'\n' -I {} bash -c 'handle_line "$@"' _ {} >> "$out"
+ grep "\$lang" < "$file" | xargs -d'\n' -I{} bash -c 'handle_line "$@"' _ {} >> "$out"
}
transpile "$1" "$2"
diff --git a/src/web/lang/en_US/common_lang.php b/src/web/lang/en_US/common_lang.php
index 4e5fd59..ef93ce8 100644
--- a/src/web/lang/en_US/common_lang.php
+++ b/src/web/lang/en_US/common_lang.php
@@ -1,6 +1,6 @@
<?php /* Copyright (c) 2024 Freya Murphy */
-$lang['version'] = 'Version 2.0.0';
+$lang['version'] = 'Version 2.0.1';
$lang['copyright'] = 'Freya Murphy © 2024';
// Navigation Bar Lang