diff --git a/_config.yml b/_config.yml index 6a4a0112..052f0e06 100644 --- a/_config.yml +++ b/_config.yml @@ -28,6 +28,8 @@ description: "CollectionBuilder-CSV is a template for creating digital collectio keywords: idaho;history;inland northwest # creator of the digital collection, to appear in meta tags; we typically use our GitHub usernames but feel free to just use your name author: CollectionBuilder +# language of the website (en or de are currently the only supported languages and you have to adjust the language in the _data folder and in the pages folder accordingly) +lang: en ########## # COLLECTION SETTINGS diff --git a/_data/translations.yml b/_data/translations.yml new file mode 100644 index 00000000..31365853 --- /dev/null +++ b/_data/translations.yml @@ -0,0 +1,308 @@ +includesFeatureAudio: + audioNotSupported: + en: "Your browser does not support the audio element." + de: "Ihr Browser unterstützt das Audio-Element nicht." +includesFeatureNavMenu: + techLinkLabel: + en: "Tech" + de: "Tech" +includesFeaturePdf: + pdfNotRendering: + en: 'The PDF is not rendering in your browser.' + de: 'Das PDF wird in Ihrem Browser nicht angezeigt.' + pdfDownload: + en: 'Download PDF' + de: 'PDF herunterladen' +includesFeatureVideo: + videoNotSupported: + en: "Your browser does not support the embedded video." + de: "Ihr Browser unterstützt das eingebettete Video nicht." +includesHeadItemMeta: + itemFrom: + en: "Item from" + de: "Objekt von" +includesIndexCarousel: + previous: + en: "Previous" + de: "Vorherige" + next: + en: "Next" + de: "Nächste" + slide: + en: "Slide" + de: "Slide" +includesIndexDataDownload: + title: + en: "Collection as Data (click to download)" + de: "Sammlung als Daten (zum Herunterladen klicken)" + metadata: + en: "Metadata" + de: "Metadaten" + subjects: + en: "Subjects" + de: "Themen" + geodata: + en: "Geodata" + de: "Geodaten" + locations: + en: "Locations" + de: "Orte" + timeline: + en: "Timeline" + de: "Zeitachse" + facets: + en: "Facets" + de: "Facetten" + sourceCode: + en: "Source Code" + de: "Quellcode" +includesIndexDescription: + title: + en: "Description" + de: "Beschreibung" + learnMore: + en: "Learn more" + de: "Mehr erfahren" +includesIndexObjects: + images: + en: "Images" + de: "Bilder" + audio: + en: "Audio" + de: "Audio" + videos: + en: "Videos" + de: "Videos" + pdfs: + en: "PDFs" + de: "PDFs" + records: + en: "Records" + de: "Datensätze" + files: + en: "Files" + de: "Dateien" + viewTable: + en: "View Table" + de: "Tabelle anzeigen" +includesIndexTime: + title: + en: "Time Span" + de: "Zeitspanne" + from: + en: "from" + de: "von" + to: + en: "to" + de: "bis" + viewTimeline: + en: "View Timeline" + de: "Zeitachse anzeigen" +includesItemAudioPlayer: + audioNotSupported: + en: "Your browser does not support the audio element." + de: "Ihr Browser unterstützt das Audio-Element nicht." +includesItemBreadcrumbs: + home: + en: "Home" + de: "Startseite" + items: + en: "Items" + de: "Objekte" +includesItemBrowseButtons: + previous: + en: "Previous" + de: "Vorheriges" + next: + en: "Next" + de: "Nächstes" + backToBrowse: + en: "Back to Browse" + de: "Zurück zur Übersicht" +includesItemCitationBox: + title: + en: "Source" + de: "Quelle" + preferredCitation: + en: "Preferred Citation" + de: "Bevorzugte Zitation" + referenceLink: + en: "Reference Link" + de: "Referenzlink" +includesItemDownloadButton: + download: + en: "Download" + de: "Herunterladen" +includesItemImageGallery: + clickToViewFullScreen: + en: "Click to view full screen" + de: "Klicken Sie, um den Vollbildmodus zu aktivieren" +includesItemRightsBox: + title: + en: "Rights" + de: "Rechte" + rights: + en: "Rights" + de: "Rechte" + rightsstatement: + en: "Standardized Rights" + de: "Rechteerklärung" +includesItemVideoPlayer: + videoNotSupported: + en: "Your browser does not support the embedded video." + de: "Ihr Browser unterstützt das eingebettete Video nicht." +includesJsBrowseJs: + viewFullRecord: + en: "View Full Record" + de: "Vollständigen Datensatz anzeigen" +includesJsLunrJs: + results: + en: "Result(s) found" + de: "Ergebnisse" +includesCollectionBanner: + downloadButton: + en: "Download Data" + de: "Daten herunterladen" + title: + en: "Collection Data" + de: "Sammlungsdaten" + description: + en: "The collection data is available for download in a variety of formats." + de: "Die Sammlungsdaten können in verschiedenen Formaten heruntergeladen werden." + completeMetadata: + en: "Complete Metadata" + de: "Vollständige Metadaten" + completeMetadataDescription: + en: "All metadata fields for all collection items, available as a CSV spreadsheet (usable in Excel, Google Sheets, and similar programs) or JSON file (often used with web applications)." + de: "Alle Metadatenfelder für alle Sammlungsobjekte, als CSV-Tabelle (verwendbar in Excel, Google Sheets und ähnlichen Programmen) oder JSON-Datei (oft mit Webanwendungen verwendet)." + metadata: + en: "Metadata" + de: "Metadaten" + metadataFacets: + en: "Metadata Facets" + de: "Metadaten Facetten" + metadataFacetsDescription: + en: "List of unique values and their count for specific metadata fields, useful for understanding content of the fields." + de: "Liste der eindeutigen Werte und ihrer Anzahl für bestimmte Metadatenfelder, die für das Verständnis des Inhalts der Felder nützlich ist." + subjectMetadata: + en: "Subject Metadata" + de: "Metadaten Themen" + subjectMetadataDescription: + en: "Unique values and counts of subject metadata, useful for further analyzing the content of this collection." + de: "Eindeutige Werte und Zählungen von Themenmetadaten, die für die weitere Analyse des Inhalts dieser Sammlung nützlich sind." + subjects: + en: "Subjects" + de: "Themen" + locations: + en: "Locations" + de: "Orte" + locationsDescription: + en: "Unique values and counts of location metadata, useful for further visualization and analysis of this collection's place names." + de: "Eindeutige Werte und Zählungen von Ortsmetadaten, die für die weitere Visualisierung und Analyse der Ortsnamen dieser Sammlung nützlich sind." + geodataDescription: + en: 'Metadata for all collection items that have geographic coordinates in GeoJSON format, useful for further exploration and analysis of this collection through a geographical lense.' + de: 'Metadaten für alle Sammlungsobjekte, die geographische Koordinaten im GeoJSON-Format haben, die für die weitere Exploration und Analyse dieser Sammlung durch eine geographische Linse nützlich sind.' + geodata: + en: "Geodata" + de: "Geodaten" + timeline: + en: "Timeline" + de: "Zeitachse" + timelineDescription: + en: 'A time-focused JSON data export designed for use with TimelineJS.' + de: 'Ein zeitbezogener JSON-Datenexport, der für die Verwendung mit TimelineJS konzipiert ist.' + websiteSourceCode: + en: "Website Source Code" + de: "Quellcode der Website" + websiteSourceCodeDescription: + en: 'GitHub repository containing source code for this project built with CollectionBuilder-CSV.' + de: 'GitHub-Repository mit dem Quellcode für dieses Projekt, das mit CollectionBuilder-CSV.' + sourceCode: + en: "Source Code" + de: "Quellcode" +includesFooter: + home: + en: "Home" + de: "Startseite" + builtWith: + en: "built with" + de: "erstellt mit" + lastUpdated: + en: "Last updated" + de: "Zuletzt aktualisiert" +includesNavSearchLunr: + search: + en: "Search" + de: "Suche" + searchBox: + en: "Search Box" + de: "Suchefeld" +includesScrollToTop: + backToTop: + en: "Back to Top" + de: "Zurück nach oben" + upArrow: + en: "Up Arrow" + de: "Pfeil nach oben" +layoutsBrowse: + search: + en: "Search" + de: "Suche" + filter: + en: "Filter" + de: "Filter" + filterItems: + en: "Filter Items" + de: "Objekte filtern" + reset: + en: "Reset" + de: "Zurücksetzen" + sortBy: + en: "Sort by" + de: "Sortieren nach" + random: + en: "Random" + de: "Zufällig" + loading: + en: "Loading" + de: "Laden" +layoutsData: + link: + en: "Link" + de: "Link" +layoutsHomeInfographic: + sampleItems: + en: "Sample Items" + de: "Beispielobjekte" + topSubjects: + en: "Top Subjects" + de: "Top-Themen" + locations: + en: "Locations" + de: "Orte" +layoutsSearch: + searchOptions: + en: "Search Options" + de: "Suchoptionen" + lunrSearchOptions: + en: "Lunr Search Options" + de: "Lunr-Suchoptionen" + options: + en: '

