Dynamic language switching

HI,
there is a way to make a text in a edge project switch to foreign languages on load? maybe with external XML and javascript? I have to make a web app with edge in more than one language and I can't make a copy of the html for any of language in order to save the weight of the app
thank's in advance
mirko

Does each customer mean each user, or are there many users for each customer?
<p>
2) doableIn general you can use a TopLink DatabaseSession for each user/customer. You can use the same TopLink Project but can use a different login for each session you create.
<p>
If you have many users for each customer, you could potentially use a different TopLink ServerSession for each customer and allow the users to benifit from connection pooling and caching.
<p>
If you are using JPA, there is no easy way to do this currently. You could create the ServerSession yourself and then wrap it yourself with the TopLink EnitityManager implementation. You could use the same TopLink Project from your JPA persistent unit ServerSession and use a different login in your new ServerSession. If each customer has only one user then you could use a connection pool with only 1 connection.
<p>
1) a bad idea<p>
This is probably not a good idea. You avoid being able to share resources such as connection pools across your customers, and cannot share data. But it depends on how many customers you have and how distinct they are. Having each customer run on different databases allows you to have a different machine and application server for each customer, which you may need depending on how each customer scales. If you end up having a different server for each customer, then you could just have a single persistence unit in your application and change the persistence.xml or data-source when you deploy a new customer server.
<p>
<p>---
<p>James Sutherland

