Selection of Localizable.strings and .strings file naming?

Hi Apple Developer Folks,
In the process of embedding Internalization for strings in my project, I referred to the "InternationalMountains" sample code project.
In that project there are three languages supported, English, French and Chinese.
What I do not understand is why all three Localizable.strings files have been checked in Localization section of the File Inspector.
This is the case for the other two such files, as well. 
(See the full sized image at http://www.drake.org/images/AllThreeBoxes.jpg )
Also, I have one other question:  "What is the suggested mechanism for controlling the NAMING of the Localizable.strings files?"
If I wanted to name the files something like "StandardApp.strings" or "ProApp.strings" - where and how would that be accomplished?
As it is, if the files are not named "Localizable.strings" - the NSLocalizedString(key, comment); calls do not work as intended.
Thanks very much!

I'm guessing that most use the default naming of the localization strings files, which are packaged with related localized files in the appropriate resource folder - your screenshot is just showing that there are three localizations for that name.
You can use any name you want when creating a strings file - Foundation's NSLocalizedString just uses the default Localizable.string file name by calling NSBundle's localizedStringForKey:value:table: method with a nil value for the table.  You can use other names by calling that method or by using Foundation's NSLocalizedStringFromTable, passing the desired table name (the file to use).

Similar Messages

  • Aspect Ratio Sort and Export (File Naming)

    When I crop my photos, I sometimes find that some photos work best in the 4x5/8x10 crop and others in a 2x3/4x6 aspect ratio.
    Issue #1) How can I sort and find all of my images with a specific aspect ratio?
    When in the Library module and setting up a filter (ctrl+f), I don't see any way to filter and sort out my aspect ratio. In the "Metadata - Label" filter fields, there is an "Aspect Ratio" value however the only options are Portrait and Landscape. (more of a photo/page layout than 'aspect ratio' to me)
    ** Feature Request: Please add "Aspect Ratio" options (just as presented with "r" is pressed for resize) in the Library Filter Metadata. **
    Issue #2) How can I include the aspect ratio of the image (e.g. 4x5) in the exported file name?
    I don't see any way to to do this either, so I have to manually find all of the images with the same aspect ratio first, then set a Custom Name field for export and export each ratio at a time.
    ** Feature Request: Please add "Aspect Ratio" options to the file naming fields available for selection when exporting images.  Values like "4x5" and "4x6" would be great to be able to include in the filename of my images.
    Regards,
    Brian

    Thank you John!  I've found and posted them here:
    http://feedback.photoshop.com/photoshop_family/topics/sorting_by_aspect_ratio
    http://feedback.photoshop.com/photoshop_family/topics/need_aspect_ratio_field_for_filename _export

  • Selection Criteria With Plant , And Reading File

    Guys,
    I have a selection criteria with fields SAP Plant, and a filepath to read a file. File will be containing fields like legacy plant,material, date,description etc as records. Upon user executes after giving the SAP Plants (which has low and high limit ie select-option) and filepath.
    The program should first convert the SAP Plants to Legacy Plants and Read only those file contents where the legacy plant in file matches the converted legacy plants and other non matching plant file records ignored. Please suggest and gimme a sample code.
    Shawn

    Hi Shawn,
    Naimesh i think this would help shawn, i have given u a sample code who to work around in a easy way.Guys comment on the program if u feel something i miss
    Report Z_File_Example.
    Type:Begin of ty_tab1
               zlegacy_plant type zplant-zlegacy_plant
            End of ty_tab1.
    Type : Begin of ty_tab2
    include fields similar to input file     
                   legacy_plant(4) type c ,
                   no type mara-matnr,
                   descripion type mara-mkty,
              End of ty_tab2.
    Data : out_tab1 type standard table of ty_tab1,
              wa1 type ty_tab1.
    Data : out_tab2 type standard table of ty_tab2,
              wa2 type ty_tab2.
    Select-options : s_plant like mara-werks.
    AT SELECTION-SCREEN ON END OF S_PLANT.
       LOOP AT S_PLANT.
    Select query  takes both the lower limit and high in where condition to select 
    legacy plant from the table and populate the Work area and later to internal table.
    Conversion of SAP Plant to  Legacy Plant
          Select ZLegacy_Plant
              into corresponding fields of wa1
          from Zplant where werks in S_plant
         append wa1 to out_tab1
    ENDLOOP.
    ***After reading a file using ws_upload , which gives an output in say out_tab2(internal table)
    Call WS_UPLOAD
    ****We can iterate through the out_tab2 (shown below)
    loop at out_tab2 into wa2 where legacy_plant in wa1-zlegacy_plant
       Process those records as u want
    end loop.
    Thanks

  • Log and Transfer File Naming

    When AVCHD files are imported with log and transfer, it designates a file name number sequence that includes the "#" sign both in the browser and on the external hard drive that it copies to. How can I eliminate this "#" sign and have it still assign a different number for each file?
    Thanks in advance to any and all help

    The clip number us assigned in the camera. You would have to manually remove the # mark in the log and transfer window before the shot was transcoded.

  • [CS3] I have never been able to get this right: Batch/Droplet and output file naming??????

    Hi,
    The situation:
    I need to convert a folder of PDF's to PNG format.
    My process:
    I create an action by recording my "actions" based on one of the said PDF's.
    Problem:
    When batching and/or processing via a droplet (created from action I created from above), the output file name is ALWAYS the EXACT name of the file I used when I created my action!!! Why? I have tried everything... Why is it so hard for Photoshop to batch a file and use the file name of the current file being batched (and not the name of the original file that the action was created from)???
    Please help!
    I feel like such a dunce... I am sure the answer is staring me right in the face.
    Many thanks in advance!!!
    Cheers,
    Micky

    Hi Conrad!
    Thanks for the help, I greatly appreciate your time. :)
    Sorry for my delayed reply.
    I never touched the file name for the save as dialog box.
    I have use PS for many years, and I have never been able to get the file name to stay the same as the file being processed. :(
    My boss even, he is a beta tester of future versions of Adobe products, and he could not get it to work...
    It only worked for me/us when appending a digit to the end of the file name. Not an optimal solution, but it works. ;)
    @Foot, I am glad this thread was helpful! :D
    Have a great day all!
    Cheers,
    Micky

  • English.lproj and en_US.lproj files (why en_US strings file isn't used ?)

    Hi, my project has a localization.strings file in the English.lproj folder as well as the en_US folder.
    My phone and sim settings are "English" for language and "United States" for region (and NSLocaleIdentifier has a value of English (United States)
    However, when I run my app, it always reads strings from the English localization.strings file and not from the en_US version.
    Does anyone know why the English.lproj strings are picked up instead of en_US.lproj strings ?

    has anyone used different strings files for en_US and English ?

  • Capital Letters and spaces when naming files or images

    When I first started creating a web page, I was under the impression that I should only use lower case and use an underscore instead of a space. Is this still the case or have things moved on since then.
    If not, could somebody please let me know when I should use Capital Letters and spaces.
    Does it affect google ratings or any search engine ratings in any way.
    Thanks to all who have answered my previous posts. I do not know what I would have done without this forum.
    All the best to all and thanks again.
    Michael

    No change.
    Stick to A-Z, a-z, 0-9, hyphen and underscore. Avoid spaces and special characters such as ?, ! and #.
    It's a matter of differences in server operating systems. Spaces in filenames can be read differently by different servers and may lead to broken links.
    Javascript and some operating systems (e.g. Linux) are case sensitive.
    On Linux: MyPic.jpg is a different file to mypic.jpg
    In addition, Uppercase/lowercase is partly a question of consistency to avoid user error.
    Some users here have inexplicable (to them) errors because Images/image.jpg and images/image.jpg are two different paths.
    Choose a simple, logical (and legal) file naming convention (e.g. all lowercase) which you find most comfortable and stick to it at all times.

  • Emailing folders and their files

    as a first time user I can't believe how hard it is to post a topic on this site , how bout making it simpler apple!
    how do I email a folder with its files, I cant find an option to do this - windows gives you the option of emailing this folders files - can anyone help me?

    Usually if I want to email a bunch of stuff, I will first compress it into a single zip file and send that file as an attachment. Recipients generally have no trouble unzipping the file. If you want to try this, just select the folder(s) and/or files you want to send, control click on one of the selected items and select the option to "Compress....". A zip file will appear which you can send as an attachment.
    charlie
    P.S. if you want forum assistance/discussion regarding posting, a good place to go is:
    http://discussions.apple.com/forum.jspa?forumID=1076
    You won't get any Apple support on these forums; we are all users like yourself.

  • Convert text string file to object array without outputting to file first?

    I have a log file that is just a text string file which is appended to with Out-File.  If the log file does not exist I pipe headers to it so that I can import the data as CSV.  For example:
    DATA.LOG
    DATE,TIME,RESPONSE_TIME
    05-28-2014, 14:47, 132
    05-28-2014, 14:50, 94
    05-28-2014, 14:53, 72
    I'm using Microsoft Chart Controls to graph the data; it takes it in via CSV format.  If I'm going to chart all the entries in DATA.LOG I can simply IMPORT-CSV DATA.LOG.  But I only want to graph the 20 most recent entries.
    Perhaps there is a better way to do this, but to maintain the header and get the 20 most recent entries I'm using select.
    $DATA+=Get-Content .\data.log | select -first 1
    $DATA+=Get-Content .\data.log | select -last 20
    The problem is $DATA is of type system string so I can't use it directly with Chart Controls; I need to get it in CSV format first.  I can Out-File $DATA and then use IMPORT-CSV.  But I'd prefer to not have to use
    the temporary file.  Any suggestions on how I can accomplish this objective? 

    Import-CSV creates an object with the 'header' becoming the named values in the array.  The code I posted does the same thing as your 4 lines of code in one line of code:
    Much more quickly:
    PS C:\temp> (1..1000 | measure-command {import-csv .\data.log | select -last 2}).totalseconds
    0.4792951
    PS C:\temp> (1..1000 | measure-command {$DATATMP=@();$DATATMP+=Get-Content .\data.log | select -first 1;$DATATMP+=Get-Content .\data.log | select -last 2;ConvertFrom-CSV $DATATMP}).totalseconds
    1.6227726
    You're more than welcome to use whatever code you want, but if you want to improve your Powershell knowledge you should try to understand the object model around which Powershell is built, it is powerful and efficient.
    I hope this post has helped!

  • Dynamic Directory and File Naming in Receiver Adapter

    Hi ..My Receiver file should Look like this.
    COLCCYYMMDDHHMMSSLPMASTER___.tmp
    1st 3 bytes: COL  ( Sender File name is COLMASTER.txt)
    Next 14 bytes is timestamp: CCYYMMHHMMSS
    Next 1 byte: L ( constant Value )
    Next 1 byte: P/Q/D (Production/QA/Dvlp.. Can we do this based on Sender Logical System ?)
    Next 20 bytes ( Part of it comes from Sender file name and remaining fields should be filler with underscores )
    Next 4 bytes ( .tmp)
    After Iam done with writing this file in .tmp format I should change the file name to .txt format for further processing. Since File gets created dynamically how should I change Name from .tmp to .txt file?
    Appreciate help and guidance with steps I neeed to follow to make this happen. Thanx again.

    Hi Ram,
    One option~~
    Use ADAPTER SPECIFIC INDENTIFIERS in both sender and recievr file adapter with the filename selected.
    In this case, the filename of sender will be made the file name of the reciver.
    Now, change the file name in the mapping in an UDF with the following code, and this will be used as the filename,
    String newfilename="";
    // Write the logic to get the new file name into this string.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    conf.put(key, <b>newfilename</b>);
    return  "";
    Now, this filename in newfilename string will be used in the target filename.!!
    Regards,
    Bhavesh

  • Whether ineed to put selection between txt and xl file?

    hi,
    my requirement is to provide to upload data from legacy to sap.in my selection screen i hav to put both presentation and application server options.
    If the presentation server option is selected then user can select the file type like Text or Excel?
    i want the approach to how to code for presentation server.i.e,
    a)whether i need to use radiobuttons for txt and excel file.

    Hi
    Check this sample code:
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: FLATF RADIOBUTTON GROUP RAD1 USER-COMMAND X,
                UNIXF RADIOBUTTON GROUP RAD1 .
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN SKIP 2.
    parameters: P_FNAME type RLGRAP-FILENAME MODIF ID P1,"here you can give your txt or excel file
                UNIXFILE type RLGRAP-FILENAME MODIF ID P2.
    SELECTION-SCREEN SKIP .
    selection-screen ULINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN POSITION 20.
    parameters TESTRUN AS CHECKBOX default 'X'.
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAME. "to give F4 functionality for the local PC file
      CALL FUNCTION 'F4_FILENAME'
    * EXPORTING
    *   PROGRAM_NAME        = SYST-CPROG
    *   DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
         IMPORTING
           FILE_NAME           = P_FNAME.
    " the following steps will let u know If the file is an txt or excel file:
      data: LEN TYPE I,
            v_fname type string.
      if p_fname is not initial.
        MOVE P_FNAME TO V_FNAME.
      else.
        MESSAGE I000(ZP).
      ENDIF.
      LEN = STRLEN( V_FNAME ).
      LEN = LEN - 3.
      IF V_FNAME+LEN(3) = 'xls'. "here IF the file is an excel..you write the condition you want.
      Endif.
    Hope you are clear,
    Vishwa.

  • How do I search for and select a repeating phrase in a file.

    How do I search for and select a repeating phrase in a file read via Applescript. The file contains details of phone calls submitted to a charity and I want to be able to analyse the types of call taken. The phrase is 'Type of enquiry' and I want to extract the description that follows. I am a beginner at Applescript and have been working my way through Applescript 1-2-3 but cannot find an obvious solution although I have manged to open and read the file! All suggestions gratefully received.

    In applescript you can use something like the following:
    set {oldTID, my text item delimiters} to {my text item delimiters, "Type of enquiry"}
    set dataBits to text items of textToParse
    set my text item delimiters to oldTID
    the variable dataBits, then, will be a list where every list item is a string that starts with the text following that phrase. 
    You could do regular expressions searches as well, but you'd need to download and install the Satimage osax.

  • Automatic file naming and data saving

    Hi,
    I am building a program where there will be several I-V scan for each value of temperature. I would like to make the data saving fully automatic. 
    To explain in more deatils:
    I want the program to generate a new file on its own , give a file name depending on the temperature variable , save the data and again go for the next I-V scan and do the same way.
    So, if at a particulat temp say 300K, there are 5 iterations, my program should be such that it generates a new file evrytime say 300K_001(1st iteration), 300K_002,...300K_005(5th iteration) automatically on the hit of "run" button.
    Can some one help me on how to implement such a code.
    Thanks!
    Solved!
    Go to Solution.

    People do things like that all the time.
    Look at the Number to String conversion functions in the String palette and the Build Path function in the File palette.
    You should think about error handling. What happens if you try to create the 300K_001 file and a file with that name already exists? Do you want to over-write the file, change the name to 300K_001_a, or ask the operator for input?
    Lynn

  • SELECT command using String

    Hi
    How can I do to select data using string with range:
    srch_strA = notcr-low.
    srch_strb = notcr-high.
    * Building selection
    IF srch_strA IS NOT INITIAL AND srch_strB IS INITIAL.
      CONCATENATE '%' srch_strA '%' INTO srch_strA.
    *document header
      SELECT bukrs belnr gjahr bktxt bldat xblnr
        FROM bkpf INTO CORRESPONDING FIELDS OF TABLE it_bkpf
        WHERE bukrs EQ p_bukrs AND
              belnr IN belnr AND
              gjahr EQ p_gjahr
              AND xblnr IN xblnr
              AND BKTXT LIKE srch_strA.
    ENDIF.
    IF srch_strA NE '' AND srch_strB NE ''.
      CONCATENATE '*' srch_strA '*' INTO srch_strA.
      CONCATENATE '*' srch_strB '*' INTO srch_strB.
      ti_nc-sign    =  'I'.
      ti_nc-option  =  'BT'.
      ti_nc-low     =  srch_strA.
      ti_nc-high    =  srch_strB.
      append ti_nc. clear ti_nc.
    *document header
      SELECT bukrs belnr gjahr bktxt bldat xblnr
      FROM bkpf INTO CORRESPONDING FIELDS OF TABLE it_bkpf
        WHERE bukrs EQ p_bukrs AND
              belnr IN belnr AND
              gjahr EQ p_gjahr
              AND xblnr IN xblnr
              AND BKTXT IN ti_nc.
      ENDIF.
    Thanks in advance.
    Moderator message - Please use code tags around your code
    Edited by: Rob Burbank on Nov 27, 2009 5:26 PM

    Hi,
    Pls. use this code and check if its working...
    srch_strA = notcr-low.
    srch_strb = notcr-high.
    * Building selection
    IF srch_strA IS NOT INITIAL AND srch_strB IS INITIAL.
      CONCATENATE '%' srch_strA '%' INTO srch_strA.
    *document header
      SELECT bukrs belnr gjahr bktxt bldat xblnr
        FROM bkpf INTO CORRESPONDING FIELDS OF TABLE it_bkpf
        WHERE bukrs EQ p_bukrs AND
              belnr IN belnr AND
              gjahr EQ p_gjahr
              AND xblnr IN xblnr
              AND BKTXT LIKE srch_strA.
    ENDIF.
    IF srch_strA NE '' AND srch_strB NE ''.
      CONCATENATE srch_strA '*' INTO srch_strA.
      CONCATENATE srch_strB '*' INTO srch_strB.
      ti_nc-sign    =  'I'.
      ti_nc-option  =  'BT'.
      ti_nc-low     =  srch_strA.
      ti_nc-high    =  srch_strB.
      append ti_nc. clear ti_nc.
    *document header
      SELECT bukrs belnr gjahr bktxt bldat xblnr
      FROM bkpf INTO CORRESPONDING FIELDS OF TABLE it_bkpf
        WHERE bukrs EQ p_bukrs AND
              belnr IN belnr AND
              gjahr EQ p_gjahr
              AND xblnr IN xblnr
              AND BKTXT IN ti_nc.
      ENDIF.
    Thanks,
    Sid

  • UNIX Problem with method Runtime exec(String[],String[],File)

    Hello !!
    i'm french
    scuse my english
    I got a probleme with method exec(String[],String[],File) of Runtime Class
    i don't have any probleme when my program runs on Windows NT but the same program on UNIX doesnt execute my command..
    When i use exec(String[]) methode i dont have this problem ...but i need the second one methode because i have to execute my command in a different directory than the JAVA program.
    I need that results of this command are placed in this drectory so that i can't use an exex() like that :
    exemple with a perl :
    "perl /toto/titi/hello.pl"
    I want to execute this :
    "perl hello.pl" (and hello.pl is placed in /toto/titi)
    Conclusion :
    the exec(String[],String[],File) solution is ok with NT ...
    but with UNIX ????
    Is there other solution ??
    Should i do a "cd" command before my execution ? how can i do this ??
    Thanks !!!!

    Could you post your source code (only relevant part)
    Raghu

Maybe you are looking for

  • Crystal Reports 2008 - Report off of Active Directory

    Hello, I have found a few articles on how to do this, but they don't seem to follow my wizard. Can someone provide a tutorial on how to create a Crystal Reports 2008 report against active directory? I have been able to do the following so far: 1) Cre

  • SDK v3.0 Compatible with 2.4

    Just starting to look into LR plug-in work. I'm still on LR v2.4. My question is whether the currently available SDK 3.0 for LR would be backwards compatible with LR 2.4, or do I need a 2.x SDK (and if so, where could I find that).

  • Problem with Mail in Leopard

    After installing Leopard (Not Upgrade) and sync all my information back from .MAC. My Mail seems to has some problem. There are no emails listed when I click on Inbox or Junk but when I click directly to the mailboxes all email appeared. I have 6 to

  • Where is the Dual Core version of X100e that has been promised!!

    Where are the x100e units with AMD Neo x2 dual core that has been promised?? The Lenovo Australia website has them for sale but nothing in the USA. What the heck is going on here??? How much longer does Lenovo think they can get away with selling new

  • Apple Claiming my Battery is not eligible for replacement????

    So I have a Macbook that I purchased back in 2007 (warranty expired in Feb 08)...anyway I only just realised last week that my battery had become deformed....so onto the web I treak to find that Apple was running a +"MacBook and MacBook Pro Battery U