These advanced options can be added to your query in the search box to refine your results:

' + de: '

Diese erweiterten Optionen können im Suchfeld zu Ihrer Anfrage hinzugefügt werden, um Ihre Ergebnisse zu verfeinern:

' + search: + en: "Search" + de: "Suche" + searchTerm: + en: "Enter your search term..." + de: "Geben Sie Ihren Suchbegriff ein..." + lunrSearchDescription: + en: '

Unscharfe Suche unterstützt von Lunr.js. Das Laden großer Sammlungen kann eine Sekunde dauern!

' + de: '

Unscharfe Suche angetrieben von Lunr.js. Kann eine Sekunde dauern, um große Sammlungen zu laden!

' + googleSearchDescription: + en:

Alternatively, try Google CSE site search.

+ de:

Alternativ dazu können Sie die Google CSE die Site-Suche.

+layoutsTimeline: + year: + en: "Year" + de: "Jahr" \ No newline at end of file diff --git a/_includes/data-download-modal.html b/_includes/data-download-modal.html index 36e8921b..352d8fbc 100644 --- a/_includes/data-download-modal.html +++ b/_includes/data-download-modal.html @@ -6,34 +6,34 @@ {%- endcomment -%} {%- assign stubs = site.data.config-nav | map: 'stub' | join: ';' -%} - + @@ -83,7 +83,7 @@ itemLink = '{{ '/items/' | relative_url }}' + carouselItems[i][1] + '.html'; } // create indicator - indicator = ``; + indicator = ``; // create slide slide = ` \ No newline at end of file diff --git a/_includes/index/time.html b/_includes/index/time.html index 003d703e..259f19c2 100644 --- a/_includes/index/time.html +++ b/_includes/index/time.html @@ -8,9 +8,9 @@ {%- assign date-range = clean-years | remove: " " | split: ";" | uniq | sort -%}
-

