Label of the locale selection Drop Down Menu

Hello everyone, I am trying to familiarize themselves with the location with flex, I created my own files in use, files (.properties) and a simple application that works.  It uses a dropdownlist control to allow the user to choose what language to see.

Here is my code

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx" viewSourceURL = "srcview/index.html" >
< fx:Declarations >
< fx:Date id = "currentDate" / >
< mx:DateFormatter id = "df" / >
< s:ArrayList id = "local" >
en_US < fx:String > < / fx:String >
< fx:String > en_US < / fx:String >
< / s:ArrayList >
< / fx:Declarations >
< fx:Style >
@namespace s "library://ns.adobe.com/flex/spark";
s | Label {make-size: 18 ;}}
< / fx:Style >
< fx:Metadata >
[ResourceBundle ("customStrings")]
< / fx:Metadata >
< fx:Script >
<! [CDATA]
Import spark.events.IndexChangeEvent;

protected function dropdownlist1_changeHandler(event:IndexChangeEvent):void
{
resourceManager.localeChain = [(event.newIndex) locales.getItemAt];
dateLabel.executeBindings ();
}
[]] >
< / fx:Script >
< s:layout >
< s:VerticalLayout horizontalAlign = "center" paddingTop = "20" / >
< / s:layout >
< s:DropDownList dataProvider = "{local}.
change = "dropdownlist1_changeHandler (Event)" "
selectedIndex = "0" / >
< s:Label id = "dateLabel".
Text = "{resourceManager.GetString ('customStrings', 'todayItIs')} {df.format (currentDate)}" / >
< s:Label text = "{resourceManager.getString ('customStrings', 'helloWorld')}" / >
< s:BitmapImage source = "{resourceManager.getClass ('customStrings', 'helloFlag')}" / >
< / s:Application >

The files used at present are "en_US" and "en_US".  The drop down menu filled with a table

< s:ArrayList id = "local" >
en_US < fx:String > < / fx:String >
< fx:String > en_US < / fx:String >
< / s:ArrayList >

But in my drop-down list, it lists en_US and fr_FR, how do I change it to English and the French?  While retaining the ability to share files, the lang

Thank you!

You need to create something like that

ARR:ArrayCollection = [{id: 'en_US', Label: 'English'}, {id: 'en_US', Label: 'French'}]

so, you can use internally as locale en_US but dropdown will show English...

I hope you got my point...

If this post answers your question or assistance, please mark it as such.

Tags: Flex

