cancel
Showing results for 
Search instead for 
Did you mean: 

.par application Internationalization (I18N) ?

Former Member
0 Kudos

Hello,

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

can we tell me the step by step procedure please.

Thanks.

Sriram.

Accepted Solutions (1)

Accepted Solutions (1)

sridhar_k2
Active Contributor
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello sriram thota

Did you get to install a new language ?

Former Member
0 Kudos

Hi Sriram

Check this PDF link

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

Regards

Ruturaj

Former Member
0 Kudos

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