Similar Messages

  • Dynamic locale switching

    Hi,
    I need to implement dynamic locale switching in my application i.e. the user
    is allowed to change the application display language in runtime.
    Is there a mechanism in JavaFX to automatically achieve this goal?
    I know that I can use e.g. 2d array where every row may be a different language
    and each row item could be a translated text and bind the array items to the UI elements.
    I have also tried something like:
    java.util.Locale.setDefault(newLocale);
    StringLocalizer.associate("myapp.Main";, "myapp");but that does not refresh all texts on screen until I update them manually after switching language:
    label.text = ##"Text in a label"Is there a way to refresh all visible texts after switching locale?
    Thanks,
    Dariusz Gadomski

    Does each customer mean each user, or are there many users for each customer?
    <p>
    2) doableIn general you can use a TopLink DatabaseSession for each user/customer. You can use the same TopLink Project but can use a different login for each session you create.
    <p>
    If you have many users for each customer, you could potentially use a different TopLink ServerSession for each customer and allow the users to benifit from connection pooling and caching.
    <p>
    If you are using JPA, there is no easy way to do this currently. You could create the ServerSession yourself and then wrap it yourself with the TopLink EnitityManager implementation. You could use the same TopLink Project from your JPA persistent unit ServerSession and use a different login in your new ServerSession. If each customer has only one user then you could use a connection pool with only 1 connection.
    <p>
    1) a bad idea<p>
    This is probably not a good idea. You avoid being able to share resources such as connection pools across your customers, and cannot share data. But it depends on how many customers you have and how distinct they are. Having each customer run on different databases allows you to have a different machine and application server for each customer, which you may need depending on how each customer scales. If you end up having a different server for each customer, then you could just have a single persistence unit in your application and change the persistence.xml or data-source when you deploy a new customer server.
    <p>
    <p>---
    <p>James Sutherland

  • Dynamic Environment Switching For REPORTS_PATH 11g

    Oracle Fusion Middleware 11.1.1.2.0 with Patch Set 2 (11.1.1.3.0) - Linux
    Dynamic Environment Switching For REPORTS_PATH doesn't work.
    According to documentation B32121-03 (Publishing Reports to the Web with Oracle Reports Services 11g Release 1 (11.1.1) point 8.2.2):
    1. comment REPORTS_PATH in reports.sh
    2. set enviroment settings in rwserver.conf with REPORTS_PATH and NLS_LANG and defaultEnvId (DEV and PRD with defaultEnvId="DEV")
    3. restart reports server
    4. run http://mywls:8888/reports/rwservlet?SERVER=rep_wls_reports_mywls_asinst_1&REPORT=testreport.rdf&USERID=user/user1@mydb&DESFORMAT=html&DESTYPE=cache&ENVID=DEV
    REP-110: File testreport.rdf cannot be opened.
    REP-1070: An error occurred while opening or saving a document.
    REP-0110: File testreport.rdf cannot be opened.
    The same situation for &ENVID=PRD or without ENVID (as I expect it should work as default - DEV enviroment). File testreport.rdf is located in both paths (/u00/DEV/reports and /u00/PRD/reports)
    http://mywls:8888/reports/rwservlet/showenv?server=rep_wls_reports_mywls_asinst_1&authid=oiduser/oiduser1 reads informations from reports.sh file but doesn't read enviroment settings from rwserver.conf (REPORTS_PATH is empty because I comment it in reports.sh).
    Where's my problem? Should I set any other setting(s)?
    Unfortunately note [231051.1] and other referenced doesn't resolve my problem...
    Edited by: user9093781 on 2011-08-23 06:50

    Not sure if this helps at all. I just went through a nightmare trying to get 11g forms/reports to work through the forms builder.
    What I discovered with that is that I indeed had to set the REPORTS_PATH in rwserver.conf... however there were 3 different files that I ended up having to put it in (not sure if had to be in all 3). And perhaps more importantly, there seems to be an order to how you put these xml statements in the rwserver.conf files.
    In my case, it wouldn't work at all until I put it right after the last "<engine id=" statement.
    Mine looks something like this (not that this is a snippet of the file in Windows, for running via Forms/Reports Builder):
    <engine id="rwURLEng" class="oracle.reports.urlengine.URLEngineImpl" maxEngine="1" minEngine="0" engLife="50"/>
    <environment id="default">
         <envVariable value="C:\Oracle\WLS11gR1U4\user_projects\domains\AISworkstation\" name="REPORTS_PATH"/>
         <envVariable value="AMERICAN_AMERICA.WE8ISO8859P1" name="NLS_LANG"/>
         <envVariable value="RRRR-MM-DD" name="NLS_DATE_FORMAT"/>
    </environment>
    <environment id="windev_xxxxxxxx">
    <envVariable name="REPORTS_PATH"
    value="M:\ADS\Dvlprs\xxxxxxx\11g\FormsApps\stage;M:\ADS\Dvlprs\xxxxxxx\11g\FormsApps"/>
    </environment>
    I'm still figuring this all out too (although I did get it working how I need.. just not sure if it is the optimal solution), so I'm not sure how much this will help you. But for sure I can say that there is an order to these XML tags that I'm not so sure was the same (or maybe not enforced) in 10g.
    Good luck

  • Dynamic Bitrate Switching on Live Stream

    I have FMIS 3.5.  I've installed it with pretty much all the default values.  I haven't changed any of the settings in either the  LIVE or the VOD applications.
    Dynamic Bitrate Switching is working well for VOD, but not working at all for LIVE streams. Doing a regular bandwidth detection on both the LIVE and the VOD applications give similar, high bandwidth results.  However, the LIVE application  NetStreamInfo.maxBytesPerSecond is showing a very low bandwidth capability of around maxBytesPerSecond = 19016, where as for the VOD its achieving around 637110. I can play a single LIVE stream of a high quality smoothly without any error.
    I don't know if this is relevent but I'm getting some error messages occassionally in the log of the live application saying : Dropping application (live/_definst_) message. Clients not allowed to broadcast message.  These messages aren't consistent, and don't coincide with trying to use bitrate switching.
    I have tried downloading the Adobe sample StreamSwitching.fla and it won't play the LIVE streams at all.  Using the opensource Longtail Video player it just always defaults to the lowest stream.  Here is an example: http://www.ltscotland.org.uk/testbed/live/livestream2.asp
    Can anyone suggest what the problem might be here?  And any possible solutions?

    Thanks,I have read that article.  Based on that article the NetStreamInfo.maxBytesPerSecond is not an accurate measurement to base dynamic switching on. This seems to be the basis of the bitrate switching in both the longtail player, and the adobe examples that I have tried.   That article suggests using the dropped frames property, in conjunciton with bufferlength to determine if switching is neccessary.  Unfortunately I can't seem to find a player online which handles this successfully.  That being said, I can't believe I'm the only person trying to implement dynamic bitrate switching for live streams so surely there are some players out there which can do this successfully?  If anyone knows of any code available which does this successfully I would appreciate knowing where!  The examples provided by Adobe https://www.adobe.com/cfusion/entitlement/index.cfm?e=fms35 unfortunately don't work either.

  • 802.1x Dynamic VLAN Switching Question

    Trying to set up 802.1x dynamic VLAN switching, and have a question. I think I've gotten it working except for one part. The VLAN on a protected interface is never getting switched. I can see an entry in the ACS stating that it applied the appropriate VLAN via RADIUS response, but it never changes on the switch.
    Environment:
    ACS Express 5.0.1
    C3550 running c3550-ipbasek9-mz.122-44.SE6.bin
    Switch config:
    aaa new-model
    aaa group server radius dot1x
    server-private 10.10.1.4 auth-port 1645 acct-port 1646 key 7 071C244F5C0C0D544541
    aaa authentication dot1x default group dot1x
    dot1x system-auth-control
    dot1x guest-vlan supplicant
    interface FastEthernet0/3
    switchport access vlan 3
    switchport mode access
    speed 100
    duplex full
    dot1x pae authenticator
    dot1x port-control auto
    dot1x violation-mode protect
    dot1x timeout tx-period 5
    dot1x timeout supp-timeout 5
    spanning-tree portfast
    ip radius source-interface FastEthernet0/1 vrf default!
    radius-server host 10.10.1.4 auth-port 1645 acct-port 1646 key 7 01000307490E125E731F
    Am I missing something easy?

    It looks like "aaa authorization network default group dot1x" was the missing command I needed to get this working.
    The only issue I'm having now is that if the client fails to meet the authentication requirements, the line status gets set as "down"

  • Language switched from English to Danish

    When my wife first attached her iPhone to her Mac (running iTunes 9), the language switched from English to Danish. After syncing, she reset the language back to English. But why? A known problem?
    I did the same thing with my iPhone and Mac, and did not see anything unusual.

    I believe this is a very unusual occurrence. It is a computer after all and computers have 'glitches' every once in a while - chalk it up to that.
    BTW, I used to live in Bucks County... Riegelsville and Perkasie to be exact. We moved from Perkasie a couple years ago.

  • How to implement dynamic language change in all Components

    Hi all,
    I`m quite confused because i have app in wich i create Language object it is singleton made using abstract factory used for querying text to be shown in components. I has simple method:
    public String getText(String fieldName) {}
    Wich returns text. I have also config object to know what desired language i want to have on startup. But problem occurs when i want to set dynamic language change during app run so all containers gets its texts again using language object (which is another type now). Do You have some ideas ??
    I thought about extending all JButtons,Frames,Labels etc... and adding method:
    void setYourText(Language l) { this.setText(l.getText(// and here we have problem because all fields have unique arguments for getText
    }

    I miss this thread.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459cb44
    This is almost the right solution for my problem.

  • Dynamic lov switcher at UI

    Hi All,
    I am trying to use a dynamic LOV switcher for two LOVs which are cascading LOVs. The second dependant LOV has to conditionally switch between 3 data sources.
    I am able to acheive this at model layer. My BC tester works fine. But when i drag the VO onto my jspx and run it, it doesn't work.
    The steps i perform on jspx are -
    Set Autosubmit to true for 1st LOV field. Set partial trigger for second lov with 1st lov's id.
    I also tried by changing the ChangeEventPolicy from PPR to none for the VO's iterator binding in the jspx page.
    Fun is that, it works for me when i drag it as an adf-table with Row selection as SINGLE. But if I drag it as an ADF FORM, it does not work.
    Any help is appreciated...
    Regards,
    Deepthi

    Hi,
    can you provide a test case based on the Oracle HR schema? Also please mention your JDeveloper version. If you have a test case, send me a mail with a reference (URL) to this thread. The ZIP file containing the test case should be renamed to "unzip". My mail address is in my OTN profile (just follow the name link). Note that I don't accept test cases for which I will have to run scripts or that are based on JDeveloper versions that cannot be downloaded from OTN.
    Frank

  • Change Language Switching Shortcut in Windows 8

    Language switching shortcut is set to "Win + Space", but I want to disable win key through registry and remap the "Win + Space"
    to "left Ctrl + Space" as Windows 7, which is not listed under
    “Change langrage bar hot keys”. How
    could I do this?

    Hi,
    This function is by design. For more information regarding keyboard shortcuts, please see:
    Keyboard shortcuts
    As maelwliams suggested above, we might change the switch input language hot keys to ctrl+shift. Click the Change language bar hot keys->on the advanced key settings tab->click Change key sequence, then select in the switch input language.
    And if we want to change the default behavior of those hotkeys, then we may consider to seek help in some developer forums for a better help.
    Best regards
    Michael Shao
    TechNet Community Support

  • Language switching shortcut is really slow

    Hi!
    I'm using Cyrillic and Canadian English languages on my MacBook Pro. I set up a shortcut (Command+Space) to switch between them (Spotlight shortcut is disabled). The problem is that switching is painfully slow. When I hit the shortcut it takes about 10 seconds for the flag to change. The same happens when I move around application windows. I'm using separate input methods for all the documents. Taking into account the fact, that I do not really understand what is a "document" here, the language switching turns into total nightmare when I do not know which language I currently have in any particular window. I've been using OSX for about 4 years now and this is the only issue which drives me nuts royally. Does anyone else experience this and what is the solution?
    Thanks!
    A.
      Mac OS X (10.4.10)  

    I've never heard of the slowness issue, but you can always tell what keyboard layout is active via the "flag" at the top right of the Finder. If you don't have this, check the box for "show input menu in Finder" in system prefs/international/input menu.

  • Dynamic language translation with XML publisher/XLIFF

    Greetings all -
    We are on an Oracle 11i.5.8 global environment. There is a need for some of the countries to print their bank checks in their local language. Even with pre-printed stationary etc., the existing challenge is to dynamically print the amount in words in local language. Does anyone know how to get this done?
    There is a thought that XLIFF can be attached to a third-party translation software to accomplish this. Has anyone played with this?
    Thanks,
    T.R. Srikanth

    Hi
    Have two options:
    1. Get the data in the correct language in your data. I know the financials modules have this functionality as a plsql pkg that that they refer to at runtime to pull in the correct strings. Look at the current check print reports in AP for details.
    2. Maintain the strings in an XLIFF or other format and then pull them into the template at runtime. This is going to require some effort in the template to get the language and the strings to be translated because you will not know them until runtime.
    Option 1 is probably better on performance and maintainability, plus Oracle has already done alot of the work for you, not sure how many langs are supported in the pl/sql but check it out.
    Regards, Tim

  • Keyboard UI improvement request: A better Language Switch is really needed!

    Hello Support,
    In bilingual environment like I have in Russia, current Lang Switch is definitely the weakest part of on-screen keyboard, which is disastrous to otherwise excellent typing experience.
    Please consider changing that so that one-step (NOT two-step) switching is possible, e.g.
    (а)adding a dedicated key/indicator (as in WP8 / iPad / some Symbians, etc...)
    (b)something like 'swipe space horizontally to switch the language' (as in Android)
    I believe the issue is relevant not for Russia only.
    Late 10.0.1 versions (like .4633 leaks or so) made situation even worse:
    initially, the order of a languages in pop-up list was constant, which allowed to switch to a needed language rather fast
    currently, the list order is constantly changing based on current language, which is VERY inconsistent.
    Env: Z10 STL100-2, various 10.0 and 10.1 firmware, Russian locale, Beeline.
    And, with keyboard devices like future Q10  etc, the best option is adding a dedicated switch button. Please consider that for future devices!
    Hoping for better typing experience,
    Cheers,
    Alex

    Hello Support,
    In bilingual environment like I have in Russia, current Lang Switch is definitely the weakest part of on-screen keyboard, which is disastrous to otherwise excellent typing experience.
    Please consider changing that so that one-step (NOT two-step) switching is possible, e.g.
    (а)adding a dedicated key/indicator (as in WP8 / iPad / some Symbians, etc...)
    (b)something like 'swipe space horizontally to switch the language' (as in Android)
    I believe the issue is relevant not for Russia only.
    Late 10.0.1 versions (like .4633 leaks or so) made situation even worse:
    initially, the order of a languages in pop-up list was constant, which allowed to switch to a needed language rather fast
    currently, the list order is constantly changing based on current language, which is VERY inconsistent.
    Env: Z10 STL100-2, various 10.0 and 10.1 firmware, Russian locale, Beeline.
    And, with keyboard devices like future Q10  etc, the best option is adding a dedicated switch button. Please consider that for future devices!
    Hoping for better typing experience,
    Cheers,
    Alex

  • Automatic language switch [Angry poster]

    I've just finished my Spanish homework in my 2013 Microsoft Word, and it wasn't pleasant. I study Biochemistry along with English, Spanish, German and my native language. What gets me worked up and really has me table-flipping angry, is that every time I
    hit 'enter', the language flips over to Danish.
    This means I have to stare at daunting red lines in every sentence, SELECT
    it when I'm done, and flip it over to Spanish again, writing in Spanish is worst, because of the way sentences using question/exclamation marks are written, it can't function without the Word dictionary co-operating. Word nowadays has no limits to
    how helpful it thinks it is, so of course it'll do these small changes here and there. 
    Now of course I've read up on it, and reached some kind of solution, which is changing my keyboard to whichever language I'm using. You might argue that this is the way things are most convenient for others, but I'm not asking for much here. I'm asking for
    Word to NOT change the language every time I hit enter, and that shouldn't mean having to learn where all the necessary symbols are,
    for every language I speak. I have no idea who came up with this idea or concept, but it's the stupidest and most crippling mistake in any software I've ever purchased. I have no idea how it's supposed to work for international students such
    as myself. 
    So what I'm looking for is a way to select the language in a Word document, and have it stay that way, until I change it. I'd love it if Word could figure out that I'm trying to switch languages after 3 or 4 words, and back again if I was citing, but I know
    what to expect. I'm already pissed as it is with these blue lines telling me that English can only be written one way. Let's see how big an explosion comes from the red lines turning on me as well.

    I'm not quite sure if I have understood you correctly. What do you mean by "select the language in word", do you mean the proofing language?
    If yes, I would suggest you clear the "Detect language automatically" option, in the Language dialog box (Review tab>Language>Set Proofing Language). This will help to prevent Word from changing
    the language.
    Hope this is what you want.

  • Unwanted keyboard language switch when Firefox/Thunderbird is selected

    Here is a problem that I think I've had in the past, but I just can't recall how I resolved it, or find any references to it in the forum archives:
    Recently I reconfigured the keyboard language input menu because I switched to a different keyboard; it now has U.S. Extended, Norwegian and a 3rd map that I've defined myself. I can mostly switch quite all right between these (and the one I've defined myself works, too), but I have one very annoying problem:
    Whenever I select a Mozilla Firefox or Thunderbird window, the language setting switches to U.S. Extended (if a different one was selected.) That is, if I work in a different application with e.g. my custom map selected, then start Firefox, I notice that the flag icon changes and that I get the US layout. I can then switch back to a different one and work with the corresponding layout in Firefox. If, however, I raise another application's window, then go back to Firefox, I find that language is once again set to U.S. Extendended. The same thing happens with Thunderbird.
    Any idea what is wrong?

    I haven't read your code, but can make a guess at what's going wrong. Checkboxes do behave in a weird manner depending upon whether you have selected one or many.
    Assuming this is the statement where you are generating the checkbox :
    <input type="checkbox" name="checkBoxName" value="<%= someValue %>">
    What you could do is read the checked checkBoxes in an array :
    String[] values = request.getParameterValues("checkBoxName");
    int sizeOfValues = values.length;
    Then use the sizeOfValues to perform your delete action :
    if (sizeOfValues==1)
         performDelete();
    else
         for (int i=0; i<sizeOfValues(); i++)
              performDelete();
    Hope this technique works.

  • Dynamic language RFC communication channel

    Hi,
    Is it somehow possible to dynamically determine the language to be used to send an RFC request with the RFC Receiver Adapter? I don't see any variable substitution possibility, so I assume it is not possible to do so.
    What would be the nicest way to do the following: internet web page triggers a synchronous interface in XI which is mapped to an RFC call to ECC. Depending on the language used in the RFC call (would be passed by the initial trigger) the error texts of the RFC call are translated automatically (standard ECC functionality) and returned. So the user wants to have this error messages in the language passed in the web page.
    An alternative I see, would be to create n target messages and n communication channels (1 per language) and let the interface determination do the trick. But I would like to know there is a more dynamic solution for this.
    Thanks a lot in advance!

    Hello,
    SSO - Single Sign On is not supported in XI3.0, communication channels need a service id for talking with R3.
    We have been following up with SAP for SSO functionality. Its still in the pipeline. In the near future they may provide SSO.
    Regards,
    Naveen

Maybe you are looking for

  • Query for Finding the Date History

    Hi Geeks, My Table looks like this Employee Assignment Position     Job     Grade     Start_date     End_date 101 132 2055 Clerk C01 10-Mar-00 11-Feb-01 101 132 2055 Clerk C02 12-Feb-01 15-Dec-01 101 132 2056 Clerk C02 16-Dec-01 22-Jul-03 101 132 205

  • CS3: how to create action to add fixed text of foreground color, etc.

    I'm trying to create an action and/or brush preset(?) that will: 1) Add a fixed text string in the forground color, consistent font, size, etc. 2) Apply a consistent Layer Style -> Bevel and Emboss setting 3) Allow me to move the text to whatever pos

  • IPhone shows up on iPhoto but not on iTunes

    hi well, i just got the iphone 4 and synced my music but realized that not ALL my music synced. but when i connected my iphone again, it doesnt come up on itunes, yet i can import the pictures on iphoto. what do i do?

  • Itunes rented movie wont play

    I rented a movie in itunes. It finished downloading and when a press play a message pops up saying "Do you want to start playing the movie Attack the Block? You will have 24 hours to watch this movie." I click play and then a black screen pops up (th

  • PL/SQL: ORA-22992: cannot use LOB locators selected from remote tables

    Dear ALL, My O/S is Redhatlinux 5.2 and i had Migrated my Oracle databse to 11g2. But after that while i am retrieving records through dblinks from one of my other Oracle 9.2.0.8 databse it's throwing the error : PL/SQL: ORA-22992: cannot use LOB loc