Multiple property files, or one large one

I am just starting internationalization on a Java application, and am externalizing my Strings into property files. My question is: what is better, to store all the Strings in one large property file (making it easier to edit, and reduce duplicates) or to have a property file for each GUI Widow/Dialog etc. My concern with one large file is that there may be a performance hit?

The java internalization tutorial tells you some of the advantages of using several resource bundles instead of one:
[http://download.oracle.com/javase/tutorial/i18n/resbundle/prepare.html]
You also can find this article helpful:
[http://www.onyxbits.de/content/methods-handling-i18n-java]

Similar Messages

  • How to have multiple preference files for Mail on one computer

    I would like to have multiple preference files for Mail on one computer, one copy for each person in the organization. I want everybody to log in as the same user. Is this possible?
    Thanks,
    John Link
    Cube, 450 MHz, 640 MB   Mac OS X (10.3.9)  

    Since the Mail.app preference file (along with all other application preference files for a user account) is stored in that user's Home folder/directory, I don't believe this is possible.

  • How do you consolidate audio files in Premiere? (Make multiple audio files on a track one file)

    How do you consolidate audio files in Premiere? (Make multiple audio files on a track one file). Also, my client is having a hard time making an omf that Pro Tools can read. The files can not be found by Pro Tools. How do you make an omf that Pro Tools can read?

    Multichannel export;
    http://strypesinpost.com/2012/11/exporting-multichannel-quicktimes-in-premiere-pro/
    When you export the OMF, select Encapulate Files in the Settings window

  • How to load multiple CSV files into oracle in one go.

    Hi,
    I have project requirement like: I'll be getting one csv file as one record for the source table.
    So i need to know is there any way by which I can load multiple csv in one go. I have searched a lot on net about external table.(but problem is I can only use one consolidate csv at a time)
    and UTL_FILE same thing consolidate file is required here to load.
    but in my scenario I'll have (1000+) csv files(as records) for the table and it'd be hectic thing to open each csv file,copy the record in it and paste in other file to make consolidate one.
    Please help me ..it's very new thing for me...I have used external table for , one csv file in past but here I have to user many file.
    Table description given below.
    desc td_region_position
    POSITION_KEY             NUMBER     Primary key
    POSITION_NAME       VARCHAR2(20)     
    CHANNEL                     VARCHAR2(20)     
    LEVEL                     VARCHAR2(20)     
    IS_PARTNER             CHAR(1)     
    MARKET_CODE             VARCHAR2(20)
    CSV file example:
    POSITION_KEY|POSITION_NAME|CHANNEL|LEVEL|IS_PARTNER|MARKET_CODE
    123002$$FLSM$$Sales$$Middle$$Y$$MDM2203
    delimeter is --  $$my database version as follows:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    "CORE     10.2.0.5.0     Production"
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
    NLSRTL Version 10.2.0.5.0 - ProductionEdited by: 974253 on Dec 10, 2012 9:58 AM

    if your csv files have some mask, say "mask*.csv" or by file "mask1.csv" and "mask2.csv" and ...
    you can create this.bat file
    FOR %%c in (C:\tmp\loader\mask*.csv) DO (
       c:\oracle\db\dbhome_1\BIN\sqlldr <user>@<sid>l/<password> control=C:\tmp\loader\loader.ctl data=%%c
       )and C:\tmp\loader\loader.ctl is
    OPTIONS (ERRORS=0,SKIP=1)
    LOAD DATA
      APPEND 
      INTO TABLE scott.td_region_position
      FIELDS TERMINATED BY '$$' TRAILING NULLCOLS
      ( POSITION_KEY,
         POSITION_NAME ,
         CHANNEL,
         LVL,
         IS_PARTNER,
         MARKET_CODE
      )test
    C:\Documents and Settings\and>sqlplus
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 10 11:03:47 2012
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Enter user-name: scott
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from td_region_position;
    no rows selected
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Pr
    oduction
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    C:\Documents and Settings\and>cd C:\tmp\loader
    C:\tmp\loader>dir
    Volume in drive C has no label.
    Volume Serial Number is F87F-9154
    Directory of C:\tmp\loader
    12/10/2012  10:51 AM    <DIR>          .
    12/10/2012  10:51 AM    <DIR>          ..
    12/10/2012  10:55 AM               226 loader.ctl
    12/10/2012  10:38 AM               104 mask1.csv
    12/10/2012  10:39 AM               108 mask2.csv
    12/10/2012  10:57 AM               151 this.bat
                   4 File(s)            589 bytes
                   2 Dir(s)   4,523,450,368 bytes free
    C:\tmp\loader>this.bat
    C:\tmp\loader>FOR %c in (C:\tmp\loader\mask*.csv) DO (c:\oracle\db\dbhome_1\BIN\
    sqlldr user@orcl/password control=C:\tmp\loader\loader.ctl data=%c )
    C:\tmp\loader>(c:\oracle\db\dbhome_1\BIN\sqlldr user@orcl/password control=C
    :\tmp\loader\loader.ctl data=C:\tmp\loader\mask1.csv )
    SQL*Loader: Release 11.2.0.1.0 - Production on Mon Dec 10 11:04:27 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Commit point reached - logical record count 1
    C:\tmp\loader>(c:\oracle\db\dbhome_1\BIN\sqlldr user@orcl/password control=C
    :\tmp\loader\loader.ctl data=C:\tmp\loader\mask2.csv )
    SQL*Loader: Release 11.2.0.1.0 - Production on Mon Dec 10 11:04:28 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Commit point reached - logical record count 1
    C:\tmp\loader>sqlplus
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 10 11:04:46 2012
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Enter user-name: scott
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from td_region_position;
    POSITION_KEY POSITION_NAME        CHANNEL              LVL                  I
    MARKET_CODE
          123002 FLSM                 Sales                Middle               Y
    MDM2203
          123003 FLSM1                Sa2les               M2iddle              Y
    MDM22203
    SQL>

  • Multiple indesign files for product brochure one data merge file

    I have multiple indesign files for product brochure and there are price changes for various products.
    attached is a screen shot of the folder where all the indesign files are located as you can see each one has been laid out as a spread.
    Rather than opening each individual indesign file to amend prices can i quickly? or is there a way of compliling all documents into one file and quickly updating the price with the data merge file.
    thanks in advance.

    Absolutely not.
    (1)     PDF/VT-1 files must also be PDF/X-4 files. The “create PDF via distillation of PostScript” method precludes this since PostScript supports neither live transparency nor color management.
    (2)     The efficiencies of PDF/VT-1 require use of Forms XOjects and Image XObjects in the PDF file. That requires direct PDF creation that you get from PDF export. This is not available via any route that uses stink'in PostScript as an intermediary.
    (3)     Adobe most strongly endorses PDF creation from InDesign via the export function, not printing to PostScript and distilling. Such PostScript is optimized strictly for printing and not for PDF file creation.
              - Dov

  • How do I merge multiple Excel files with more than one tab in each file using PowerQuery?

    Hello
    I have 12 Excel (.xlsx) files and each file has three identically named and ordered tabs in them. 
    I know how to merge multiple Excel files in a folder using M (those guides are all over the web) but how do I merge multiple Excel files with multiple (yet identically named and ordered) tabs? Surely it is possible? I just don't know how to do it in M.
    Cheers
    James

    What Laurence says is correct, and probably the best thing to do when the sheets have differing structures. Here is an alternate approach that works well when the sheets all have the same structure.
    When you first open the Excel file from Power Query, you can see its structure in the navigator at the right-hand-side of the screen. If you select the root (which is the filename itself) and click Edit, you'll see all the tabs in the sheet as a single table.
    You can now do filtering based on the Name, Item and Kind values. When you've reduced the set of things down to the sheets you want, select the Data column and say "Remove Other Columns". If the sheets don't have any header rows, you can just click the expand
    icon in the header and you'll be done.
    Otherwise, if the sheets have headers or if some other kind of sheet-level transformation is required against each sheet before doing a merge, you'll have to write some M code manually. In the following example, each sheet has a header row consisting of
    two columns: Foo and Bar. So the only step I need to perform before merging is to promote the first row into a header. This is done via the Table.TransformColumns operation.
    let
        Source = Excel.Workbook(File.Contents("C:\Users\CurtH\Desktop\Test1.xlsx")),
        RemovedOtherColumns = Table.SelectColumns(Source,{"Data"}),
        PromotedHeaders = Table.TransformColumns(RemovedOtherColumns,{{"Data", each Table.PromoteHeaders(_)}}),
        ExpandData = Table.ExpandTableColumn(PromotedHeaders, "Data", {"Foo", "Bar"}, {"Data.Foo", "Data.Bar"})
    in
        ExpandData

  • Mashing small clips together to make one large one!?

    i figured ou thow to do this once, but now i cant remember.
    i need to mesh a bunch of small clips together to make a large one so i can do a longer transition.

    .. if You had some short clips and applyed a text on them.
    And the text just using some spaces (no letters) then it would merge the
    clips together...
    never tried (.. never needed.. ), but a clever one!!
    here's for you:

  • Creating cache for multiple property files run time/dynamically.

    Hi,
    I have a requirement, where in I need to create cache for each property file present in a folder at server side or in the lib or resources directory. Please help me how I can do this?
    Thanks.

    ok thank you.
    I follwed this method implementation:
    static HashMap<String, HashMap<Object, String>> cacheHolder = new HashMap<String, HashMap<Object, String>>();
         static HashMap<Object, String>[] cache = new HashMap[2];
         static Integer fileCount = 0;
         static int incrementSize = 2;
    public method1(Map<Object,String>map){
    File file = new File((new StringBuilder(
                             "ABC/XYZ/")).append(value)
                             .toString()); // where value is the file name returned from the external method
                   int newSize = existingMapLength+incrementSize;
                   if (someVal== null) {                    
                        synchronized (fileCount) {
                             int oldSize = cache.length;
                             if(fileCount==cache.length){
                                  HashMap[] oldData = new HashMap[oldSize];
                                  oldData = cache;                              
                                  cache = new HashMap[newSize];
                                  LOGGER.info("New Size added:==>"+cache.length);
                                  for(int i=0;i<oldSize;i++){                                   
                                       cache[i] = oldData;
                                  cache[fileCount] = readExternalPropertiesFile(file); // external method which returns the properties of the file in hashmap
                                  cacheHolder.put(value, cache[fileCount]);                    
                                  keys = cache[fileCount].keySet();
                             else{                         
                             cache[fileCount] = readPropertiesFile(file);
                             cacheHolder.put(value, cache[fileCount]);                    
                             keys = cache[fileCount].keySet();
                             someVal= cache[fileCount];
    fileCount = fileCount + 1;
    Please let me know if any improvemnets are possible.

  • How can "multiple folders/files" be deleted in ONE PSEXEC COMMAND LINE

    I can delete remote folders/files via bat command with psexec (below) but; 
    It takes a little time because of the 9 different folders. Maybe, looping of txt file can be used for different folders.
    So how we can delete multiple folders in ONE PSEXEC COMMAND LINE?
    Here my working code but it does its job in 9 steps :(
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\1*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\2*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\3*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\4*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\5*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\6*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\7*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\8*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\9*.*") do rd /s /q "%%a""
    \_(ツ)_/ twitter.com/serdaruzun

    I think it is:psexec \\%PC% cmd /c "for /l %%n in (1;1;9) do for /d %%a in ("c:\Users\%%n*.*") do rd /s /q "%%a""
    \_(ツ)_/ twitter.com/serdaruzun

  • Can multiple html files be opened in one click?

    I have several ebooks that are in html format. I want to open all the files at once without clicking on each one separately. Is this poosible?

    I think it is:psexec \\%PC% cmd /c "for /l %%n in (1;1;9) do for /d %%a in ("c:\Users\%%n*.*") do rd /s /q "%%a""
    \_(ツ)_/ twitter.com/serdaruzun

  • VM disk files - individual files or one larger one?

    A general question.
    If I required a Windows server with 3 x 100Gb disks (c,d & e) then would it be best practice to create 3 separate 100Gb vm disk files or 1 x 300Gb vm disk file and then partition in Windows?
    Thanks

    My input is based from SIOC perspective (Storage IO control):
    If you have 3 virtual disks separately for running 3 different application in your VM, you can set IOPS shares across these 3 virtual disk & enable SIOC on the datastore from which these disks are provisioned. In case of IO contention, IOPS will be distributed across disks based on set IOPS shares.  If you can procure all 3 vmdks from 3 different datastores, it will also help you to get better IOPS.
    Also when there is SDRS enabled in your environment, with 3 separate virtual disk, SDRS gets more opportunities of both space & IO load balancing.  (It is not mean that we always should create more number of smaller VMDKs , it depends).
    I am not aware on how IOPS distribution works inside windows.

  • Multiple Domain Files

    A lot of questions are asked in this forum about managing multiple domain files and splitting existing ones.
    The "solutions" seem to be either to use an application such as iWebsites or to duplicate the domain file into folders and delete the appropriate sites.
    When I first loaded iWeb '08, I kept a copy of a blank domain file and use this to start a new site by duplicating it into a new folder and double clicking it to launch iWeb.
    My main reason for doing this was to overcome the inability of iWeb to create a new domain file from the "File" menu.
    I have stayed with this, not only for speed and convenience, but because I read this...
    http://11mystics.com/blog/2007/09/08/how-do-you-manage-multiple-domain-files-for -iweb/
    and also this....
    http://discussions.apple.com/thread.jspa?messageID=6261141&#6261141
    These comments are from two people who dig deep under the hood of iWeb and whose opinions I respect and have taken to heart.
    Is this the best way to create new domain files?
    Am I being over cautious?
    Am I totally deluded?
    The last question is open to psycho therapists only !

    UUIDs are like finger prints in Domain.sites2. There are ways to start new Domain.sites2 without duplicate an existing one:
    1) move the last accessed Domain.sites(2) from its location, or rename the holding folder.
    2) change com.apple.iWeb.plist setting, I post the procedure here:
    http://discussions.apple.com/thread.jspa?messageID=6007612&#6007612
    This can be done with AppleScript or Unix shell script. Doing so will get you new Domain with new UUID.
    When you duplicate a blank domain, you also duplicate its UUIDs, as of now there seems to be OK as long as you keep domain separate. However, we do not know what Apple will do in the future releases, here is UUIDs usage progression in iWeb:
    We did not see much of them in iWeb1, because iWeb1 Domain.sites is flat structure.
    We see UUIDs everywhere in iWeb2 Domain.sites2, from top to bottom; every page has it own UUID.
    So, I would be skeptic about having duplicate UUIDs; even in separate domain packages.
    I ran a cross this when a friend asked me to merge his Domain.sites2 packages, and I thought people should be aware of it.
    I ended up write Applescript applications to merge, extract sites and clean existing Domain.sites2 package by assign new UUIDs.

  • Mosaic - A bunch of different small pictures make one big one

    Is there a good software title or plug in for photoshop that will allow me to make a mosaic picture, (the ones where a bunch of smaller pictures fit together to make one large one)?
    I googled it but all I could find was online services that do it online for you over the internet. I would like the actual softwre.
    Any help would be appreciated.
    Paul W.

    I tried it with standard .jpgs from two different sources. My camera and photos from a professional photographers photo shoot so I do not think it is that. The photos I used worked fine with the Mac OSX screensaver mosaic...
    Also, When I selected a small amount of photos it did not complete the image. It looked like nothing but random small pics with a ton of white space around them. When I selected a lot it crashed. Also, it always stops at about 78% complete. I was weary as to how well it would work being free and all.
    That being said, if there is one that works really well (as in as good as the Mac OSX mosaic screensaver) I would buy it. I just cant find it.
    Thanks for the suggestion though
    Paul W.

  • How to bundle a .FLA and multiple .SWF files in one .EXE?

    Hi,
    I have a .FLA file which uses loadMovieNum() to load various
    .SWF files when each one is called by the user clicking on a
    button. Each .SWF file also uses loadMovieNum() to call a second
    .SWF file. When I publish the .FLA file as a .SWF file it all works
    beautifully.
    Now I need to package the entire project into a Windows
    projector .EXE file for offline use on a computer without the Flash
    Player. When I publish the main .FLA file as a .EXE file, the .SWF
    files still load, although they blink before fully loading and
    displaying steadily.
    What I would really like to do is to bundle all the .SWF
    files into the .EXE file so when I send the finished project to the
    end user, they only have to deal with one file, rather than a
    folder with the .EXE file and multiple .SWF files.
    Is there a way to do this?
    I am using Flash 8 Professional.
    Thanks,
    Cam

    Since this isn't going to be web-based, why not include all
    the external swf files into the same Flash file and then use
    attachMovie?
    This will allow you to create one .exe file that would
    contain EVERYTHING. Since you aren't worried about loading speeds,
    you don't have to load the movie clips, but can simply create one
    large Flash file.

  • Combining Multiple XML Files into One File

    Hey Everyone,
    So I am creating a program that takes in a bunch of arrays and stores them into a single xml file. I am finding out that my lag time to add these arrays to an xml file is getting worse with each array I put into it. I am placing over 5000 arrays into this file. This isn't working how I wanted it to so I have decided I will have to make multiple arrays to be able to obtain all of my arrays without having to sit here all day. I would like to have a VI that will take all of these xml files and put them together into one xml file. Does anyone have any ideas how this could be done?
    Thanks,
    Dustin

    We need to set a few groundrules for your data:
    1. XML, maybe or maybe not LV schema
    2. You will be generating multiple tests, in your example file it is always a 2D array with 2 rows and 1 column, is this for real or just an artifact of this example.  I was suspecting that you would have multiple length arrays.
    3.  What is the timescale of your data taking?  If I am doing a relatively short, easy to repeat test, I take my chances with failures and gather all the data and write it at the end.  If it is a long, difficult measurement I tend to write in intervals (not necessarily every test, but typically every 5-10 minutes).
    If your data is fixed size, like the example file, you can append your individual arrays into one large 2D array in a couple of different ways and write the single array to the XML file.  This is more compact.  If it is not the same size, I was suggesting that you append only the new XML text to the end of the file as you go along.  At the end you finish up by writing the closing tag.  If there is a problem before that, the XML file is not readable, but easily fixed by simply adding the closing tag.  You can even get fancy by keeping track of the offset of the start of the closing tag and start overwriting the new XML+close tag at that point.  This means the file is readable even during the intermediate steps, but you are not writing the whole thing.
    I can help with an example or two once you specify the data requirements a little more.

Maybe you are looking for

  • How to sync iPhone with iTunes on another computer?

    How to sync iPhone with iTunes on a second computer, without losing everything on iPhone please? iTunes is giving me the message: "If you sync with iTunes it would delete content from iPhone and copy everything from this iTunes library"!

  • WBS Updates in R/3 not Key in BW

    In R3, POSID can be changed without impact to the WBS in R3, but with great impact to the WBS in BW, which understands the new POSID as a new WBS element. Only a full delete/load of both the WBS Master Data and Transaction Data into BW will keep the

  • Best way to iterate through multiple variables?

    I need to iterate through three different variables (arrays), and was wondering what the best way to do this would be? I am more familiar with C than I am with LabVIEW at this point, but am getting up to speed on LabVIEW pretty quickly. Normally in C

  • File-xi-mail scenario

    Hi, Can anybody explain or point me the configuration steps to be done on mail server side if I am going to send mail from XI ?? How XI will directly communicate with mail server ?? what are the information that is to be given to XI to communicate wi

  • DNG 6.7 & LR3.6 Workflow Question

    Hi, I use Lightroom 3.6 and Photoshop CS-5. I like the workflow the way it is right now, and I do not want to upgrade to Lightroom 4 because of the overwhelming number of complaints about performance. I have a four-year-old dual core processor with 8