You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Roy Douglas <on...@yahoo.com.hk> on 2009/10/16 13:11:36 UTC
T5: problem switching to locale zh_TW
Hi,
I create a resource file name app_zh_TW.properties, and an actionlink
component and
the method persistentLocale.set(Locale.TAIWAN) to switch the locale, but
I have this
error when I click on the actionlink.
Locale 'zh_TW' is not supported by this application. Supported locales
are 'en'; this is configured via the tapestry.supported-locales symbol.
Does Tapestry 5.1.05 support zh_TW?
Thanks
Roy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: problem switching to locale zh_TW
Posted by Roy Douglas <on...@yahoo.com.hk>.
Thanks,
I modified the AppModule.java like the following and everything worked fine.
public static void contributeApplicationDefaults(
MappedConfiguration<String, String> configuration)
{
configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en,zh_TW");
.......
........
Roy
> Have you declared zh_TW in AppModule? You need to. See if these
> examples help:
>
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/localization/bymessagecatalog
>
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/localization/bytemplate
>
>
> Cheers,
>
> Geoff
>
> On 16/10/2009, at 10:11 PM, Roy Douglas wrote:
>
>> Hi,
>>
>> I create a resource file name app_zh_TW.properties, and an actionlink
>> component and
>> the method persistentLocale.set(Locale.TAIWAN) to switch the locale, but
>> I have this
>> error when I click on the actionlink.
>>
>> Locale 'zh_TW' is not supported by this application. Supported locales
>> are 'en'; this is configured via the tapestry.supported-locales symbol.
>>
>> Does Tapestry 5.1.05 support zh_TW?
>>
>> Thanks
>> Roy
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: problem switching to locale zh_TW
Posted by Geoff Callender <ge...@gmail.com>.
Have you declared zh_TW in AppModule? You need to. See if these
examples help:
http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/localization/bymessagecatalog
http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/localization/bytemplate
Cheers,
Geoff
On 16/10/2009, at 10:11 PM, Roy Douglas wrote:
> Hi,
>
> I create a resource file name app_zh_TW.properties, and an actionlink
> component and
> the method persistentLocale.set(Locale.TAIWAN) to switch the locale,
> but
> I have this
> error when I click on the actionlink.
>
> Locale 'zh_TW' is not supported by this application. Supported locales
> are 'en'; this is configured via the tapestry.supported-locales
> symbol.
>
> Does Tapestry 5.1.05 support zh_TW?
>
> Thanks
> Roy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: problem switching to locale zh_TW
Posted by cordenier christophe <ch...@gmail.com>.
Hello
By default tapestry supports :
"en,it,es,zh_CN,pt_PT,de,ru,hr,fi_FI,sv_SE,fr_FR,da,pt_BR,ja,el".
Regards,
Christophe.
2009/10/16 Roy Douglas <on...@yahoo.com.hk>
> Hi,
>
> I create a resource file name app_zh_TW.properties, and an actionlink
> component and
> the method persistentLocale.set(Locale.TAIWAN) to switch the locale, but
> I have this
> error when I click on the actionlink.
>
> Locale 'zh_TW' is not supported by this application. Supported locales
> are 'en'; this is configured via the tapestry.supported-locales symbol.
>
> Does Tapestry 5.1.05 support zh_TW?
>
> Thanks
> Roy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>