on 01-10-2012 1:34 PM
Hello dear colleagues,
I would like to translate J2EE project (not WebDynpro) for three languages via creating *.xlf files in SAP NWDS.
1. Could you tell me please if I need to add a suffix of type u201Cen_ENu201D and u201Cde_DEu201D to my *.xlf files or only u201Cenu201D and u201Cdeu201D?
If I understood well the suffix for J2EE projects have to be of type u201Clocale_countryu201D, is it right?
2. Another question is: should I create .properties file for each ,.xlf file? Because it's not needed for WebDynpro projects but I think that is needed for J2EE project.
Thanks!
Regards,
Arkadiy
Hello dear colleagues,
> I would like to translate J2EE project (not WebDynpro) for three languages via creating *.xlf files in SAP NWDS.
> 1. Could you tell me please if I need to add a suffix of type u201Cen_ENu201D and u201Cde_DEu201D to my *.xlf files or only u201Cenu201D and u201Cdeu201D?
> If I understood well the suffix for J2EE projects have to be of type u201Clocale_countryu201D, is it right?
> 2. Another question is: should I create .properties file for each ,.xlf file? Because it's not needed for WebDynpro projects but I think that is needed for J2EE project.
> Thanks!
>
> Regards,
> Arkadiy
1. The way locale recognition works is - from lower abstraction to higher: if user local is de_at java will check de_at first, if it is not available - de. So if you need to support just german (no region specific translation) _DE should be enough.
2. AFAIK property file is generated automatically for .xlf file by translation tool (Eclipse plugin). You dont have to create them manually.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maksim, thanks a lot for your answer.
What about de or de_DE: it's clear now.
But what can be happened if I create new xlf-files not via SAP NWDS? Should I open my project in SAP NWDS after that and in a context menu "I18N" for each new xlf-file choose "Create properties file"? Is there any other way to do it automatically?
Regards,
Arkadiy
Well, if you have a lot of .xlf's you can write a small java program which scans the directory for xlf files and using com.sap.jdt.s2x.transform.ResourceExtractor.runTransform (String inputXLFfullPath, String outputPropertyFullPath ) (WD_RUNTIME/com.sap.ide.eclipse.s2x.editor_2.0.0/plugin.jar) perform the transormation
Sorry, this case I route again your thread to the Java programming forum.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check this guide, which will answer your questions:
Notice also that I have moved your thread to the webdynpro forum (the NWDI forum where this thread was opened originally is not competent in this question).
Best Regards,
Ervin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i think you can just follow normal java I18N process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.