Similar Questions

  • Select Drop Down Menu recordset query.

    I'm looking to use a dynamic drop-down menu to query a Recordset... I use Colfusion to import a MS Access database that contains the following fields: 'Date template', 'Name', 'Points' and 'target '.  Whenever updates to the database, the field 'model' contains the date and time, the model has been run.  I figured out how to create a drop-down Dynamics using SELECT DISTINCT 'model date' and have also figured out how to create the dynamic recordset to display display the data 'Name', 'Points' and 'target '.

    I want the user to select the "Date of model" in the drop-down menu, press "submit" button and then have the appropriate 'Name', 'Points' and 'Target' data surveyed and below.

    The application must take the selection in the drop-down list of 'model date' and then query the fields 'name', 'points' and 'target' for this particular "date model.

    I admit that my knowledge of SQL and Coldfusion is not the best, but it seems that it is a fairly simple task and miss me just one or two pieces of gear and put everything.

    The database essentially looks like this:

    Date pattern... Name... Points of... Goal

    01/08/2010-08:00... DOE... 1, 250... 5.55%

    01/08/2010-08:00... DOE... 850... 2.35%

    01/08/2010-08:00... Bill Smith... 11, 832... -123,23%

    2010-08-02 09:02... DOE... 1, 323... 6.67%

    2010-08-02 09:02... DOE... 1: 001... 3.21%

    2010-08-02 09:02... Bill Smith... 10, 235... -110.26%


    The drop-down list shows only "model dates."

    01/08/2010-08:00

    02/08/2010 09:02

    For example, if on 01/08/2010 08:00 has been selected in the drop-down list, I want the following text is displayed:

    Name.................. Points of... Goal

    John Doe... 1, 250... 5.55%

    Jane Doe... 850.......................2.35%

    Bill Smith... 11, 832... -123,23%

    For any help or suggestion would be greatly appreciated!

    Thank you

    Mike

    My second paragraph speaks only to display the filtered data, so I guess that's what you're looking for, but not yet quite sure based on what are the other answers.

    But I'm on anyway-

    On your first page, note the instance name of your drop down menu, for example "ModelDate".  Make sure that it is in a form and set the form action on the page where you want to display your data, set the form POST action.

    On the results page, create a table with cells for each of the data items to display. Create a recordset that you can do in Simple mode. Allow to select all and the value of the fall of filter down to the database field that contains the Date of your model. In the box on the right, select "=". the next list dropdown selct "Variable form" and the name of the variable type in the name of the instance of falling down on the first page.

    I may not have the terminology right it's memory.

    On the data tab, expand your recordset and locate each of the database fields to display.  Drag each of them to the cell in the table on the page where you want it to display.  The cells in a table should be in a linear row.

    Now select the table row buy by selecting the TR tag in the tags just above the properties panel.  In the server behaviors tab, select the region of repetition and "All Records"

    Publish your pages and test!

  • Some element of the third level drop-down Menu is invisible

    APEX 4.2

    Oracle 11i

    area type: list

    list template: drop-down menu

    Requirement: I created the menu list with level 3 model, but found that some element of the third level is invisible, sometimes, someone has experienced this problem?

    How can I show the whole issue?

    Better compliance

    Yong Huang wrote:

    Thank you very much, you are right, it worked when I changed the target type of URL without a target.

    But the new problem is that cannot save changes implemented which target URL, it was recovered on the page target type in the application to the next time. How do I do? Like a menu, I have to put the page number to the target.

    and why target page type the application cannot show normally?

    This is because (at least in the example you provided) to two factors:

    • A 'feature' the theme 21 Pull Down Menu model list, which seems to be so designed as not to display a link to the current page. The current definition of model sublist will render an image of separator rather than the list entry/link:

    • Your entries of the list all link to the same page.

    So to determine which model of list item to apply using the list input parameter current that current page is the target by default, APEX motor sees all of the entries in the form of links to the current page and presents them by using the current model sublist list item template as a separator.

    All of your entries of the list really related to the same page? If so, why is this? What you trying to do? There may be other ways to address the issue that you have not considered.

    If you really must use a dropdown menu with multiple links to the same page here, then there are two options:

    • Continue to use the list template Pull Down Menu provided, but put in place a framework of Expression PL/SQL or SQL query to determine the current list entry.
    • Create a copy of the Pull Down Menu model list and change the current model sublist definition so that the list entry appears in fact.
  • Dynamically by selecting drop down menu option

    Im trying to build a page summarizing the choice of the user of the form on the previous page. That the user may need to change their choice, I show the form again, but with the answers provided. I want that my option of drop-down menu to show the users choice and my long < cfif form.region is "All UK" > for each option seems ineffective...

    OK, I think that Ive found an answer to my question...

  • Problem with the help of drop-down menu in the lifecycle Designer 8.0

    Good day;

    I'm having a little bit of trouble with a drop-down list. It has been designed using Adobe LifeCycle Designer 8.0

    In a form, I have a total of 73 points that can be selected in the drop-down list. Currently I have 3 dropdowns on the form. In the future, I will add a total of 73 drop-down lists.

    "When I try to select an item that is more than 4th to the bottom of the list, I get the error message" Adobe Reader 9.1 has encountered an error and needs to close. " When I click on "error information" I get the text next message, "AppName - the Error Signature. AppVer: 9.1.0.163, ModName: ModVer, AcroForm.api. 9.1.2.82, 0000948 offset a

    Thank you all

    Chomp

    Hi Chomp,

    When in design mode:

    If you highlight the Hiarchy palette dropdown, it remains highlighted? or the flip pointing to someother object?

    If you click on it directly in the workspace. It shows "drop" in the palette object for the "Type"?  or something unexpected?

    If she will not be highlighted or say something unexpected, it is your question - I suspect by copying and pasting the drop something has gone wrong.

    If so, you must get rid of these bad objects. My experience is that if you have bad objects you can have difficulty to remove directly and may need to remove the parent (the tablerow or subform that they have).

    I'm very curious to know if this is your problem. Please post an update when you get a chance.

    Good luck

    Stephen

    P. S.

    Go slowly when you copy and paste - make sure you that Designer is finished with this operation before starting the next batter - it takes more time than you may realize. Additionally, make sure that the object palette indicates that you are where you think you are, before pasting. After you are done paste an object, Designer has an odd routine indication of the Master Page as object type when its done. If so, set the focus again for which you want to paste, before sticking another menu drop down always in your Clipboard. If your drop down boxes in rows in the table, think about copy and insert any lines containg your DDL

    Finally, 73 DDLS 73 points? Wow! IMHO, 73 points is too much for a user. Consider using the preOpen and script, the filling of the DDL event. If you do this then you can fill in the with a shorter list once the user has made some choices. Just a thought.

  • Selection drop-down menu does not work on "display".

    33.1 Firefox latest and before that had the problem

    If I go to 'view' then 'zoom in' or 'sidebar' or 'toolbar' nothing shows.
    also can not copy or paste on / in the address bar.

    works fine in safe mode.

    But I can not disable add ons because
    those disable drop down menus do not work.
    so I can't turn them off.
    may have started in the last version
    SO I can't say which add on is a problem.

    BTW, I have windows 7

    Hello telebob, try turning off hardware accelerationand check again (in safe mode hardware, acceleration is disable).

    Thank you

  • Hide the subform when drop-down menu is null

    I'm doing a subform 'hidden' when a drop-down list object is null and 'visible' when the drop is not null. I use the following script:

    If (this.rawValue = null) {}

    xfa.resolveNode ("Subform3. #subform. . GroupLeader presence') = 'hidden ';

    }

    else {}

    xfa.resolveNode ("Subform3. #subform. . GroupLeader presence') = 'visible ';

    }

    Script does not work. Is it wrong or have I got it in the case of bad? (Form ready)

    Thank you

    Hello

    To start I place this script to the output of the dropdown event.

    You also have a subform without name, which requires you to solve the node. This is inefficient, so if you name the subform, you will be able to use a simple reference (see: http://assure.ly/kUP02y).

    The main problem with the script is that when you test equality (in the if/else statement), you must use a double equals sign (==).

    So, if you have renamed the subform "Subform4:, the script would become:

    if (this.rawValue == null) {
         Subform3.Subform4.GroupLeader.presence = "hidden";
    }
    else {
         Subform3.Subform4.GroupLeader.presence = "visible";
    }
    

    Hope that helps,

    Niall

  • Drop-down menu used with anchor on the long table of data links

    Hello

    I have a page on our site where we used a drop shape with anchor tags to let the visitor easy access to specific locations within a long table of data on the same page. Recently, I noticed that the anchors are walking around is no longer the tags in the page but only the beginning of the table anyway. I don't know if over time a few additional codes may have been added to the page that is not in conflict with the form of drop down menu, or if it's something else. I've been agonizing about this for awhile now and unable to fix. I'm hoping a new set of eyes will revisit the issue. the url is http://www.vectron.com/products/saw/saw.htm

    Thank you

    Looks like there are a good number of errors html on this page, some of them have to do with using the code of the named anchor.

    Looks like you have placed the anchors between the openingand the child of the opening. Content cannot go there, move them in theTags and see if that helps.

    It could be something else however, html errors are one of the main causes of the problems of display/functionality. Visit the validator to http://validator.w3.org to clean up your errors. If you work with the code clean and correctly positioned anchors, after return and we can take a closer look.

  • I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global KMs are no

    I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global not supposed to KMs the listed here?

    Hello

    You have imported the whole CKM in modules of knowledge?

    If not, import ckm and do it.

    Kind regards

    Gangareddy.k

  • When exporting my image in LR I select my brand of water in the drop-down list. Then I need to select 'Edit watermark' since the same drop-down menu in order to replace it. When I do that and click 'done' the watermark disappears in the export me

    When exporting my image in LR I select my brand of water in the drop-down list. Then I need to select 'Edit watermark' since the same drop-down menu in order to replace it. When I do that and click 'done' the watermark disappears in the box menu to export. When I click on "Export" the image exports WITHOUT my watermark. Help, please. As I did about everything that has been suggested in this forum and I still have this problem.

    I saw that too. For now, the workaround is that if you select 'Edit watermark,' when you are done editing be sure to reselect the same watermark. If you do not, the watermark menu will be empty.

    It seems to be a known bug that occurs only in the current version. If all goes well, it can be fixed in the next update. There is a page for her on the Photoshop/Lightroom Feedback site. I've added my vote to the page:

    LIGHTROOM CC - watermark on the question of export

  • Drop-down menu auto-remplit but will not be updated if you change the selection?

    Hi all

    I'm having a problem with the auto fill to a text field based on the selection in a drop-down list. While the script is running in the first case, if I go back and change my selection as result calculations be updated based on the new selection.

    I used the following script Auto Fill a field of text (called "stndwatt") based on the drop-down menu selection. The drop-down field is called "ProductLineOne":

    var v = this.getField("ProductLineOne").value;

    If (v == "3000K T10 (Tube) '") event.value = "21";

    else if (v == "4000K T10 (Tube) '") event.value = "21";

    else if (v == "5000K T10 (Tube) '") event.value = "21";

    else if (v == "6000K T10 (Tube) '") event.value = "21";

    else if (v == "HBZ (100W Bay)") event.value = "100";

    else if (v == "HBZ (150W Bay)") event.value = '150 ';

    else if (v == "HBZ (200W Bay)") event.value = "200";


    The text field ("stndwatt") is actually hidden and is only required to be part of other subsequent calculations - I don't know if this is a factor?


    If you can please advise what I can do to make the field to update when a new selection is made in the drop-down box, it would be much appreciated!

    I'm just a beginner so please keep this in mind

    Thank you!!!

    You must make sure that the field calculation order is correct. See

    as it is a calculated field that is used in other calculations, you should

    Make sure it is higher on the list compared to the fields that use its value

    for their own calculation, that is to say that its calculated before them.

    You can set this order in form editing mode, via the game of - other - jobs

    Field calculation order.

  • The Drop Down Menu number of Excel spreadsheets?

    Trying to open an Excel file created by my boss in number. There a few in drop-down menus, (pictured below) and they will not display correctly. Many prefer using numbers than Excel, anyone know of any tricks to make this menu drop-down appear in numbers as in Excel?

    In numbers, they simply appear not at all. Help, please! Thank you

    In Excel, you can automatically fill a drop-down list with values within a specific range of cells through 'Data Validation '.

    Numbers have no drop-down menu, but it doesn't have a Menu called data format.  It is easy to populate a drop-down list with values manually; Select the cells that contain different values which you want to make a choice and format on the Shortcut Menu. The result will be something very similar to your screenshot.

    But in doing so fully automatic as in Excel is not currently possible in number.

    Numbers provides an attractive work environment, but if you frequently need to exchange documents with your boss and your boss uses Excel, then better use Excel.

    SG

  • Drop-down menu cannot be selected by clicking

    I'm under 20.2 FF on Mac OS X 10.8.3. I recently found this item in the drop-down menu cannot be selected by clicking, although it can be selected by pressing 'enter' on the keyboard. I don't have any add-ons installed, so that shouldn't be the problem. Like going to http://www.newegg.com/ and click on the search menu, I can't select all the options. Thank you for your help in advance.

    Update 22 FF and problem solvered.

  • The drop down menu boxes that appear under the heading of Firefox do not fill. A form of box on the screen, but it is empty. Given zero no has not solved the problem.

    The file, editing, display and help tabs that were on the previous version of FireFox Menu bar top are apparently incorporated into the "FireFox" drop-down box in the latest version of the browser. I was unable to open those tabs earlier, so by the recommendation of the Support Forum, I have Firefox on my laptop. Now not only the tabs above are missing after this reset, but the drop down menu does not open in any submenus. What I see now is a box on the surrounded black screen, but sub menu selections such as save as, print, copy etc are not shown in the box. This is why the Navigator is not functional in its current state.
    Does anyone have a fix for this problem that will not delete my favorites and other content stored on Firefox? Please save me to return to Internet Explorer.
    AJJC

    Try disabling hardware acceleration in Firefox.

  • drop down menu to the right click is on the wrong side

    My cat likes to walk on my keyboard and it changes the settings, I can usually fixed. here recently when I right click my mouse the little drop-down menu will come down to the left side of the arrow, instead of the usual, on the right side. I can't figure out how to restore it. also im running windows 8

    My cat likes to walk on my keyboard and it changes the settings, I can usually fixed. here recently when I right click my mouse the little drop-down menu will come down to the left side of the arrow, instead of the usual, on the right side. I can't figure out how to restore it. also im running windows 8

    Hello

    Follow these steps.

    1. press the Windows key + R logo to bring up the run dialog box. In the Open box, copy and paste the following text line.

    Shell: {80F3F1D5-FECA-45F3-BC32-752C152E456E}

    Press OK.

    2. This will start the configuration of the Tablet PC settings dialog (even if you don't have a Tablet PC).

    3. Select the other tab.

    4. in the right-handed/left-handed section, place a check mark in the Left Handed option.

    5. click on OK.

    This should place the menus on the right side.

    Concerning

Maybe you are looking for

  • I Heve problem weth my call (error 53) pleace halp me

    I Heve problem weth my call (error 53) pleace halp me

  • Impossible to verify updates errors updated Code 80072EFD

    In my status bar is the icon for updates are ready well that says mine can not check for updates when I try its control of cant say for updates error Code 80072EFD I tried adding sites to the lists of exceptions and nothing works someone can help me

  • HP installation wizard cannot find a printer

    I am using HP Photosmart C3100 all-in-One on a MacBook Pro. I reinstalled and tried all the quick fixes, but this remains a problem: while I can print fine from my computer, I can't scan. When I use the HP Installation Wizard, there not my printer. 

  • Can't click on the desktop icons

    Windows Vista. I can't click on the icons on the desktop or right-click on the desktop screen. I can click on the start menu or on an open page such as iexplorer. Help, please.

  • Stupid question Z10 blackBerry

    HI GUYS I would like to know (because im stupid and can't find it) how I separate the personal stuff on my bb to work stuff or who works with employers. I think after reading its something to do with the balance of bb (what it is) someone can point m