...
Step | Action |
---|
Editing ./home/pom.xml Add the dependency (in bold) in the POM file | . . . <modules> <module>../../Vitro/home</module> <module>../../VIVO/home</module> <module>../../VIVO-languages/core/home</module> <module>../../VIVO-languages/en_US/home</module> <module>../../VIVO-languages/en_CA/home</module> <module>../../VIVO-languages/de_DE/home</module> <module>../../VIVO-languages/es/home</module> <module>../../VIVO-languages/pt_BR/home</module> <module>../../VIVO-languages/fr_CA/home</module> </modules> . . . |
Editing ./webapp/pom.xml Add the dependency (in bold) in the POM file | . . .
<dependency> <groupId>org.vivoweb</groupId> <artifactId>vivo-languages-webapp-en_CA</artifactId> <version>1.11.2-SNAPSHOT</version> <type>war</type> </dependency> <dependency> <groupId>org.vivoweb</groupId> <artifactId>vitro-languages-webapp-fr_CA</artifactId> <version>1.11.2-SNAPSHOT</version> <type>war</type> </dependency> <dependency> <groupId>org.vivoweb</groupId> <artifactId>vivo-languages-webapp-fr_CA</artifactId> <version>1.11.2-SNAPSHOT</version> <type>war</type> </dependency> <dependency> . . . |
Editing ./webapp_dep/pom.xml Add the dependency (in bold) in the POM file | . . . <modules> <module>../../Vitro/api</module> <module>../../Vitro/dependencies</module> <module>../../Vitro/webapp</module> <module>../../Vitro-languages/core/webapp</module> <module>../../Vitro-languages/fr_CA/webapp</module> <module>../../Vitro-languages/en_US/webapp</module> <module>../../Vitro-languages/en_CA/webapp</module> <module>../../Vitro-languages/de_DE/webapp</module> <module>../../Vitro-languages/es/webapp</module> <module>../../Vitro-languages/pt_BR/webapp</module> <module>../../VIVO/api</module> <module>../../VIVO/webapp</module> <module>../../VIVO-languages/core/webapp</module> <module>../../VIVO-languages/fr_CA/webapp</module> <module>../../VIVO-languages/en_US/webapp</module> <module>../../VIVO-languages/en_CA/webapp</module> <module>../../VIVO-languages/de_DE/webapp</module> <module>../../VIVO-languages/es/webapp</module> <module>../../VIVO-languages/pt_BR/webapp</module> </modules> . . . |
...
2)
...
Compiling VIVO
| Action |
---|
start compilingBefore starting the compilation make sure you have correctly configured the settings_i18n_linux.xml file as described above. The -DskipTests option is optional.
Info |
---|
Make sure that the war file is installed in the appropriate tomcat directory. |
Observe lines 9, 21 and 30 which indicate that the new language is included in the installation process. |
Code Block |
---|
| cd Vivo-installer-i18n
mvn -s settings_i18n_linux.xml -DskipTests=true clean install |
At the end you should see a compilation end looking like this:
Code Block |
---|
language | bash |
---|
title | Result |
---|
linenumbers | true |
---|
| [INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for VIVO Installer for i18n 1.11.2-SNAPSHOT:
[INFO]
[INFO] Vitro Home ......................................... SUCCESS [ 3.782 s]
[INFO] VIVO Home .......................................... SUCCESS [ 1.523 s]
[INFO] VIVO Languages for Home en_US ...................... SUCCESS [ 0.345 s]
[INFO] VIVO Languages for Home de_DE ...................... SUCCESS [ 0.042 s]
[INFO] VIVO Languages for Home es ......................... SUCCESS [ 0.025 s]
[INFO] VIVO Languages for Home fr_CA ...................... SUCCESS [ 0.020 s]
[INFO] VIVO Languages for Home pt_BR ...................... SUCCESS [ 0.025 s]
[INFO] VIVO Languages for Home en_CA ...................... SUCCESS [ 0.023 s]
[INFO] VIVO Languages for Home CORE ....................... SUCCESS [ 0.116 s]
[INFO] VIVO Installer for i18n ............................ SUCCESS [ 0.185 s]
[INFO] Vitro Install Home for i18n ........................ SUCCESS [ 1.921 s]
[INFO] Vitro Dependencies ................................. SUCCESS [ 0.553 s]
[INFO] Vitro API .......................................... SUCCESS [ 47.060 s]
[INFO] Vitro Web App ...................................... SUCCESS [ 1.268 s]
[INFO] Vitro Languages for Web App en_US .................. SUCCESS [ 0.369 s]
[INFO] Vitro Languages for Web App de_DE .................. SUCCESS [ 0.055 s]
[INFO] Vitro Languages for Web App es ..................... SUCCESS [ 0.055 s]
[INFO] Vitro Languages for Web App fr_CA .................. SUCCESS [ 0.040 s]
[INFO] Vitro Languages for Web App pt_BR .................. SUCCESS [ 0.048 s]
[INFO] Vitro Languages for Web App en_CA .................. SUCCESS [ 0.053 s]
[INFO] Vitro Languages for Web App CORE ................... SUCCESS [ 0.136 s]
[INFO] VIVO API ........................................... SUCCESS [ 16.578 s]
[INFO] VIVO Web App ....................................... SUCCESS [ 1.399 s]
[INFO] VIVO Languages for Web App en_US ................... SUCCESS [ 0.034 s]
[INFO] VIVO Languages for Web App de_DE ................... SUCCESS [ 0.058 s]
[INFO] VIVO Languages for Web App es ...................... SUCCESS [ 0.046 s]
[INFO] VIVO Languages for Web App fr_CA ................... SUCCESS [ 0.034 s]
[INFO] VIVO Languages for Web App pt_BR ................... SUCCESS [ 0.043 s]
[INFO] VIVO Languages for Web App en_CA ................... SUCCESS [ 0.038 s]
[INFO] VIVO Languages for Web App CORE .................... SUCCESS [ 0.096 s]
[INFO] VIVO WebApp Install dependencies for i18n .......... SUCCESS [ 0.004 s]
[INFO] VIVO Install Web App for i18n ...................... SUCCESS [ 4.458 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:21 min
[INFO] Finished at: 2020-10-30T06:44:16-07:00
[INFO] ------------------------------------------------------------------------ |
|
Step 2) Running VIVO for testing and/or finding an i18n problem
Running VIVO verifies that the linguistic context " Français (Canada) " fr_CA is functional.
Image Added
Iteration summary
This iteration will have served to integrate the structure of the new language into VIVO. A first series of actions will have allowed to add and configure the necessary files to display the contextual linguistic menue including fr_CA. A second series of actions has been used to configure and add the necessary files for the compilation of VIVO by the i18n_installer program, including fr_CA.
...