You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Mark Kessler (JIRA)" <ji...@apache.org> on 2013/04/17 03:16:14 UTC
[jira] [Commented] (FLEX-20322) Locale fr_FR with different
monthNames and DateFormatter doesnt provide expected result
[ https://issues.apache.org/jira/browse/FLEX-20322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633634#comment-13633634 ]
Mark Kessler commented on FLEX-20322:
-------------------------------------
Issue may already be resolved, needs to be tested/confirmed with an uploaded example. Can reference original adobe jira issue for more information.
> 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