Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AFD50957B for ; Fri, 13 Jan 2012 17:02:03 +0000 (UTC) Received: (qmail 1130 invoked by uid 500); 13 Jan 2012 17:02:01 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 1048 invoked by uid 500); 13 Jan 2012 17:02:00 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 1036 invoked by uid 99); 13 Jan 2012 17:02:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2012 17:02:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of heamaya@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-ww0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2012 17:01:52 +0000 Received: by wgbdq11 with SMTP id dq11so3725735wgb.35 for ; Fri, 13 Jan 2012 09:01:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=hKYlBnwWAJo5Vur44eO20/oY6EP7iuQrbiUVieO8aJk=; b=ufDvC6vgKxrmviANXevBSxj5BFRboU+dUO066RK+hNSv7FFkctEjx/iKPlkhASf2fi bRvTFijel3tJ706GwEJEftJGPiLIlDtsnFrNQbUYRKFVt1lrpPdtjtV/7+Cqv3yA4ojx UlU003irgpMsGyeVr+ROq/aIuG+gaBG9ZTKzs= MIME-Version: 1.0 Received: by 10.180.101.40 with SMTP id fd8mr3452952wib.15.1326474092101; Fri, 13 Jan 2012 09:01:32 -0800 (PST) Received: by 10.216.177.197 with HTTP; Fri, 13 Jan 2012 09:01:31 -0800 (PST) In-Reply-To: References: Date: Fri, 13 Jan 2012 14:01:31 -0300 Message-ID: Subject: Re: Struts 2 Internationalization Tiles 2 From: =?ISO-8859-1?B?SGVybuFu?= To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=f46d041826c6103f0004b66bd1ec X-Virus-Checked: Checked by ClamAV on apache.org --f46d041826c6103f0004b66bd1ec Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes I've done that, I have tiles.xml for english, tiles_es.xml for spanish and tiles_pt-xml for portuguese... The thing is that it works with the browser settings, when somebody changes the locale by a link of the web app, it works for struts2 but not tiles2 definition titles, I'm about to try with DefaultLocale. Do you know how can I get request_locale parameter at client level? to use with javascript and jquery? On Fri, Jan 13, 2012 at 1:54 PM, Jeffrey Black wrot= e: > I seem to recall needing a different tiles definition for each locale you > wish to support? Does that ring a bell to anyone? > > I will double-check some documentation when I get a chance. > > jb > > On Fri, Jan 13, 2012 at 9:06 AM, Hern=E1n wrote: > > > Hi there, I'm applying internationalization to a WebApp, and so far so > > good, almost everything is working as expected. When the user accesses > the > > site, depending on its browser configuration he sees the web site in hi= s > or > > her preferred language, if he or she decides to change the language, I > > change the locale programmatically and it works as it should... The > problem > > is that I use Tiles2 and when changing the Locale programmatically, the > > WebApp is not using the Tiles's definitions as it should... It keeps > using > > the definitions that are in the preferred language of the browser > > configuration. > > The question is then: how do I change Tiles locale programmatically as = I > > did in Struts2 with request_locale? Any ideas? Thank you. > > > > -- > > Hern=E1n > > > --=20 Hern=E1n --f46d041826c6103f0004b66bd1ec--