How to implement language like in SDN?

Hi,
I'm interested in changing language similar as the language setting in SDN i.e. The language option on top right hand corner, next to Log Off. Anyone know how to accomplish this?
Thanks,
Iwan

Björn,
I posted the solution in the same thread on Sept. 20, 2006, I'm not sure why you can't see the solution. Did you read the whole thread? I did not mentioned any servlet filter at all in the solution. I went that approach and got help from Darrell (forgot his last name) from SAP. The solution he provided me was way over my head and got another solution that works for me and I posted this in this thread on Sept. 20 so if someone have the same problem will be able to use this solution.
The meat of the solution:
When you create a resource file, SAP by default create this file under localization folder. We need to move this file to private/classes folder instead. This way, when we use a new Locale and get the resource bundle for that new local, the resource file can be found.
The following is my post which you can see it as separate post in this thread as well.
Start of duplicate posting -
FYI, found the solution.
I put the properties file in private/classes instead in localization, and then user ResourceBundle and Locale combo.
Locale myLocale = new Locale("es","CO");
ResourceBundle resc = ResourceBundle.getBundle("label",myLocale);
response.write(resc.getString("text1"));
This will pick up your assign Locale instead of portal/component Locale."

Similar Messages

  • How to implement Language Toggle Link?

    Dear friends,
    I would like to implement Language Toggle Links (Right Top) for each page in my application? (English - Turkish)
    How do I implement it by using APEX translation tool?
    or is there a better solution?
    regards
    Siyavuş
    Edited by: Siyavus on Apr 1, 2009 4:46 PM

    simple html:
    <a href="linkToFileToDownload.exe"> Download my cool app!</a>

  • How to implement Excel like functionality using Table?

    I have a requirement to implement excel like functionality in a table, i.e when I update the amount in the first row and tab out, the values in the rows below should get affected.
    Could any one suggest idea how to get this done?

    Hi Timo,
    Thanks for your Reply.
    Can you please provide the code for capturing the key stroke in java script and queue it in the server and calling only the adf data table values from it.
    Thanks And Regards,
    Lovenish Garg
    Edited by: lovenish on 21-Jan-2011 04:25

  • How to implement installer like yahoo/Google toolbar in C/C++/MFC

    Hello All,
    I want to implement installer like yahoo/google toolbar in C/C++/MFC that get install on users internet browser and i am new to MFC and i ultimate aim is after implement that toolbar application in mentioned language then i want call that application through java using JNI technology.
    Hope u understand and problem because i am new to develop installer kind of thing.
    and sorry if i posting my problem on wrong forum.
    thanks and regards
    Vinay Suryawanshi

    Only1Vinay wrote:
    Hello All,
    I want to implement installer like yahoo/google toolbar in C/C++/MFC that get install on users internet browser and i am new to MFC and i ultimate aim is after implement that toolbar application in mentioned language then i want call that application through java using JNI technology.
    Hope u understand and problem because i am new to develop installer kind of thing.
    and sorry if i posting my problem on wrong forum.I hope you understand that your question isn't related to Java. Ask in a windows programming forum.
    Kaj

  • How to implement bundle-like mechanism in Arch Linux

    I like Chakra's bundle system and I want to make it in Arch.
    I heard that bundle system is just a separate file system(like loop? I am not sure).
    Can you give some details?
    However, I think there must be some reasons that Arch does not implement such a convenient tool as bundle system.
    I want to hear about these reasons.
    Thank you.

    If you go back more in the history behind Chakra, how it came to live, you might know, it started bc of a desire to do another split.  That one was for KDE, resulting in KDEmod, which was fully accepted by Arch, a few years after, and is currently the way KDE is build in Arch too (KDE being split in multiple packages).
    While Chakra was just Arch + KDEmod, more and more users stated, there was a desire to split toolkits too.  Have a system that was either based on GTK, and for Chakra users, a system base on just Qt/KDE.  When the late Chakra founder Jan Mette called the meeting in February 2010 the discuss the plans for a full split from Arch, this desire expressed by many users was one of the driving factors for his decision.
    To have a fully functioning distro, and doing something this different, the discussion included finding some MacOS way of including some of the most well known, and revered Linux apps, that were GTK based.  That is how the idea of bundles came to fruit.
    At the start, a few hundred packages had either makedeps  or full dependency to gtk2, so it was left up to the user to install those apps, though the ISO's were gtk free.
    Once the bundles became more functional, and included all those most well known and revered Linux apps, the majority of the gtk apps were removed (slowly) from all repo's.  Plus in the good 2 years since, many apps/libs have been stripped of gtk, since many apps are build to function on both gtk and qt based systems, though they do not need the gtk libs at all to work just fine on a qt based system.  To remove gtk libs/functions from one app, makes very little difference, for ten, it is not a big difference, but you repeat it over a hundred times.....
    GTK is still in the repo's, and probably will stay there.  Users who do not want to stay gtk free have added many such apps in ccr, and as a service to them, it is nice to not have to compile gtk.  Plus there is no real solid substitute yet for flash, again as a service, it is still an option.  The bundle buildsystem also draws from the repo's, if a certain lib/app is set to draw from there during the bundle process, that is another reason gtk/gtk-apps are still in the repo's.
    As Allan states, downloading multiple bundles, will download multiple instance of a highly compressed gtk (or other lib/app).  This is ofc a draw back for bundles, but again, a well thought out, and chosen draw back.  Users who need more then 4-5 bundles, should really rethink using a distro that made the choice to see if a distro can be fully functional, when splitting toolkits.  Those users can install their needed apps from ccr, or perhaps should choose another distro.  But to have an application not needing a rebuild/break bc of a .so update is a big plus.  When libreoffice was not stripped of it's gtk deps, it was one of those bundles.  It included all, and one such bundle still runs perfectly on one of my installs, it was build February 2011 (granted, I'm using this one as a test case for bundle longevity).
    For those who do not need but 3-5 bundles, there is no gtk installed (takes more room, then downloading it in compressed form a few times).  And many bundles do contain more then one gtk app (GIMP bundle includes xsane for example, chromium includes flash, google-talkplugin, pdf plugin), so as an example in my case, I run one bundle almost all the time, and it brings me the only 3 gtk apps I need and I my installs are gtk free.  Btw, all bundled browser include the flashplugin.
    But bundles are not just for gtk, Skype is another example for bundle use.  This app brings in about 50 lib32 packages, if you are on x86_64, why install all those for just one app?  Some will state, it makes no difference, don't care to have a lot of extra libs installed, some will prefer to keep a more "clean" system.  Chakra goes with the latter.
    Since the bundle process can draw from the repo's, or build all needed packages in that system, in any setting chosen, any security update is no extra work, then any other rebuild.  That security update was either done in the regular repo's, all needed then is rebundle all included apps (the final bundle process, squash them, etc, takes about 40 secs), or if the apps is not in the repo's, just that one is rebuild/adjusted in the bundle system, and again, bundled with the rest of the existing packages included in that particular bundle.
    To address as a final note, the point made, you can't be bleeding edge bc of bundles.  I'll give the example of the gimp-dev bundle.  It needed the latest babl, gegl, much newer glib2, gtk2 (and more from that stack) then was in the repo's.  All those were updated in the bundle system (though not a visible repo, the bundle build system has some 200-250 packages at most times), tested and ran successfully for many users, and always making the latest dev version available for gimp, until the final release this week.  Since all glib2 updates were tested in this bundle for quite some time, when it was time for this update in the regular repo's, it was a simple and quick update for the whole stack.
    Bundles are not perfect at this stage, far from it, there are still many plans to improve on the whole system, but for something that is in use just 1 1/2 years, it truly is a viable option to have a system running on a single tooolkit.
    To address a question posted while writing this.  Chakra uses testing repo's a lot too.  Bundles are fully rolling, always the latest available, just like the apps and games repo in Chakra.
    Last edited by abveritas (2012-05-04 18:17:43)

  • How to implement Enum (like in c)

    Hi !
    I want to modify some values using enum, like in c.
    How can I do it ?
    Example: authorization = enam {trainee, trainer, supervisor}
    10x

    Actually I just tracked down that article a few
    minutes ago:
    http://developer.java.sun.com/developer/Books/shiftinto
    ava/page1.htmlGood article, expecially as it covers the "readResolve()" topic.
    Martin

  • How to implement table like structure in MIDP?

    I am a starter of midp, and now need to implement something using MIDP 1.0.
    I would like to know can I have table like structure in MIDP, just like HTML; or I can only work with List/Form (one dimension display). I can't find related information at api doc come with wireless toolkits

    not really knowing what you want to acomplish I have this suggestion: check Mobile Information Device Profile (JSR-37) at http://www.jcp.org/aboutJava/communityprocess/final/jsr037/index.html . This might shed more light on applicable classes/methods/interfaces within MIDP 1.0.

  • How to implement the Export to Excel funtionality in VC like in Webdynpro

    Hi
    I have requirement to display the BAR charts, Pie charts ,Line graphs based on the data retreiving from the R/3 thorgh VC.
    I hope it is possible .
    i have requirement like exporting the data whichis pulled from the R3 to display those charts, this data need to be exported to the Excel sheet by providing the button in VC. Like same way we have the privision in WEbdynpro exporting table data to excell sheet.
    How to implement the same thing in VC,
    Can any body help me
    Regards
    Vijay

    1) yes, it's possible
    2) Another one that's in the Visual Composer WIKI:
    https://wiki.sdn.sap.com/wiki/display/VC/Exportingdatafrom+VC

  • How to implement a back functionally like the back of the browser

    Hi, I have a commandImageLink("go back") in a template jspx. How to implement the back functionally like the back of the browser with a managed bean method??. For know I m not using task flows.

    I think you can use a javascript method to go back to the previous browser page.
    http://javascript.about.com/library/blback.htm
    http://www.pageresource.com/jscript/jhist.htm
    http://www.w3schools.com/jsref/met_his_back.asp
    Perhaps you find something useful and related to backing beans here:
    http://adfdevelopers.blogspot.com/2009/04/some-handy-code-for-backing-beans-adf.html
    NA
    http://nickaiva.blogspot.com

  • How to implement textarea/text box to accept multiple languages

    Hi,
    We have a requirement that we need to have text area/text box on screen to accept multiple languages like (Spanish and russian) that means user can able to enter their text data either in any language like english,russian and spanish(It should be possible to enter the comments in russian and spanish languages). Is it possible to implement in java/j2ee?, If yes kindly provide us solution details. Any Help is highly appreciated.

    What exactly doesn't work? No matter the (spoken) language - its still only text data. The one thing you need to look out for is in no way specific to Java/JEE and that is that you employ proper character encoding and fonts to be able to display the language specific characters. If you don't know much or anything about character encoding, I suggest you research that. Start here:
    http://www.joelonsoftware.com/articles/Unicode.html
    BTW: its a bit of a silly question, don't you agree? No - you can only create English applications using Java! What a world that would be.

  • How to implement result states in custom web dynpro components

    Hi all,
    My callable objects are custom implemented -web dynpro Componenets
    How am i to implement the result states in them so that i can use them to take logical decisions.?
    There is decision dialog component in  Process Control Callable Object. It has Exit states. I need my component also to have exit states like that
    Help me to implement this.
    Points assured for help

    Hi Shobhendra,
    You can define the result states of your custom Web Dynpro callable object like this in the getDescription() method:
    //add success result state
    IGPCOResultStateInfo success =               technicalDescription.addResultState("Success");
    success.setDescriptionKey("Success");
    //add failure result state
    IGPCOResultStateInfo failure =               technicalDescription.addResultState("Failed");
    failure.setDescriptionKey("Failure");
    And in the custom comelete() method (which will be called at the end of the execution of the WDP comp from GP) you can set the actual resultstate at runtime:
    executionContext.setResultState("Success");
    or
    executionContext.setResultState("Failed");
    The result states defined in the WDP callable object will appear in the the GP design time and you can set target for each result state.
    For more info on how to implement the WDP callable object check the doc:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59">Implementating Web Dynpro callable Object</a>
    Please let me know if you need any further help.
    Thanks,
    Dipankar
    [P.S. Award points for helpful answer]

  • How to set language in SMS editor ?

    Hi, I use Nokia C-50. Since some time I cannot write SMS messages, because strange letters appear in SMS editor. Options -> Text language show me that Cestina language ist set. This is the first from the choice. When I set any other language like English or my Polish press OK and return to the editor I can write one letter and after it the editor switches back to Cestina language. How can I set the proper language permanently ?
    Thak you in advance for your help
    Zbyszek

    Hi JudaZ, thank you for your answere. I was trying to identify my mobile phone. It seems to be E52 . I tried many times, but I couldnt find the menu entries you suggested to choose. In editor options i only have the following entries:
        "add the receiver",
       "put in (template)",
       "sending options",
       "message details",
       "text language",
       "help",
       "leave" .
    This is my free translation from polish. Under "sending options" I have the following:
                                  ->SMSC Centernet,
       "Keys codings"->"full or limited service",
       "receiving reports"->"no",
       "how long the message is valid"->"24h",
       "message send as"->"text" 
       "answere by the centr." -> "no"
    I tried each entry. Nothins has helped. The language is Cestina all the time !
    I'd be thankfull if you help me and answere one more
    Regards
    Zbyszek Lisiecki

  • How to implement Tool TIP in Table Control

    Hello Everyone,
    Can you please tell me how to implement a tooltip messages in table control columns.
    The Tooltip contains a simple message like "Doublde click on column.
    Thanks in advance.
    Edited by: Suruchi Razdan on Jun 6, 2011 7:57 AM

    Hello,
    In table Control->first Header Row has chance to maintain the Tooltip option.
    In table control columns maintain Double click options in attributes .
    Regards,
    Praveen

  • How to implement table in applet

    hi friends
    i have no idea ,how to implement tables in awt for applet can u suggest way to solve my problem.im using jcreator to implement my project.

    Crosspost: http://forum.java.sun.com/thread.jspa?threadID=783376
    You already got plenty of answers. Why do you ask again? Didn't you like the answers?

  • How to implement SEARCH HELP for input field in WDA

    Hi All,
    I am doing a tool for my team. in this tool there are 4 input fields to show different processes. I implemented the 4 input fields and also bind the respective tables to these fields successfully. Actually I want to filter the data between 2 fields . Means the data in the 2nd input field should be based on the 1st input field. Means when I'll select for example 'CHI' (code for CHINA) in the 1st input field the 2nd field meant for country name should show all country name with value 'CHINA'. But the problem is that all values related to each field are in different table with no foreign key relationship and also some combinations are in single table..
    I have tried the import and export parameter method for search help but no luck till now.
    Can anyone please suggest me how to implement this scenario..
    Thanks in advance...
    sekhar

    Hi sekhar,
    Your Requirement can be implemented by OVS(Object Value selector) This is the custom search help .So that you can define on what basis the value has to be fetched.
    Look at the below link
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
    You need to use the component WDR_OVS.
    It has 3 phases
    In phase 1
         You will fetch the value from input field to F4 help dialog box.
    In phase 2
         You will generate the search results , in this phase look for the input value given in field 2 and accordingly generate search result for the field 3.
    In phase 3
         The selected value will be returned to the original screen.
    Regards
    Karthiheyan M

Maybe you are looking for

  • My apps. ended up on my computer and I can not get them back onto my iphone.

    I have purchased many apps. as well as ringtones.  In the last day or so I have upgraded to io5, synced by phone with my pc and now found that most of my apps. are on computer and i can not get back to phone.

  • Jump link works in IE not Firefox - more specific

    To be more specific than in my previous question: I am using Dreamweaver CS4. I have a spry collapsible panel on the page; each panel is labeled with the name of a paper. At the top of the page, I provide some context for the papers (papers are in th

  • Apple tv and projectors

    Are there any problems or issues connecting apple tv to home cinema projectors. Which projector are likely to give the best results for a classroom situation.

  • How to iterator inputtext inside table

    hi i have situation where i have table inside a table i have inputtext which got emailaddress how can i iterator in order to return that email this is my table <af:table value="#{bindings.DeltMember1.collectionModel}"                           var="r

  • Keyboard Numerical Keys not working)

    I cannot seem to get the numberical keys on the right hand key pad to work. I have a basic keyboard which came with my all in one desktop. I've tried pressing NmLk, rebooted, reinstalled but nothing is working. It's probably very simple but what am i