From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.92.18 with SMTP id p18cs152343agb; Tue, 6 Oct 2009 08:39:26 -0700 (PDT) Received: by 10.224.74.210 with SMTP id v18mr1386121qaj.379.1254843565286; Tue, 06 Oct 2009 08:39:25 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 42si14941299qyk.132.2009.10.06.08.39.25; Tue, 06 Oct 2009 08:39:25 -0700 (PDT) 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 C4F2918582DC; Tue, 6 Oct 2009 11:39:16 -0400 (EDT) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id 8E4A618582CC for ; Tue, 6 Oct 2009 11:38:48 -0400 (EDT) Received: from w by entry.masanjin.net with local (Exim 4.69) (envelope-from ) id 1MvC7b-00062Q-Ow for sup-talk@rubyforge.org; Tue, 06 Oct 2009 08:38:40 -0700 From: William Morgan To: sup-talk In-reply-to: <1254758256-sup-7400@thinkpad-ubuntu> 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> <1254758256-sup-7400@thinkpad-ubuntu> Date: Tue, 06 Oct 2009 08:38:39 -0700 Message-Id: <1254842820-sup-9099@masanjin.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 Hi Christopher, Reformatted excerpts from Christopher Bertels's message of 2009-10-05: > I'd like to hear some feedback and/or opinions/suggestions and would > like to see it integrated into sup. I'll add more translations, if I > find anything I havent missed yet and that is part of the user > interface. This looks great. A couple comments: 1. I would prefer that uppercase substitution symbols made lowercase. The uppercase seems weird and un-Rubyish to me. 2. I think it would be nice to have a simple module along the lines of: module M17n def m s, o={}; I18n[m, o] end end and to have that be the primary entry point when you want a translated string. Then classes can include that module if they want m17n support, and instead of writing I18n["text", { :var => value }] you can have m("text", :var => value) which is a little easier to read, IMO. 3. Should we call it m17n instead of i18n? I think that might be a little more accurate. Perhaps too nitpicky. What do you think? 4. A finishing touch would be to have sup-config ask the user what language they are interested in. -- William _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk