Change language with item

Please,
I try to change the language with a text item. I have found code on the forum that I changed to this :
htp.p('<a class="MenuLienLanguage" href="http://172.16.16.18:7778/pls/orasso/orasso.wwctx_app_language.set_language?p_http_language=fr-fr&p_nls_language=f&p_nls_territory=FRANCE&p_requested_url=/pls/portal/url/page/' || pageName || '">Francais</a>') ;
The only problem I have is 'PageName' ? Is it possible to pass the name dynamical (with tag or procedure) ???
Thx in advance,
D.

this link set language on sso level and you need set language on sso and midtire level as
procedure print_lang as
v_lang varchar2(10):=portal.wwctx_api.get_nls_language;
begin
htp.p('<script language="javascript">
<!-- Comment out script for old browsers
function redirect_language(lang,local,teritor){
var link=window.location.href;
document.pred.p_http_language.value=lang;
document.pred.p_nls_language.value=local;
document.pred.p_nls_territory.value=teritor;
document.pred.p_requested_url.value=link;
document.pred.submit();} //-->
</script>');
if v_lang='ru' then
htp.p('<table CELLPADDING="0" CELLSPACING="0" BORDER="0"><tr>
<td align="center" ><font class="PortletText1"><img src="/images/lang_ru.gif" border="0"><br><b>Russia</b></font></td>
<td valign="bottom"><font class="PortletText1">/</font></td>
<td align="center"><a class="PortletText1" HREF="javascript:redirect_language(''en'',''us'',''AMERICA'');"><img src="/images/lang_en.gif" border="0"><br>English</a></td>
</tr></table>');
else
htp.p('<table CELLPADDING="0" CELLSPACING="0" BORDER="0"><tr>
<td align="center"><a class="PortletText1" HREF="javascript:redirect_language(''ru-ru'',''ru'',''CIS'');"><img src="/images/lang_ru.gif" border="0"><br>Russia</a></td>
<td valign="bottom"><font class="PortletText1">/</font></td>
<td align="center"><font class="PortletText1"><img src="/images/lang_en.gif" border="0"><br><b>English</b></font></td>
</tr></table>');
end if;
htp.p('<form ACTION="/pls/portal/PORTAL.wwctx_app_language.set_language" METHOD="POST" name="pred">
<input TYPE="hidden" NAME="p_http_language" VALUE="">
<input TYPE="hidden" NAME="p_nls_language" VALUE="">
<input TYPE="hidden" NAME="p_nls_territory" VALUE="">
<input TYPE="hidden" NAME="p_requested_url" VALUE="">
</form>');
end;
may it helps

Similar Messages

  • Windows 10 - Skype not respond when I change language with Grave accent

    Windows 10 - Skype not respond when I change language with Grave accent 

    Switching languages quickly in Windows 10 with the current version of Skype is a known issue.  Hopefully a future update will address the problem.

  • I cannot change language with my qwerty keyboard

    I'm using firefox for mobile 5 on LG LU2300(optimus Q) which has physical qwerty keyboard.
    When I try to change language to Korean with the qwerty keyboard, I failed. The language is stick to ENGLISH.
    When I use on screen touch keyboard, it's O.K.
    please help me to use firefox.

    Hi freetbet,
    This is currently a known problem and we have an open bug report tracking this issue, [https://bugzilla.mozilla.org/show_bug.cgi?id=669361 bug 669361]. At this time I am not aware of any workaround besides continuing to use the virtual keyboard as you mentioned.

  • Typing in remote Control when changing language with key combination of Alt + Shift some time change to Upper Case and Caps Lock is off

    let me first say that this links dos not apply to my problem the first one is :
    http://social.technet.microsoft.com/Forums/en-US/winserverTS/thread/46b24b68-debf-466e-a780-66a3b999724c
    and it dos not apply because I dont use remote app, and also i able to change settings
    http://social.technet.microsoft.com/Forums/en-US/winserverTS/thread/6a0f0eda-d3f6-4cd9-91ef-a7e0b20bc799/
    this one has similar problem but he working with remote app and do not have the Upper Case and Caps Lock is off
    http://social.technet.microsoft.com/Forums/en-US/itproxpsp/thread/f978e234-2b3c-4780-9dda-bec52b25330d
    this one using XP i have it on windows 7 connecting to remote server 2008 r2
    here is the issue 
    my users remote control a terminal services farm, now when they changing language to English some  time it change to English Upper Case and caps lock is off ! then the Alt + Shift and the go back to English lower case and if they just play with
    this (i mean they just use Alt Shift over and over to try to get back to normal state when you hold shift and alt and you change to English and back to Hebrew if you hold the alt shift one more time )
    i tonic some thing strange ifi hold down first the alt and then the shift this issue happen more often
    i upload a video on this showing the problem live on my dropbox :
    https://dl.dropboxusercontent.com/u/103434771/meditowers/IMG_0245.MOV
    here is how the normal setting should be
    Alt + shift need to change to lower case English
    then Alt shift one more time will go back to Hebrew
    now if you hit on the caps lock you will be in English all the time with Upper Case

    Hi Yitzhak,
    Please refer to this post:
    www.davidbond.net/2012/10/rdp-shift-key-gets-stuck.html
    This post includes fix to this issue at the comments.
    Netanel Ben-Shushan, MCSA/E, MCTS, MCITP, Windows Expert-IT Pro MVP. IT Consultant & Trainer | Website (Hebrew): http://www.ben-shushan.net | IT Services: http://www.ben-shushan.net/services | Weblog (Hebrew): http://blogs.microsoft.co.il/blogs/netanelb
    | E-mail: [email protected]

  • 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..

  • Firefox crash when change language with ctrl + shift how to fix it

    I know that there is key combinations in firefox starting with ctrl + shift. I wonder how to disable this combinations instead of language change

    It would be better to disable the Ctrl+Shift combination to rotate the installed languages and instead assign the specific key sequence (Alt/Ctrl+Shift+number) to select each keyboard layout to avoid such issues.

  • How to change language then i can't get in in computer?

    I get problem with language. I used lithuanian language and i left computer , and after 1 hour I started to use, but I had to write my password. But because of lithuanian language I can't use numbers to do it.How to change language with keybord for Mac Pro 2013.

    If you're unable to log in because the login screen language doesn't match your keyboard, press the key combination  command-space or command-option-space to cycle through the available languages.
    In some cases, it may be necessary to reset your computer’s PRAM.

  • Problem with dynamic change a page item value

    Hi,
    I'm trying to dynamically calculated the value of an item based on a simple formula that involves the multiplication of two elements from the same page.
    To do this, create dynamic action as follows:
    Event: Change
    Selection Type: Item(s)
    Item(s): P19_DURATION
    Action: Set value
    Fire on page load: TRUE
    Set Type: SQL Statement
    SQL Statement: SELECT :P19_DURATION * :P19_RATE FROM DUAL
    Page items to submit: P19_DURATION
    Selection Type: Item(s)
    Item(s): P19_AMOUNT
    When altering the P19_DURATION get no change in P19_AMOUNT
    Since my knowledge of javascript is almost zero, I'm trying to do this with pl / sql or sql. Try the dynamic action with a function or a PL / SQL statement and nothing works.
    Have to use javascript for this?
    Searching the forum I think it's something simple, but I did not find an example similar to what I need.
    Regards

    Event: Change
    Selection Type: Item(s)
    Item(s): P19_DURATION
    Action: Set value
    Fire on page load: TRUE
    Set Type: javascript
    javascript Code:
    amount = $v('P19_DURATION') *  $v('P19_RATE');
    $s('P19_AMOUNT',amount);

  • How to change language in photoshop CC 2014 with rksskogo into English?

    how to change language in photoshop CC 2014 with rksskogo into English?

    go to your installed photoshop directory select locales folder "nl_NL" folder "support files" "tw10428.dat" rename to "tw10428.dat.old" press yes, and restart the tool again

  • How can I change the language with the .dat (.bak) file?

    How can I change the language with the .dat (.bak) file? Is it legal?
    How does it work?
    Thanks for answering

    https://discussions.apple.com/message/17364930#17364930

  • Could i change the language with the keyboard buttons ?

    could i change the language with the buttons ? i mean something like command+ctrl+alt or shift,idk. thank you

    I think this might help you
    Switch language using keyboard shortcuts
    To select the input source (language) you previously used, press Command-Space bar.
    To select the next input source in the Input menu, press Command-Option-Space bar.
    If Spotlight opens when you’re switching input sources, see:
    If Spotlight opens when you’re switching input sources

  • Change Country with out changing language

    When I am creating my Account, I have created the ID with my current address (UAE) and credit card of UAE but wrongly I created India as my Country.when I am chaging the country language is getting changed to Arabic. how can I change country with english language.

    The language of the stores will be the language of the country where your iTunes account is based, and it can't be changed - so if your account is based in the UAE it will Arabic

  • Errorlog filling with changed language setting and changed database context messages

    On one of my servers, the ERRORLOG is filling with messages for "Changed language setting to..." and "Changed database context..." for every single connection.  They are generated for any kind of connection--such as Management Studio.
     How did this get turned on?  How do I suppress the messages in the errorlog?  This is the only server that's having the problem.
    Example at the bottom.
    SQL is: SQL 2008 R2 SP2 
    Trace flags set on this server are 3226, 1118, 1117
    Date,Source,Severity,Message
    01/24/2014 11:23:14,spid65,Unknown,Changed language setting to us_english.
    01/24/2014 11:23:14,spid65,Unknown,Changed database context to 'master'.
    01/24/2014 11:23:14,spid64,Unknown,Changed language setting to us_english.
    01/24/2014 11:23:14,spid64,Unknown,Changed database context to 'master'.
    01/24/2014 11:23:13,spid64,Unknown,Changed language setting to us_english.
    01/24/2014 11:23:13,spid64,Unknown,Changed database context to 'master'.
    01/24/2014 11:23:13,spid55,Unknown,Changed language setting to us_english.
    01/24/2014 11:23:13,spid55,Unknown,Changed database context to 'master'.
    01/24/2014 11:23:11,spid55,Unknown,Changed language setting to us_english.
    01/24/2014 11:23:11,spid55,Unknown,Changed database context to 'master'.
    01/24/2014 11:23:05,spid61,Unknown,DBCC execution completed. If DBCC printed error messages<c/> contact your system administrator.
    01/24/2014 11:23:05,spid61,Unknown,The error log has been reinitialized. See the previous log for older entries.
    01/24/2014 11:23:05,spid61,Unknown,Logging SQL Server messages in file 'F:\SysDB\Program Files\Microsoft SQL Server\MSSQL10_50.ETL\MSSQL\Log\ERRORLOG'.
    01/24/2014 11:23:05,spid61,Unknown,Authentication mode is MIXED.
    01/24/2014 11:23:05,spid61,Unknown,System Manufacturer: 'HP'<c/> System Model: 'ProLiant DL580 G5'.
    01/24/2014 11:23:05,spid61,Unknown,Server process ID is 20096.
    01/24/2014 11:23:05,spid61,Unknown,All rights reserved.
    01/24/2014 11:23:05,spid61,Unknown,(c) Microsoft Corporation.
    01/24/2014 11:23:05,spid61,Unknown,Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64) <nl/>
    Jun 28 2012 08:36:30 <nl/> Copyright (c) Microsoft Corporation<nl/>
    Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)

    Here's the relevant parts of the startup from today.  I snipped out some specific database info (noted with ...), but the main events are still there.
    ... [Several lines of changed database context/changed language]
    01/24/2014 10:03:33,spid52,Unknown,Changed database context to 'master'.
    01/24/2014 10:03:33,spid51,Unknown,Changed language setting to us_english.
    01/24/2014 10:03:33,spid51,Unknown,Changed database context to 'master'.
    01/24/2014 09:59:44,spid6s,Unknown,Recovery is complete. This is an informational message only. No user action is required.
    01/24/2014 09:59:40,spid11s,Unknown,Service Broker manager has started.
    01/24/2014 09:59:39,spid11s,Unknown,The Database Mirroring protocol transport is disabled or not configured.
    01/24/2014 09:59:39,spid11s,Unknown,The Service Broker protocol transport is disabled or not configured.
    01/24/2014 09:59:35,spid28s,Unknown,CHECKDB for database 'userdb' finished without errors on 2014-01-19 12:19:29.640 (local time). This is an informational message only; no user action is required.
    01/24/2014 09:59:25,spid10s,Unknown,Starting up database 'tempdb'.
    01/24/2014 09:59:25,spid14s,Unknown,CHECKDB for database 'msdb' finished without errors on 2014-01-19 12:20:23.410 (local time). This is an informational message only; no user action is required.
    01/24/2014 09:59:25,spid16s,Unknown,CHECKDB for database 'userdb' finished without errors on 2014-01-19 12:21:44.847 (local time). This is an informational message only; no user action is required.
    01/24/2014 09:59:23,Server,Unknown,SQL Server is now ready for client connections. This is an informational message; no user action is required.
    01/24/2014 09:59:23,Server,Unknown,The SQL Server Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x2098<c/> state: 15. Failure to register an SPN may cause integrated authentication to
    fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.
    01/24/2014 09:59:23,spid10s,Unknown,Clearing tempdb database.
    01/24/2014 09:59:23,spid31s,Unknown,Starting up database 'userdb'.
    01/24/2014 09:59:23,spid14s,Unknown,Starting up database 'msdb'.
    01/24/2014 09:59:23,spid10s,Unknown,CHECKDB for database 'model' finished without errors on 2014-01-19 12:20:20.393 (local time). This is an informational message only; no user action is required.
    01/24/2014 09:59:23,spid11s,Unknown,A new instance of the full-text filter daemon host process has been successfully started.
    01/24/2014 09:59:23,Server,Unknown,Dedicated admin connection support was established for listening locally on port 53067.
    01/24/2014 09:59:23,Server,Unknown,Server is listening on [ 127.0.0.1 <ipv4> 53067].
    01/24/2014 09:59:23,Server,Unknown,Server is listening on [ ::1 <ipv6> 53067].
    01/24/2014 09:59:23,Server,Unknown,Server named pipe provider is ready to accept connection on [ \\.\pipe\MSSQL$ETL\sql\query ].
    01/24/2014 09:59:23,Server,Unknown,Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\ETL ].
    01/24/2014 09:59:23,Server,Unknown,Server is listening on [ 'any' <ipv4> 50537].
    01/24/2014 09:59:23,Server,Unknown,Server is listening on [ 'any' <ipv6> 50537].
    01/24/2014 09:59:23,Server,Unknown,Server is listening on [ 'any' <ipv4> 5427].
    01/24/2014 09:59:23,Server,Unknown,Server is listening on [ 'any' <ipv6> 5427].
    01/24/2014 09:59:23,Server,Unknown,A self-generated certificate was successfully loaded for encryption.
    01/24/2014 09:59:22,spid6s,Unknown,Server name is 'MYSRV\ETL'. This is an informational message only. No user action is required.
    01/24/2014 09:59:22,spid10s,Unknown,Starting up database 'model'.
    01/24/2014 09:59:22,spid6s,Unknown,The resource database build version is 10.50.4000. This is an informational message only. No user action is required.
    01/24/2014 09:59:22,spid6s,Unknown,Starting up database 'mssqlsystemresource'.
    01/24/2014 09:59:22,spid6s,Unknown,SQL Trace ID 1 was started by login "sa".
    01/24/2014 09:59:21,spid6s,Unknown,FILESTREAM: effective level = 0<c/> configured level = 0<c/> file system access share name = 'ETL'.
    01/24/2014 09:59:21,spid6s,Unknown,SQL Server Audit has started the audits. This is an informational message. No user action is required.
    01/24/2014 09:59:21,spid6s,Unknown,SQL Server Audit is starting the audits. This is an informational message. No user action is required.
    01/24/2014 09:59:21,spid6s,Unknown,Resource governor reconfiguration succeeded.
    01/24/2014 09:59:21,spid6s,Unknown,CHECKDB for database 'master' finished without errors on 2014-01-19 12:20:10.410 (local time). This is an informational message only; no user action is required.
    01/24/2014 09:59:21,spid6s,Unknown,Recovery is writing a checkpoint in database 'master' (1). This is an informational message only. No user action is required.
    01/24/2014 09:59:21,spid6s,Unknown,1 transactions rolled back in database 'master' (1). This is an informational message only. No user action is required.
    01/24/2014 09:59:20,spid6s,Unknown,Starting up database 'master'.
    01/24/2014 09:59:20,Server,Unknown,Node configuration: node 0: CPU mask: 0x000000000000ffff:0 Active CPU mask: 0x000000000000ffff:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user
    action is required.
    01/24/2014 09:59:20,Server,Unknown,Lock partitioning is enabled.  This is an informational message only. No user action is required.
    01/24/2014 09:59:20,Server,Unknown,Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
    01/24/2014 09:59:20,Server,Unknown,Using locked pages for buffer pool.
    01/24/2014 09:59:19,Server,Unknown,Large Page Allocated: 32MB
    01/24/2014 09:59:19,Server,Unknown,Large Page Granularity: 2097152
    01/24/2014 09:59:19,Server,Unknown,Large Page Extensions enabled.
    01/24/2014 09:59:19,Server,Unknown,Detected 16 CPUs. This is an informational message; no user action is required.
    01/24/2014 09:59:19,Server,Unknown,SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    01/24/2014 09:59:19,Server,Unknown,Registry startup parameters: <nl/>
    -d F:\SysDB\Program Files\Microsoft SQL Server\MSSQL10_50.ETL\MSSQL\DATA\master.mdf<nl/>
    -e F:\SysDB\Program Files\Microsoft SQL Server\MSSQL10_50.ETL\MSSQL\Log\ERRORLOG<nl/>
    -l F:\SysDB\Program Files\Microsoft SQL Server\MSSQL10_50.ETL\MSSQL\DATA\mastlog.ldf<nl/>
    -T 3226<nl/> -T 1118<nl/>
    -T 1117
    01/24/2014 09:59:19,Server,Unknown,This instance of SQL Server last reported using a process ID of 1060 at 1/24/2014 9:57:16 AM (local) 1/24/2014 3:57:16 PM (UTC). This is an informational message only; no user action is required.
    01/24/2014 09:59:19,Server,Unknown,Logging SQL Server messages in file 'F:\SysDB\Program Files\Microsoft SQL Server\MSSQL10_50.ETL\MSSQL\Log\ERRORLOG'.
    01/24/2014 09:59:19,Server,Unknown,Authentication mode is MIXED.
    01/24/2014 09:59:19,Server,Unknown,System Manufacturer: 'HP'<c/> System Model: 'ProLiant DL580 G5'.
    01/24/2014 09:59:19,Server,Unknown,Server process ID is 20096.
    01/24/2014 09:59:19,Server,Unknown,All rights reserved.
    01/24/2014 09:59:19,Server,Unknown,(c) Microsoft Corporation.
    01/24/2014 09:59:19,Server,Unknown,Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64) <nl/>
    Jun 28 2012 08:36:30 <nl/> Copyright (c) Microsoft Corporation<nl/>
    Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)

  • I need assistance with changing language from German to English

    I need assistance with changing language from German to English. Unable to uninstall product from control panel.

    What exactly means "unable"?
    Since you mention Control Panel, I assume that you are on Windows.  Try using http://labs.adobe.com/downloads/acrobatcleaner.html

  • How to reload the screen when changing languages in JavaFX 2?

    I'm beginner with javaFX and i need to change language of the screen. but i have no idea how to reload the screen when the language was changed. The application have a button where have the language available. I want just refresh screen when the user change language.
    Here is the start method to show the stage.
        @Override
        public void start(Stage stage) throws Exception
            this.stage = stage;
            Locale locale = Locale.getDefault();
            ResourceBundle rb = ResourceBundle.getBundle("resources/Label",locale);
            loader = new FXMLLoader(getClass().getResource("FXMLDocument.fxml"),rb);
            root = (Parent)loader.load();
            FXMLDocumentController controller = (FXMLDocumentController) loader.getController();
            controller.setMain(this);
            scene = new Scene(root);
            stage.setScene(scene);
            stage.show();
    here is the function to change the language(in the same class with start function),the rb is the new ResourceBundle:
        public void refresh(ResourceBundle rb)
              //change the language here
    1. I don't want to use the resourceBundle to get value in resource file and set label in scene one by one.like following:
    this.btnLabel.setText(rb.getString(key.test));
    2. I don't want to reload the scene,like following:
        public void refresh(ResourceBundle rb)
             try
                loader = new FXMLLoader(getClass().getResource("FXMLDocument.fxml"),rb);
                root = (Parent)loader.load();
                scene.setRoot(root);
                FXMLDocumentController controller = (FXMLDocumentController) loader.getController();
                controller.setMain(this);
            catch(Exception err)
                err.printStackTrace();
    So do we have a solution to just set the resourceBundle and reload the scene easier?
    Thanks and best regards!

    Your option 2 (reload the FXML for the scene using the new resource bundle as a parameter), is the way this would normally be done and what I would recommend.
    Failing that, you could use option 1 of individually resetting the label text of labeled items (I don't really recommend this).
    Why don't you want to use option 2?
    Perhaps it is because there is some internal state of the UI which differs from the initial state when the the UI is first loaded (e.g. user has typed text in a text field and you want to preserve that).  If that's the case you will need to either go with your option 1 of individually resetting the label text of labeled items, or implement something which preserves the UI state and user data by saving it in memory or to disk, reloading the UI via the FXMLLoader (essentially your option 2), then restoring the UI state and user data to what it was before the language change.  Preserving and restoring the modified state seems complicated to me if you have a lot of state, so I wouldn't really advise this approach unless you really needed it.

Maybe you are looking for

  • Calendar no longer expands panel to edit event date/time

    This issue just occurred out of the blue. When editing event details in the calendar, I click on the date/time panel to edit the date/time/repeat/etc. The expected action is for that panel to expand and be scrollable. What it is doing now is showing

  • How to get the current selected column and row

    Hi, A difficult one, how do i know which column (and row would also be nice) of a JTable is selected? e.g. I have a JButton which is called "Edit" when i select a cell in the JTable and click the button "Edit" a new window must be visible as a form w

  • Thunderbolt display issues

    I went to the Apple store yesterday with my Macbook Pro to test a Thunderbolt Display. The store assistant attempted to demonstrate it to me (I say attempted!), but he couldn't get it working. Basically, when he connected my MBP to the display with t

  • How do I mode folders to a new location. I'm using Photoshop Elements 13 on iMac.

    How do I mode folders, containing the photo files, to a new location, in my case a NAS?

  • How to leave full-screen view in Acrobat LE on HTC Touch Diamond?

    Hello I have entered full-screen mode in Adobe Acrobat LE on my HTC Touch Diamond, but I cannot leave full-screen mode. There is nowhere on the screen that gives me a button to leave full-screen mode?! I have tried using the buttons below the touch-s