Locale sensitive arguments in error messages

hi,
A powerful feature of JHeadstart is the ability to define local sensitive error messages, even those that are using arguments (e.g. {0},....). However the arguments are often technical DB identifiers (entity names / attribute names) that make no sense to the end-user.
How to translate the arguments in error messages as well?
kind regards,
Martijn

Sandra,
Could you please provide more details. I am just a novice in the JHeadstart arena.
In the struts-config file I only find a reference to the JhsMessageResourcesFactory class which creates an instance of the JhsMessageResources class. This class overloads a method for getting a message with replacement parameters.
Which pattern do I use to intercept this program flow. Make my own class extending JhsMessageResources or PropertyMessageResources? To make an instance of my class I also need to write my own factory class? And then, will an instance of my class be used in the processing of messages. To make it all manageable it would be nice to get a reference in my getMessage() method that points to the proper ListResourceBundle subclass object for the substitution of the arguments.
It looks like an adventure to me, but if you don't try anything it brings you nowhere;-)
Martijn

Similar Messages

  • Pacman running but getting error message

    Hello all.  I am new to Arch Linux having just installed it this weekend.  I ran an FTP install just installing the base packages at first.  I originally had difficulties getting the internet configured correctly but after checking the wiki I am up and running. 
    When I run pacman I get a message that there is an invalid locale (or incorrect -  I am at work and forgot to bring my notes with the exact message, sorry).  It then says it will use C as default.  The packages install without issue, but, wanting everything to be "right" I have to ask if I have something configured incorrectly?  If so, just head me to the right config or even the wiki page if I missed it.
    Tonight I am working on getting xorg and gnome up and running.    I have enjoyed the install very much and I have learned a lot so far.  I am looking forward to learning more.  I am so very please with how fast Arch loads.  I have been used to bigger installs with lots of things I do not use.

    LoneWolf43 wrote:
    Yes i did run the command 'locale-gen' as root.
    My language setting in rc.conf was en_US.utf-8, fixed this in locale.gen. but the error message is still there.
    My Webmin ppp dialup stopped to work aswell with pacman 3.0. Installed pacman with "pacman -Sy pacman".
    Testing a full update now if it maybe can solve some of my problems, or can i get the old pacman back? (In a easy way )
    Thanks in advance
    You didn't read what I typed.
    en_US.utf8 (mine)
    is different than
    en_US.utf-8 (yours)
    You want no hyphen.

  • Setting error messages

    Hi Guru,
    In a process chain, I have a meta chain as a local chain process.
    I've set this local chain process to send an error message if it fails.
    This local (meta) chain itself contains several processes. I see this when I double-click the local chain.
    One of the processes also will send an error message if the loading fails.
    What will make the local chain in the process chain trigger the error message? Only when the meta chain fails? If so, does this mean I need not set the local chain to send error message since I already set it in the meta chain?
    Hope you can give me an advice.
    Regards,
    Bryan

    if you just need to know that your load failed then u already have the message coming from the meta chain.
    But u might not know that the actual Process Chains also has failed ( u might ignore). So it is better to have the message at both the places. This would be useful if you are using the meta chain ( local process chains ) in mulitple Process chains..
    Regards,
    BWer
    Assign points if helpful.

  • Problem: Hotsync error message "The connection between your device and the desktop could not be establisthed."

    When I Hotsync Bluetooth connection is successful, then in step 2, "Connecting with the desktop" Hotsync errors out with message "The connection between your device and the desktop could not be establisthed.  Please check your setup and try again."
    Bluetooth configuration inticates Bluetooth serial port COM Port is set to COM3
    Hotsync setup: when I click "Local" tab I get error message "The selected port, COM5, is not available at this time.  HotSync Manager will open the port when it becomes available."
    Hotsync setup > "Local" tab > Serial Port dropdown shows only COM4.  I cannot change it to anything else.
    Note: I can send files to PC using Bluetooth just fine; error only occurs when I Hotsync using Bluetooth connection.
    Tried rebooting both laptop and Palm TX.  Still can't Hotsync.
    Operating system: Windows XP Pro
    Post relates to: Palm TX

    You are not the only one having this problem. I have REPEATEDLY tried to bluetooth sync with my new toshiba windows 7
    Palm 6.2.2 to no avail. I have tried every bluetooth device they suggest and every "fix" or "solution" that has been offered here and in on line chat with a Palm tech. No dice! I even took my computer and all components to a tech. He worked on it for 5 hours. Every once in a while for no apparent reason it will magically sync, but never consistently. Using 32bit on my husband's computer with Vista, and the docking cradle still works so I have my data. A few others have apparently had success with this problem but I think it is an accident that it works for them when it does. Otherwise it would work for everyone. We have read everything we can find and spent literally hours and hours and hours.
    I am now in the process of trying to import/export to Outlook and plan to upgrade to another device like iPhone or blackberry that will sync data with Outlook. My Palm TX also has not been able to successfully sync with that although, as I said earlier, it syncs with Palm Desktop. Good luck with your's.

  • Error message severity not translated correct when locale is changed

    We have a shell page displaying different task flows within a dynamic region. The shell page f:view tag has locale="#{LocaleManager.currentLocale}" to allow programmatic change of locale. Most of the flows uses the locale from the browser request (e.g. Danish) but some pages has fixed locale (en_US) and will always be rendered with this locale (don't ask me why. It's a requirement). For those fixed locale pages, the expression #{LocaleManager.currentLocale} always returns "en_US". It works nice, but we have a strange problem with the translation of error messages displayed by validators/converters. E.g. if a character is entered in a number field, the user will see the usual popup error message like "*Error:* The value is not a number". The message part of the error message is translated but the severity message prefix ("Error:" in the example), seems to be translated and cached once per session. If the error message popup has been displayed once in a different locale, then after change of locale, the severity message prefix continues to use the translation from the first display. The message part of the message is translated perfectly.
    Let me give an example:
    1) User enters da_DK page and enters a invalid number. Error message displayed: "*Fejl:* Værdien er ikke et tal"
    2) User enters en_US page and enters a invalid number. Error message displayed: "*Fejl:* The value is not a number"
    If the examples is reversed, then the error messages will be:
    2) "*Error:* The value is not a number"
    1) "*Error:* Værdien er ikke et tal"
    Do anyone know how to clear this translated severity message prefix, when locale is changed? Or is there a better way to overcome this issue?
    We're using JDeveloper and ADF 11.1.2.2 and are able to reproduce the issue on the embedded weblogic.

    Hi again
    ok I added another locale that ships with flash builder, and encoutered the same problem
    whenever I change the locale, the error tooltips are gone
    I was even able to fix both new locales by assigning the the validators custom error messages using resourceManager.getString() like i assign a value to all other UI strings in the application
    the default locale which is specified in the project compiler's parameters is en_US
    and my final question to you is:
    is there a best practice regarding localizing & managing the error massages Flex SDK uses?
    what is the internal path to the resource bundles that flex uses to display errors?
    it seems like it makes more sense to copy and edit an existing list of errors, rather then blow up the application code...
    can you please share your view on the matter
    thank you for your help
    Yariv

  • I am trying to install MasterCollection_CS6_LS16. When I click the install file I get this error message: We've encountered the following issues. Installation on case-sensitive volumes is not supported. Please choose a different volume for installation.

    I am trying to install MasterCollection_CS6_LS16. When I double click the install file I get this error message: We've encountered the following issues. Installation on case-sensitive volumes is not supported. Please choose a different volume for installation. What does that mean? How should I proceed?

    Hey iraravitz,
    Could you please let me know what version of OS are working on.
    You might receive this error when you attempt to install on a drive with the HFS+ Case Sensitive file system, which is not supported for installation of Adobe Creative Suite 6.
    So, please try installing on a drive that has been formatted with a supported file system.
    You might refer the KB doc link mentioned below for the same:
    Error "Case-sensitive drives not supported" or similar install error | Mac OS
    Let me know if this helps.
    Regards,
    Anubha

  • Error message: local root folder does not exist

    Greetings,
    I'm working on a MacPro 2x2.66Ghz, running DW from CS2 and
    through a strange combination of keyboard keystrokes while cleaning
    my keyboard yesterday I inadvertantly renamed my hard drive "-OX"
    from it's default. I can't seem to remember what the default name
    of my hard drive was, but i think it was simply "Macintosh". I've
    renamed it that, but on launching DW for the first time today I got
    an error message saying that "The local root folder, web_content,
    does not exist" and it gave me the option to manage sites and set
    my local root folder again. Is there a way to re-establish my local
    root folder for every site that I currently manage in one swipe, or
    do I have to go in and manually do this for each and every Site
    within my Files panel?
    Thanks for your ideas,
    Pedro

    Actually, it solved one issue but seems to have created
    another! So, at least now my Sites are all working okay with
    respect to a local root folder. But let's say I open an .html file
    by double-clicking it in the Files panel. With that file active if
    I choose Preview in Browser I get a "File Not Found" error message
    from Firefox.... even though it looks like the path to that file is
    correct.
    One thing I notice about the path in the address bar of
    Firefox is that there are 3 forward-slashes after the file: bit at
    the beginning of the line.
    For example, the page generating the error has this address:
    file:///Macintosh%20HD/Users/peter/Sites/MySite/web_content/index_vertical.html
    If you notice carefully there are 3 slashes at the beginning
    of the line. If I go to "Manage Sites" I have the settings set to
    "links relative to document" and my root folder and images folder
    show the proper locations. What have I done?
    The error message also says the following in the details
    section: Firefox can't find the file at /Macintosh
    HD/Users/peter/Sites/MySite/web_content/index_vertical.html.
    so there's a forward-slash before the hard drive.... is that
    okay?
    Thanks for your ideas!
    Pedro

  • Regarding error message in a different locale

    Hi
    I have 2 applicaions .
    one contains task flow containing 1 jsff having one input text required property set to true.
    other contains page template having 2 links to switch language based on locale.
    If I use another adf application and import task flow it works well.
    but if I import task flow into webcenter portal application as adf jar file and insert TF as region then it gives error message always in english and ok button in appropriate locale.
    If I use another adf application and import task flow it works well.
    can you suggest some solution for this.
    JDEV - 11.4

    Yes I am using default error messages generated by adf framework . for ex. required="true"
    for changing locale my code is:
      public void setLocaleEnUS() {
        // change the locale
        Locale newLocale = new Locale("en", "US");
        FacesContext fctx=FacesContext.getCurrentInstance();
        fctx.getViewRoot().setLocale(newLocale);
        setPreferredLocale(FacesContext.getCurrentInstance().getViewRoot().getLocale());
      public void setLocaleZhHK() {
        // change the locale
        Locale newLocale = new Locale("zh", "TW");
        FacesContext fctx=FacesContext.getCurrentInstance();
        fctx.getViewRoot().setLocale(newLocale);
        setPreferredLocale(FacesContext.getCurrentInstance().getViewRoot().getLocale());
      }

  • Error message while updating Motion. 5.0.2: The file "InkBleed03.mov" couldn't be saved in the folder "Particle Images.localized".

    While trying to update Motion 5.0.2 I continuously reviece this follwoing error message.
    The file “InkBleed03.mov” couldn’t be saved in the folder “Particle Images.localized”.
    Motion will not allow me to update.
    Running Mac OS X Version 10.7.2  Lion on a MacBook Pro
    Processor 2.8 GHz Intel Core 2 Duo
    Any ideas?

    Hi Frank,
    Thanks.
    My HD is a "normal" HD, so I guess it's HFS+. (According to Disk Utility it is Mac OS Extended (Journaled).
    The NAS is WD MyBook Live Duo. I just plugged into my Time Machine.
    I am relocating using Aperture "relocate originals for project" under the File tab.
    Ahh, thanks for the answer to question 1.
    Yes, I am trying to relocate them, but tried different things to find the problem.
    And the problem seems to be that when an image gets an extra attribute (when it's downloaded from the internet, when it is comes from a mail message) then Aperture seems not to be able to move the file.
    I.e. Aperture presumeably asks the Finder or kernel to perform this task, and this then fails because of the extra attirbutes that were set.
    I now found a way of manually removing the extra attributes, but that is a pain.
    Think of this normal workflow:
    - someone sends me an email containing images
    - I move the images to my Desktop
    - I then import the images into Aperture
    - I then decide to relocate my images for that project to my NAS
    Then is when this problem occurs.
    So I just tried to relocate to another place on my HD.
    That works fine.
    I looked again at the error message.
    And it says "could not set attributes com.apple.metadata:kMDItemDownloadedDate on destination file descriptor" .
    So, yes, it seems like it has to do with the NAS not supporting setting the extra attributes.
    And as long as there are no extra attributes on an image, there is no problem.
    (Not completely true, but I have another thread about that)
    Thanks Frank, I have to digest this a bit.
    Regards
    Jan

  • "invalid argument" error message when connecting to the App store after upgrading iphone 4 to 5.0 firmware

    Hi everyone,
    I have seen many topics about this problem but none of them helped and they seem to date a little bit so I would like to ask again.
    here is the situation :
    we have two iphone 4 in the house and everything was going fine until we did the update to the new 5.0 firmware. there was no problem while the update had only been applied to the first iphone... but after updating the second one, we now have the same problem on both iphones. We can still connect to the internet from the iphone just fine but the connection is erratic at best with the itunes store because we keep getting cut by this dreaded error message "connection to the itunes store impossible, "invalid argument" occasionnally we'd get a different message that says "connection reset by peer"
    - what is invalid argument mean anyway???
    - I have tried to renew the lease in the network settings, it didn't work
    - I have tried to reset the network setting, it didn't help
    - I have checked in the network setting for the IP address, it starts with 192.xx.xx..... which is supposed to be a good thing as opposed to 162.xx.xx....
    - I have reset my router, nothing happened...
    - I have tried unauthorising my computer to any accounts because we were afraid that using two iphones with two different itunes store accounts one the same computer may have caused these problems.. but no luck
    I am running out of ideas, I would like to renew my frustration to apple because we buy these expensive products and still seem to suffers from stupid bugs... I was under the impression that these things were tested !!! anyway if anyone has found a definitive solution to this problem (short of burning your iphone out of anger) it would be deeply appreciated.
    thx

    Hi!
    I'm also using Air SDK 15 and I'm getting  Invalid Bundle Error:
    Adobe Air iOS Invalid Bundle
    The bundle does not support the minimum version os specified in info.plisthttp://stackoverflow.com/questions/26047837/adobe-air-ios-invalid-bundle-the-bundle-does-n ot-support-the-minimum-version-os
    Really need help
    Michael

  • ITunes 9.0 - Not localized Error Message

    I downloaded/upgraded my iTunes twice and both times it popped up an error message saying "This version of iTunes has not been correctly localized for this language. Please run the English version". Help? I want my 5000 songs back

    Same here. Upgraded from software update, then tried to fix via DLing from the website. No good. There is another person who started a thread re: same error and he had success trashing files then reinstalling. However, he was on Snow Leopard 10.6. It seems it may be a Tiger problem, as we are all on 10.4.11.
    Any ideas? I miss my tunes

  • After  a system restore, I get an error message telling me that "This version of iTunes has not been correctly localized for this language.  Please run the English version." the E

    I did a system restore, trying to get rid of the new update (which I HATE), and now when I try to open iTunes, I get an error message telling me that "This version of iTunes has not been correctly localized for this language.  Please run the English version."  You can't change the language option unless you can open iTunes - and IT WON'T OPEN!!!  What a piece of crap!  If there existed an iTunes substitute, I would purchase it in a hot minute! 

    Strip it out and start again.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you really want to roll back to 11.4 uninstall all iTunes/Apple components as described in the second box, restore the pre-upgrade version of the library as described in Empty/corrupt iTunes library after upgrade/crash, then download and install from one of these direct links:
    iTunes 11.4.0.18 for Windows (32-bit) - iTunesSetup.exe (2014-09-09)
    iTunes 11.4.0.18 for Windows (64-bit) - iTunes64Setup.exe (2014-09-09)
    tt2

  • MacAir - error message "This version of itunes has not been correctly localized for this language. Please run the english version" Saw other answers for windows users, I have a MacAir. never used any other language but English

    Trying to open iTunes - get an error message saying "This version of itunes has not been correctly localized for this language. Please run the english version" Saw other answers for windows users, I have a MacAir. never used any other language but English so I have no clue what the problem is.  I just want to update my phone and back it up.

    Let's try a repair install of iTunes.
    Restart the PC first.
    If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair".
    If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", and click "Change". Select "Repair" and click "Next" as per the following screenshot:
    Can you launch your iTunes now?

  • I've tried to open itunes but just get error message saying this version of itunes has not been correctly localized for this language. Please run the english version

    Looking for some help.  I am trying to open itunes and I keep getting an error message saying "This version of itunes  has not been correctly localized for this language. Please run the english version"
    Can anyone help.

    Hi there nisbetk,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/ts1717
    -Griff W.

  • Error message saying "iTunes has not been correctly localized for this language"

    When trying to launch iTunes I'm getting an error message saying "iTunes has not been correctly localized for this language.  Please run the English version"?  Any suggestions are much appreciated and thank you in advance!

    Let's try a repair install of iTunes.
    Restart the PC first.
    If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair".
    If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", and click "Change". Select "Repair" and click "Next" as per the following screenshot:
    Can you launch your iTunes now?

Maybe you are looking for

  • Email and texts

    Hi, I have lost my email and text connection.  Any idea how I can retrieve it please?  Thanks

  • Copy Control settings : Copy Only Manual conditions

    Hi, I have following configuration in SPRO for 'copying control of item categories': Source item category- ZSPP Target item category - ZPQL Copying routine - 900004 Copy Conditions - Only Copy Manual conditions This copy control configuration will be

  • Media Queries disappearing in DW CC

    When I set up my site, I had 3 media queries listed one with a mid width of 481 and one with a min width of 769. This is what is listed under the @media pane: GLOBAL @media only screen and (min-width:481px) What happened to my larger-screen media que

  • Iphoto deleted my events

    iPhoto deleted my events. How do I restore them? I have a time capsule. Help me Obi Won, your my only hope. Mr. Sharky

  • Rental movies in original language

    I just downloaded a movie, and find that I can only see it in Spanish, and have no option to change to the original language, which is English. Ho w aggravating!! I live in Spain. Any way to fix this?