Skip to content

Commit

Permalink
Add English to the list of supported languages
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed May 15, 2017
1 parent 630efb4 commit 80295bc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
2 changes: 1 addition & 1 deletion sys/lang/catalan/binr_rasm2_rasm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ s,Usage:,Ús,
s,file],fitxer],
s,Show this help,Mostra aquesta ajuda,
s,quiet mode,Mode silenciós,
s,show version information,Mostra informació de la versió
s,show version information,Mostra informació de la versió,
34 changes: 24 additions & 10 deletions sys/translate.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
#!/bin/sh
if [ -z "$1" ]; then
echo "Usage: sys/translate.sh [--reset] [lang|path]"
cd sys/lang && ls
echo "Usage: sys/translate.sh [--list,--reset] [lang|path]"
echo "Languages:"
echo "- english"
cd sys/lang && ls | xargs echo -
exit 1
fi

if [ "$1" = "--reset" ]; then
if [ "$1" = "-l" -o "$1" = "--list" ]; then
echo english
cd sys/lang && ls | cat
exit 0
fi

if [ "$1" = english ]; then
RESET=1
shift
N=catalan
else
RESET=0
if [ "$1" = "--reset" ]; then
RESET=1
shift
else
RESET=0
fi
N="$1"
fi

if [ -d "$1" ]; then
if [ -d "$N" ]; then
:
else
if [ -d "sys/lang/$1" ]; then
L="sys/lang/$1"
if [ -d "sys/lang/$N" ]; then
L="sys/lang/$N"
else
if [ -d "$1" ]; then
L="$1"
if [ -d "$N" ]; then
L="$N"
else
echo "Invalid language"
exit 1
Expand Down

0 comments on commit 80295bc

Please sign in to comment.