How to get name of the current localization language?

Hello!
How can i get value of Setting->General->International->Language?
TIA

Hi, not tested but from apple docs:
NSUserDefaults* defs = [NSUserDefaults standardUserDefaults];
NSArray* languages = [defs objectForKey:@"AppleLanguages"];
NSString* preferredLang = [languages objectAtIndex:0];
You should also take a look at:
http://developer.apple.com/iphone/library/documentation/MacOSX/Conceptual/BPInte rnational/Articles/ChoosingLocalizations.html

Similar Messages

  • How to get cwd of the current process in the kernel in Solaris 8

    Hi, everyone
    Does any one know how to get the path name of the current working directory of the current process in the kernel in Solaris8 ?
    I searched the forum and got some related links, but none of them gives a clear solution.
    Sample code can help a lot!
    Thank you!

    NiuLin wrote:
    Thanks for the reply.
    What the user structure contains is the vnode pointer of the cwd, but I want go get the pathname of it, like /export/home/abc/.First, all you can get is a path name - there can be more than one. And then there's the problem of determining the path name you want if the process is running under chroot.
    Assuming you don't have to deal with those, there's this thread:
    http://forum.java.sun.com/thread.jspa?threadID=5084620&messageID=9298124
    Of course, that thread doesn't say how to do that. But it appears to be part of Solaris 10.
    I once had to solve this same problem for a Linux kernel module I wrote, so I know it's theoretically possible. But I also know it's not as simple as it seems it should be, and any results you do get are not guaranteed to be unique and, IIRC, not even correct in some cases.
    Sorry I can't be more specific than that right now.

  • How to get name of the month from current date.

    Hi,
       How to get the name of the month from current date.
    Thanks,
    Senthil

    Sethil,
    Use your date(let us say Date1) instead of sy-datum.
    CALL FUNCTION 'MONTH_NAMES_GET'
    EXPORTING
    LANGUAGE = SY-LANGU
    IMPORTING
    RETURN_CODE =
    TABLES
    MONTH_NAMES = itab_month
    EXCEPTIONS
    MONTH_NAMES_NOT_FOUND = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE itab_month
    WITH KEY MNR = date1+4(2).
    itab_month-LTX will contain the value you are looking for
    Good luck
    Raghava

  • How to get names in the phonebook transferred to Car device?

    Hi,
    I am using BB 8900 and Fiat Linea car with Blue & Me technology. After copying the phone book from the BB hand held to the car device, the car phone book only displays the numbers without names, which is practically useless. Because of this, I am unable to utilize the expensive feature in my car to the full, though I can receive calls and dial from the handheld and then continue conversation through car device. My another handheld Nokia model, costing 1/4th of BB 8900 works perfectly well with the car device. Kindly help with information on how to get the names in the address book of BB handheld transferred to the car device. Thanks and Regards - Ram Bhat

    Hi, I did not get help but I succeeded in transferring the names in the address book of my BlackBerry. I am sharing how I did it for the benefite of others -
    1. The automatic pairing by blue & me does not transfer the names!!
    2. Keep your BlackBerry (BB) unlocked, blue tooth paired with device.
    3. Press 'Phone' sign on the sterring wheel to activate menu.
    4. Scroll using the up/down arrows on the steering wheel for 'Settings'
    5. Select settings by pressing the 'Phone' sign.
    6. Scroll for 'User data' and select by pressing 'Phone' sign
    7.Scroll for 'Add contacts' and select by pressing 'Phone sign'
    8. After hearing the voice message from the car audio do seetings on BB as below
    9. Go to 'Manage Connections' -> 'Set up Blue Tooth' - > 'Cancel' This Leaves 'Blue tooth' menu with "Blue & Me" on the screen.
    10. Click 'Menu' button and click on 'Transfer Contacts'
    11. The BB shall transfer 300+ numbers within a minute ans give a message of completion of transfer.
    12. Look at the car display, it shows the numbers being added, trailing the completion of transfer completion from BB
    13. Within less than 2 minutes, the address book in the car device is updated and you have all the names in the phone book of the car now.
    Enjoy but keep the usage of the calling from car to safety limits.
    Ram

  • How to get to know the current selected service?

    Can anyone tell me how to get the current selected service in MHP? I tried to find one but no result. Can javax.tv.media.MediaSelectControl.getCurrentSelection() gives me the answer?

    servicecontext.getService()

  • How to get name of the slicer via script

    Hi Gurus,
    I was wondering if we could get the name of the slicer added in IR Query section, via script ??
    That is, I have a bqy connecting to Essbase OLAP.
    Now I am adding a slicer in OLAP Section via script.
    For Ex : ActiveDocument.Sections["Query2"].Slicers.Add('Market.Gen3,Market' , 'Market.LA')
    Now,for some reason, I wanted to retrieve the name of the slicer I added and assign it to a variable. Is this possible ?? I couldn't see any option for this. Please help me out if any one has done this before ?
    Thank You,
    Aji

    Sethil,
    Use your date(let us say Date1) instead of sy-datum.
    CALL FUNCTION 'MONTH_NAMES_GET'
    EXPORTING
    LANGUAGE = SY-LANGU
    IMPORTING
    RETURN_CODE =
    TABLES
    MONTH_NAMES = itab_month
    EXCEPTIONS
    MONTH_NAMES_NOT_FOUND = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE itab_month
    WITH KEY MNR = date1+4(2).
    itab_month-LTX will contain the value you are looking for
    Good luck
    Raghava

  • How to get week of the current month

    Hi all,
    Is there any way to find out week of the current month.
    Please help..

    Do not confuse date format and the parameter in the file NqsConfig.ini
    http://gerardnico.com/wiki/dat/obiee/bi_server/nqsconfig
    As say in the previous link, you must check in the NqsCOnfig.ini file that you have this line
    DATE_TIME_DISPLAY_FORMAT = "yyyy/mm/dd hh:mi:ss" ;because the cast function take it as format to discover the day, month and year.
    Besides, the functions WEEK_OF_YEAR AND MONTH don't care about the date format, they only need a date.
    Check here this article :
    http://gerardnico.com/wiki/ide/toad/toad_date_format
    To see that the date format is much more a question of rendering (for OBIEE, Toad or SqlPlus) than of data.
    Verify your NqsConfig.ini and give a try.
    Success
    Nico

  • How to get names on the tunes

    I had a 30gb ipod & installed into my laptop. About a year later I receaved a new 60gb and without running the 60gb intallation CD with it, I loaded the new ipod with the songs.
    Now I have a new laptop and after trying to trasfer songs from the old laptop to new, I finally got frustureted and just copyed all the music from the old into CD,s and then installed them to my new laptop. The problem, I can not get tune names from itunes. Did I change format?

    Unfortunately you almost certainly did. Getting track information from Gracenote depends on the track order and timing being exactly as they were on the original CD.
    There is a Wiki on Gracenote:
    http://en.wikipedia.org/wiki/Gracenote

  • How to get the name of the current tab.

    Hi Experts,
    I have two tabs in my tab strip and a button common to both the tabs.Can you please let me know how to get the name of the current tab in the event method of the push button.
    Thanks in advance.
    Regards,
    Arun

    1.Declare an Action for OnSelect event of Tabstrip. This event is triggered whenever any change in tab occurs.
    2. Declare an Import Parameter in this method
       Tab type String.
    3. This parameter has value of the selected TAB.
    4. You can set this value in some Attribute in Attribute Tab in this event only (OnSelect):
         wd_this->Att  = Tab.
    Att is the attribute created by you in Attributes Tab of View. ( of type String)
    5. Now the selected Tab ID is stored in this Attribute Att.
    6. In the Onaction of Button , retrieve the selected tab value from this attribute using :
               Data : lv type string.
                lv =  wd_this->Att
    Now lv has your selected TAB ID.
    I hope it would help you.
    Edited by: Saurav Mago on Oct 13, 2009 2:22 PM

  • How can get the console window name of the current form?

    How can get the console window name of the current form?

    Try the various get methods of the viewObject such as getQuery:
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtAnchor.getQuery%28%29/vtTopicFile.bc4jjavadoc%7Crt%7Coracle%7Cjbo%7CViewObject%7Ehtml/

  • How to get the name of the currently used display variant

    Dear all,
    I found the user-exit EXIT_SAPLGRAP_001 for programming download authorization.
    With us no standard user is allowd to download data from R/3. With the user-exit it would be possible to allow certain downloads. one problem i solved already.
    For programming the second authorization i need the name of the currently used display variant in RKPEP000. Where can i get the name. I tried user-exits for RKPEP000, but i didn't find the name. I didn't find it in SYST either.
    Thanks and reargs
    Monika

    First you need to enter those names. Right-click the songs (Windows) or go to File>Get Info (All Platforms), then go to the second tab from the left to insert the information.

  • Can you get the file name of the current executing TSQL script?

    Can you get the file name of the current executing TSQL script? I wrote entries to a generic log file and would like to include the script name.

    Okay, So What you can do is
    1. Read get the version from your  database and redirect it to a text file(SQLCMD outout can be directed to text file using -o option or windows redirection operator >)
    2. Now you can read this value from the text file either inside a batch file or a powershell script and decide what operations you can do. 
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • How can I get (using API) the current sort column for some report

    hello,
    How can I get (using API) the current sort column for some report ? For example something like "fsp_sort_1_desc" - if the user sorts by the first column ?
    I cannot use the :REQUEST for this, sometimes the current sort column is not in the :REQUEST, but it is still active.
    I thought it was posssible by using
    APEX_UTIL.GET_PREFERENCE (
    p_preference IN VARCHAR2 DEFAULT NULL,
    p_user IN VARCHAR2 DEFAULT V('USER'))
    RETURN VARCHAR2;
    function, but I don't really know which preference should I pass as parameter.
    looking in WWV_FLOW_PREFERENCES$, i saw preferences_names like FSP4000_P527_R6281510839654570_SORT , I'm not sure how this name is formed.
    I'm using generic columns for that complex report (which has a flexible number of columns shown), and the idea is that sometimes I have to overwrite that sort column, in case the user chose the version of the report with fewer columns than the previous one.
    Can I get (using API) a list of all preferences set for some user ?
    Thank you,

    seems that it is FSP<app_number>P<pagenumber>R<regionnumber>_SORT.
    is there anyplace where I can get these kind of things documented ?
    Thank you.

  • How to not append '.PART' to the file name of the currently downloading file, and just download the file with its normal filename

    In Windows, when Firefox (I'm currently using 7.0) downloads a file, it appends ''.PART'' to the file name of the currently downloading file and just renames it to its original file name after it finishes downloading.
    I sometimes like to watch a currently downloading video file, so it will be better if Firefox just downloads the file to its actual filename (like what Opera does), so I can easily double click the incompletely downloaded file and watch it with the video player assigned to that file extension, rather than the awkward ''Right click -> Open With -> Choose Default Program'' route with .part files.
    Does anyone know how to set Firefox to do this?

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox and prevents Firefox from renaming the .part file.
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See "Disable virus scanning in Firefox preferences - Windows"
    * http://kb.mozillazine.org/Unable_to_save_or_download_files

  • How do I find the file name of the current desktop picture?

    I've tried going to System Prefs, right-clicking on the desktop, and rifling through the pictures folder to visually match the picture.
    Isn't there an easy way to find out what the name of the current desktop picture file?

    ...and, when I double-clicked on the plist file, it opened OmniOutliner, which did a great job of sorting through all the machine-speak of the file, displaying it in an organized (outline) fashion. I was able to track down the missing picture and replace it on the desktop. Thanks!

Maybe you are looking for

  • BAPI_SALESORDER_CREATEFROMDAT2 - Configurating Items

    Hi  everybody!   Now i'm trying to create an order but  configurating some items, i'm testing the BAPI at SE37, when  i test the BAPI it gives me the order number but the configuration in the item WHERE  i SEND the data is not made, I give YOU the pa

  • How to save Android contacts as Excel file on Mac computer?

    I want to manage and edit my contacts on my cell phone, my friend suggested me save them as Excel format! So now i am trying this way, but i can't find the right method to do this! Do you know how to save Android contacts as Excel file on Mac compute

  • Org structure table

    Hi,    can anyone send me the tables where the attributes of the organization unit is stored. my requirement is that i need to upload the attribute (WBS element in mycase) for the organization units from an excel sheet to the relevant tables so that

  • Storage Issue, Other Way To High

    Hi, I recently put a new hard disk in my iMac and then used my backup to reinstall my files. When I went to check on my storage of my hard disk on my iMac I noticed that "Other" was at huge 426GB which seems way to high. This is a lot higher than pre

  • Cannot display converted file

    I've converted a file from PDF to doc, docx and rtf formats, when I open the converted file, a small message indicates : "This image cannot currently be displayed" Any suggestions?? Thx, Gabe