Return-Path: Delivered-To: apmail-portals-jetspeed-dev-archive@www.apache.org Received: (qmail 33645 invoked from network); 9 Jan 2010 15:53:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jan 2010 15:53:08 -0000 Received: (qmail 76744 invoked by uid 500); 9 Jan 2010 15:53:08 -0000 Delivered-To: apmail-portals-jetspeed-dev-archive@portals.apache.org Received: (qmail 76681 invoked by uid 500); 9 Jan 2010 15:53:08 -0000 Mailing-List: contact jetspeed-dev-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@portals.apache.org Received: (qmail 76671 invoked by uid 99); 9 Jan 2010 15:53:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jan 2010 15:53:08 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.18.2.217] (HELO exprod7og115.obsmtp.com) (64.18.2.217) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 09 Jan 2010 15:53:00 +0000 Received: from source ([209.85.216.194]) by exprod7ob115.postini.com ([64.18.6.12]) with SMTP ID DSNKS0imRhgbcBjyAToJg0DEhbwc3qSnU4CT@postini.com; Sat, 09 Jan 2010 07:52:39 PST Received: by pxi32 with SMTP id 32so14234189pxi.15 for ; Sat, 09 Jan 2010 07:52:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.8.3 with SMTP id 3mr3720932wfh.72.1263052358081; Sat, 09 Jan 2010 07:52:38 -0800 (PST) In-Reply-To: <85471C1B26954D4D9622A450644A96900182510E2283@m2.TDILAN.com> References: <85471C1B26954D4D9622A450644A96900182510E2283@m2.TDILAN.com> Date: Sat, 9 Jan 2010 07:52:38 -0800 Message-ID: <4a35d831001090752o1c1b733fl485f60da518ea95a@mail.gmail.com> Subject: Re: portlet internationalization From: David Sean Taylor To: Jetspeed Developers List Content-Type: multipart/alternative; boundary=00504502b35722dd77047cbd4b69 --00504502b35722dd77047cbd4b69 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jan 8, 2010 at 2:16 PM, Dahl, Sandra wrote: > I'm using Jetspeed 2 and am trying to set the locale for portlets and have > a couple questions. First, I want the title to be loaded from a resource > bundle. The following is included in LocalStrings.properties: > > javax.portlet.title=Richfaces Internationalization Portlet > > javax.portlet.short-title=Ruichfaces Intl > > javax.portlet.keywords=richfaces,portlet > > > > The resource bundle is declared in portlet.xml along with the allowed > locales: > > LocalStrings > > en > > fr > > > > The portlet uses JSF and the following is included in faces-config.xml: > > > > en > > en > > fr > > > > > > The portlet title is not displayed from the resource bundle. If there no > title is included in portlet.xml, no title is displayed in Jetspeed. Am I > missing a setting? > Does't look like a setting is missing, although send me the entire portlet.xml so I can make sure. Also, where are your localized property files located? Are they in the root package ? > > > > Second question. When the language is changed in the browser and the portal > page is reloaed, the new language is not displayed. A new browser window > needs to be opened for the changes to appear. Is this how it is supposed to > work? I noticed google updates the language when the browser is refreshed. > > Changing the language using the Jetspeed Language portlet will change portlet content immediately. As for changing the language in your browser, that should take place immediately although we might be optimizing the setting and caching it. See if logging out and logging back in makes a difference --00504502b35722dd77047cbd4b69--