From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.133]:34324 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727474AbeG3UPH (ORCPT ); Mon, 30 Jul 2018 16:15:07 -0400 Date: Mon, 30 Jul 2018 11:38:47 -0700 From: Matthew Wilcox To: Linus Torvalds Cc: Pavel Machek , David Howells , Al Viro , linux-fsdevel , Linux Kernel Mailing List Subject: Re: [PATCH 36/38] vfs: Add a sample program for the new mount API [ver #10] Message-ID: <20180730183847.GB5544@bombadil.infradead.org> References: <20180729113749.GA7333@amd> <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> <153271292330.9458.14583488053811372222.stgit@warthog.procyon.org.uk> <25489.1532953411@warthog.procyon.org.uk> <20180730143104.GB24051@amd> <20180730180842.GA5544@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Jul 30, 2018 at 11:18:53AM -0700, Linus Torvalds wrote: > On Mon, Jul 30, 2018 at 11:08 AM Matthew Wilcox wrote: > > > > Have you looked at how gettext() works? It uses the english text as > > a search string and replaces it with the localised string. This is > > a very common design! > > I absolutely refuse to have anything to do with gettext in the kernel. I wasn't proposing putting gettext in the kernel. I was reacting to Pavel saying "You can't return English strings from the kernel, you have to translate numbers into any language's strings". If somebody wants to use gettext() in userspace to translate the string they got back from the kernel, that's fine. But it won't produce very useful bug reports.