Adapted the DCAT-AP.de validator configuration to support English alongside German (which remains the validator's default language). As part of this update:
Translation-related properties were removed from the config.properties file.
Translations for English and German were moved to separate translation files (labels_en.properties and labels_de.properties). The config.properties file was extended to refer to these and define the available languages.
Unnecessary label translations previously defined in config.properties were now removed. Any texts that did not match the validator's default translations have been maintained to ensure the result for German remains identical.
Making this update also resolved some remaining translation issues of the current version. Such examples are the "about" footer and the "busy" message that is displayed while validation is being carried out.
Important: The current pull request covers only the validator's texts and labels. To have complete support for both English and German you would still need to add relevant translations to the SHACL shape files. This is done by adding language-specific sh:message entries for each shape.
For example, taking a shape such as the following:
sh:property [
sh:severity sh:Violation ;
sh:message "Pflicht (K12): Alle Datenstrukturen, die direkt an das GovData Portal geliefert werden, MÜSSEN ihre Herkunft über eine eindeutige Kennzeichnung des Datenbereitstellers über die DatenbereitstellerID (dcatde:contributorID) ausweisen. - Seite 13";
sh:path dcatde:contributorID ;
sh:minCount 1 ;
]
it would need to be adapted to define an sh:message for each language as follows:
sh:property [
sh:severity sh:Violation ;
sh:message "Pflicht (K12): Alle Datenstrukturen, die direkt an das GovData Portal geliefert werden, MÜSSEN ihre Herkunft über eine eindeutige Kennzeichnung des Datenbereitstellers über die DatenbereitstellerID (dcatde:contributorID) ausweisen. - Seite 13"@de ;
sh:message "Mandatory (K12): All data structures that are delivered directly to the GovData Portal MUST identify their origin by clearly identifying the data provider using the data provider ID (dcatde:contributorID). - Page 13"@en ;
sh:path dcatde:contributorID ;
sh:minCount 1 ;
]
Without updating the shapes as described, the produced reports will remain identical to what is currently produced. This means that although a user has selected English on the UI, the produced reports will still contain German messages.
Needless to say, this PR relates to adding English support, but extending further for additional languages is a matter of adding the language to the configuration, adding its translation file, and adding the relevant sh:messages to the shapes. All official EU languages can be added easily in this way.
Adapted the DCAT-AP.de validator configuration to support English alongside German (which remains the validator's default language). As part of this update:
Making this update also resolved some remaining translation issues of the current version. Such examples are the "about" footer and the "busy" message that is displayed while validation is being carried out.
Important: The current pull request covers only the validator's texts and labels. To have complete support for both English and German you would still need to add relevant translations to the SHACL shape files. This is done by adding language-specific sh:message entries for each shape.
For example, taking a shape such as the following:
it would need to be adapted to define an sh:message for each language as follows:
Without updating the shapes as described, the produced reports will remain identical to what is currently produced. This means that although a user has selected English on the UI, the produced reports will still contain German messages.
Needless to say, this PR relates to adding English support, but extending further for additional languages is a matter of adding the language to the configuration, adding its translation file, and adding the relevant sh:messages to the shapes. All official EU languages can be added easily in this way.