on 07-10-2009 9:54 AM
Hello,
how can we do the .par application Internationalization (I18N) ?
can we tell me the step by step procedure please.
Thanks.
Sriram.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello sriram thota
Did you get to install a new language ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.