Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.

Commit d0be1df

Browse files
authored
Merge pull request #43 from vivo-project/sprint-i18n
Merge sprint/i18n into main. Resolves https://jira.lyrasis.org/browse/VIVO-1958 in conjunction with: vivo-project/VIVO-languages#94 vivo-project/VIVO#215 vivo-project/Vitro#209
2 parents 7acc864 + 19b57cb commit d0be1df

File tree

104 files changed

+5712
-17
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+5712
-17
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ utilities/rdbmigration/.work
1111
**/.idea
1212
**/*.iml
1313
**/target
14+
*~
15+
16+
*~
1417

1518
**/overlays
1619

core/pom.xml

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<artifactId>vitro-languages-core</artifactId>
6+
<version>1.11.2-SNAPSHOT</version>
7+
<packaging>pom</packaging>
8+
9+
<name>Vitro Languages CORE</name>
10+
<description>Vitro Languages</description>
11+
<url>http://vivoweb.org/</url>
12+
13+
<parent>
14+
<groupId>org.vivoweb</groupId>
15+
<artifactId>vitro-languages</artifactId>
16+
<version>1.11.2-SNAPSHOT</version>
17+
</parent>
18+
19+
<licenses>
20+
<license>
21+
<name>BSD 3-Clause License</name>
22+
<url>https://raw.github.com/vivo-project/VIVO/develop/LICENSE</url>
23+
<distribution>repo</distribution>
24+
</license>
25+
</licenses>
26+
27+
<developers>
28+
<developer>
29+
<name>Graham Triggs</name>
30+
<email>gtriggs@duraspace.org</email>
31+
<organization>DuraSpace</organization>
32+
<organizationUrl>http://vivoweb.org/</organizationUrl>
33+
</developer>
34+
<developer>
35+
<name>Jim Blake</name>
36+
<email>jeb228@cornell.edu</email>
37+
<organization>Cornell University Library</organization>
38+
<organizationUrl>https://github.com/j2blake</organizationUrl>
39+
</developer>
40+
<developer>
41+
<name>John Fereira</name>
42+
<email>jaf30@cornell.edu</email>
43+
<organization>Cornell University</organization>
44+
<organizationUrl>https://github.com/fereira</organizationUrl>
45+
</developer>
46+
</developers>
47+
48+
<!--
49+
The SCM repository location is used by Continuum to update against
50+
when changes have occurred. This spawns a new build cycle and releases
51+
snapshots into the snapshot repository below.
52+
-->
53+
<scm>
54+
<connection>scm:git:git@github.com:vivo-project/Vitro-languages.git</connection>
55+
<developerConnection>scm:git:git@github.com:vivo-project/Vitro-languages.git</developerConnection>
56+
<url>git@github.com:vivo-project/Vitro-languages.git</url>
57+
<tag>HEAD</tag>
58+
</scm>
59+
60+
<properties>
61+
<vitro-version>${project.version}</vitro-version>
62+
<vivo-dir>${basedir}</vivo-dir>
63+
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
64+
<build.timestamp>${maven.build.timestamp}</build.timestamp>
65+
<maven-site-plugin.skip>false</maven-site-plugin.skip>
66+
<stagingBase>/</stagingBase>
67+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
68+
</properties>
69+
70+
<modules>
71+
<module>webapp</module>
72+
</modules>
73+
74+
<profiles>
75+
<profile>
76+
<id>release-sign-artifacts</id>
77+
<activation>
78+
<property>
79+
<name>performRelease</name>
80+
<value>true</value>
81+
</property>
82+
</activation>
83+
<build>
84+
<plugins>
85+
<!-- plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-javadoc-plugin</artifactId>
88+
<executions>
89+
<execution>
90+
<id>attach-javadocs</id>
91+
<goals>
92+
<goal>jar</goal>
93+
</goals>
94+
</execution>
95+
</executions>
96+
<configuration>
97+
<quiet>true</quiet>
98+
<additionalparam>${javadoc.opts}</additionalparam>
99+
</configuration>
100+
</plugin -->
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-source-plugin</artifactId>
104+
<executions>
105+
<execution>
106+
<id>attach-sources</id>
107+
<goals>
108+
<goal>jar-no-fork</goal>
109+
</goals>
110+
</execution>
111+
</executions>
112+
</plugin>
113+
<plugin>
114+
<groupId>org.sonatype.plugins</groupId>
115+
<artifactId>nexus-staging-maven-plugin</artifactId>
116+
<extensions>true</extensions>
117+
<configuration>
118+
<serverId>ossrh</serverId>
119+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
120+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
121+
</configuration>
122+
</plugin>
123+
<plugin>
124+
<groupId>org.codehaus.mojo</groupId>
125+
<artifactId>buildnumber-maven-plugin</artifactId>
126+
<executions>
127+
<execution>
128+
<phase>validate</phase>
129+
<goals>
130+
<goal>create</goal>
131+
</goals>
132+
</execution>
133+
</executions>
134+
<configuration>
135+
<doCheck>false</doCheck>
136+
<doUpdate>false</doUpdate>
137+
<shortRevisionLength>7</shortRevisionLength>
138+
<revisionOnScmFailure>Detached</revisionOnScmFailure>
139+
</configuration>
140+
</plugin>
141+
<plugin>
142+
<groupId>org.apache.maven.plugins</groupId>
143+
<artifactId>maven-gpg-plugin</artifactId>
144+
<executions>
145+
<execution>
146+
<id>sign-artifacts</id>
147+
<phase>verify</phase>
148+
<goals>
149+
<goal>sign</goal>
150+
</goals>
151+
</execution>
152+
</executions>
153+
</plugin>
154+
</plugins>
155+
</build>
156+
</profile>
157+
</profiles>
158+
159+
<dependencies>
160+
<dependency>
161+
<groupId>org.vivoweb</groupId>
162+
<artifactId>vitro-languages-webapp-en_US</artifactId>
163+
<version>${project.version}</version>
164+
<type>war</type>
165+
</dependency>
166+
<dependency>
167+
<groupId>org.vivoweb</groupId>
168+
<artifactId>vitro-languages-webapp-de_DE</artifactId>
169+
<version>${project.version}</version>
170+
<type>war</type>
171+
</dependency>
172+
<dependency>
173+
<groupId>org.vivoweb</groupId>
174+
<artifactId>vitro-languages-webapp-es</artifactId>
175+
<version>${project.version}</version>
176+
<type>war</type>
177+
</dependency>
178+
<dependency>
179+
<groupId>org.vivoweb</groupId>
180+
<artifactId>vitro-languages-webapp-fr_CA</artifactId>
181+
<version>${project.version}</version>
182+
<type>war</type>
183+
</dependency>
184+
<dependency>
185+
<groupId>org.vivoweb</groupId>
186+
<artifactId>vitro-languages-webapp-pt_BR</artifactId>
187+
<version>${project.version}</version>
188+
<type>war</type>
189+
</dependency>
190+
<dependency>
191+
<groupId>org.vivoweb</groupId>
192+
<artifactId>vitro-languages-webapp-en_CA</artifactId>
193+
<version>${project.version}</version>
194+
<type>war</type>
195+
</dependency>
196+
</dependencies>
197+
198+
<distributionManagement>
199+
<site>
200+
<id>vivo-project</id>
201+
<url>https://vivo-project.github.io/</url>
202+
</site>
203+
<snapshotRepository>
204+
<id>ossrh</id>
205+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
206+
</snapshotRepository>
207+
<repository>
208+
<id>ossrh</id>
209+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
210+
</repository>
211+
</distributionManagement>
212+
</project>

