Resource bundle for this purpose? Is it ok?

Hi all,
I want to use ResourceBundle for some other situation which is not related to internationalization.
We have a program in which we want need to externalize our strings but not for the sake of internationalization. To give a little example, let's say we have a Welcome screen on which we would like to say: Welcome to XYZ! and we want to customize it to also say Welcome to ABC depending on some program argument and loading a different properties file.
Although ResourceBundles are specialized for internationalization, ResourceBundle seems to be a better choice than to create my own classes and handing them. But I don't know whether I can use it for this kind of a purpose. Any inputs?
Thank you,
Srikanth

You can certainly use ResourceBundle for such things, but it's probably cleaner to use a Properties object since it's not going to go through all the locale detection stuff.
You can just do:
InputStream is = getClass().getResourceAsStream("my.properties");
Properties props = new Properties();
props.load(is);
is.close();

Similar Messages

  • Jheadstart oes not generate NLS key in resource bundle for Static domains

    Hello
    according to jhsdevguide1013 on section 6.5.2 about "Translation of static domains" when I check "Generate NLS-enabled prompts and tabs" and run application generator , Jheadstart oes not generate NLS key in resource bundle for Static domains.
    Does anybody can help us for this problem?

    Thank you for reporting this, I have logged it as a bug.
    As a workaround, you can customize the Generator Template default/item/staticDomainOptions.vm
    See http://blogs.oracle.com/jheadstart/2006/11/30#a108 for an example how to let a template generate extra resource bundle keys.
    Hope this helps,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Resource Bundle for Detailed Navigation

    Hi All,
    I am trying to modify the text "Detailed Navigation".I was not able to find the Resource Bundle for that.can any one let me know the location for the resource Bundle for changing the Detailed navigation text.
    Thanks,
    sk

    Hi,
    Up until now, there was no resource bundle for admin properties in a portal component. Properties were defined as component properties in the portalapp.xml (in english). Once you created an iView, you could then translate the properties in the PCD (for example, with translation worklist).
    This will change with an upcoming version -- perhaps 2004s SP14.
    Hope this helps and I understood your situation correctly.
    Daniel

  • I am having trouble trying to get my address book from my mac (just downloaded Lion for this purpose) to my 3G ipad. Set up an icloud account but still confused! Please help !

    I updated my mac with  os x Lion so that I could accomplish moving my address book from the mac to my new IPad 3G. I also set up an icloud account for this purpose, but I *still* cannot figure out how to move my address book from one computer to the other. When I'm on my mac and try to use bluetooth to export the address book, I'm able to find my ipad but I soon get a message that it does not support the necessary services. I have no idea what's going on and would appreciate any advice. tks in advance, Sarah

    blacksheepfibers wrote:
    I updated my mac with  os x Lion so that I could accomplish moving my address book from the mac to my new IPad 3G. I also set up an icloud account for this purpose, but I *still* cannot figure out how to move my address book from one computer to the other. When I'm on my mac and try to use bluetooth to export the address book, I'm able to find my ipad but I soon get a message that it does not support the necessary services. I have no idea what's going on and would appreciate any advice. tks in advance, Sarah
    The address book syncs via iCloud, not Bluetooth or iTunes.
    You upgraded to Lion so you could use iCoud.
    On the computer. go to Apple menu > System prefs > iCloud.
    Sign into your iCloud account.
    Tick everything.
    This enalbes the se items syncing to iCloud.
    On the iPad, Settings > Mail, Contacts, Calendars.
    Create a new iCloud account.
    Sign in with the same AppleID as your computer.
    Settings > iCloud and turn everything on.
    BAM!
    That is all you need to do.
    Your contacts (and all other checked items checked) will sync between computer and iPad.
    No need to use iTunes

  • I am trying to use Find My Phone for people to follow me on the NYC Marathon next week.  Is there a way to set up a temporary User ID and Password to give out to people for this purpose?  I would obviously want to delete that log in info after the race.

    I would like to use Find My Phone for friends and family to follow me during the NYC Marathon next week.  Is there a way to set up or temporarily change my User ID and Password for this purpose?

    New York Runners has an app that is specially designed to do exactly that. It's (or will be) available in the App Store.
    http://www.nytimes.com/2011/10/27/sports/for-new-york-city-marathons-fans-a-cell phone-app-to-keep-in-touch.html?ref=technology
    You might also look at apps like RunMeter. It will let you send updates by email, Facebook or Twitter. Glympse is another app that, though not designed specifically for runners, might also be useful.

  • HT204053 I had Snow Leopard and was using iWeb and Filezilla for my website (not MobileMe). Wanting to move to single-click publishing, I now find it is not supported by iCloud and Mountain Lion. I feel cheated, having bought it mainly for this purpose!

    I had Snow Leopard and was using iWeb and Filezilla for my website (not MobileMe). Wanting to move to single-click publishing (supported by MobileMe), I now find it is not supported by iCloud and Mountain Lion. I feel cheated, having bought it mainly for this purpose! The other thing they don't tell you is that Mountain Lion disables OfficeMac, and I am considering uninstalling it for that reason - do I get my money back?!

    You stated; "Mountain Lion disables OfficeMac"
    That is not true.
    Mountain Lion does not have Rosetta so it is not capable of executing PowerPC code. If you have MS Office 2004 that is coded in PowerPC code and will not run in Mountain Lion. What you need to do is upgrade to an Intel version of Office.
    Allan

  • I have Mac Pro 2007, which have no bluetooth hardware. What should I do to use Apple wireless keyboard and magic mouse??? Can 'third party's internal bluetooth card' be used for this purpose? Help please...

    I have Mac Pro 2007, which have no bluetooth hardware. What should I do to use Apple wireless keyboard and magic mouse??? Can 'third party's internal bluetooth card' be used for this purpose? Help me please...

    You can find the Apple Bluetooth card on eBay for as little ten dollars (says its for the 2008 model Mac Pro, not sure about the 2007).
    http://www.ebay.com/itm/Bluetooth-Board-iMac-and-Mac-Pro-922-8233-922-8233-/1208 49278570
    Here is a link to a full explanation of the card and how to install it. Part numbers may differ a bit as that is an old article and newer models have come out.
    http://www.xlr8yourmac.com/systems/Mac_Pro/Bluetooth_MacPro_install/Bluetooth_Ma cPro_install.html
    Just make sure that the part will work in your model Mac Pro. To that end, you may be better off avoiding eBay and going to a parts reseller. There are even third party cards that use the internal Apple bluetooth slot.
    http://fastmac.com/bluetooth.php
    In theory, using a USB or PCI card will work at login so long as it is recognized by Apples drivers. You say you need to launch an application to use your current USB Bluetooth dongle? If it is not controlled by the Bluetooth icon in the menu bar then it must be using a third party driver of some sort. Unfortunately, I don't know off hand which USB and PCI cards are supported.

  • My legally licensed CS6 has stopped working and reverted to trial mode.  I paid a bundle for this and don't care to pay more to keep the software I legally own.  There seems to be no customer support for this anymore, what do I do?

    My legally licensed CS6 has stopped working and reverted to trial mode.  I paid a bundle for this and don't care to pay more to keep the software I legally own.  There seems to be no customer support for this anymore, what do I do?
    The only answers I found were things like:
    Upgrade to CC or You're out of luck.
    This is not okay.
    Please Help!

    "Similar" problem here. I have bought a new PC, and want to install my precious CS5.5 to the new system.
    All I get is an "illegal serial number" message. Even though I deactivated on the old pc and even though I copy the serial (for the pc version) from my official products page (or whatever that page is called)...
    That's when the ordeal started to get someone at Adobe to figure out what is wrong.
    No voice support for my "old" version. 2011? Old? Come on?!
    The chat support is a Turin test, with no solution whatsoever.
    The websites linked to in the final "chat" lines which should answer my questions are utterly useless.
    So last attempt: I try overhere... and add my questions to you, OP...
    Note that the only way in which I can get a fast human reply is by calling the number for buying the new CC! Shame on you Adobe!

  • [svn:fx-trunk] 7795: fix locale names used in resource bundles for simplified Chinese and traditional Chinese  .

    Revision: 7795
    Author:   [email protected]
    Date:     2009-06-12 12:18:13 -0700 (Fri, 12 Jun 2009)
    Log Message:
    fix locale names used in resource bundles for simplified Chinese and traditional Chinese . zh_cn to zh_CN  and zh_tw to zh_TW
    bug: https://bugs.adobe.com/jira/browse/SDK-21174
    qa: localization team (yes)
    checkintests: pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21174
    Modified Paths:
        flex/sdk/trunk/modules/compiler/build.xml

    I'm more of a 1.3 chick myself, but the words are the same just in a different language.
    1. Is Tomcat running?
    2. Have you configured the ajp13 connector on 8009 in Tomcat? (Should it be ajp13 for Apache 2.0? - I really must upgrade)

  • I cannot install ODX Yosemite over OSX Mavericks as my Mac Book Pro (early 2011) advises that the disc "Mackintosh HD" is used for Time Machine back ups. This is not the case however as I use a separate external HD for this purpose, help please ?!  T

    I cannot install ODX Yosemite over OSX Mavericks as my Mac Book Pro (early 2011) advises that the disc "Mackintosh HD" is used for Time Machine back ups. This is not the case however as I use a separate external HD for this purpose, help please ?!
    Thanks

    Check this link out...
    OS X: Cannot install on a volume used by Time Machine for backups
    I was apart of this thread and it helped the OP...
    Re: System installer thinks my main drive is my time Machine backup and won't install.
    KOT

  • How to turn off "Adobe PDF settings for Autodes AutoCAD documents" dialog box between pages of a batch conversion?  There is a check box for this purpose, but it is grayed out, and of course unusable?!

    How to turn off "Adobe PDF settings for Autodes AutoCAD documents" dialog box between pages of a batch conversion?  There is a check box for this purpose, but it is grayed out, and of course unusable?!

    How to turn off "Adobe PDF settings for Autodes AutoCAD documents" dialog box between pages of a batch conversion?  There is a check box for this purpose, but it is grayed out, and of course unusable?!

  • HT201328 I'd like to unlock my iPhone 5 for use on a trip overseas. Is it possible to unlock it for this purpose?

    I'd like to unlock my iPhone 5 for use on a trip overseas. Is it possible to unlock it for this purpose? I bought it before January 26th, so my understanding is that it is legal for me to do so without carrier approval.
    To be clear, I don't wish to leave AT&T when in the US, but while visiting my wife's relatives we really need a local number that they can call. I asked AT&T to do it for me, but they refused. I know there are shady ways to get it done, but honestly, if I wanted to live in that realm, I would have bought an Android.
    Thanks in advance!

    I'm not saying you're definitely wrong about the legality, but I certainly have different information:
    http://arstechnica.com/tech-policy/2013/01/unlocking-new-cell-phones-to-become-i llegal-on-saturday/
    I'm no lawyer, but the official document appears to support my assertion that unlocking a phone purchased before January 26th is grandfathered into the prior exemption which allowed unlocking any phone at any time.
    http://www.gpo.gov/fdsys/pkg/FR-2012-10-26/html/2012-26308.htm
    Thanks for mentioning the warranty issue. I cannot find an authoritative reference regarding it, though. What I have read indicates that Apple has been fairly vocal about stating that jailbreaking may void your warranty, but has been pretty quiet about unlocking. None of these posts, however, gives any reference either way, so it is difficult to ***** the accuracy.
    I'm open to hearing different information as I definitely do not know everything about this subject.
    If possible, can you reference your sources?

  • TS4009 I upgraded my Icloud storage yesterday by 10GB, but one day later realize I did not need to do so.  The apple advice is to cancel within 15 days for a refund, but does not tell you how to do so.  Anyone know how to contact apple for this purpose?

    I upgraded my Icloud storage yesterday by 10GB, but one day later realize I did not need to do so.  The apple advice is to cancel within 15 days for a refund, but does not tell you how to do so.  Anyone know how to contact apple for this purpose?

    You would have to contact Apple in order to do that. Just use this link to ask Apple for a refund: http://www.apple.com/support/contact/

  • What Extractor can be used for this purpose?

    Hi all
    I have a requirement for a new report. The user wants to get a report regarding inbound cost saving including materials, material group, MRP controller, vendor, date, qty, actual inbound transportation cost, standard transportation cost which is fixed in SAP and variance between actual and standard.
    Can any one advice me what Extractor and Extract Structure can be used for this purpose?
    Thanks in advance
    Ishi
    Edited by: eletter on Sep 28, 2009 11:11 AM

    Hi
    Extract structure
    The extract structure, data from a DataSource is staged in the source system. The extract structure contains the amount of fields that are offered by an extractor in the source system for the data loading process.
    Extractors
    Extractors is a data retrieval mechanisms in the SAP source system. Which can fill the extract structure of a data source with the data from the SAP source system datasets. The extractor may be able to supply data to more fields than exist in the extract structure.
    Hope this helps you
    santosh

  • How, step by step, can one backup Quicken Essentials on a CD?  (When I insert a new blank and unlabeled CD to use for this purpose, no CD logo appears on my desktop.)

    How, step by step, can one backup Quicken Essentials on a CD?  When I insert a blank unlabeled CD for this purpose, no CD logo appears on my desktop.  Moreover, when I select BACKUP on the Quicken Essentials File drop-down menu, the CD is not listed as an optional place to backup. 

    Quicken Essentials isn't an Apple product, I'd suggest posting on an Intuit or Quicken Essentials forum. That is where users of their software will probably be hanging out.

