Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions scripts/translations.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

function get_langline() {
id=`cat $1 | grep -a 'grflangid' | cut -c13-16`
text=`cat $1 | grep -a 'STR_GENERAL_DESC[[:space:]]*:' | cut -d: -f2-`
id=`grep -a 'grflangid' $1 | cut -c13-16`
text=`grep -a 'STR_GENERAL_DESC[[:space:]]*:' $1 | cut -d: -f2-`
langcode=""
case "$id" in
"0x00" ) langcode="en_US";;
Expand Down Expand Up @@ -102,11 +102,8 @@ function get_langline() {
line="description.$langcode = $text"
}

# Obtain list of lang files
lang_files="`ls lang/*.lng`"

# Loop over language files
for i in $lang_files; do
for i in lang/*.lng; do
# echo "Processing: $i"
get_langline $i

Expand Down
Loading