This step involves converting all the Resources e.g. strings, images and help files to desired language.
Following steps are involved in this procedure
Convert and replace images available in the following folders:
C: \installations\OmniDocs Server\estyle\images\doccab.
C: \installations\OmniDocs Server\estyle\images\nmfviewer.
C: \installations\OmniDocs Server \estyle\images\services.
C: \installations\OmniDocs Server \estyle\images\workitem.
C: \installations\OmniDocs Server \htdocs\Admin\images.
C: \installations\OmniDocs Server \estyle\site\home_imgs
Convert and replace help files available in the following folders:
C: \installations\OmniDocs Server \HELP.
C: \installations\OmniDocs Server \Help(WINSYS).
C: \installations\OmniDocs Server \Helpfiles(shared)
Convert and replace notification E-mail messages:
C: \installations\OmniDocs Server \AlarmMailer\mailtemplates\estyle
C: \installations\OmniDocs Server \ini\mailtemplates\estyle
C: \installations\OmniDocs Server \ini\mailtemplates\estyle\ar_sa
Convert and replace following client side scripting resource files:
(Any text editor which support desired language can be used for this purpose)
· C: \installations\OmniDocs Server \estyle\scripts\doccab\constants.js.
· C: \installations\OmniDocs Server \estyle\scripts\doccab\auditlog.js.
· C: \installations\OmniDocs Server \htdocs\Admin\scripts\constants.js.
· C: \installations\OmniDocs Server \estyle\scripts\workitem\constants.js.
· C: \installations\OmniDocs Server \estyle\scripts\workitem\constants.js.
5. Convert and replace following htm files.
(Any html editor which, supports desired language can be used for this purpose)
· C: \installations\OmniDocs Server \htdocs\Admin\main\loginfailed.htm
· C: \installations\OmniDocs Server \htdocs\Admin\main\logout.htm
· C: \installations\OmniDocs Server \htdocs\Admin\main\timeout.htm
· C: \installations\OmniDocs Server \estyle\main\ loginfailed.htm
· C: \installations\OmniDocs Server \estyle\main\ logout.htm
· C: \installations\OmniDocs Server \estyle\main\ timeout.htm
Modify and replace home page.
(Sample pages for Japanese are available with this localization toolkit, which can be used as it is)
· Copy and Rename Omnidocs-Localization Kit\Sample Code\Login_for_jap\login_admin_ja.class to login.class and replace it in the folder C:\installations\OmniDocs Server\TomcatRoot\classes\admin.
· Copy and Rename Omnidocs-Localization Kit\Sample Code\Login_for_jap\login_doccab_ja.class to login.class and replace it in the folder C: \installations\OmniDocs Server\TomcatRoot\classes\doccab.
Convert and rename the following resource file:
JTSMessages.properties
Path: C:\installations\OmniDocs Server\JTS Server Files.
This file contains error/exception messages related to JTS.
For localizing you will need to edit this file and set the string resources
in the desired language. After editing, rename the file as
JTSMessages_<locale>.properties and copy the files to the path
C:\installations\OmniDocs Server\ JTS Server Files.
Note
Also add this file to the Install Shield project in the file group JTS Server files
8. Convert and build resource bundle for GUI resources.
The following resource files need to be localized. These files contain string resources, which have to be localized in the desired language:
a. odadmingen.properties
Path: C:\installations\OmniDocs Server\ini.
This file contains static text like button labels, alert messages, or any other
static text, which appears in OmniDocs Admin.
b. odadmintext.properties
Path: C:\Omnidocs-Localization Kit\Development Environment\ini.
This file contains text that appears in the beginning of screens,
which describes functionality of that screen in OmniDocs admin.
c. odwebgen.properties
Path: C: \installations\OmniDocs Server\ini.
This file contains static text like button labels, alert messages, or any other
static text, which appears in OmniDocs web.
d. odwebtext.properties
Path: C:\installations\OmniDocs Server\ini.
This file contains text that appears in the beginning of screens, which
describes functionality of that screen in OmniDocs web.
Sample files having English resource string are present in CD in the folder
C:\Omnidocs-Localization Kit\Sample Code named as
odadmingen_en.properties
odadmintext_en.properties
odwebgen_en.properties
odwebtext_en.properties
1) Open the files and edit them giving the text in the desired language.
For example the file odwebgen_en.properties has strings as:
Login_To_OmniDocs=Login to OmniDocs
Only the string after the =(equal to) sign has to be localized in the desired
language.
2) After editing the files rename them as odwebgen_<locale>.properties
where locale is the local name of the language for which localization
is being done.
For example if you have to localize for the Japanese language.
The names of the properties files should be:
odadmingen_ja.properties
odadmintext_ja.properties
odwebgen_ja.properties
odwebtext_ja.properties
3) The files should be then copied to the following path:
C:\installations\OmniDocs Server\ini.
Important
Add these files to the install Shield project in the file group ini.
Resource Bundle Class Files
Resource bundle class files are used to load above described resource files
at run time. There is exactly one Resource bundle class for every resource
(property) file.
You will need to make Resource bundle class files to use the
properties files. For each properties file a class file has to be made having the
same name as the properties file. ie for a properties file odwebgen_<locale>.
properties you will have to make a class file as odwebgen_<locale>.class
Sample Resource bundle class files are available with this kit named
odwebgen_en.java which is used for the file odwebgen_en.properties.
They are present at the following path in the CD
Omnidocs-Localization Kit\Sample Code
For localizing to Japanese the class files have been provided in CD in the folder
Omnidocs-Localization Kit\Sample Code.
You can use these files as it is for localizing in Japanese. These files are
odadmingen_ja.class
odadmintext_ja.class
odwebgen_ja.class
odwebtext_ja.class
These files have to be copied to the following path.
C:\ installations\OmniDocs Server\TomcatRoot\classes
Important
Also add these files to the Install Shield project in the file group.
TomcatROOT\ROOT\WEB-INF\classes
For example if you have to localize for the Japanese language.
The resource bundle files should be made accordingly as
odadmingen_ja.java
odadmintext_ja.java
odwebgen_ja.java
odwebtext_ja.java
These Resource Bundle class files have to be compiled and should
be copied to the TomcatROOT\ROOT\WEB-INF\classes