Change display language according to the user programmatically

How to change the site displaying language according to the user ? Let say I've drop-down to select language in a web page according to that whole site display language change and also user's language in user profile need to change. How to do that in using
server object model programmatically.

Hi,
According to your post, my understanding is that you wanted to display language according to the user.
First, we can find out the current culture of the logged in user based on
LCID.
System.Threading.Thread.CurrentThread.CurrentUICulture.LCID
Then you can set the language based on the LCID.
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/0e5d36e1-ec06-404a-ab2c-0e0ff475abec/how-to-change-the-language-based-on-log-in-user-programmatically-in-sharepoint-2013-how-to-change?forum=sharepointdevelopment
http://sharepoint.stackexchange.com/questions/104140/change-site-display-language-according-to-the-user
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support

Similar Messages

  • Universe object that points to certain field according to the user PVL

    Hi universe designing experts !
    Marianne solved a problem I have in [this|Web Intelligence: Hide / Show object according to InfoView Locale; post. I wanted to replace an object/column in a report according to the users locale. This was done at report level with a selection containing the getPreferredViewingLanguage() function in WebI.
    My question now is, could I somehow define in the universe an object that, according to the PVL of the report viewer, points to a different field in the database ?
    We have description fields in the databse for different languages.
    Thanks in advance !
    P

    Hi Marianne
    Thanks again for your response.
    Marianne Loenen wrote:
    > If you want a solution for this written down, you need to give the database you use.
    We are using an Oracle 10g database.
    Marianne Loenen wrote:
    > In Oracle there is a system view v$nls_parameters in which you can lookup stuff like that.
    > It's a one row view, so you can use a (select xxx from v$nls_parameters) as column in any query.
    OK I didn't know that. But I don't think that I could use this variable in this situation. Please correct me if I'm wrong...
    What I want to do is this:
    A user with Preferred Viewing Language nl_NL and a user with PVL en_GB are requesting the same report. In that report there is a field with a description about another field. The descriptions are 2 different columns in the database. You showed me before (thanks again) how I could switch the 2 field according to a users PVL that I could query from the system ( getPreferredViewingLanguage() ). I want, if possible, to do this at Universe level so I only have to drag 1 single object in the query that corresponds to the right column according to the report viewers PVL... So the en_GB guy will see English descriptions and the Dutch guy will see the Dutch descriptions all from the same object...
    Would be cool if that was possible...
    Thanks again for helping !
    P

  • Change display language to english

    I have a new Lenovo running win 7. As it was acquired in Venezuela the os is in Spanish...
    is there any way to change the display language to english?
    thanks
    sjferrari

    http://www.mydigitallife.info/2009/05/28/change-display-language-for-windows-7-u i-welcome-screen-system-and-new-accounts/

  • Choose the Subject Area according to the user connexion

    Hi all,
    Suppose that I have many subject area in the presentation layer (for example SA1 and SA2).
    Is it possible to choose the subject area to display according to the user connexion.
    ie. If we have two users User1 and User2 and i would like to schow only SA1 for USER1 and USER2.
    Thanks
    Best regards

    You can do this by following steps....
    1. Open the repository in Administration Tools. In the presentation layer, Go to the presentation catalog. then right click the presentation catalog you want to restrict to a particular user.
    2. click properties. Go to persmissions tab, then click show all users and groups. select the user you want to restrict and then click the checkbox next to it. keep clicking it until it becomes a red cross. click ok. It's done.
    Hope that helps...Correct me if I am wrong.
    Edited by: user9149257 on Feb 24, 2010 3:19 AM
    Edited by: user9149257 on Feb 24, 2010 3:20 AM

  • I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid co

    I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid contrast, colour, radius, high tonal width and low tonal width.
    If anyone has any suggestions as to how to access this advanced section, I'd be most grateful.

    Hi David-
    The advanced adjustments in the Highlights & Shadows tool were combined into the "Mid Contrast" slider in Aperture 3.3 and later. If you have any images in your library that were processed in a version of Aperture before 3.3, there will be an Upgrade button in the Highlights & Shadows tool in the upper right, and the controls you asked about under the Advanced section. Clicking the Upgrade button will re-render the photo using the new version of Highlights & Shadows, and the Advanced section will be replaced with the new Mid Contrast slider. With the new version from 3.3 you probably don't need the Advanced slider, but if you want to use the older version you can download it from this page:
    http://www.apertureexpert.com/tips/2012/6/12/reclaim-the-legacy-highlights-shado ws-adjustment-in-aperture.html

  • Will any change in tempdb database affect the user defined tables?

    Will any change in tempdb database affect the user defined tables?
    Suppose I have deleted a table from system database tempdb, will it effect the user defined tables?
    Anujit Karmakar Sr. Software Engineer

    The short answer is no; deleting a table from tempdb will not affect user databases.
    Of course I could make up some connection between the two that you haven't described. For example, if a stored procedure created a temporary table, and was busy using it when you deleted it, the deletion could cause unexpected behavior in the user database,
    which could affect some table data.
    Also, some system actions in user databases can store data in tempdb temporarily. But you aren't likely to be talking about system usages of tempdb.
    So, unless you describe some connection, the tables in tempdb are independent from the user database tables.
    Rick Byham, Microsoft, SQL Server Books Online, Implies no warranty

  • How to Change Date Format according to the Locale/Country of Portal User

    Hi,
    In a webdynpro applicaiton, how to chage the  Date Format according to the Locale/Country of Portal User.
    Consider for INDIA: mm/dd/yyyy
    Consider for UK: yyyy/mm/dd
    So when i select the date from the Date Picker[input ui element bound to date context variable], the date format should be displayed accroding the portal users country/locale.
    Creating a simple type for every date format in the dictionary would not be the right solution.
    Please help.
    Thanks,
    Regards,
    Aditya Metukul

    Hi Aditya,
    Check out the following post in SDN and refer the
    Bertram's reply on the same topic.
    date format
    Regards,
    Shubham

  • Change display language of smartform from within the smartform itself

    Hi!
    The smartform is invoked to display from the standard with some language, which we want to change.
    We can't change calling code (because it's standard).
    Is it possible to change the displaying language of a smartform from within the smartform. Say, "Initialization" section?

    Hi Concern,
      We can change language at run time. With following way.
    1.    Define a variable and allocate language u want to langu fields.
    DATA  lV_CT_PARA  TYPE SSFCTRLOP.
    Here LV_lang contain the language u want to assign.
      LV_CT_PARA-LANGU  = LV_LANG.
    2. Pass it to smart form.
    CALL FUNCTION FM_NAME
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         =  LV_CT_PARA
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    Itu2019s working for me.
    Regards
    Swati.
    Edited by: Swati Namdev on Apr 28, 2010 7:06 PM

  • Displaying Plant as F4 option in the selection screen according to the User Authorization

    Hi all,
    In the selection screen, I need to display the list of plants as F4 search help that the user has authorization.
    How I need to check from the table.
    Please provide me the exact table name where I can get the list of plants that the user has authorization.
    Thanks in Advance.
    Regards,
    karthik

    Hi Madan,
    Thanks for your reply.
    As of now Plant entered in selection screen is validated for authorization like below.
    authority-check object 'M_MATE_WRK'
          id 'ACTVT' field '02'
          id 'WERKS' field p_werks.
       if sy-subrc <> 0.
         message text-010 type c_e.
         exit.
       endif.
    But they are in need of Plants in F4.
    Regards,
    Karthik

  • To set a default role according to the user.

    Hi,
    I would like to set different default roles according to users. For example, we have the following prerequisites:
    1) 3 roles: roleA | roleB | roleC (in this order).
    2) 3 differents users: user1, user2, user3.
    So, if I log-in with the user1, the default role should be the roleA; if I log-in with the user2, the default role should be the roleB; and so on.
    But I don't want to change the order of the roles using "sort priority" property.
    How can I do this?
    Thanks,
    Samantha.

    Hello Samantha,
    Does each of the users need to have each of the roles? If not you could just not assign the other roles except the one you want to display as default role (a assume you mean the role that is displayed first after logon).
    If each of your users need every role, I am afraid your requirement is not realizable unless you use the sort priority property. Why don't you want to use it in the first place?
    On possible yet circuitous way to meet your requirements would be the following:
    Create another role for each of your user(-group)s. Say in your case Role 1, Role 2 and Role 3 which are not defined as entry points.
    Assign roleA, roleB and roleC to Role 1 where roleA has the lowest sort priority; and assign user1 to role 1.
    Assign roleA, roleB, roleC to Role 2 where roleB has the lowest sort priority; and assign user 2 to Role 2
    and so on.
    Of course you need to use sort priority for that and I think thats hard to maintain. (probably not even what you are looking for)
    Maybe you can get a litle more concrete what you are trying to achieve.
    best regards
    Stefan

  • Change number / date format for the user at run time

    Hi,
    Can I configure a report in Oracle Answers to display a column in a particular format for one group of users and a different format for another group of users?

    Hi,
    Yes this is possible.
    In the BMM layer duplicate column which is to be formatted for different group of users. And pull it into the presentation layer.
    Suppose Column 1 for the Group 1 users
    and Column 2 for the Group 2 users
    In the presentation layer, double click on the column and give permission for the column 1 for the group 1 users and group 2 users for column.
    First create a report with all the desired columns with Administrator or Presentation Server Administrator Role. And format the columns according to the different group of users.
    In, NQSConfig.ini change the parameter PROJECT_INACCESSIBLE_COLUMN_AS_NULL which is under security section. By default it is set to No. Set it to yes. And restart the services.
    Now logon with the group 1 users and you can see only the column1 and when logged on with group 2 users, you can see the column2.
    And will solve your problem.
    Please let me know if you need step-by-step process for solving.
    Please award if you found this useful/helpful
    Regards
    MuRam

  • Problem in changing display language, please help

    I set my Mac's language settings to Japanese when I on my Mac for the first time.
    Now I want to change the display language to English, so I changed the settings through System Preference -> International. I dragged English to the top of the list and re-log in the OS. All the menus are changed to English, but the login screen remains in Japanese.
    I have tried to repeat the action several times but no luck. Can someone please tell me how to change it login screen back to English?
    Thanks in advance.

    Kometoku,
    Welcome to the Apple Discussions!
    Does How to change Login Window language address what what's looking to fix? That Knowledge Base article as written refers to OS X 10.0 through 10.3.9 but the steps described in the article should work with 10.4 as well.

  • Can I dynamically display a product showing the user's options

    I'm a total Flash newbie so please use small words
    My customer manufactures small aluminum products that can be
    anodized in several colors. The products can have simple line
    graphic artwork or user-specified text engraved into them with an
    NC milling machine. If the user wants to add text he also selects
    one of several possible fonts. The engraving can also be colored to
    contrast with the body of the part.
    My customer wants a application (Windows or Web) that can
    dynamically display the product as the user makes his choices: i.e,
    display an image of the product in the chosen color, then show it
    engraved with the artwork and/or text. The text should be shown in
    the correct font.
    The products, colors, artwork and fonts are all known but the
    user's text is obviously unpredictable, so it's impossible to
    simply prepare photos of every possible combination. Can Flash (or
    something else) programmatically generate and overlay text and
    artwork on an image? Can it alter the colors or should I simply
    have a photo of every product in every color?
    Is this possible? Is Flash the appropriate technology?
    Thanks

    Steve,
    I am not sure if you have any software to start with, so I
    dunno exactly what you need. You need an image editor, some sort of
    html editor, and of course Flash. The easy answer is the Web
    Premium version of CS3. It should have all you need. If you already
    have some of those tools, then the main thing you need is Flash.
    There are also some free alternatives out there from web creation
    and image editing, but they don't integrate quite as well as having
    all Adobe products.
    Some good learning resources can be found at Lynda.com. It
    has a ton of tutorials on programs that you would need to do this
    including Photoshop and Flash. A subscription is a bit pricey, but
    when you think that one book can be $50, being able to access so
    many tutorials really seems like a good value. Also, there are some
    good print book available there that you could use as a buying
    guide. You'll need to get into ActionScripting with with this, so
    look for a basic intro to Flash CS3, and then something regarding
    getting started with ActionScript 3.
    These forums are a good resource as well, but mainly when
    you have specific questions. People can answer "Why does my text
    disappear when I use a mask over it?" but it is harder to answer,
    "I want to build a picture library, how do I do that?"
    - B
    - B

  • How to write table name in SQL according to the user input

    hi
      i want to select data from a table , and the table name, field name is input by the user, for example, user input table name T1, field name F1 and i want to construct a SQL like select F1 into a_var from T1 . how does the SQL statement written? thanks for your advice.

    hi
    for ur requirement u should go for field sysmbols...
    dynamic internal tables..
    u can chk this....
    TYPE-POOLS : slis.
    PARAMETERS : p_struc LIKE dd02l-tabname.
    DATA : it_fieldcat TYPE lvc_t_fcat,
            t_output TYPE REF TO data .
    FIELD-SYMBOLS: <t_output> TYPE table ,
                   <wa_output> TYPE ANY,
                   <fval> TYPE ANY.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      I_BUFFER_ACTIVE              = I_BUFFER_ACTIVE
       i_structure_name             = p_struc
      I_CLIENT_NEVER_DISPLAY       = 'X'
      I_BYPASSING_BUFFER           = I_BYPASSING_BUFFER
      I_INTERNAL_TABNAME           = I_INTERNAL_TABNAME
      CHANGING
        ct_fieldcat                  = it_fieldcat
    EXCEPTIONS
      INCONSISTENT_INTERFACE       = 1
      PROGRAM_ERROR                = 2
      OTHERS                       = 3
    IF sy-subrc <> 0.
    MESSAGE i000(bctrain) WITH 'MERGE FAILED'.
    *ELSE.
    MESSAGE i000(bctrain) WITH 'MERGE SUCCESS'.
    ENDIF.
    CREATE DATA t_newline LIKE LINE OF <t_dyntable>.
    ASSIGN t_newline->* TO <fs_dyntable>.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
      EXPORTING
       I_STYLE_TABLE             =
        it_fieldcatalog           = it_fieldcat
       I_LENGTH_IN_BYTE          =
      IMPORTING
        ep_table                  = t_output
       E_STYLE_FNAME             =
      EXCEPTIONS
        generate_subpool_dir_full = 1
        OTHERS                    = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ASSIGN t_output->* TO <t_output>.
    SELECT * up to 10 rows FROM
       (p_struc)  INTO
       CORRESPONDING FIELDS OF
       TABLE <t_output>.
    *write : / 'dynamic table created'.
    LOOP AT <t_output> ASSIGNING  <wa_output>.
      DO.
        ASSIGN component sy-index of structure <wa_output> to <fval>.
        IF sy-subrc <> 0.
          WRITE : /.
          EXIT.
        ELSE.
          WRITE : <fval>.
        ENDIF.
      ENDDO.
    ENDLOOP.
    Message was edited by:
            Premalatha G

  • Attribute Change run failed due to the User Lock

    Hi Friends,
    attribute change run has failed due to the user lock.
    can any one tell me how to process and what is the main cause behind on this.
    thanks in advance

    if master data is loading at same time while the attr/hier change run is occuring,it cause the change run to fail.
    Usually u get error message like..user ALEREMOTE has locked the MD tables..
    Wait for some time and then try attr change run manually by going to rsa1->tools->apply hier/attr change..
    if it still shows locked..try to see in rsmo if a MD load has got stuck..
    else..see in sm12 to find lock is on which tables..
    last resort..delete lock forcefully from sm12..
    first option is wait for some time and give a try again..
    cheers,
    Vishvesh

Maybe you are looking for

  • Item Status Cannot be Changed

    I  had an existing PO with an item on it that was flagged as not being an Inventory item by mistake. It appears the system allowed the creation of the PO while the item was flagged this way. A Goods Receipt PO was generated from the PO and all produc

  • Sales Analysis query issue

    Experts, I have compiled a Sales Analysis Query for a client who need more information than the Sales Analysis in SBO can give them. I have found that if I only run the Months of July and August (choose these randomly) I get the correct amounts in th

  • RRI in NW2004S - usibg SAPgui

    Hi, I configured the RRI from one InfoCube to the transaction in ERP. During the execution the error message is displayed:     No Web server maintained for the presentation of log. system abc     Jump target cannot be executed I would like to run ERP

  • The User Profile Service service failed the logon. User profile cannot be loaded.

    I have one Admin profile (me)  and 1 guest profile (Guest) I have followed the instructions in Microsoft KB 947215  In step 4 it says to locate the S-1-5 folders, which I have done, find the two matching file numbers and change the .bak/ba extensions

  • HT2101 my ipod got wet and it wont turn on

    can you please help me apple i cant charge or turn it on too