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

Justin Mclean resolved FLEX-20322.
----------------------------------

    Resolution: Fixed

Fixed and checked into develop.
                
> Locale fr_FR with different monthNames and DateFormatter  doesnt provide 
> expected result
> ----------------------------------------------------------------------------------------
>
>                 Key: FLEX-20322
>                 URL: https://issues.apache.org/jira/browse/FLEX-20322
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: i18n : Bundle Support, i18n : Compiler, i18n : Formatter 
> Support, Web Compilers
>    Affects Versions: Adobe Flex SDK 3.3 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Browser: Firefox 3.x
> Language Found: French
>            Reporter: Adobe JIRA
>              Labels: easyfix
>
> Steps to reproduce:
> 1. work with locale = fr_FR, with compiled swc files for locale with 
> "SharedResources.properties" having value
> monthNames=Janvier,Février,Mars,Avril,Mai,Juin,Juillet,Août,Septembre,Octobre,Novembre,Décembre
> 2.import mx.formatters.DateFormatter;
>                       private function tracer():void{
>                               var _dateFormatter:DateFormatter = new 
> DateFormatter();
>                               for(var i:int=0; i<12; i++){
>                                       var curdate: Date = new Date();
>                                        curdate.month =i;
>                                        var onChangeText:String = 
> _dateFormatter.format( curdate.toDateString() );
>                                        trace(onChangeText)
>                               }
>                       } 
> 3. compile the above code
>  
>  Actual Results:
>  the onChangeText provides null value for most of the months
>  
>  Expected Results:
> the onChangeText should provide date string properly.
>  
>  Workaround (if any):
> change "SharedResources.properties" to value with 
>  
> monthNames=January,February,March,April,May,June,July,August,September,October,November,December
> and recompile swc files
> in case of using date field component, reassign monthNames as below:
>       <mx:DateField id="df" change="tracer()" selectedDate="{new Date()}" 
> monthNames="{['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre']}"/>

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

Reply via email to