Skip to content

Commit

Permalink
Move translations into radare2-translations
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed May 15, 2017
1 parent 80295bc commit 9847ba8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 49 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,14 @@ To start to use it for the first time you need to initialize packages:

$ r2pm init

And to refresh packages before installation/updating a new one:
Refresh the packages database before installing any package:

$ r2pm update

To install package use the command
To install a package use the following command:

$ r2pm install [package name]

To update package use the command

$ r2pm update [package name]

# Bindings

All language bindings are under the r2-bindings directory.
Expand All @@ -135,7 +131,9 @@ to swig interfaces, nodejs-ffi or other and then compiled.

The easiest way to install the python bindings is to run:

$ r2pm install python
$ r2pm install lang-python
$ r2pm install r2api-python
$ r2pm install r2pipe-python

In addition there are `r2pipe` bindings, which are an API
interface to interact with the prompt, passing commands
Expand Down
36 changes: 0 additions & 36 deletions sys/lang/catalan/binr_radare2_radare2.c

This file was deleted.

5 changes: 0 additions & 5 deletions sys/lang/catalan/binr_rasm2_rasm2.c

This file was deleted.

15 changes: 14 additions & 1 deletion sys/translate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@ if [ -z "$1" ]; then
echo "Usage: sys/translate.sh [--list,--reset] [lang|path]"
echo "Languages:"
echo "- english"
cd sys/lang && ls | xargs echo -
if [ -d "sys/lang" ]; then
cd sys/lang && ls | xargs echo -
else
echo "Run --update for more languages"
fi
exit 1
fi

if [ "$1" = "--update" ]; then
if [ -d "sys/lang" ]; then
( cd sys/lang && git pull )
else
git clone --depth 1 https://github.com/radare/radare2-translations sys/lang || exit 1
fi
exit 0
fi

if [ "$1" = "-l" -o "$1" = "--list" ]; then
echo english
cd sys/lang && ls | cat
Expand Down

0 comments on commit 9847ba8

Please sign in to comment.