Time Span

-

{{ date-range | first }} to {{ date-range | last }} -
View Timeline +

{{ site.data.translations['includesIndexTime']['title'][site.lang] }}

+

{{ site.data.translations['includesIndexTime']['from'][site.lang] }} {{ date-range | first }} {{ site.data.translations['includesIndexTime']['to'][site.lang] }} {{ date-range | last }} +
{{ site.data.translations['includesIndexTime']['viewTimeline'][site.lang] }}

diff --git a/_includes/item/audio-player.html b/_includes/item/audio-player.html index 0d2c1c66..9838c98b 100644 --- a/_includes/item/audio-player.html +++ b/_includes/item/audio-player.html @@ -6,5 +6,5 @@ {%- endcomment -%} \ No newline at end of file diff --git a/_includes/item/breadcrumbs.html b/_includes/item/breadcrumbs.html index 6194e14c..79e288f9 100644 --- a/_includes/item/breadcrumbs.html +++ b/_includes/item/breadcrumbs.html @@ -5,7 +5,7 @@ {%- endcomment -%} \ No newline at end of file diff --git a/_includes/item/browse-buttons.html b/_includes/item/browse-buttons.html index 027496cf..75afc751 100644 --- a/_includes/item/browse-buttons.html +++ b/_includes/item/browse-buttons.html @@ -6,9 +6,9 @@ {%- endcomment -%}
diff --git a/_includes/item/citation-box.html b/_includes/item/citation-box.html index b58a9105..5c48c9ff 100644 --- a/_includes/item/citation-box.html +++ b/_includes/item/citation-box.html @@ -4,12 +4,12 @@ {%- endcomment -%}
-
Source
+
{{ site.data.translations['includesItemCitationBox']['title'][site.lang] }}
-
Preferred Citation:
+
{{ site.data.translations['includesItemCitationBox']['preferredCitation'][site.lang] }}:
"{{ page.title }}", {{ site.title }}, {{ site.organization-name }}
-
Reference Link:
+
{{ site.data.translations['includesItemCitationBox']['referenceLink'][site.lang] }}:
{{ page.url | absolute_url }}
diff --git a/_includes/item/download-buttons.html b/_includes/item/download-buttons.html index 30105be6..40f28653 100644 --- a/_includes/item/download-buttons.html +++ b/_includes/item/download-buttons.html @@ -11,7 +11,8 @@
{% if page.object_transcript %}{% endif %} {% if page.date %}{%- capture year -%}{% if page.date contains "-" %}{{ page.date | split: "-" | first }}{% elsif page.date contains "/" %}{{ page.date | split: "/" | last }}{% else %}{{ page.date }}{% endif %}{%- endcapture -%} - View on Timeline{% endif %} + + on Timeline{% endif %} {% if page.latitude and page.longitude %} View on Map{% endif %} {% if page.object_location %} diff --git a/_includes/item/image-gallery.html b/_includes/item/image-gallery.html index 2c3f2ed4..08060e70 100644 --- a/_includes/item/image-gallery.html +++ b/_includes/item/image-gallery.html @@ -5,6 +5,6 @@ {%- endcomment -%} - {{ page.image_alt_text | default: page.description | default: page.title | escape }} -
Click to view full screen
+ {{ page.title | escape }} +
{{ site.data.translations['includesItemImageGallery']['image'][site.lang] }}
diff --git a/_includes/item/rights-box.html b/_includes/item/rights-box.html index 05086eaf..1fb66b74 100644 --- a/_includes/item/rights-box.html +++ b/_includes/item/rights-box.html @@ -4,12 +4,12 @@ {%- endcomment -%}
-
Rights
+
{{ site.data.translations['includesItemRightsBox']['title'][site.lang] }}
- {% if page.rights %}
Rights:
+ {% if page.rights %}
{{ site.data.translations['includesItemRightsBox']['rights'][site.lang] }}:
{{ page.rights }}
{% endif %} - {% if page.rightsstatement %}
Standardized Rights:
+ {% if page.rightsstatement %}
{{ site.data.translations['includesItemRightsBox']['rightsstatement'][site.lang] }}:
{{ page.rightsstatement }}
{% endif %}
diff --git a/_includes/item/video-player.html b/_includes/item/video-player.html index 021d58ef..0e996696 100644 --- a/_includes/item/video-player.html +++ b/_includes/item/video-player.html @@ -7,6 +7,6 @@
\ No newline at end of file diff --git a/_includes/js/browse-js.html b/_includes/js/browse-js.html index 0ec2b94b..e975cb01 100644 --- a/_includes/js/browse-js.html +++ b/_includes/js/browse-js.html @@ -4,8 +4,12 @@ {%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid and item.parentid == nil' -%} {% endif %} {%- assign fields = site.data.config-browse -%} +{%- assign viewFullRecord = site.data.translations['includesJsBrowseJs']['viewFullRecord'][site.lang] -%} + \ No newline at end of file diff --git a/_includes/scroll-to-top.html b/_includes/scroll-to-top.html index 1a5b2d3b..9c01e308 100644 --- a/_includes/scroll-to-top.html +++ b/_includes/scroll-to-top.html @@ -16,8 +16,8 @@ }); } - - + + +
@@ -20,10 +20,10 @@