From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.117.16 with SMTP id p16cs462046agc; Mon, 2 Nov 2009 05:58:57 -0800 (PST) Received: by 10.224.80.91 with SMTP id s27mr2832716qak.271.1257170336759; Mon, 02 Nov 2009 05:58:56 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 34si7311637qyk.25.2009.11.02.05.58.56; Mon, 02 Nov 2009 05:58:56 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 27BCD18582C5; Mon, 2 Nov 2009 08:58:56 -0500 (EST) Received: from kuovi.tilus.net (kuovi.tilus.net [80.68.89.168]) by rubyforge.org (Postfix) with ESMTP id 1A6CC18582C5 for ; Mon, 2 Nov 2009 08:58:10 -0500 (EST) Received: by kuovi.tilus.net (Postfix, from userid 1000) id 02B416011; Mon, 2 Nov 2009 13:58:09 +0000 (GMT) From: Tero Tilus To: sup-talk In-reply-to: <1257163780-sup-1357@masanjin.net> References: <1254353101-sup-1021@thinkpad-ubuntu> <1254415145-sup-635@masanjin.net> <1254420802-sup-3742@thinkpad-ubuntu> <1254421405-sup-8083@masanjin.net> <1254442420-sup-3771@thinkpad-ubuntu> <1254487575-sup-5468@thinkpad-ubuntu> <1256280223-sup-736@tilus.net> <1256295847-sup-9437@viajero> <1257163780-sup-1357@masanjin.net> Date: Mon, 02 Nov 2009 15:58:09 +0200 Message-Id: <1257169884-sup-2615@tilus.net> User-Agent: Sup/git Subject: Re: [sup-talk] i18n? X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org William Morgan, 2009-11-02 14:12: > Reformatted excerpts from Fabio Riga's message of 2009-10-23: >> Well, I finally read the code and I agree with Tero. I also think that >> the use of gettext will be simpler for both developer and translator. > > Tero's comment wasn't about gettext, as far as I understand it. You had me right. I was talking about the approach to i18n in general. > There are Ruby gettext bindings but they look like a pain in the ass > to use, and it's pretty trivial to replace it a language like Ruby. Also they are pretty trivial to wrap behind nice interface in a language like Ruby. "Been there, done that!".t :) >> Can anyone explain me where and why a translated string in the UI >> should be searchable with a regular expression? > > I believe he was thinking about something like git grep. You see a > weird message displayed by Sup, you want to find the code that's > generating it, you can git grep the source for the message directly. That was exactly what I was thinking. Having weird keys in code imo also slows down development. If I want to (write code to) display a simple message to user, with "original language as key" approac i just write "my message".t (or whatever the l10n interface is) instead of modifying some yaml file somewhere and then copy-pasting the key from there to code. I just plain code and let somebody else figure out the translation later or. -- Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/ _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk