<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Without wanting to steal Joshua's thunder, the plugin he promptly created is working fine in its current state:</div>
<ul data-editing-info="{"orderedStyleType":1,"unorderedStyleType":1}" style="margin-block: 0px; list-style-type: disc;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class="elementToProof"><span style="letter-spacing: normal; font-family: Calibri, Helvetica, sans-serif; font-size: 14.6667px; font-weight: 400; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">allowing one to</span><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"> specify
a custom locale</span></div>
</li><li style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
providing a fallback to a default locale for labels missing in that custom locale</div>
</li></ul>
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">It's dead easy to install, and all nicely documented at
<a href="https://github.com/dartmouth-dltg/aspace_custom_localizations/" id="LPlnk328057">
https://github.com/dartmouth-dltg/aspace_custom_localizations/</a>, I can't thank you enough, Joshua!</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">We'll start using this in our system, with Dutch translations for the back-end, front-end, and report sections. The public translation
file doesn't look too big, so it should be within reach to translate that as well. </span></div>
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">I'm glad the plugin provides a stable way to deploy these custom locales without hacks. This makes it much easier to share them with
other parties </span><span style="letter-spacing: normal; font-family: Calibri, Helvetica, sans-serif; font-size: 14.6667px; font-weight: 400; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">interested </span><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">in
preparing a complete Dutch translation for future contribution to the ASpace code base. To anyone interested in the Dutch user community: please get in touch!</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">Best,</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">Ron</span></div>
<div id="appendonsend"></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>Van:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> namens Joshua
D. Shaw <Joshua.D.Shaw@dartmouth.edu><br>
<b>Verzonden:</b> donderdag 7 december 2023 19:27<br>
<b>Aan:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Onderwerp:</b> Re: [Archivesspace_Users_Group] how to add a new locale to ArchivesSpace?</span>
<div> </div>
</div>
<table align="left" style="direction: ltr; border-width: 0px; border-style: initial; border-color: initial; display: table; width: 100%; table-layout: fixed;">
<tbody>
<tr>
<td style="direction: ltr; padding: 7px 2px; vertical-align: middle; width: 1px; background-color: rgb(166, 166, 166);">
</td>
<td style="direction: ltr; text-align: left; padding: 7px 5px 7px 15px; vertical-align: middle; width: 100%; color: rgb(33, 33, 33); background-color: rgb(234, 234, 234);">
<div style="direction: ltr; text-align: left;"><span style="font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 12px;">U ontvangt niet vaak e-mail van joshua.d.shaw@dartmouth.edu.
<a href="https://aka.ms/LearnAboutSenderIdentification" data-auth="NotApplicable" id="OWA4c5b75ec-5d43-67b1-ec69-d32374d40a38" class="OWAAutoLink">
Meer informatie over waarom dit belangrijk is</a></span></div>
</td>
<td align="left" style="direction: ltr; padding: 7px 5px; vertical-align: middle; width: 75px; color: rgb(33, 33, 33); background-color: rgb(234, 234, 234);">
</td>
</tr>
</tbody>
</table>
<p style="direction: ltr; line-height: 105%; margin: 0cm 0cm 8pt; font-family: Calibri, sans-serif; font-size: 13px;">
<span style="font-family: Arial, sans-serif; line-height: 105%; color: rgb(207, 0, 57);"><b>WAARSCHUWING: DIT IS EEN EXTERNE MAIL</b></span></p>
<p style="direction: ltr; line-height: 105%; margin: 0cm 0cm 8pt; font-family: Calibri, sans-serif; font-size: 12px;">
<span style="font-family: Arial, sans-serif; line-height: 105%; color: rgb(207, 0, 57);">Deze mail komt van buiten onze organisatie. Kijk eerst of je het mailadres en de afzender herkent en/of vertrouwt. Doe dat voor je bijlagen opent of links aanklikt. Zo
houden we onze organisatie veiliger voor phishing. </span></p>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">I'm working with Ron to resolve a couple of issues with the plugin and will report
back when those are sorted.</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">jds</span></div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="x_appendonsend"></div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf
of Joshua D. Shaw <Joshua.D.Shaw@dartmouth.edu><br>
<b>Sent:</b> Thursday, December 7, 2023 8:29 AM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] how to add a new locale to ArchivesSpace?</span>
<div> </div>
</div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Because I was curious, I tested this out and created a small plugin that supports this
feature: <a href="https://github.com/dartmouth-dltg/aspace_custom_localizations" id="OWA578c7115-3cbc-3da4-3c98-f5b646166890" class="OWAAutoLink" shash="BlW6XrkhEXn5ICrpuFfMdfjRiWl370Cu4yXOtlvHjUS7Lz6TUZ38iQNXSftB2QSCjBQtGFl1xL/2xRiTyJoaznfXsroJ5jj7Rvh3bpawnSrT9rtvlTuiHyljx7xVKISuEmh/g6dzg9z6iELFJ2etCvfQjyJjH2iTN9KWdkc97fQ=" originalsrc="https://github.com/dartmouth-dltg/aspace_custom_localizations" data-auth="VerificationFailed">
https://github.com/dartmouth-dltg/aspace_custom_localizations</a></span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">I tested this against 3.4.1, but I believe it will work with most any version of ArchivesSpace.</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Hopefully the ReadMe is self explanatory, but let me know if things are unclear.</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">jds</span></div>
<div id="x_x_appendonsend"></div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_x_divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf
of Joshua D. Shaw <Joshua.D.Shaw@dartmouth.edu><br>
<b>Sent:</b> Wednesday, December 6, 2023 4:03 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] how to add a new locale to ArchivesSpace?</span>
<div> </div>
</div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">The other way to do this (a bit hacky) is to expand the common.jar file in /lib, make
your edits to the relevant I18n file (common/aspace_i18n.rb), and then recompress the jar file.</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">This works for any edits you need to core, but its hacky because its not really a sustainable
way to do things since you need to edit the same file for <b>every</b> update to the core code.</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">jds</span></div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="x_x_x_appendonsend"></div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_x_x_divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf
of Joshua D. Shaw <Joshua.D.Shaw@dartmouth.edu><br>
<b>Sent:</b> Wednesday, December 6, 2023 1:13 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] how to add a new locale to ArchivesSpace?</span>
<div> </div>
</div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">One thing you might try is initializing the AppConfig[:locale] setting in the plugin
itself, since it may be an order of operations issue where the main config loads first which attempts to initialize an unknown language (because the plugin hasn't loaded yet).</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">jds</span></div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="x_x_x_x_appendonsend"></div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_x_x_x_divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on
behalf of Ron Van den Branden <Ron.VandenBranden@antwerpen.be><br>
<b>Sent:</b> Wednesday, December 6, 2023 12:00 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] how to add a new locale to ArchivesSpace?</span>
<div> </div>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Hi Joshua,</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Thanks again for your detailed steps! Although a first attempt didn't work (startup keeps choking on the original languages list), I'm sure we'll get there, with more time. Thanks for pointing me in the good direction: overriding the language list via plugin
initialization. I'll definitely check out those other plugins for inspiration.</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Best,</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Ron</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="x_x_x_x_x_appendonsend"></div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_x_x_x_x_divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>Van:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> namens
Joshua D. Shaw <Joshua.D.Shaw@dartmouth.edu><br>
<b>Verzonden:</b> woensdag 6 december 2023 17:21<br>
<b>Aan:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Onderwerp:</b> Re: [Archivesspace_Users_Group] how to add a new locale to ArchivesSpace?</span>
<div> </div>
</div>
<table align="left" style="direction: ltr; display: table; width: 100%; table-layout: fixed;">
<tbody>
<tr>
<td style="direction: ltr; padding: 7px 2px; vertical-align: middle; width: 1px; background-color: rgb(166, 166, 166);">
</td>
<td style="direction: ltr; text-align: left; padding: 7px 5px 7px 15px; vertical-align: middle; width: 100%; color: rgb(33, 33, 33); background-color: rgb(234, 234, 234);">
<div style="direction: ltr; text-align: left;"><span style="font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 12px;">U ontvangt niet vaak e-mail van joshua.d.shaw@dartmouth.edu.
<a href="https://aka.ms/LearnAboutSenderIdentification" id="OWAb5a0dcf4-51bf-449d-1135-b129d2868369" class="x_x_x_x_x_OWAAutoLink" data-auth="NotApplicable" data-loopstyle="linkonly">
Meer informatie over waarom dit belangrijk is</a></span></div>
</td>
<td align="left" style="direction: ltr; padding: 7px 5px; vertical-align: middle; width: 75px; color: rgb(33, 33, 33); background-color: rgb(234, 234, 234);">
</td>
</tr>
</tbody>
</table>
<p style="direction: ltr; line-height: 105%; margin: 0cm 0cm 8pt; font-family: Calibri, sans-serif; font-size: 13px;">
<span style="font-family: Arial, sans-serif; line-height: 105%; color: rgb(207, 0, 57);"><b>WAARSCHUWING: DIT IS EEN EXTERNE MAIL</b></span></p>
<p style="direction: ltr; line-height: 105%; margin: 0cm 0cm 8pt; font-family: Calibri, sans-serif; font-size: 12px;">
<span style="font-family: Arial, sans-serif; line-height: 105%; color: rgb(207, 0, 57);">Deze mail komt van buiten onze organisatie. Kijk eerst of je het mailadres en de afzender herkent en/of vertrouwt. Doe dat voor je bijlagen opent of links aanklikt. Zo
houden we onze organisatie veiliger voor phishing. </span></p>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Hey Ron</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Here's the way I'd do this.</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<ol start="1" data-editing-info="{"orderedStyleType":1,"unorderedStyleType":1}" data-listchain="__List_Chain_316" style="direction: ltr; list-style-type: decimal;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; direction: ltr; color: rgb(0, 0, 0);">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Create a new directory in the plugin folder in your ArchivesSpace directory. Call it something like aspace_custom_locatizations
(or whatever you want)</span></li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; direction: ltr; color: rgb(0, 0, 0);">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">In that new directory, create two new directories: backend and frontend</span></li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; direction: ltr; color: rgb(0, 0, 0);">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">In the backend directory, add a file called plugin_init.rb. Put the contents of the monkey patch in that file</span></li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; direction: ltr; color: rgb(0, 0, 0);">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">In the frontend directory, add a file tree that mimics the locales directory in the core code:</span></li><ol start="1" style="direction: ltr; list-style-type: lower-alpha;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; direction: ltr; color: rgb(0, 0, 0);">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">locales/</span></li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; direction: ltr; color: rgb(0, 0, 0);">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">locales/enums</span></li></ol>
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; direction: ltr; color: rgb(0, 0, 0);">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Add your new dutch locales files to those two locations. Name them nl.yml</span></li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; direction: ltr; color: rgb(0, 0, 0);">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">In your config file, add your plugin name (the directory name in step 1) to the list of plugins that are active:
AppConfig[:plugins] is the key you want to edit.</span></li></ol>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Since I haven't tested this, there may be some gotchas I'm not thinking about as far
as the monkeypatch and where the locales list may also be referenced, but this is the approach I'd take.</span></div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">There's more info on that tech docs page and there are a bunch of examples to be found
on the Awesome ArchivesSpace repo (<a href="https://github.com/archivesspace/awesome-archivesspace" id="OWA8f5e8d23-10d1-5d42-d060-8491039b56b2" class="x_x_x_x_x_OWAAutoLink" shash="k3gKV7Dxy1ki8/OceeeBT6glO1lF4589N/n4QNSDuFFTCC43d4lODbZqs9mSthdd68rDw3F0kmSsuCHxyXSlDb7yxgQUNXYDHCUvcp2BNYvxBwNkwp2/XhFIfAtFb2i4qkr0itmnk++lZFe/EZH6oSFfJ5c4zNWjhfEzgkt4K7E=" originalsrc="https://github.com/archivesspace/awesome-archivesspace" data-auth="VerificationFailed" data-loopstyle="linkonly">https://github.com/archivesspace/awesome-archivesspace</a>)
and Hudson Molonglo's repos (<a href="https://github.com/hudmol" id="OWAf872d516-7fb0-fe2d-1945-6280f4f8869b" class="x_x_x_x_x_OWAAutoLink" shash="TAv41cPzoaxK9WM2QcCQzvZckXKtZXZkS8Knto8sFs3BBHlg6ISjCwd7RtworN6DoWJb0q1fmmJ8U04J5Kezgmj50C0PCiTnDm7/jwnjFDR9vhTGqypEoHxgcvY0dS3ltKoD+RUlaEFFBpB1Hty5o/E8tCyesn2kEn6Mvc9jEtE=" originalsrc="https://github.com/hudmol" data-auth="VerificationFailed" data-loopstyle="linkonly">https://github.com/hudmol</a>)
and <a href="https://gitlab.gaiaresources.com.au/explore" id="OWAe9b4a287-3018-bc46-050c-fad14db4cb52" class="x_x_x_x_x_OWAAutoLink" shash="B3phegonNctJ5YKPOcVT428GSIS/M8Yd2jmzI0m/N6jx064u8R8A6W3OfNAlsCFC+40EzXp444Xmjovi04XJiqVZx6Pth+2s/7nhEzjR6Fc6wkQlntqGr7vR+1rO+H7kmezXgLEbihHG1CLlDoo7tIeu+B7fUdPDC24SLFLuLWE=" originalsrc="https://gitlab.gaiaresources.com.au/explore" data-auth="VerificationFailed" data-loopstyle="linkonly">
https://gitlab.gaiaresources.com.au/explor</a></span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">jds</span></div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="x_x_x_x_x_x_appendonsend"></div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_x_x_x_x_x_divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org>
on behalf of Ron Van den Branden <Ron.VandenBranden@antwerpen.be><br>
<b>Sent:</b> Wednesday, December 6, 2023 11:01 AM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] how to add a new locale to ArchivesSpace?</span>
<div> </div>
</div>
<div style="direction: ltr;"><span style="letter-spacing: normal; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; font-weight: 400; color: rgb(0, 0, 0);">Hi Joshua,</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="letter-spacing: normal; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; font-weight: 400; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="letter-spacing: normal; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; font-weight: 400; color: rgb(0, 0, 0);">Ok, thanks for that pointer! The point is that we couldn't
find that common/aspace_i18n.rb file in the ArchivesSpace distribution code. Or are you suggesting to add it in a plugin? If so, would you mind guiding me a bit more?</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="letter-spacing: normal; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; font-weight: 400; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="letter-spacing: normal; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; font-weight: 400; color: rgb(0, 0, 0);">I don't think we've succeeded in building from source (I'm
on Windows, so I'm probably at a loss for local testing, I recall some Ruby build incompatibilities). </span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="letter-spacing: normal; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; font-weight: 400; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="letter-spacing: normal; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; font-weight: 400; color: rgb(0, 0, 0);">Best,</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="letter-spacing: normal; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; font-weight: 400; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="letter-spacing: normal; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; font-weight: 400; color: rgb(0, 0, 0);">Ron</span></div>
<div style="direction: ltr;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><br>
</span></div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_x_x_x_x_x_x_divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>Van:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org>
namens Joshua D. Shaw <Joshua.D.Shaw@dartmouth.edu><br>
<b>Verzonden:</b> woensdag 6 december 2023 16:44<br>
<b>Aan:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Onderwerp:</b> Re: [Archivesspace_Users_Group] how to add a new locale to ArchivesSpace?</span>
<div> </div>
</div>
<table align="left" style="direction: ltr; display: table; width: 100%; table-layout: fixed;">
<tbody>
<tr>
<td style="direction: ltr; padding: 7px 2px; vertical-align: middle; width: 1px; background-color: rgb(166, 166, 166);">
</td>
<td style="direction: ltr; text-align: left; padding: 7px 5px 7px 15px; vertical-align: middle; width: 100%; color: rgb(33, 33, 33); background-color: rgb(234, 234, 234);">
<div style="direction: ltr; text-align: left;"><span style="font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 12px;">U ontvangt niet vaak e-mail van joshua.d.shaw@dartmouth.edu.
<a href="https://aka.ms/LearnAboutSenderIdentification" id="OWAc31798b2-7dc4-4732-ae54-84c1e4514b25" class="x_x_x_x_x_x_x_OWAAutoLink" data-auth="NotApplicable" data-loopstyle="linkonly">
Meer informatie over waarom dit belangrijk is</a></span></div>
</td>
<td align="left" style="direction: ltr; padding: 7px 5px; vertical-align: middle; width: 75px; color: rgb(33, 33, 33); background-color: rgb(234, 234, 234);">
</td>
</tr>
</tbody>
</table>
<p style="direction: ltr; line-height: 105%; margin: 0cm 0cm 8pt; font-family: Calibri, sans-serif; font-size: 13px;">
<span style="font-family: Arial, sans-serif; line-height: 105%; color: rgb(207, 0, 57);"><b>WAARSCHUWING: DIT IS EEN EXTERNE MAIL</b></span></p>
<p style="direction: ltr; line-height: 105%; margin: 0cm 0cm 8pt; font-family: Calibri, sans-serif; font-size: 12px;">
<span style="font-family: Arial, sans-serif; line-height: 105%; color: rgb(207, 0, 57);">Deze mail komt van buiten onze organisatie. Kijk eerst of je het mailadres en de afzender herkent en/of vertrouwt. Doe dat voor je bijlagen opent of links aanklikt. Zo
houden we onze organisatie veiliger voor phishing. </span></p>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Hey Ron</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">In addition to what Christine lists....</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Off the top of my head (so take with a grain of salt since I haven't actually tested
this!)...</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">In a plugin init (probably a backend plugin_init), monkey patch the self.supported_locales
method in common/aspace_i18n.rb. Maybe something like</span></div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">module I18n</span></div>
<div style="direction: ltr; margin-right: 40px; margin-left: 40px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">def self.supported_locales</span></div>
<div style="direction: ltr; margin-right: 40px; margin-left: 40px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> enhanced_locales = LOCALES</span></div>
<div style="direction: ltr; margin-right: 40px; margin-left: 40px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr; margin-right: 40px; margin-left: 40px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> # map I18n language code => ArchivesSpace
enumerations:language_iso639_2 code</span></div>
<div style="direction: ltr; margin-right: 40px; margin-left: 40px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> # enumerations iso codes found in common/locales/enums</span></div>
<div style="direction: ltr; margin-right: 40px; margin-left: 40px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> enhanced_locales['nl'] = 'dut'</span></div>
<div style="direction: ltr; margin-right: 40px; margin-left: 40px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr; margin-right: 40px; margin-left: 40px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> enhanced_locales</span></div>
<div style="direction: ltr; margin-right: 40px; margin-left: 40px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">end</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">end</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Then you could add your new dutch locale file nl.yml within that same plugin.</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">OR</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">You could grab the code tree from github, patch it locally and build your patched application.</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Both approaches have their own set of headaches as far as maintenance.</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">To contribute and other tech docs:
<a href="https://archivesspace.github.io/tech-docs/readme_develop.html" id="OWAc1ac34f0-bf8e-0017-04de-62ed239337dd" class="x_x_x_x_x_x_x_x_OWAAutoLink" shash="hdO/srPoCPF/M29rvAUayFu+97jjKaxZBCx81RitG8eZb+PXgnUucAhe76IBUHOs48wlHmICFZmeF4SZPQx0vtbCE1+C1EKz8QarTqUHxdJ72kFUSyUk3rA1oNJTKxiVFVc+rOFq/UwIj/T0CiasXaKJu7WPNA/68fjQtBHHlyE=" originalsrc="https://archivesspace.github.io/tech-docs/readme_develop.html" data-auth="VerificationFailed" data-loopstyle="linkonly">
https://archivesspace.github.io/tech-docs/readme_develop.html</a></span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Hope that helps!</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Joshua</span></div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="x_x_x_x_x_x_x_x_appendonsend"></div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_x_x_x_x_x_x_x_divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org>
on behalf of Ron Van den Branden <Ron.VandenBranden@antwerpen.be><br>
<b>Sent:</b> Wednesday, December 6, 2023 9:51 AM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> [Archivesspace_Users_Group] how to add a new locale to ArchivesSpace?</span>
<div> </div>
</div>
<div style="direction: ltr;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">Hi all,</span></div>
<div style="direction: ltr; 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="direction: ltr; 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="OWA33959095-1c0f-9884-847a-b70b8e1a44e3" class="x_x_x_x_x_x_x_x_x_OWAAutoLink" shash="KMrHT9Ky1A/Pi5SUlGaLurSklhKDVh8lE07tEzP0NJXshEyPmLfunwqKI1Q6sANzaK2gDO4S6j486zN6q25bmFCvF45iNKi3ZpeqehQMNnzTkE+d4fzzVgqYtbS6wsV5GZW6Mrvjvt7FB3pBpGptRhhR+9OWD+rDiFe2DfTqxfI=" originalsrc="https://archivesspace.github.io/tech-docs/customization/locales.html" data-auth="VerificationFailed" data-loopstyle="linkonly">
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="direction: ltr; list-style-type: disc;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; direction: ltr; 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);">
<div style="direction: ltr;"><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:</span></div>
<blockquote style="margin-right: 0px; margin-left: 0.8ex; padding-left: 1ex; border-left: 3px solid rgb(200, 200, 200);">
<pre><div style="direction: ltr; 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="direction: ltr; 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="direction: ltr; 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="direction: ltr; 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="direction: ltr; 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="OWA87cad35a-5ebe-7fae-f22c-1a02219872e0" class="x_x_x_x_x_x_x_x_x_OWAAutoLink" shash="m0HxsNTNycQhJ2S1yafUFaCUC/TQjbKjG73ooNy10FTY3tm1TdM33IyDcv2BSiVZ+218VeMElboLiuoxN9K5/VA35CJr5HtSrreEcuO7bJqmX58fa1o2DUqrMWNhO5KllaGIlNQkYxaCa8R3gFK6HWdSs2Fui163FLi+fBKZ2Xw=" originalsrc="https://github.com/archivesspace/archivesspace/blob/master/common/aspace_i18n.rb#L28" data-auth="VerificationFailed" data-loopstyle="linkonly">
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="OWA1cb2bec3-0b01-dfd3-a893-ae8a1a5e9f70" class="x_x_x_x_x_x_x_x_OWAAutoLink" shash="VcPodp16DxvVnNPXlq8ranO5yMVRnvjnvf+3HfSyvQhUAM8/UrPT0t5fDlOyO/rcNZS2Dszq4sH3HBT1Gridvx0m016rNwMRNwbDXyhIfbNib1eI0N5fqDFSIeZlmHS1I4lWCdo07T6PHFcJOeC+7jCqsD+567/BogQH9prnC6o=" originalsrc="https://hosted.weblate.org/projects/archivesspace-interfaces/#languages" data-auth="VerificationFailed" data-loopstyle="linkonly">
https://hosted.weblate.org/projects/archivesspace-interfaces/#languages</a>, which contains additional languages Portuguese and Italian.</span></div>
<div style="direction: ltr; 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="direction: ltr; list-style-type: disc;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; direction: ltr; 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; direction: ltr; 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="direction: ltr; 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="direction: ltr; 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 style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="x_x_x_x_x_x_x_x_x_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/" id="OWAf595aab7-c2c5-df0b-2687-3fda15309f4d" class="x_x_x_x_x_x_x_x_x_ContentPasted0 x_x_x_x_x_x_x_x_x_OWAAutoLink" shash="K+A6RdriYhzNlemUWfhyB8ShDnqpB5os01z8hz9HXpr4Q6SMtQNzSfsQOI6iXnmgB1v9FzYWyCs7s5Qi39Mlc2WSHgjjgUd9y+etYyTEJcZlUiwA+bBKx4zaIPicBbzAN5zepa2zLLEjXRxzufsn88u5OfOvVLfb3iD7c3L1Its=" originalsrc="http://www.letterenhuis.be/" data-auth="VerificationFailed" data-safelink="true" data-linkindex="2" data-loopstyle="linkonly" style="margin: 0px; color: rgb(77, 77, 77);">letterenhuis.be</a> |
<a href="https://www.instagram.com/letterenhuis/" id="OWAffc38a93-becb-3fdc-1657-2cb6fb4a60eb" class="x_x_x_x_x_x_x_x_x_ContentPasted0 x_x_x_x_x_x_x_x_x_OWAAutoLink" shash="cywxRlBkK4vJcjpeZ/caWQTFkkKZAQe1RFdaPJxWWXaPBzCiaVysR4uyxxYoTC9Bwxl8kehTptoKxVFKwn8b38QAvSWsnp4isaTuMG+GjWCr7f9IhF1SKANUa/tVFKYh0At56T0DUTzj66RLOiuBJ+80IpIzcFO6rKewv0juFRs=" originalsrc="https://www.instagram.com/letterenhuis/" data-auth="VerificationFailed" data-safelink="true" data-linkindex="3" data-loopstyle="linkonly" style="margin: 0px; color: rgb(77, 77, 77);">
instagram</a> | <a href="https://www.facebook.com/Letterenhuis" id="OWAbe135690-e972-2155-3de3-42fd39a48e72" class="x_x_x_x_x_x_x_x_x_ContentPasted0 x_x_x_x_x_x_x_x_x_OWAAutoLink" shash="yJoVWcRKZR5L/Tl0SGi0qbZXz6zw4McF3dW54PVfr9V+4txdcJqWL76c440Ahwu/zzT6NOWt4zBohqEvDSTsBQOKQHwHKaFPQ44/EuC6DAkpqNHtXRcl7sfvvf8Ad6y5VrAi1ieZuWRidU5GvwSKBiUOjwHysh0NNThEyQ5t+To=" originalsrc="https://www.facebook.com/Letterenhuis" data-auth="VerificationFailed" data-safelink="true" data-linkindex="4" data-loopstyle="linkonly" 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>