Changeset 1982


Ignore:
Timestamp:
09/03/10 04:50:09 (17 months ago)
Author:
saara
Message:

Switching language to finnish actually works

Location:
ui/trunk/xml/simo-ui/PredictionModelUI
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ui/trunk/xml/simo-ui/PredictionModelUI/locale/en_US/predictionModel.properties

    r1981 r1982  
    11#en_US 
     2lang                    = Select language 
     3prediction              = Prediction Model 
    24name                    = Name 
    35implement_at    = Implemented at 
  • ui/trunk/xml/simo-ui/PredictionModelUI/locale/fi_FI/predictionModel.properties

    r1981 r1982  
    11#fi_FI 
     2lang                    = Valitse kieli 
     3prediction              = Ennustemalli 
    24name                    = Nimi 
    35implement_at    = Toteutus 
  • ui/trunk/xml/simo-ui/PredictionModelUI/src/components/MetadataComponent.mxml

    r1981 r1982  
    1616                <mx:FormItem label="{resourceManager.getString('predictionModel','name')}:"> 
    1717                        <s:TextInput id="nameTI"  
    18                                                  width="300"/> 
     18                                                 width="280"/> 
    1919                </mx:FormItem> 
    2020                <mx:FormItem label="{resourceManager.getString('predictionModel','implement_at')}:"> 
    2121                        <s:TextInput id="implementationTI"  
    22                                                  width="300"/> 
     22                                                 width="280"/> 
    2323                </mx:FormItem> 
    2424                <mx:FormItem label="{resourceManager.getString('predictionModel','modelgrp')}:"> 
     
    4040                                         paddingTop="5"> 
    4141                        <s:List id="authorList"  
    42                                         width="250"  
     42                                        width="280"  
    4343                                        height="50"/> 
    4444                </mx:FormItem> 
     
    4646                                         paddingTop="5"> 
    4747                        <s:TextArea id="descTA"  
    48                                                 width="300"  
     48                                                width="280"  
    4949                                                height="50"  
    5050                                                maxChars="250"/> 
     
    5353                                         paddingTop="5"> 
    5454                        <s:TextArea id="publishTA"  
    55                                                 width="300"  
     55                                                width="280"  
    5656                                                height="50"  
    5757                                                maxChars="250"/> 
     
    6060                                         paddingTop="5"> 
    6161                        <s:List id="speciesList"  
    62                                         width="250"  
     62                                        width="280"  
    6363                                        height="50"/>                    
    6464                </mx:FormItem> 
     
    6666                                         paddingTop="5"> 
    6767                        <s:TextArea id="geoCoverageTA"  
    68                                                 width="300"  
     68                                                width="280"  
    6969                                                height="50"/> 
    7070                </mx:FormItem> 
     
    7272                                         paddingTop="5"> 
    7373                        <s:TextArea id="apliesTA"  
    74                                                 width="300"  
     74                                                width="280"  
    7575                                                height="50"  
    7676                                                maxChars="250"/> 
     
    7979                                         paddingTop="5"> 
    8080                        <s:TextArea id="materialTA"  
    81                                                 width="300"  
     81                                                width="280"  
    8282                                                height="50"  
    8383                                                maxChars="250"/> 
  • ui/trunk/xml/simo-ui/PredictionModelUI/src/components/NewModelComponent.mxml

    r1981 r1982  
    4747                <mx:FormItem label="{resourceManager.getString('predictionModel','name')}:"> 
    4848                        <s:TextInput id="nameTI"  
    49                                                  width="300"/> 
     49                                                 width="280"/> 
    5050                </mx:FormItem> 
    5151                <mx:FormItem label="{resourceManager.getString('predictionModel','implement_at')}:"> 
    5252                        <s:TextInput id="implementationTI"  
    53                                                  width="300"/> 
     53                                                 width="280"/> 
    5454                </mx:FormItem> 
    5555                <mx:FormItem label="{resourceManager.getString('predictionModel','modelgrp')}:"> 
     
    7171                                         paddingTop="5"> 
    7272                        <s:List id="authorList"  
    73                                         width="250"  
     73                                        width="280"  
    7474                                        height="50"/> 
    7575                </mx:FormItem> 
     
    7777                                         paddingTop="5"> 
    7878                        <s:TextArea id="descTA"  
    79                                                 width="300"  
     79                                                width="280"  
    8080                                                height="50"  
    8181                                                maxChars="250"/> 
     
    8484                                         paddingTop="5"> 
    8585                        <s:TextArea id="publishTA"  
    86                                                 width="300"  
     86                                                width="280"  
    8787                                                height="50"  
    8888                                                maxChars="250"/> 
     
    9191                                         paddingTop="5"> 
    9292                        <s:List id="speciesList"  
    93                                         width="250"  
     93                                        width="280"  
    9494                                        height="50"/>                    
    9595                </mx:FormItem> 
     
    9797                                         paddingTop="5"> 
    9898                        <s:TextArea id="geoCoverageTA"  
    99                                                 width="300"  
     99                                                width="280"  
    100100                                                height="50"/> 
    101101                </mx:FormItem> 
     
    103103                                         paddingTop="5"> 
    104104                        <s:TextArea id="apliesTA"  
    105                                                 width="300"  
     105                                                width="280"  
    106106                                                height="50"  
    107107                                                maxChars="250"/> 
     
    110110                                         paddingTop="5"> 
    111111                        <s:TextArea id="materialTA"  
    112                                                 width="300"  
     112                                                width="280"  
    113113                                                height="50"  
    114114                                                maxChars="250"/> 
  • ui/trunk/xml/simo-ui/PredictionModelUI/src/components/PredictionModelWindow.mxml

    r1981 r1982  
    88                           height="100%" 
    99                           currentState="initial"  
    10                            title="Prediction Model"  
     10                           title="{resourceManager.getString('predictionModel','prediction')}"  
    1111                           horizontalCenter="0"  
    1212                           verticalCenter="0" 
     
    2424                        import flash.events.Event; 
    2525                         
     26                        import mx.collections.ArrayCollection; 
    2627                        import mx.managers.PopUpManager; 
    2728                         
     
    5455                                PopUpManager.removePopUp(this); 
    5556                        } 
     57                         
     58                        private function languageChange(event:Event):void{ 
     59                                trace("languageChange"); 
     60                                var cb:DropDownList = event.target as DropDownList; 
     61                                var temp:Object = cb.selectedItem; 
     62                                cb.dataProvider.removeItemAt(cb.selectedIndex);  
     63                                cb.dataProvider.addItemAt(temp,0); 
     64                                cb.selectedIndex = 0; 
     65                                 
     66                                var chain:Array=[]; 
     67                                for (var i:int=0;i<cb.dataProvider.length;i++ ){ 
     68                                        chain.push(cb.dataProvider[i].locale); 
     69                                } 
     70                                resourceManager.localeChain = chain;     
     71                        } 
     72                         
    5673 
    5774                ]]> 
     
    6784                <components:SearchComponent id="searchWindow" includeIn="initial"/> 
    6885                 
     86                 
    6987                <s:Group id="metaInfo" includeIn="initial" x="360" y="20"> 
    7088                                <s:HGroup gap="10"> 
     
    7997                                                useHandCursor="true"/> 
    8098                                </s:HGroup> 
     99                                <s:DropDownList id="languageCombo"  
     100                                                                prompt="{resourceManager.getString('predictionModel','lang')}" 
     101                                                                dataProvider="{new ArrayCollection([{locale:'fi_FI',label:'Suomi'}, {locale:'en_US', label:'English'}])}" 
     102                                                                change="languageChange(event)" width="150"  
     103                                                                x="330"/> 
    81104                         
    82105                        <mx:TabBar  
Note: See TracChangeset for help on using the changeset viewer.