<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">Hi all,</span>
<div style="margin-top: 1em; margin-bottom: 1em;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">We're in the process of customizing the ArchivesSpace (3.4.1) staff interface for use in a Dutch-speaking context.
We would like to translate the back-end user interface to Dutch. So far, in order to gain speed, we've resorted to tweaking the en.yml localization files with Dutch labels. In the longer run, hijacking "English" for another language feels like a hack, though.</span></div>
<div style="margin-top: 1em; margin-bottom: 1em;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">The documentation for "customizing text" at
<a href="https://archivesspace.github.io/tech-docs/customization/locales.html" id="LPlnk375485" class="OWAAutoLink">
https://archivesspace.github.io/tech-docs/customization/locales.html</a> does mention where strings can be customized in current locales, but not how new locales can be added. Simply adding new locale files for new languages, with according names and language
codes, at the right locations doesn't seem to do the trick:</span></div>
<ul style="list-style-type: disc;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">either the language is not being offered in the list of available languages</span></li><li style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">when additionally the new language is specified explicitly in the config/config.rb file as
</span><span style="font-family: "Courier New", monospace; font-size: 10pt; color: rgb(0, 0, 0);">AppConfig[:locale] = :nl</span><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"> , this yields following error
at startup:<br>
</span>
<blockquote style="margin-right: 0px; margin-left: 0.8ex; padding-left: 1ex; border-left: 3px solid rgb(200, 200, 200);">
<pre><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">JSONModel::ValidationException: #<:ValidationException: {:errors=>{"defaults/locale"=>["Invalid value 'nl'. Must be one of: en, fr, de, ja, es"]}}></div></pre>
<pre><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"> validate at uri:classloader:/jsonmodel_type.rb:385</div></pre>
<pre><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"> with_validator_for at uri:classloader:/validator_cache.rb:41</div></pre>
</blockquote>
</li></ul>
<div style="margin-top: 1em; margin-bottom: 1em;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">...so there must be more to adding a new locale. Yet, we can't find where in the ArchivesSpace distribution code
such a list of default locales can be found or edited.</span></div>
<div style="margin-top: 1em; margin-bottom: 1em;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">We
<i>did </i>find the file in the ArchivesSpace source tree at <a href="https://github.com/archivesspace/archivesspace/blob/master/common/aspace_i18n.rb#L28" id="LPlnk362108" class="OWAAutoLink">
https://github.com/archivesspace/archivesspace/blob/master/common/aspace_i18n.rb#L28</a> which defines above list of locales This file can't be found in the distribution code, however, so it's not clear how it relates to the distribution code. The commit history
also shows commits from the Weblate project at <a href="https://hosted.weblate.org/projects/archivesspace-interfaces/#languages" id="LPlnk575871">
https://hosted.weblate.org/projects/archivesspace-interfaces/#languages</a>, which contains additional languages Portuguese and Italian.</span></div>
<div style="margin-top: 1em; margin-bottom: 1em;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">This leads to following questions:</span></div>
<ul style="list-style-type: disc;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">what's the mechanism for adding a new locale to an ArchivesSpace instance?</span></li><li style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">if our translations would reach a stage of being of broader interest, what would be the procedure for contributing them?</span></li></ul>
<div style="margin-top: 1em; margin-bottom: 1em;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">Kind regards,</span></div>
<div style="margin-top: 1em; margin-bottom: 1em;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">Ron</span></div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<p style="text-align: left; line-height: 18.3333px; margin: 0px; font-family: Calibri, sans-serif; font-size: 11pt; background-color: rgb(255, 255, 255);">
<span style="font-family: Arial, sans-serif, serif, EmojiFont; font-size: 9pt; line-height: 15px; color: rgb(77, 77, 77);"><b>Ron Van den Branden | functioneel analist - applicatiebeheerder Letterenhuis</b></span></p>
<p style="text-align: left; line-height: 18.3333px; margin: 0px; font-family: Calibri, sans-serif; font-size: 11pt; background-color: rgb(255, 255, 255);">
<span style="font-family: Arial, sans-serif, serif, EmojiFont; font-size: 9pt; line-height: 15px; color: rgb(77, 77, 77);">Stad Antwerpen | Talentontwikkeling en Vrijetijdsbeleving</span><span style="font-family: Arial, sans-serif, serif, EmojiFont; font-size: 9pt; line-height: 15px; color: rgb(0, 0, 0);"> </span><span style="font-family: Arial, sans-serif, serif, EmojiFont; font-size: 9pt; line-height: 15px; color: rgb(77, 77, 77);">|
Boeken en Letteren</span></p>
<p style="text-align: left; line-height: 18.3333px; margin: 0px; font-family: Calibri, sans-serif; font-size: 11pt; background-color: rgb(255, 255, 255);">
<span style="font-family: Arial, sans-serif, serif, EmojiFont; font-size: 9pt; line-height: 15px; color: rgb(77, 77, 77);">Minderbroedersstraat 22, 2000 Antwerpen</span></p>
<p style="text-align: left; margin: 0px; font-family: Calibri, sans-serif; font-size: 11pt; background-color: rgb(255, 255, 255);">
<span style="font-family: Arial, sans-serif, serif, EmojiFont; font-size: 9pt; color: rgb(77, 77, 77);">Grote Markt 1, 2000 Antwerpen</span></p>
<p style="text-align: left; margin: 0px; font-family: Calibri, sans-serif; font-size: 11pt; background-color: rgb(255, 255, 255);">
<span style="font-family: Arial, sans-serif, serif, EmojiFont; font-size: 9pt; color: rgb(77, 77, 77);">gsm +32 0485 02 80 50 | tel. +32 3 222 93 30</span></p>
<p style="text-align: left; line-height: 18.3333px; margin: 0px; font-family: Calibri, sans-serif; font-size: 11pt; background-color: rgb(255, 255, 255);">
<span style="font-family: Arial, sans-serif, serif, EmojiFont; font-size: 9pt; line-height: 15px; color: rgb(77, 77, 77);"><a href="http://www.letterenhuis.be/" target="_blank" id="OWAf76e4a0c-7c13-bbe9-67e5-fa9c140974cf" class="ContentPasted0 OWAAutoLink" rel="noopener noreferrer" data-auth="NotApplicable" data-safelink="true" data-linkindex="2" style="margin: 0px; color: rgb(77, 77, 77);">letterenhuis.be</a> |
<a href="https://www.instagram.com/letterenhuis/" target="_blank" id="OWA8e7387b6-632d-6c3a-7adc-fe417ff446cd" class="ContentPasted0 OWAAutoLink" rel="noopener noreferrer" data-auth="NotApplicable" data-safelink="true" data-linkindex="3" style="margin: 0px; color: rgb(77, 77, 77);">
instagram</a> | <a href="https://www.facebook.com/Letterenhuis" target="_blank" id="OWA1738d937-4785-6405-6154-eafb6b7457cf" class="ContentPasted0 OWAAutoLink" rel="noopener noreferrer" data-auth="NotApplicable" data-safelink="true" data-linkindex="4" style="margin: 0px; color: rgb(77, 77, 77);">
facebook</a></span></p>
<p style="text-align: left; line-height: 18.3333px; margin: 0px; font-family: Calibri, sans-serif; font-size: 11pt; background-color: rgb(255, 255, 255);">
<span style="font-family: Arial, sans-serif, serif, EmojiFont; font-size: 9pt; line-height: 15px; color: rgb(77, 77, 77);"> </span></p>
<p style="text-align: left; line-height: 18.3333px; margin: 0px; font-family: Calibri, sans-serif; font-size: 11pt; background-color: rgb(255, 255, 255);">
<span style="font-family: Arial, sans-serif, serif, EmojiFont; font-size: 7pt; line-height: 11.6667px; color: rgb(77, 77, 77);"><b>Proclaimer</b></span></p>
<p style="text-align: left; line-height: 18.3333px; margin: 0px; font-family: Calibri, sans-serif; font-size: 11pt; background-color: rgb(255, 255, 255);">
<span style="font-family: Arial, sans-serif, serif, EmojiFont; font-size: 7pt; line-height: 11.6667px; color: rgb(77, 77, 77);">Vergissen is menselijk. Dus als deze e-mail, samen met eventuele bijlagen, niet voor u bestemd is, vragen we u vriendelijk om dat
te melden aan de afzender. Deze e-mail en de bijlagen zijn namelijk officiële documenten van de stad Antwerpen. Ze kunnen vertrouwelijke of persoonlijke informatie bevatten. Als stad nemen we privacy heel serieus en willen we als een goede huisvader waken
over de vertrouwelijkheid van documenten. Als u dit bericht per vergissing hebt ontvangen of ergens hebt gevonden, wees dan zo eerlijk om het meteen te verwijderen en het niet verder te verspreiden of te kopiëren.</span></p>
<span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
</body>
</html>