Project WebSynergy Milestone 4 Administration Guide

Enabling the Guest Users to Select a Browser Language

Follow the below procedure to enable guest users to select their preferred browser language.

ProcedureTo Enable Guest Users to Select a Browser Language

Overwrite locale.default.request property in the Languages and Time Zones section of portal.properties to enable guest users to select their preferred browser language. You need to set this property value to true and put it in portal-ext.properties.

  1. Create a temporary folder. In this example, name the folder as test.

    Equivalent step in the command prompt or in the terminal window of a UNIX like OS:

    mkdir /tmp/test

  2. Copy portal-impl.jar to the temp folder.

    portal-impl.jar contains language resource bundles for WebSynergy. This jar file is located under the GlassFish install-dir/domains/domain1/application/j2ee-modules/websynergy/WEB-INF/lib/ directory.

    Equivalent step in the command prompt or in the terminal window of a UNIX like OS:

    cp GlassFish install-dir/domains/domain1/application/j2ee-modules/websynergy/WEB-INF/lib/portal-impl.jar /tmp/test

  3. Change directory to temp.

    Equivalent step in the command prompt or in the terminal window of SOLARIS or any UNIX like OS:

    cd /tmp/test

  4. Extract the portal-impl.jar file.

    Equivalent step in the command prompt or in the terminal window of a UNIX like OS:

    jar -xvf portal-impl.jar

    After unjar it will have portal.properties file in the same directory.

  5. Open portal.properties and copy the locale.default.request property from the Languages and Time Zones section.

  6. if portal-ext.properties does exits in WebSynergy then paste the locale.default.request property into it. Otherwise, create a text file (using any text editor) and name it as portal-ext.properties, and paste the locale.default.request property into it.

    Default location of portal-ext.properties is GlassFish install-dir/domains/domain1/applications/j2ee-modules/websynergy/WEB-INF/classes/portal-ext.properties.

  7. Edit the property to set it to locale.default.request=true.

  8. Save the portal-ext.properties file.

  9. Copy the portal-ext.properties file (under temp/test), and paste it to GlassFish install-dir/domains/domain1/applications/j2ee-modules/websynergy/WEB-INF/classes.

  10. Restart the GlassFish server.


    Note –

    Clear browser cookies before accessing WebSynergy interface to allow above changes to take place.