From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.117.16 with SMTP id p16cs555073agc; Fri, 23 Oct 2009 04:23:38 -0700 (PDT) Received: by 10.224.34.230 with SMTP id m38mr5280492qad.284.1256297017060; Fri, 23 Oct 2009 04:23:37 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 2si9585876qyk.9.2009.10.23.04.23.36; Fri, 23 Oct 2009 04:23:37 -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 9444C1D78807; Fri, 23 Oct 2009 07:23:36 -0400 (EDT) Received: from SRV-HS2.netsons.net (srv-hs2.netsons.net [94.198.98.113]) by rubyforge.org (Postfix) with ESMTP id 69312185826A for ; Fri, 23 Oct 2009 07:23:13 -0400 (EDT) Received: from [94.161.58.132] (helo=localhost) by SRV-HS2.netsons.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1N1IEe-0003sF-Ta for sup-talk@rubyforge.org; Fri, 23 Oct 2009 13:23:10 +0200 From: Fabio Riga To: sup-talk In-reply-to: <1256280223-sup-736@tilus.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> Date: Fri, 23 Oct 2009 13:23:06 +0200 Message-Id: <1256295847-sup-9437@viajero> User-Agent: Sup/git X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - SRV-HS2.netsons.net X-AntiAbuse: Original Domain - rubyforge.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - comunicattiva.it 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 Excerpts from Tero Tilus's message of ven ott 23 09:00:21 +0200 2009: > Excerpts from 's message of pe loka 02 15:52:47 +0300 2009: > > Please tell me what you think. > > Why not default to the english strings as translation keys and > fallback to key itself in case of missing translation? This has imo > several advantages. You can go grep the source using what you see in > sup UI (instead of first greping language yaml). 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. In this way, every time a developer add a new string he need to write it twice, or another developer has to hack it. Instead with gettext the developer write his string, surrounded with _() or n_() and he's done (tell me, if I'm wrong). Furthermore people used to .po files (like me) will know what to do and are already provided with tools for that purpose (i.e. Vim :-) ). Can anyone explain me where and why a translated string in the UI should be searchable with a regular expression? (Maybe this question is due to the fact that I still don't understand sup internals...) Cheers, Fabio _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk