[ 
http://mifosforge.jira.com/browse/MIFOS-5438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=71877#comment-71877
 ] 

Udai Gupta commented on MIFOS-5438:
-----------------------------------

Fixed in commit a5fa09da.

I am not sure if this fix the issue completely as I haven't found any other way 
to override locale used by XML validation rules because 
https://github.com/mifos/head/blob/master/application/src/main/resources/META-INF/resources/WEB-INF/validation.xml
 seems to depend on java.util.Locale.getDefaultLocale() and the documents 
doesn't show any other way to override it 
http://struts.apache.org/1.2.4/userGuide/dev_validator.html.

The reason why I think we shouldn't override java.util.Locale.defaultLocale 
because it also affect dates and numbers which we probably don't want in Mifos 
at this stage.

I am wondering how much error validation message was french in 2.2, I suspect 
that XML validation rules were not translated though I haven't tried it myself. 
e.g. "Product Name validation"

Lukasz, if you think this hasn't fixed the issue then reopen the issue with 
your comments.
                
> Validation messages for Loan Amount calculation and number of installments 
> are localized half in one language and half in another on Define new Loan 
> product page
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MIFOS-5438
>                 URL: http://mifosforge.jira.com/browse/MIFOS-5438
>             Project: mifos
>          Issue Type: Bug
>          Components: Localization
>    Affects Versions: 2.3.0-M5
>            Reporter: Lukasz Chudy
>            Assignee: Udai Gupta
>             Fix For: Release H
>
>         Attachments: screenshot.png
>
>
> Currently, if you defining a new Loan Product and you leave Loan Amount 
> calculation and number of installments fields empty (for options: By last 
> loan amount and By loan Cycle) then you will see that validation messages are 
> partly translated in one language and partly in another. See attached 
> screenshot.
> Repro:
> 1. Login to Mifos.
> 2. Change language to for example French.
> 3. Log out and log in again.
> 4. Change language to English.
> 5. Go to Define new Loan Product page.
> 6. Fill all necessary fields, select 'By last loan amount' option for Loan 
> Amount calculation and number of installments and leave those fields empty.
> 7. Click 'Preview' button.
> Actual result:
> Validation messages are partly in English and partly in French. See attached 
> screenshot.
> Expected result:
> Validation messages are only in English.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://mifosforge.jira.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to