From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id C65278011C for ; Sat, 8 Apr 2017 16:43:45 +0200 (CEST) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=gabriel.scherer@gmail.com; spf=Pass smtp.mailfrom=gabriel.scherer@gmail.com; spf=None smtp.helo=postmaster@mail-qk0-f175.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of gabriel.scherer@gmail.com) identity=pra; client-ip=209.85.220.175; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of gabriel.scherer@gmail.com designates 209.85.220.175 as permitted sender) identity=mailfrom; client-ip=209.85.220.175; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-qk0-f175.google.com) identity=helo; client-ip=209.85.220.175; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="postmaster@mail-qk0-f175.google.com"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3AlSaYnhTX6cPchXmdvZFXlqguzNpsv+yvbD5Q0YIu?= =?us-ascii?q?jvd0So/mwa6yZhWN2/xhgRfzUJnB7Loc0qyN4vymATRIyK3CmUhKSIZLWR4BhJ?= =?us-ascii?q?detC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+?= =?us-ascii?q?KPjrFY7OlcS30P2594HObwlSijewZbx/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf?= =?us-ascii?q?5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbD?= =?us-ascii?q?VwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4rx1QxH0li?= =?us-ascii?q?gIKz858HnWisNuiqJbvAmhrAF7z4LNfY2ZKOZycqbbcNgHR2ROQ9xRWjRDDYOy?= =?us-ascii?q?b4UBAekPM/tGoYbhvFYBtweyCBO2Ce/z1jNFhHn71rA63eQ7FgHG2RQtEdMUv3?= =?us-ascii?q?vPttX1NbkdUeSox6fV0TrDb+1Z2S3j54jSbxsspv6MUqhrfsrLyEkgCQfFgk+L?= =?us-ascii?q?qYP5PzOayP4NvHaB7+d7WuKvjnQoqwB1ojS12sgsjYzJi5sTx1vZ+yt5x4M1Ks?= =?us-ascii?q?e5SE59edOkEZ1QtzubN4RsWM8iTXtotSAnwbMFoZ62ZDYGxIgjyhLFaPGKc5KE?= =?us-ascii?q?7gz9WOqNOzt0mXBodbK5ih2v60av0Pf8WdOx0FtSripKjN3MtncV2hzW8MeHS/?= =?us-ascii?q?998l642TaMywzf8+9ELV02mKfbMZIhzbkwlp0csUTHACD6gln5jKiTdkk8++io?= =?us-ascii?q?7froYqn+q5OCK4N5jhvyP6cul8ClH+g0LBQCU3KG9em+1LDv5Uj5T69Ljv0ynK?= =?us-ascii?q?nZqpfaJcEDq662GQBayZwj6xehADeiytgYhmUILFJbdxKdkYfpIUrDIP/9Dfil?= =?us-ascii?q?glSslC1nyOzBPr3kGpnNNGTMkK/9fbZh7E5R0BY8wspa55JQE70BJPPzWlTttN?= =?us-ascii?q?HDFR84Mwm0w/79B9ln14MeX3iPAq6DP6/Iv1+I/LFnH+7ZWIYS8A3hJvkjr6ry?= =?us-ascii?q?hHgihVIce4Gm2JIWbDazGfEwcGuDZn+5rd4LC2YHukIFR+znklCYGWpcbnyoXq?= =?us-ascii?q?84oCowCI+8AJ3rSYWkgbjH1yC+SM4FLltaA0yBRC+7P76PXO0BPWfLepds?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CDAQB99uhYhq/cVdFdHAEBBAEBCgEBF?= =?us-ascii?q?wEBBAEBCgEBhAl5EgeDX5tWl2YshXgCg1cHQxQBAQEBAQEBAQEBARIBAQEICws?= =?us-ascii?q?IKC+CMyIBgkABAgIBIx0BGx0BAwwGAwIEBzcCAiEBAREBBQEcBhOJdgEDDQgOj?= =?us-ascii?q?QSRGj+MBIIEBQEcgwkFbYJjChknDVWCWAEBAQEBAQEDAQEBAQEBAQEYAgEFEoY?= =?us-ascii?q?+hEAwgX5TgUxmglmCXwWcQDuCB4R5hxyEPZFBiwCHOBQfgRU2X0clFiBWGIQKK?= =?us-ascii?q?h+CCyQ1AYksAQEB?= X-IPAS-Result: =?us-ascii?q?A0CDAQB99uhYhq/cVdFdHAEBBAEBCgEBFwEBBAEBCgEBhAl?= =?us-ascii?q?5EgeDX5tWl2YshXgCg1cHQxQBAQEBAQEBAQEBARIBAQEICwsIKC+CMyIBgkABA?= =?us-ascii?q?gIBIx0BGx0BAwwGAwIEBzcCAiEBAREBBQEcBhOJdgEDDQgOjQSRGj+MBIIEBQE?= =?us-ascii?q?cgwkFbYJjChknDVWCWAEBAQEBAQEDAQEBAQEBAQEYAgEFEoY+hEAwgX5TgUxmg?= =?us-ascii?q?lmCXwWcQDuCB4R5hxyEPZFBiwCHOBQfgRU2X0clFiBWGIQKKh+CCyQ1AYksAQE?= =?us-ascii?q?B?= X-IronPort-AV: E=Sophos;i="5.37,172,1488841200"; d="scan'208,217";a="268310856" Received: from mail-qk0-f175.google.com ([209.85.220.175]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 08 Apr 2017 16:43:44 +0200 Received: by mail-qk0-f175.google.com with SMTP id p68so57025615qke.1 for ; Sat, 08 Apr 2017 07:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uQozfpWKA8aeAhTHkj6ZWefXCqxiLNs9sLOeRshrLi4=; b=efWTbCq5ADPZkjz6bg2Mjh+hjRfQzi5lhMg3kEL12s8uhz9d/u/Uz9nPc9RatTCLk1 npUHstAu+fVsE8S7/mdqpxTlBO+SVNaT+85NPQnj9TEfti17FOeaBaqdT/WKDlOOQYOh fqGwtXk0kD+2JLTVSOlhxsyYlnsU4asZJRtEOiZh0mgYQ8hA0emg9hfuGsW7knR43nk7 rDYhNET4Q6XlLVhR1tTCI2mz0DVGhhnirimnnBMmHyiW8BcF4dA84X55clN8nONvlbe+ a6fPRNSEeIirkubx1Dia5qzJ9pmP9JWN5/J92Zzv0xMTu+VvUJ4q7MqAc5ISzD0/DZwF cUHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uQozfpWKA8aeAhTHkj6ZWefXCqxiLNs9sLOeRshrLi4=; b=RmwBDhvoRlxb+5fg4rgXQbC6MVNiHfy5wbpW4G8rRgwOOerWQ3H01Tc7t4nMowxjXa nk646wVjsLU79zeiHoVBpPyahvyhdLWUTyiBdvHSL0gHKSwCn7atWrfQOUSKhkmVem9M hjCNE0scRvJyCemyzCkcgBO6L284ltH2NFdJhgthQRAoVeu8uo2eu7UEsc1uI1EFONHH Mdc+2X4jS48zk/+wraGQxMl1xmCBntkhFdRdmLDYEF4Hd9YcvkNoUt32V6NIHgTKrOFZ aQaIT++piLmHuBtBmZscyD1mNq/KtWT9DHOaOFKiKvXeGxoYKCzlT2uUYiQv/unSU4LW LuXA== X-Gm-Message-State: AFeK/H2WnJpt0EtKYnQq0lg+PaPXVhuwao/XvrufKuK3Z7vhdBpm8xPd2RNpzYmriXLUmCgkSjTOpr+SgMaPmA== X-Received: by 10.55.86.5 with SMTP id k5mr41034254qkb.124.1491662623696; Sat, 08 Apr 2017 07:43:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.156.10 with HTTP; Sat, 8 Apr 2017 07:43:03 -0700 (PDT) In-Reply-To: References: From: Gabriel Scherer Date: Sat, 8 Apr 2017 10:43:03 -0400 Message-ID: To: Tao Stein Cc: OCaml Mailing List , Alexis Irlande Content-Type: multipart/alternative; boundary=001a114ea342cf7012054ca8c4f0 Subject: Re: [Caml-list] error messages in multiple languages ? --001a114ea342cf7012054ca8c4f0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, This is an interesting question and the issue was discussed in 2012 on the list: https://sympa.inria.fr/sympa/arc/caml-list/2012-11/msg00100.html Currently there is no mechanism in the compiler codebase to have multi-language strings in the compiler. Alexis Irland proposed a patch in the above thread ( https://sympa.inria.fr/sympa/arc/caml-list/2012-11/ msg00152.html ) that certainly enabled some kind of parametrization, but unfortunately the patch files (which were hosted on a personal dropbox) seem lost today. (What I have at hand is a French translation of the compiler messages made by Jacques-Henri Jourdan, but without a parametrization mechanism.) I think that this is an interesting idea and I would personally be willing to support a well-engineered patch providing the feature (the question of whether the internationalized messages should be hardcoded in a source file or use a sort of gettext-like mechanism is delicate), but I don't know the opinion of the compiler maintainers. On Sat, Apr 8, 2017 at 10:22 AM, Tao Stein wrote: > > I've been teaching OCaml to university students in Beijing. I believe > they'd feel more comfortable if the error messages were in Chinese. Has > anyone thought of implementing multi-language strings in the compiler? So, > say with the setting of an environment variable, the compiler user could > receive errors and warnings in their preferred language. I know it would > require a lot of translation work (crowd sourced?), but the internal > language abstraction mechanism would need to be there too. > > Tao Stein / =E7=9F=B3=E6=B6=9B / =D8=AA=D8=A7=D9=88 =D8=B4=D8=AA=D8=A7=D9= =8A=D9=86 > > --001a114ea342cf7012054ca8c4f0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

This is an interesting que= stion and the issue was discussed in 2012 on the list:

=C2=A0 https://sympa.inria.fr/sympa/arc/caml-list/2012-11/= msg00100.html

Currently there is no mechanism in the compi= ler codebase to have multi-language strings in the compiler. Alexis Irland = proposed a patch in the above thread ( https://sympa.in= ria.fr/sympa/arc/caml-list/2012-11/msg00152.html ) that certa= inly enabled some kind of parametrization, but unfortunately the patch file= s (which were hosted on a personal dropbox) seem lost today. (What I have a= t hand is a French translation of the compiler messages made by Jacques-Hen= ri Jourdan, but without a parametrization mechanism.)

I think = that this is an interesting idea and I would personally be willing to suppo= rt a well-engineered patch providing the feature (the question of whether t= he internationalized messages should be hardcoded in a source file or use a= sort of gettext-like mechanism is delicate), but I don't know the opin= ion of the compiler maintainers.

On Sat, Apr 8, 2017 at 10:22 AM, Tao Stein <taostein@g= mail.com> wrote:

I've been teaching OCaml to university stu= dents in Beijing. I believe they'd feel more comfortable if the error m= essages were in Chinese. Has anyone thought of implementing multi-language = strings in the compiler? So, say with the setting of an environment variabl= e, the compiler user could receive errors and warnings in their preferred l= anguage. I know it would require a lot of translation work (crowd sourced?)= , but the internal language abstraction mechanism would need to be there to= o.

Tao Stein / =E7=9F=B3=E6=B6=9B /=C2=A0=D8=AA=D8=A7=D9=88 =D8=B4=D8=AA=D8=A7=D9=8A=D9=86

<= /div>

--001a114ea342cf7012054ca8c4f0--