Skip to content

Commit

Permalink
Merge pull request #1081 from NatLibFi/geographical-translations
Browse files Browse the repository at this point in the history
translations for w3c geo latitude and longitude, expose vocabulary short name
  • Loading branch information
joelit authored Feb 5, 2021
2 parents 254c2c6 + a01c9e1 commit ec68c43
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions model/GlobalConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/
EasyRdf\RdfNamespace::set('skosmos', 'http://purl.org/net/skosmos#');
EasyRdf\RdfNamespace::set('skosext', 'http://purl.org/finnonto/schema/skosext#');
EasyRdf\RdfNamespace::delete('geo');
EasyRdf\RdfNamespace::set('wgs84', 'http://www.w3.org/2003/01/geo/wgs84_pos#');
EasyRdf\RdfNamespace::set('isothes', 'http://purl.org/iso25964/skos-thes#');
EasyRdf\RdfNamespace::set('mads', 'http://www.loc.gov/mads/rdf/v1#');
EasyRdf\RdfNamespace::set('wd', 'http://www.wikidata.org/entity/');
Expand Down
Binary file modified resource/translations/en/LC_MESSAGES/skosmos.mo
Binary file not shown.
Binary file modified resource/translations/fi/LC_MESSAGES/skosmos.mo
Binary file not shown.
12 changes: 12 additions & 0 deletions resource/translations/skosmos_en.po
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,18 @@ msgstr "In other languages"
msgid "from all"
msgstr "from all"

msgid "wgs84:lat"
msgstr "Latitude"

msgid "wgs84:lat_help"
msgstr "Latitude in decimal degrees according to WGS 84 system."

msgid "wgs84:long"
msgstr "Longitude"

msgid "wgs84:long_help"
msgstr "Longitude in decimal degrees according to WGS 84 system."

#: /tmp/cache/587c83c09abaa/bf/bf6437cf02d4bf892eccfe46511488719628e22df92da5026f31c555a6a1fa6f.php:81
#: /tmp/cache/587c83c09abaa/92/926cb0fdbe92b0165a1a13c21243442890c70779003bbc2fe1230ff221742de9.php:90
#: /tmp/cache/587c83c09abaa/d1/d13f81e53ff33f31fff259d66f8ddbf7cfc39d25c6219ff727553feca6d87d37.php:79
Expand Down
12 changes: 12 additions & 0 deletions resource/translations/skosmos_fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,18 @@ msgstr "Muunkieliset termit"
msgid "from all"
msgstr "kaikista sanastoista"

msgid "wgs84:lat"
msgstr "Leveysaste"

msgid "wgs84:lat_help"
msgstr "Leveysaste WGS 84 -järjestelmän mukaan desimaaliasteina."

msgid "wgs84:long"
msgstr "Pituusaste"

msgid "wgs84:long_help"
msgstr "Pituusaste WGS 84 -järjestelmän mukaan desimaaliasteina."

#: /tmp/cache/587c830e6b9a0/bf/bf6437cf02d4bf892eccfe46511488719628e22df92da5026f31c555a6a1fa6f.php:81
#: /tmp/cache/587c830e6b9a0/92/926cb0fdbe92b0165a1a13c21243442890c70779003bbc2fe1230ff221742de9.php:90
#: /tmp/cache/587c830e6b9a0/d1/d13f81e53ff33f31fff259d66f8ddbf7cfc39d25c6219ff727553feca6d87d37.php:79
Expand Down
12 changes: 12 additions & 0 deletions resource/translations/skosmos_sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,18 @@ msgstr "Termer på andra språk"
msgid "from all"
msgstr "i alla"

msgid "wgs84:lat"
msgstr "Latitud"

msgid "wgs84:lat_help"
msgstr "Latitud som decimalgrader enligt WGS 84-systemet."

msgid "wgs84:long"
msgstr "Longitud"

msgid "wgs84:long_help"
msgstr "Longitud som decimalgrader enligt WGS 84-systemet."

#: /tmp/cache/587c83500d6c9/bf/bf6437cf02d4bf892eccfe46511488719628e22df92da5026f31c555a6a1fa6f.php:81
#: /tmp/cache/587c83500d6c9/92/926cb0fdbe92b0165a1a13c21243442890c70779003bbc2fe1230ff221742de9.php:90
#: /tmp/cache/587c83500d6c9/d1/d13f81e53ff33f31fff259d66f8ddbf7cfc39d25c6219ff727553feca6d87d37.php:79
Expand Down
Binary file modified resource/translations/sv/LC_MESSAGES/skosmos.mo
Binary file not shown.
1 change: 1 addition & 0 deletions view/meta.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="format-detection" content="telephone=no">
1 change: 1 addition & 0 deletions view/scripts.twig
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var uriSpace = "{{ request.vocab.uriSpace }}";
var showNotation = {% if request.vocab and request.vocab.config.showNotation == false %}false{% else %}true{% endif %};
{% if request.vocab %}
var languageOrder = [{% for lang in request.vocab.config.languageOrder(request.contentLang) %}"{{ lang }}"{% if not loop.last %},{% endif %}{% endfor %}];
var vocShortName = "{{ request.vocab.config.shortname }}";
{% endif %}
var explicitLangCodes = {{ explicit_langcodes ? 'true' : 'false' }};
{% if plugin_params%}
Expand Down

0 comments on commit ec68c43

Please sign in to comment.