#!/usr/bin/env bash
# -*- coding: utf-8 -*-
function transru ()
{
# https://github.com/soimort/translate-shell
if which trans > /dev/null 2>&1; then
FLAGS=( "$@" )
/usr/bin/trans :ru "${FLAGS[@]}"
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
FLAGS=( "$@" )
/usr/bin/trans :en "${FLAGS[@]}"
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 )
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.