Dynamically Changing Language of web content

Hi guys,
here's my situation, i'm building a web application, and the user needs to be able to select the language of choice for displaying content.. as far as implementing this , i'm a bit lost, can anyboby out there point me in the right direction as to materials to read/ examples ..
would really appreciate this ...
Thanks...

Check the various tutorials and look for a chaper on Internationalization (sometimes called I18N) or Localization. The J2EE 5 Tutorial has such a chapter (Chapter 14). I haven't looked at that chapter yet so I'm not sure how much it covers. It will definitely tell you how to handle literals in your jsps and things like that. What I'm not sure it covers is the situation where you are getting content out of a database for display. If this applies to your situation, the database will need to have the content in multiple langages with a column indicating the language. Language dependant columns would be in separate tables than non-language dependant columns and you would do joins with the desired language one of the join conditions.

Similar Messages

  • Problem: Changing Language for Web Dynpro Java within NW Portal (i18n)

    Hi Experts out there,
    I hope all you had a nice Christmas and a big New Years Eve :)!!!
    i got a challenge for you about WD Java and internationalization (i18n)
    Here is the scenario:
    We are using a SAP NetWeaver Portal 7.0 and my task is to implement some smaller Web Dynpro  Applications.
    These Applications must be i18n conform, so i just created (according to the corresponding WD Java tutorial) some ".xlf" files.
    Okay...Everything is working fine. The user can log at the portal and the application is displayed in his language, which is "english" or "german". (the application is just a simple form)
    So far so good...Now here comes the point where it's getting tricky...
    When the user wants to change his assigned language (of the portal user) he can use the "personalize" button in the Masthead (-> change portal language). All the portal content should now be displayed in his new chosen language.
    For example the user is logged into the portal with "german" as portal language and now changes his languages settings into "english". After this everything in the portal (navigation, portal iViews ) is displayed in the changed language (from english into german) ...
    BUT: my Web Dynpro  Java Application stays as the original languages setting was. That means the whole portal is now english, but my WD Java Appl. stays german .
    Only if the user logs of and logs in again, the WD Java Appl. is displayed in the corresponding portal language...
    VERY Strange?!?!
    Can anybody give me a hint how to solve this problem?
    I guess i have to re-initiate the Web Dynpro  Application some how ...(like killing the application and restarting it ...) but is just a "weak guess"...
    Any Help / Hint is more than welcome !!!
    Cheers
    Stefan

    Hi Stefan,
    This correct see SAP Note [947081|https://service.sap.com/sap/support/notes/947081]
    If the locale for the Web Dynpro iView is changed in the portal (through portal personalization), this is not reflected in the running login session. The user needs to logoff and login again, in order to see the locale change in the Web Dynpro iView.
    Regards,
    Leo

  • Change language in WEB CRM UI

    Hi All,
    is there a way to change language in UI (web browser level) of WEB Crm? (even thorugh an SDK)?
    Best Regards,
    Vangelis Kanellopoulos
    Edited by: Vangelis Kanellopoulos on Oct 5, 2009 12:55 PM

    Yes you can. Just select the section that you are trying to change from the Namespace drop down and click the finder. This should give you a list of all of the different strings and their correpsonding translation. You can then change the translation and save your changes.

  • Dynamically changing width of web form

    Folks,
    I'm sure someone must have come up with the same problem as me.
    We have a forms 6i system running on the intranet (IE5). The forms fill the whole of the browser window if the client PC has a resolution of 800 X 640, but for larger resolutions (like 1024 X 768), the form only occupies part of the browser window. Now, I know that this is dependent on the 'WIDTH=' and 'HEIGHT=' parameters on the formsweb.cfg file. Indeed, if I increase these values, and then run the system on PC's that have resolutions of 1024 X 768, then the forms now look OK. But of course, this now causes a problem where the PC's have lower resolutions! What I want to do, is to dynamically change the WIDTH and HEIGHT parameter values dependent on the users machine settings. I can use javascript to get the users' PC details - no problem. But when I try to code this into the BASEJINI.HTM file, then I cannot run the system at all. I don't think I can use javascript directly in the FORMSWEB.CFG file, as it isn't a 'html' file.
    Has anyone else had this problem ? - you must have if you develop forms on the web with different resolutions settings. And how did you guys get around it?
    Please help!
    Harry
    null

    thanx for help, Samir! what I want exactly is: vary the width of controls on the screen. for example, if I have two buttons named "assignment" and "help", I want the width of the buttons to be different (and be proportionate to) as per the length of the caption. what kind of JavaScript code shoud I write to achive this? Pls help out... thanks,Girish

  • Dynamic Changes to the JPanel Content

    Hi to All,
    I have a JPanel and it contains two subpanels in it. second sub panel content
    is dynamic.
    Eg: Main Panel
    - Sub Panel1 (Static)
    - Sub Panel2 (Dynamic)
    Sub Panel2 Contains Array of Controls(dynamic).
    Whenever i add new controls to Sub Panel2, it is not displaying newly added
    controls.
    Only when i am adjusting SplitPane divider, it is showing changes.
    I also placed Main Panel in JScrollPane. So it may not be a space problem.
    Please help me.

    Whenver you add/remove components to/from a container you need to revalidate(), the container so the components can be layed out by the Layout Manager.

  • How can change language of application dynamic?

    In the dialog I have combo box in which I can select desire language for application. When I select value I save this value in the config file. But language change ONLY when I exit and again enter to the application. How can change language of application dynamic (without exit from application) ?

    alexpass wrote:
    In the dialog I have combo box in which I can select desire language for application. When I select value I save this value in the config file. But language change ONLY when I exit and again enter to the application. How can change language of application dynamic (without exit from application) ?I guess your application sets the locale at "startup", based on the contents of the config file, using a call to java.util .Locale.setDefault(Locale). Did you try to call this method in response to the selection in the combobox?
    This won't refresh all widgets already created however. You probably have to re-create them all.
    There may be case-by-case way to refresh them, for example Locale-dependent layout may be taken into account dynamically. Try and tell us.

  • Hi all: Change language Code in CI based web services.

    I am developing CI based soap web services in peoplesoft. i want response in different in languages. I need that language is selected at request time. mean need to change Language Code in CI based web services.
    Can anybody help me?
    thanks

    You posted a duplicated thread here :
    Hi all: Change language Code in CI based web services.
    -- mod. action: locking this one --
    Nicolas.

  • Dynamic web content base on 9i/10g database

    dear all,
    i need to find sample of build dynamic web content base on
    9i/10g database. i remember otn have a sample for dynamic
    web content. but not found in sample code at otn now.
    who can tell me where can find it ?
    best regards
    boris

    See the last section of this link. You will get version specific information.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1013164

  • Dynamically change the contents of one combo box based on the other

    Hi Forum,
    I have a question which might have a possibly simple answer. Well anyway help me out since i could not find the simple answer.
    I am building an application using Swing and binding with BC4J using JClient. My GUI has combo boxes, grids, editboxes. My requirement is that i should be able to dynamically change the contents of one combo box based on the selected item in trhe previous combo box. For example, when i choose a country in the "country combo box", the "states combo box" should show the list of the states of the selected country.
    Now how do i do this using binding. If not, how do i write custom querirs in BC4J layer and return a resultset to the remote application so theat i can populate the dependent combo boxes.
    I will appreciate if anyone can help me out in this regard.
    Thank You
    Sumit

    there could be quite a few number of ways of solving this problem.
    One way is through event handlers.
    taking your example as a model when user selects a country you could fire an action with a flag set to ture. A method will return the states from the DB or your temporary files or what ever and then the true flag will be used in the states combo box rendering.
    other way: javascript
    this might be a bit clumsy as you will need the states information in a property file and you can get the info as the user selects a country.
    regards,
    raj

  • How can I change countries to purchase content in foreign languages?

    How can I change countries to purchase content in foreign languages?

    You can buy ONLY from the itunes store of your country of residence ( proven by the valid billing address on your credit card) AND ONLY while you are physically located inside the borders of that country.
    You cannot buy from other countries itunes store.
    Sorry.

  • Configurator not saving changes (Web Content)

    Hi.
    I am new to configurator.
    I have applied a base profile (many different settings) together with a separate profile for restricted websites.
    The base filter's 'Web Content Filter' is not set.
    The 'TwinsWebFilter' only has one payload ...the Web Content Filter.
    I have two issues.
    1. I can limit to Specific Websites. I add http://www.bbc.co.uk to the list and apply. This seems to filter all sites except the BBC (good) AND Apple.com. It does not seem to block Apple.com even though it is not in the whitelist. How do I block it? How do I know what other sites have not been blocked?
    2. When I double click on the policy within the 'supervise' panel, it opens for editing. I click on the 'Web Content Fillter' and it shows that it is back to 'Limit Adult Content' ... even though I had saved it as specific websites only. When I choose the 'specific' option, I see the site (BBC) that I has already added. I am obviously concerned that when the iPad is refreshed next time, it will be refreshed to the 'adult' section without my knowing. Are there any other profile setting that may conflict with my choice of 'Specific sites only'?
    Thanks.

    HI Lee,
    I am facing the same issue.
    Were U able to resolve this Or any work around ?
    _vishal

  • Unable to change language for SAP BW Report Iview

    Dear all
    We are currently rolling out BW Web Templates can be displayed in both EN and MS languages. The language can be changed via the URL that we display, e.g.
    For English Language:
    http://<hostname>:<port>/sap/bw/BEx?SAP-LANGUAGE=EN&cmd=ldoc&template_id=ZTEST
    For Malay Language :
    http://<hostname>:<port>/sap/bw/BEx?SAP-LANGUAGE=7&cmd=ldoc&template_id=ZTEST
    We have published these templates into Ent. Portal 6 using SAP BW Report Iview, but unfortunately we cannot view the report in the Malay language (SAP-LANGUAGE=7), even though we have inserted the command SAP-LANGUAGE=7 in the SAP BW Report Iview query string. All the reports, although defaulted to SAP-LANGUAGE=7 displays in English. We also tried to set the language settings for the Iview, but there are no language 7 or MS in the Iview. It can only be defaulted to the Portal’s language, which is English.
    Note that the reports can be viewed in the different languages if we using the URL separately outside of Portal, and also within BW Bex Analyzer itself. Only the Portal doesn’t allow us to view the reports in MS language.
    Can someone help us on this matter? All helps really appreciated. Thanks a lot.

    Hi Chris,
    That's a bit odd indeed. If I understand your question correctly, you do get the BW reports in the correct language (either English or Malay) using the url's in your post but not when using them within a standard BW report iView?
    The language setting for the iView has, unfortunately, nothing to do with the language for the content itself but can you tell me what the requested URL is for both Reports?
    The BW Report iView is based on the Application Integration Component that generates the URL based on the paramaters you provide in the BW report iView.The following template is being used: <iView[PORTAl_URL]>?System=<System[url_Encode]>&Report=<Report>&DynamicParameter=<DynamicParameter[url_Encode]>. I could be that the generation of the URL fails due to the 7 (don't know why, just a gut feeling because it's the only thing that's different between those urls). You could try to use create an iView based on the Application Integrator instead (some more control over the URL template) but first you need to check whether the URL generated by the iView is correct.
    Cheers!
    Frodo
    P.S: Award points if you find this useful

  • Problem with navigation and masthead by changing languages with Anonymous

    Hi All,
    i have a problem with navigation and masthead by changin the language when accessing as anonymous user.
    Ive created two additional users anon_de  (with language german )and anon_en (for english).
    I've created also two links in the in masthead:
    /irj/portal/anonymous?guest_user=anon_en and /irj/portal/anonymous?guest_user=anon_de
    When i choose "de" for the first time it works fine, but when i choose "en" again the language in the content are is changing to english again, but not in navigation and masthead. When i click again on link for "en" the languge is set to english. Strange thing is that when i click on "de" instead the portal content change to german but masthead and navigation are in english now, as it should be before....
    It seems that masthead and navigation have always prevoius language selected.
    Do you know, what could be the reason of that strange behavior?
    Thanks for help
    Karol

    Hi Detlev,
    you are right. the user is not "updated" fast enough... the strange thing is, that it works by the first time i change the language...
    well.. i can implement that workaround as you suposed, but it would be a really workaround as the same page will be requestes second time, causing requests number to be double..
    Thanks for help
    ps. i forgot to mark this message as question to give points.. if you tell me how i can change that ill reward your answer..

  • WHy must I shut down firefox to get it to show changes in my web site? Safari has a refresh button that does this, but there isn'r any such thing in Firefx.

    I have changed the fonts on some of my web pages. I would like to preview them before quiting, but Firefox doesn't refresh teh pages. Changing to another site and then reopening my site doesn't do it, even though the pages show correctly on another computer. The only way the page will display the new changes is to shut Firefox down and reopen it. This makes it arduous when working on changes to my site.
    Is there a setting or preference that will allow this?

    * Clear the Cache
    Press the '''<Alt>''' or '''<F10>''' key to bring up the tool bar.
    Followed by; Windows; '''Tools > Options''' Linux; '''Edit > Preferences'''
    Mac; ''application name'' '''> Preferences'''
    Then '''Advanced > Network > Cached Web Content: Clear Now'''
    * Refresh the web page.
    Hold down the '''<Control>''' key, and press '''<F5>'''.

  • Short of dismantling and recreating a page how do i find out whats causing [Error: Invalid URL for Web Content Overlay]

    Hi,
    i received an indesign file to include in a folio that had links to the creators desktop where they had the assets for the web content overlay. When i try to update the folio i get the error message:
    "Content generation error.
    [Error: Invalid URL for Web Content Overlay]"
    Which is fair enough.
    The problem is, i have gone through and changed all URLs that I can see, but there is one somewhere, that I just can't find.
    Is there a way to get a list of all web content overlays in a particular file? otherwise i will need to recreate the whole page again, and it has some pretty complex interactions which i rather wouldn't do.
    I also cannot ask the original doc creator to just change the links as i'm sure he'll have the same issues as me, at not being able to track down the erroneous link.
    The problem I have with DPS is that its not very transparent. you'll have to click on everything, and into every group to see what actions are on it, which can be extremely time consuming and frustrating when complex interactions are included.
    thanks in advance for any assistance

    I’ve found watching the process helpful to narrow down the page.
    Working off a duplicate of the file, delete one layer at a time until you figure out what layer the problem is on.
    From there it’s a bit easier to narrow down.

Maybe you are looking for

  • Error encountered when saving a query

    hi, I created a new query in the development system and while saving it i get an error the query cannot be saved due to problem in transport,Bex transport request is nto available,choose teh existing request. I did create atransport requests and trie

  • Downgrade from Windows 8.1 enterprise to windows 7 Ultimate or Professional

    I have installed windows 8.1 and am not happy neither with its performance or it's UI; I have my own copy of Windows 7 Ultimate can I downgrade from Windows 8.1 to Windows 7 Ultimate? I need to keep my applications and files.

  • Unable to boot on Mac Mini from DVD burned from .iso image

    I'm following the Beginner's Guide to try and install Arch on a Mac Mini "Late 2009". I have downloaded archlinux-2014.10.01-dual.iso and associated .sig, and have verified it using the gpg2 command described in the guide (including the link to http:

  • Can't install Photoshop Elements 12 from the folder on my laptop

    Hi. I downloaded Photoshop Elements 12 into a folder on my laptop. Adobe Installer ran ok, but it didn't link to the folder and now I can't find a way to install PSE12 from the available folders. Is there a folder I can open/unzip to make it install?

  • TTG HTML Gallery

    TTG HTML Gallery is pretty much what it sounds like: a new HTML gallery for Lightroom. It outputs valid XHTML and CSS, and a lot more customization options than the LR HTML gallery. It boasts thumbnail annotations, ratings, color labels and onImage N