core/webapp/pom.xml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>org.vivoweb</groupId>
6+
<artifactId>vitro-languages-webapp-core</artifactId>
7+
<version>1.11.2-SNAPSHOT</version>
8+
<packaging>war</packaging>
9+
10+
<parent>
11+
<groupId>org.vivoweb</groupId>
12+
<artifactId>vitro-languages-core</artifactId>
13+
<version>1.11.2-SNAPSHOT</version>
14+
<relativePath>..</relativePath>
15+
</parent>
16+
17+
<name>Vitro Languages for Web App CORE</name>
18+
19+
<build>
20+
<plugins>
21+
<plugin>
22+
<groupId>org.apache.maven.plugins</groupId>
23+
<artifactId>maven-war-plugin</artifactId>
24+
<configuration>
25+
<failOnMissingWebXml>false</failOnMissingWebXml>
26+
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
27+
<archiveClasses>false</archiveClasses>
28+
<archive>
29+
<manifest>
30+
<addClasspath>true</addClasspath>
31+
</manifest>
32+
</archive>
33+
</configuration>
34+
</plugin>
35+
<plugin>
36+
<artifactId>maven-clean-plugin</artifactId>
37+
<configuration>
38+
<filesets>
39+
<fileset>
40+
<directory>overlays</directory>
41+
</fileset>
42+
</filesets>
43+
</configuration>
44+
</plugin>
45+
</plugins>
46+
</build>
47+
</project>

de_DE/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/.build/
2+
/deploy.properties
3+
/build.properties
4+
/runtime.properties
5+
/ontology/public/catalog-v0001.xml
6+
7+
rdf/auth/firsttime/test-user-model.owl
8+
utilities/solrtester/.work
9+
utilities/rdbmigration/.work
10+
11+
**/.idea
12+
**/*.iml
13+
**/target
14+
15+
**/overlays
16+
17+
# Eclipse artifacts
18+
**/.settings
19+
**/.classpath
20+
**/.project
21+
**/bin/

de_DE/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Vitro-languages
2+
===============
3+
4+
Files that enable Vitro (and by extension, VIVO) to operate in languages beyond American English.
5+
6+
Available language files
7+
------------------------
8+
9+
At present, VIVO has been translated into German, Spanish, and Portuguese. You may find the relevant files for each language by searching for files containing _de_DE, _es, and _pt_BR respectively. English uses the prefix _en_US.
10+
11+
Using the language files
12+
------------------------
13+
14+
If the files you want already exist here, you can add them to your VIVO instance by
15+
following the instructions in the VIVO wiki for [Adding a language to VIVO][1].
16+
17+
If the files for your desired language do not exist then you may use the files in this repository as a
18+
starting point for doing the translations yourself. Search for the required files for any of the language prefixes above (e.g. _en_US), copy the files, and rename your new files using the appropriate language code [prefix][2]. Please send a note to [the VIVO Tech group][3]
19+
to find out if someone else is already working on a translation.
20+
21+
If you create a translation, please consider contributing your language files to the VIVO community.
22+
23+
[1]: https://wiki.duraspace.org/display/VIVODOC110x/Internationalization#Internationalization-AddinganexistinglanguagetoyourVIVOsite
24+
[2]: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
25+
[3]: mailto:vivo-tech@googlegroups.com

0 commit comments

Comments
 (0)