trans_ru_en

#!/usr/bin/env bash # -*- coding: utf-8 -*- function transru () { # String s = "She said, \"that's not my hat\""; # https://github.com/soimort/translate-shell if which trans > /dev/null 2>&1; then string="$@" /usr/bin/trans :ru "\"$string\"" else echo -e "translate-shell not installed\n install http://www.soimort.org/translate-shell before"; exit 0 fi } function transen () { # https://github.com/soimort/translate-shell if which trans > /dev/null 2>&1; then string="$@" /usr/bin/trans :en "\"$string\"" else echo -e "translate-shell not installed\n Install http://www.soimort.org/translate-shell before"; exit 0 fi }
translate right in the shell
requirements: translate-shell ( https://github.com/soimort/translate-shell )

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.