You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2008/02/04 19:13:08 UTC

[jira] Resolved: (WICKET-1318) NavigatorLabel should be localizable

     [ https://issues.apache.org/jira/browse/WICKET-1318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-1318.
-----------------------------------

    Resolution: Invalid
      Assignee: Igor Vaynberg

actually the hardcoded message is the fallback in case no .properties key was found. the first paremeter NavigatorLabel is the resource key that will be checked.

> NavigatorLabel should be localizable
> ------------------------------------
>
>                 Key: WICKET-1318
>                 URL: https://issues.apache.org/jira/browse/WICKET-1318
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket, wicket-extensions
>    Affects Versions: 1.3.0-final, 1.3.1, 1.3.2
>         Environment: All
>            Reporter: Daniel Toffetti
>            Assignee: Igor Vaynberg
>            Priority: Trivial
>             Fix For: 1.3.1, 1.3.2, 1.3.0-final
>
>
> In org\apache\wicket\extensions\markup\html\repeater\data\table\NavigatorLabel.java:
> 	private NavigatorLabel(final String id, final PageableComponent table)
> 	{
> 		super(id);
> 		setModel(new StringResourceModel("NavigatorLabel", this, new Model(new LabelModelObject(
> 				table)), "Showing ${from} to ${to} of ${of}"));
> 	}
> The message "Showing x to y of z" is hardcoded, it should be extracted to a .properties file in order to allow for localization of the message.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.