Merge pull request #350 from chenejac/movingUILabelsTranslationsIntoVitro

[i18n-3762] Moving UI labels translations into vitro
This commit is contained in:
Georgy Litvinov 2022-12-06 11:16:11 +01:00 committed by GitHub
commit 8bbc751f0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 50274 additions and 26 deletions

View file

@ -14,12 +14,6 @@ jobs:
with:
path: Vitro
- name: Checkout vitro languages
uses: actions/checkout@v3
with:
repository: vivo-project/Vitro-languages
path: Vitro-languages
- name: Maven Cache
uses: actions/cache@v2
with:
@ -34,7 +28,5 @@ jobs:
- name: Maven Build
run: |
cd ./Vitro-languages
mvn clean install
cd ../Vitro
cd ./Vitro
mvn clean install

View file

@ -160,7 +160,7 @@ public class ConfigurationPropertiesSmokeTests implements
String vivoBundle = VIVO_BUNDLE_PREFIX + language + ".properties";
String vitroBundle = VITRO_BUNDLE_PREFIX + language + ".properties";
if (!i18nNames.contains(vivoBundle) && !i18nNames.contains(vitroBundle)) {
ss.warning(this, language + " was found in the value for "
ss.info(this, language + " was found in the value for "
+ PROPERTY_LANGUAGE_SELECTABLE + " but no corresponding "
+ "language file was found.");
}

View file

@ -167,7 +167,8 @@ proxy.eligibleTypeList = http://www.w3.org/2002/07/owl#Thing
#
# A list of supported languages or Locales that the user may choose to
# use instead of the one specified by the browser. The selected language(s)
# must exist in the Vitro-languages repository. This affects RDF data
# must exist in the list of property files in webapps or in the list of ttl
# files in interface-i18n directories within Vitro home. This affects RDF data
# retrieved from the model, if RDFService.languageFilter is true.
# This also affects the text of pages that have been modified to support
# multiple languages.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,39 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix prop-data: <http://vivoweb.org/ontology/core/properties/individual#> .
@prefix prop: <http://vivoweb.org/ontology/core/properties/vocabulary#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
prop:hasPackage rdf:type owl:DatatypeProperty ;
rdfs:domain prop:PropertyKey ;
rdfs:label "has package" ;
rdfs:range xsd:string .
prop:hasKey rdf:type owl:DatatypeProperty ;
rdfs:comment "Value of the key" ;
rdfs:domain prop:PropertyKey ;
rdfs:label "Propertie file url " ;
rdfs:range xsd:string .
prop:hasTheme rdf:type owl:DatatypeProperty ;
rdfs:domain prop:PropertyKey ;
rdfs:label "has theme" ;
rdfs:range xsd:string .
prop:PropertyKey rdf:type owl:Class ;
rdfs:label skos:Concept ;
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf skos:Concept .
prop:ftlUrl rdf:type owl:DatatypeProperty ;
rdfs:comment "Points to the FTL file containing the key" ;
rdfs:domain prop:PropertyKey ;
rdfs:label "ftl file url" ;
rdfs:range xsd:anyURI .
prop:hasApp rdf:type owl:DatatypeProperty ;
rdfs:domain prop:PropertyKey ;
rdfs:label "has application" ;
rdfs:range xsd:string .

View file

@ -44,12 +44,6 @@
<artifactId>vitro-webapp</artifactId>
<type>war</type>
</overlay>
<!-- Overlays for multilingual support -->
<overlay>
<groupId>org.vivoweb</groupId>
<artifactId>vitro-languages-webapp-core</artifactId>
<type>war</type>
</overlay>
</overlays>
<webResources>
<resource>
@ -147,14 +141,6 @@
<artifactId>vitro-webapp</artifactId>
<type>war</type>
</dependency>
<!-- Dependency for multilingual support -->
<dependency>
<groupId>org.vivoweb</groupId>
<artifactId>vitro-languages-webapp-core</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>

View file

@ -21,6 +21,7 @@ edu.cornell.mannlib.vitro.webapp.config.RevisionInfoSetup
edu.cornell.mannlib.vitro.webapp.email.FreemarkerEmailFactory$Setup
edu.cornell.mannlib.vitro.webapp.i18n.selection.LocaleSelectionSetup
edu.cornell.mannlib.vitro.webapp.servlet.setup.ConfigurationModelsSetup
edu.cornell.mannlib.vitro.webapp.servlet.setup.ContentModelSetup
@ -51,7 +52,6 @@ edu.cornell.mannlib.vitro.webapp.services.shortview.ShortViewServiceSetup
edu.ucsf.vitro.opensocial.OpenSocialSmokeTests
# For multiple language support
edu.cornell.mannlib.vitro.webapp.i18n.selection.LocaleSelectionSetup
edu.cornell.mannlib.vitro.webapp.i18n.I18nContextListener
# The search indexer uses a "public" permission, so the PropertyRestrictionPolicyHelper

View file

@ -0,0 +1,8 @@
Please note that although usage of property files for translation of UI labels is supported at the moment,
it is deprecated and not recommended. Please, consider using ontology instead of property file located at:
Source code: [VIVO project]Vitro/home/src/main/resources/rdf/i18n/de_DE/interface-i18n/firsttime/vitro_UiLabel_de_DE.ttl
Deployment: [VIVO home]/rdf/i18n/de_DE/display/interface-i18n/vitro_UiLabel_de_DE.ttl
However, if you decide to use property files, please create and post the file in the same
directory as this Readme file.

View file

@ -0,0 +1,8 @@
Please note that although usage of property files for translation of UI labels is supported at the moment,
it is deprecated and not recommended. Please, consider using ontology instead of property file located at:
Source code: [VIVO project]Vitro/home/src/main/resources/rdf/i18n/en_CA/interface-i18n/firsttime/vitro_UiLabel_en_CA.ttl
Deployment: [VIVO home]/rdf/i18n/en_CA/display/interface-i18n/vitro_UiLabel_en_CA.ttl
However, if you decide to use property files, please create and post the file in the same
directory as this Readme file.

View file

@ -0,0 +1,8 @@
Please note that although usage of property files for translation of UI labels is supported at the moment,
it is deprecated and not recommended. Please, consider using ontology instead of property file located at:
Source code: [VIVO project]Vitro/home/src/main/resources/rdf/i18n/en_US/interface-i18n/firsttime/vitro_UiLabel_en_US.ttl
Deployment: [VIVO home]/rdf/i18n/en_US/display/interface-i18n/vitro_UiLabel_en_US.ttl
However, if you decide to use property files, please create and post the file in the same
directory as this Readme file.

View file

@ -0,0 +1,8 @@
Please note that although usage of property files for translation of UI labels is supported at the moment,
it is deprecated and not recommended. Please, consider using ontology instead of property file located at:
Source code: [VIVO project]Vitro/home/src/main/resources/rdf/i18n/es/interface-i18n/firsttime/vitro_UiLabel_es.ttl
Deployment: [VIVO home]/rdf/i18n/es/display/interface-i18n/vitro_UiLabel_es.ttl
However, if you decide to use property files, please create and post the file in the same
directory as this Readme file.

View file

@ -0,0 +1,8 @@
Please note that although usage of property files for translation of UI labels is supported at the moment,
it is deprecated and not recommended. Please, consider using ontology instead of property file located at:
Source code: [VIVO project]Vitro/home/src/main/resources/rdf/i18n/fr_CA/interface-i18n/firsttime/vitro_UiLabel_fr_CA.ttl
Deployment: [VIVO home]/rdf/i18n/fr_CA/display/interface-i18n/vitro_UiLabel_fr_CA.ttl
However, if you decide to use property files, please create and post the file in the same
directory as this Readme file.

View file

@ -0,0 +1,8 @@
Please note that although usage of property files for translation of UI labels is supported at the moment,
it is deprecated and not recommended. Please, consider using ontology instead of property file located at:
Source code: [VIVO project]Vitro/home/src/main/resources/rdf/i18n/pt_BR/interface-i18n/firsttime/vitro_UiLabel_pt_BR.ttl
Deployment: [VIVO home]/rdf/i18n/pt_BR/display/interface-i18n/vitro_UiLabel_pt_BR.ttl
However, if you decide to use property files, please create and post the file in the same
directory as this Readme file.

View file

@ -0,0 +1,8 @@
Please note that although usage of property files for translation of UI labels is supported at the moment,
it is deprecated and not recommended. Please, consider using ontology instead of property file located at:
Source code: [VIVO project]Vitro/home/src/main/resources/rdf/i18n/ru_RU/interface-i18n/firsttime/vitro_UiLabel_ru_RU.ttl
Deployment: [VIVO home]/rdf/i18n/ru_RU/display/interface-i18n/vitro_UiLabel_ru_RU.ttl
However, if you decide to use property files, please create and post the file in the same
directory as this Readme file.

View file

@ -0,0 +1,8 @@
Please note that although usage of property files for translation of UI labels is supported at the moment,
it is deprecated and not recommended. Please, consider using ontology instead of property file located at:
Source code: [VIVO project]Vitro/home/src/main/resources/rdf/i18n/sr_Latn_RS/interface-i18n/firsttime/vitro_UiLabel_sr_Latn_RS.ttl
Deployment: [VIVO home]/rdf/i18n/sr_Latn_RS/display/interface-i18n/vitro_UiLabel_sr_Latn_RS.ttl
However, if you decide to use property files, please create and post the file in the same
directory as this Readme file.