From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.79.9 with SMTP id c9cs16147agb; Mon, 2 Nov 2009 17:33:27 -0800 (PST) Received: by 10.224.1.229 with SMTP id 37mr2278339qag.66.1257212006411; Mon, 02 Nov 2009 17:33:26 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 11si8104733qyk.10.2009.11.02.17.33.26; Mon, 02 Nov 2009 17:33:26 -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 A431718582D3; Mon, 2 Nov 2009 20:33:25 -0500 (EST) Received: from kuovi.tilus.net (kuovi.tilus.net [80.68.89.168]) by rubyforge.org (Postfix) with ESMTP id 08D4B18582CB for ; Mon, 2 Nov 2009 20:22:44 -0500 (EST) Received: by kuovi.tilus.net (Postfix, from userid 1000) id 615D16011; Tue, 3 Nov 2009 01:22:44 +0000 (GMT) From: Tero Tilus To: sup-talk In-reply-to: <1257202138-sup-5711@viajero> 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> <1257169884-sup-2615@tilus.net> <1257202138-sup-5711@viajero> Date: Tue, 03 Nov 2009 03:22:44 +0200 Message-Id: <1257210858-sup-5218@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 Fabio Riga, 2009-11-03 02:01: > Sorry, I don't understand what you mean. The idea is to (1) have a > branch for every language? Translators directly write in the code? > Or (2) "original language as key" means a way to substitute "on the > fly" the original string with another one in the current locale? The second one, yes. God save us from the first! > So, I played a little with irb... do you mean something like: > > class String > def t > l10n_hash[self] || self > end > end Exactly. -- Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/ _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk