You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Alexandru Objelean (JIRA)" <ji...@apache.org> on 2007/09/12 07:58:32 UTC
[jira] Created: (WICKET-959) I18n and resource bundles
prioritization
I18n and resource bundles prioritization
-----------------------------------------
Key: WICKET-959
URL: https://issues.apache.org/jira/browse/WICKET-959
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.3.0-beta3
Reporter: Alexandru Objelean
Priority: Minor
The wicket wiki page [http://cwiki.apache.org/confluence/display/WICKET/I18n+and+resource+bundles] states that "you can use MyApplication.properties for site wide messages and override these in any of the other properties files.".
But there is a case where this is not true:
I have a BaseApplicationPage.properties file with the following resource message:
<code>
nullValid=All
</code>
And another, component specific file: NewBookingPeriod.properties with the same resource message:
<code>
nullValid=Empty Prices
</code>
I would expect that the latest resource message (Empty Prices) would override the generic nullValid resource message. But it doesn't work this way.
My workaround is to change (prepend to nullValid the component id) the resource message from NewBookingPeriod.properties to:
<code>
bookingPeriods.nullValid=Empty Prices
</code>
This way it works. Shouldn't it work also when the NewBookingPeriod.properties defines nullValid the same way as BaseApplicationPage.properties does?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-959) I18n and resource bundles
prioritization
Posted by "Frank Bille Jensen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Frank Bille Jensen updated WICKET-959:
--------------------------------------
Fix Version/s: (was: 1.3.0-rc2)
> I18n and resource bundles prioritization
> -----------------------------------------
>
> Key: WICKET-959
> URL: https://issues.apache.org/jira/browse/WICKET-959
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta3
> Reporter: Alexandru Objelean
> Assignee: Juergen Donnerstag
> Priority: Minor
>
> The wicket wiki page [http://cwiki.apache.org/confluence/display/WICKET/I18n+and+resource+bundles] states that "you can use MyApplication.properties for site wide messages and override these in any of the other properties files.".
> But there is a case where this is not true:
> I have a BaseApplicationPage.properties file with the following resource message:
> <code>
> nullValid=All
> </code>
> And another, component specific file: NewBookingPeriod.properties with the same resource message:
> <code>
> nullValid=Empty Prices
> </code>
> I would expect that the latest resource message (Empty Prices) would override the generic nullValid resource message. But it doesn't work this way.
> My workaround is to change (prepend to nullValid the component id) the resource message from NewBookingPeriod.properties to:
> <code>
> bookingPeriods.nullValid=Empty Prices
> </code>
> This way it works. Shouldn't it work also when the NewBookingPeriod.properties defines nullValid the same way as BaseApplicationPage.properties does?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-959) I18n and resource bundles
prioritization
Posted by "Frank Bille Jensen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Frank Bille Jensen updated WICKET-959:
--------------------------------------
Fix Version/s: (was: 1.3.0-rc1)
1.3.0-rc2
> I18n and resource bundles prioritization
> -----------------------------------------
>
> Key: WICKET-959
> URL: https://issues.apache.org/jira/browse/WICKET-959
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta3
> Reporter: Alexandru Objelean
> Assignee: Juergen Donnerstag
> Priority: Minor
> Fix For: 1.3.0-rc2
>
>
> The wicket wiki page [http://cwiki.apache.org/confluence/display/WICKET/I18n+and+resource+bundles] states that "you can use MyApplication.properties for site wide messages and override these in any of the other properties files.".
> But there is a case where this is not true:
> I have a BaseApplicationPage.properties file with the following resource message:
> <code>
> nullValid=All
> </code>
> And another, component specific file: NewBookingPeriod.properties with the same resource message:
> <code>
> nullValid=Empty Prices
> </code>
> I would expect that the latest resource message (Empty Prices) would override the generic nullValid resource message. But it doesn't work this way.
> My workaround is to change (prepend to nullValid the component id) the resource message from NewBookingPeriod.properties to:
> <code>
> bookingPeriods.nullValid=Empty Prices
> </code>
> This way it works. Shouldn't it work also when the NewBookingPeriod.properties defines nullValid the same way as BaseApplicationPage.properties does?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-959) I18n and resource bundles
prioritization
Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juergen Donnerstag resolved WICKET-959.
---------------------------------------
Resolution: Cannot Reproduce
> I18n and resource bundles prioritization
> -----------------------------------------
>
> Key: WICKET-959
> URL: https://issues.apache.org/jira/browse/WICKET-959
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta3
> Reporter: Alexandru Objelean
> Assignee: Juergen Donnerstag
> Priority: Minor
> Fix For: 1.3.0-rc2
>
>
> The wicket wiki page [http://cwiki.apache.org/confluence/display/WICKET/I18n+and+resource+bundles] states that "you can use MyApplication.properties for site wide messages and override these in any of the other properties files.".
> But there is a case where this is not true:
> I have a BaseApplicationPage.properties file with the following resource message:
> <code>
> nullValid=All
> </code>
> And another, component specific file: NewBookingPeriod.properties with the same resource message:
> <code>
> nullValid=Empty Prices
> </code>
> I would expect that the latest resource message (Empty Prices) would override the generic nullValid resource message. But it doesn't work this way.
> My workaround is to change (prepend to nullValid the component id) the resource message from NewBookingPeriod.properties to:
> <code>
> bookingPeriods.nullValid=Empty Prices
> </code>
> This way it works. Shouldn't it work also when the NewBookingPeriod.properties defines nullValid the same way as BaseApplicationPage.properties does?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-959) I18n and resource bundles
prioritization
Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529624 ]
Juergen Donnerstag commented on WICKET-959:
-------------------------------------------
Based on our junit test cases, the second , component specific file, does override the generic one. Right now I can not reproduce your problem. Would you please prepare a quickstart example and attach it to this issue. Thanks.
> I18n and resource bundles prioritization
> -----------------------------------------
>
> Key: WICKET-959
> URL: https://issues.apache.org/jira/browse/WICKET-959
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta3
> Reporter: Alexandru Objelean
> Assignee: Juergen Donnerstag
> Priority: Minor
>
> The wicket wiki page [http://cwiki.apache.org/confluence/display/WICKET/I18n+and+resource+bundles] states that "you can use MyApplication.properties for site wide messages and override these in any of the other properties files.".
> But there is a case where this is not true:
> I have a BaseApplicationPage.properties file with the following resource message:
> <code>
> nullValid=All
> </code>
> And another, component specific file: NewBookingPeriod.properties with the same resource message:
> <code>
> nullValid=Empty Prices
> </code>
> I would expect that the latest resource message (Empty Prices) would override the generic nullValid resource message. But it doesn't work this way.
> My workaround is to change (prepend to nullValid the component id) the resource message from NewBookingPeriod.properties to:
> <code>
> bookingPeriods.nullValid=Empty Prices
> </code>
> This way it works. Shouldn't it work also when the NewBookingPeriod.properties defines nullValid the same way as BaseApplicationPage.properties does?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (WICKET-959) I18n and resource bundles
prioritization
Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juergen Donnerstag reassigned WICKET-959:
-----------------------------------------
Assignee: Juergen Donnerstag
> I18n and resource bundles prioritization
> -----------------------------------------
>
> Key: WICKET-959
> URL: https://issues.apache.org/jira/browse/WICKET-959
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta3
> Reporter: Alexandru Objelean
> Assignee: Juergen Donnerstag
> Priority: Minor
>
> The wicket wiki page [http://cwiki.apache.org/confluence/display/WICKET/I18n+and+resource+bundles] states that "you can use MyApplication.properties for site wide messages and override these in any of the other properties files.".
> But there is a case where this is not true:
> I have a BaseApplicationPage.properties file with the following resource message:
> <code>
> nullValid=All
> </code>
> And another, component specific file: NewBookingPeriod.properties with the same resource message:
> <code>
> nullValid=Empty Prices
> </code>
> I would expect that the latest resource message (Empty Prices) would override the generic nullValid resource message. But it doesn't work this way.
> My workaround is to change (prepend to nullValid the component id) the resource message from NewBookingPeriod.properties to:
> <code>
> bookingPeriods.nullValid=Empty Prices
> </code>
> This way it works. Shouldn't it work also when the NewBookingPeriod.properties defines nullValid the same way as BaseApplicationPage.properties does?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.