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 C897E7FA83 for ; Tue, 11 Apr 2017 16:05:27 +0200 (CEST) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=rich@annexia.org; spf=Pass smtp.mailfrom=rich@annexia.org; spf=Pass smtp.helo=postmaster@annexia.org Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of rich@annexia.org) identity=pra; client-ip=80.68.91.176; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="rich@annexia.org"; x-sender="rich@annexia.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of rich@annexia.org designates 80.68.91.176 as permitted sender) identity=mailfrom; client-ip=80.68.91.176; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="rich@annexia.org"; x-sender="rich@annexia.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of postmaster@annexia.org designates 80.68.91.176 as permitted sender) identity=helo; client-ip=80.68.91.176; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="rich@annexia.org"; x-sender="postmaster@annexia.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" IronPort-PHdr: =?us-ascii?q?9a23=3AgDRJxRNj6fLRAKXGF1Al6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0LfX+rarrMEGX3/hxlliBBdydsKMYzbKO+4nbGkU4qa6bt34DdJEeHzQksu?= =?us-ascii?q?4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1?= =?us-ascii?q?Ov71GonPhMiryuy+4ZPebgFHiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPde?= =?us-ascii?q?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= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0C5BQA84uxY/7BbRFBcHRgNBhgNgxZhg?= =?us-ascii?q?QuDGJp+AQEBAQEBBpkKLoV2AoNgQhUBAQEBAQEBAQEBAWoogjMiAYJABjo/EAs?= =?us-ascii?q?hExIPBSghihYRCqsYin0BAQEHAgEgBYYLO4R6ijsFnH8Bhn+LUZFRlAE1IoEFa?= =?us-ascii?q?AhBhls/NYlVAQEB?= X-IPAS-Result: =?us-ascii?q?A0C5BQA84uxY/7BbRFBcHRgNBhgNgxZhgQuDGJp+AQEBAQE?= =?us-ascii?q?BBpkKLoV2AoNgQhUBAQEBAQEBAQEBAWoogjMiAYJABjo/EAshExIPBSghihYRC?= =?us-ascii?q?qsYin0BAQEHAgEgBYYLO4R6ijsFnH8Bhn+LUZFRlAE1IoEFaAhBhls/NYlVAQE?= =?us-ascii?q?B?= X-IronPort-AV: E=Sophos;i="5.37,185,1488841200"; d="scan'208";a="268657644" Received: from annexia.org ([80.68.91.176]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 11 Apr 2017 16:05:12 +0200 Received: from rich by annexia.org with local (Exim 4.84_2) (envelope-from ) id 1cxwPw-00062w-2u; Tue, 11 Apr 2017 15:05:12 +0100 Date: Tue, 11 Apr 2017 15:05:12 +0100 From: "Richard W.M. Jones" To: Tao Stein Cc: OCaml Mailing List Message-ID: <20170411140512.GK28111@annexia.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [Caml-list] error messages in multiple languages ? It looks like people have already mentioned getttext. I want to add that OCaml already has an excellent gettext implementation. No need to reinvent any wheels. https://forge.ocamlcore.org/projects/ocaml-gettext/ We use it every day in libguestfs, an example picked at random (there are thousands more): https://github.com/libguestfs/libguestfs/blob/master/v2v/input_libvirt.ml#L39 Therefore you might think I'd be very exciting about having the OCaml compiler messages being localized. That not so much. I find that it makes it considerably easier to search for error messages, and also to help people, if they are in a single language. It's for this reason that we don't translate debugging and other internal messages in our tools. (But being an English native speaker it's a lot easier for me, so take this with a pinch of salt.) Rich.