[ 
https://issues.apache.org/jira/browse/WICKET-3727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036005#comment-13036005
 ] 

Martin Grigorov commented on WICKET-3727:
-----------------------------------------

The problem here is that MultiFileUploadField provides several 
MultiFileUploadField_ab_CD.properties and MultiFileUploadField.properties 
(default). The first IStringResourceLoader that is attempted is 
ComponentStringResourceLoader and if the locale is one of the provided by 
Wicket it will be used, but when there is no such resource bundle (like es_ES 
in this case) it falls back to MultiFileUploadField.properties and uses the 
values from this bundle. The resource loading doesn't even try the other 
IStringResourceLoaders and that's why MyApplication_es.properties is never 
tried.

The only workaround is to extend MultiFileUploadField and provide 
MyMFUF_es_ES.properties

> MultiFileUploadField internationalisation does not work
> -------------------------------------------------------
>
>                 Key: WICKET-3727
>                 URL: https://issues.apache.org/jira/browse/WICKET-3727
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.15, 1.4.16, 1.4.17
>            Reporter: Steve Swinsburg
>              Labels: i18n, internationalization, wicket
>         Attachments: myproject.zip
>
>
> We are having an issue setting some properties to override the default text 
> for the MultiFileUploadField component. As per the docs, we have set the 
> following in our local properties file:
> org.apache.wicket.mfu.caption.unlimited=Ficheros:
> org.apache.wicket.mfu.caption.limited=Ficheros (m\u00E1ximo ${max}): 
> org.apache.wicket.mfu.delete=Borrar
> however they are not being overridden. We know our properties file is working 
> because we can override other properties, like:
> workphone.PhoneNumberValidator = N\u00FAmero de tel\u00E9fono no v\u00E1lido
> and those come up correctly.
> I have reproduced this in a quickstart. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to