From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: google-translate Date: Fri, 18 Sep 2015 00:32:08 +0200 Message-ID: <87eghwznh3.fsf@debian.uxu> References: <87oahdl3g3.fsf@mbork.pl> <87twr5nrhg.fsf@gmail.com> <87d1xs5yd5.fsf_-_@debian.uxu> <87twqvoyo7.fsf_-_@debian.uxu> <87eghyv9ji.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1442528652 19733 80.91.229.3 (17 Sep 2015 22:24:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Sep 2015 22:24:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 00:24:03 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zchaz-0008Uo-M9 for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2015 00:24:01 +0200 Original-Received: from localhost ([::1]:33212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zchay-0001p3-RW for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Sep 2015 18:24:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zchao-0001ox-Gq for help-gnu-emacs@gnu.org; Thu, 17 Sep 2015 18:23:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zchak-0001ma-IM for help-gnu-emacs@gnu.org; Thu, 17 Sep 2015 18:23:50 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:44730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zchak-0001mN-Bm for help-gnu-emacs@gnu.org; Thu, 17 Sep 2015 18:23:46 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zchah-00080a-Nh for help-gnu-emacs@gnu.org; Fri, 18 Sep 2015 00:23:43 +0200 Original-Received: from nl106-137-244.student.uu.se ([130.243.137.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Sep 2015 00:23:43 +0200 Original-Received: from embe8573 by nl106-137-244.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Sep 2015 00:23:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 67 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-244.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:L7kET5/vLm+47U1KFa/vk/Zhdm8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107234 Archived-At: Alex Kost writes: > Emanuel Berg (2015-09-16 06:01 +0300) wrote: > > (google-translate-translate "sv" "en" "bok") > (google-translate-translate "sv" "da" "stuga") > (google-translate-translate "sv" "de" "stuga") OK, I looked this up! Let's see if I can it right first try... Now, if what is supposed to be used as inputs (arguments) are the language codes that are among other things in the Unix/C LC*/LANG* environmental variables, then valid data with respect to language input is defined in ISO-3166. The Unix/C variables carry data with the following syntax: xx_YY.CHARSET where xx: language code (e.g., "en") according to ISO-3166 YY: country code (e.g., "FR") according to ISO-369 CHARSET: ASCII, UTF-8, or ISO-8859-1 [1, p. 317] By the way, the domain of YY is the same as the list of national, top-level domains ("se" -> ".se" etc.). This can be included in the help and accompanied by some examples. If the user sees the examples, even tho he doesn't recognize their specific meaning (i.e., what languages), probably he still knows *his* locale and recognize that pattern and just add it. Otherwise perhaps he would be benefited from an ISO-3166 list to find out. [2, pp. 25-26] [1] @book{practical-guide-to-linux, author = {Mark Sobell}, title = {A Practical Guide to Linux}, publisher = {Prentice Hall}, edition = {3rd edition}, year = 2013, ISBN = {0-13-308504-X} } [2] @book{internet-message, title = {The Internet Message: Closing the Book with Electronic Mail}, author = {Marshall Rose}, publisher = {Prentice-Hall}, year = 1993, ISBN = {0-13-092941-7} } -- underground experts united http://user.it.uu.se/~embe8573