Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question