Maybe you are looking for

  • Why does my macbook pro non-retina cannot detect NVIDIA GeFORCE GT 650M? It can only detect my Intel HD

    I bought a macbook pro non-retina with NVIDIA GeForce GT 650M, but it doesn't appear on the system profiler "About This Mac". It only shows the Intel HD Graphics 4000. How will I make NVIDIA work?

  • "game controllers" won't function

    Asking help for this problem everywhere, figured I'd come to MSI because it is their fault.... Anyways I have a USB gamepad which I'm trying to connect to my computer.  This gamepad needs "game controllers" in control panel to function.  Everytime I

  • Changing case when printing on Photos..( Elements4)

    This sounds silly but when printing on photos (elements 4) the font is most often in UPPER CASE and I am not able to change it... AND NO...my keyboard caps lock is NOT on . Help please!!! This is driving me crazy...

  • Newest os x upgrade won't boot

    I just purchased and tried to install the latest OS X upgrade, but the installer quit with an error saying there is a problem and the system can not boot. Any suggestions on how to troubleshoot a system that won't boot? I do have a backup on an exter

  • LiveCycle Designer 7 and Rights-Enabled PDFs

    I'm trying to find out more about how to create and save a fillable PDF with the rights-enabled so the user can save and send the PDF instead of senting the ugly data file. I'm confused because the info I find says to be able to do this you need Live