Skip to Content
avatar image
Former Member

.par application Internationalization (I18N) ?

Hello,

how can we do the .par application Internationalization (I18N) ?

can we tell me the step by step procedure please.

Thanks.

Sriram.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 19, 2009 at 08:43 PM

    Portal Internationalization is not stright forward like Web Dynpro's.

    Simple approach is Create .properties file in your project and read it from your JSP file or any where.

    Go to package explorer navigate to dist -> PORTAL-INF -> private -> classes ->

    create

    translations.properties

    translations_es.properties

    Entries for this properties file

    BACK_STR=Back

    NEWS=News

    Write a method in your JSP file to read

    String backString = getString(componentRequest, "BACK_STR");

    private String getString(IPortalComponentRequest request, String resource_key)

    {

    try{

    ResourceBundle bundle = ResourceBundle.getBundle("translations", request.getLocale());

    return bundle.getString(resource_key);

    }

    catch(MissingResourceException e){

    return "Null Back "+e.toString();

    }

    }

    Hope this is useful to you.

    Edited by: Sridhar k on Aug 19, 2009 3:44 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 10, 2009 at 10:39 AM

    Hi,

    here is a guide:

    [Guide for internationalization|http://help.sap.com/saphelp_nw04/helpdata/en/2d/e7381138a8d2458f1f4fac32614f71/frameset.htm]

    Hope this helps.

    Kind regards,

    Christoph

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 10, 2009 at 11:18 AM

    Hi Sriram

    Check this PDF link

    http://www.cs.usfca.edu/~parrt/papers/i18n.pdf

    Regards

    Ruturaj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 19, 2009 at 03:24 PM

    Hello sriram thota

    Did you get to install a new language ?

    Add comment
    10|10000 characters needed characters exceeded