From 9a166ce98ab93e218914f9b60e87cb4a03ecf792 Mon Sep 17 00:00:00 2001 From: AnimiVulpis Date: Fri, 27 Oct 2017 16:53:15 +0200 Subject: [PATCH 1/3] trans: add page --- pages/common/trans.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/trans.md diff --git a/pages/common/trans.md b/pages/common/trans.md new file mode 100644 index 000000000..644e0849b --- /dev/null +++ b/pages/common/trans.md @@ -0,0 +1,23 @@ +# trans + +> **Translate Shell** is a command-line translator. + +- Translate a word (language is detected automatically): + +`trans "{{word_or_sentence_to_translate}}"` + +- Get a brief translation: + +`trans --brief "{{word_or_sentence_to_translate}}"` + +- Translate a word into french: + +`trans :fr {{word}}` + +- Translate from a specific language: + +`trans de:en {{handy}}` + +- Use `trans` as a dictionary: + +`trans -d handy` From 7be77ea9cc8065b793f003ff521432111e41d778 Mon Sep 17 00:00:00 2001 From: AnimiVulpis Date: Mon, 30 Oct 2017 23:07:30 +0100 Subject: [PATCH 2/3] Incorporate change requests - Remove unnecessary markdown boldness - Tokenize all the values - Change a few descriptions --- pages/common/trans.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/common/trans.md b/pages/common/trans.md index 644e0849b..91d39ea00 100644 --- a/pages/common/trans.md +++ b/pages/common/trans.md @@ -1,6 +1,6 @@ # trans -> **Translate Shell** is a command-line translator. +> Translate Shell is a command-line translator. - Translate a word (language is detected automatically): @@ -12,12 +12,12 @@ - Translate a word into french: -`trans :fr {{word}}` +`trans :{{fr}} {{word}}` -- Translate from a specific language: +- Translate a word from German to English: -`trans de:en {{handy}}` +`trans {{de}}:{{en}} {{handy}}` -- Use `trans` as a dictionary: +- Behave like a dictionary to get the meaning of a word: -`trans -d handy` +`trans -d {{handy}}` From dc98db21e09c44c17d32ad7719d02ddc17fcac8c Mon Sep 17 00:00:00 2001 From: AnimiVulpis Date: Thu, 2 Nov 2017 13:31:21 +0100 Subject: [PATCH 3/3] Change words that are translated --- pages/common/trans.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/trans.md b/pages/common/trans.md index 91d39ea00..244273cc5 100644 --- a/pages/common/trans.md +++ b/pages/common/trans.md @@ -16,8 +16,8 @@ - Translate a word from German to English: -`trans {{de}}:{{en}} {{handy}}` +`trans {{de}}:{{en}} {{Schmetterling}}` - Behave like a dictionary to get the meaning of a word: -`trans -d {{handy}}` +`trans -d {{word}}`