<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 style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi all,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Further to this exchange, I've come back to this work and have been doing some local testing to try and get the locales to display correctly. It turns out that commenting this line out seems to fix my issue perfectly:
<a href="https://github.com/archivesspace/archivesspace/blob/a37fcedd610505e633abdc68694ccda75cb756a3/public/config/initializers/locales.rb#L2" id="LPlnkOWALinkPreview">
https://github.com/archivesspace/archivesspace/blob/a37fcedd610505e633abdc68694ccda75cb756a3/public/config/initializers/locales.rb#L2</a><br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1">
<div id="LPBorder_GTaHR0cHM6Ly9naXRodWIuY29tL2FyY2hpdmVzc3BhY2UvYXJjaGl2ZXNzcGFjZS9ibG9iL2EzN2ZjZWRkNjEwNTA1ZTYzM2FiZGM2ODY5NGNjZGE3NWNiNzU2YTMvcHVibGljL2NvbmZpZy9pbml0aWFsaXplcnMvbG9jYWxlcy5yYiNMMg.." class="LPBorder888205" style="width: 100%; margin-top: 16px; margin-bottom: 16px; position: relative; max-width: 800px; min-width: 424px;">
<table id="LPContainer888205" role="presentation" style="padding: 12px 36px 12px 12px; width: 100%; border-width: 1px; border-style: solid; border-color: rgb(200, 200, 200); border-radius: 2px;">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td>
<div id="LPImageContainer888205" style="position: relative; margin-right: 12px; height: 120px; overflow: hidden; width: 240px;">
<a target="_blank" id="LPImageAnchor888205" href="https://github.com/archivesspace/archivesspace/blob/a37fcedd610505e633abdc68694ccda75cb756a3/public/config/initializers/locales.rb#L2"><img id="LPThumbnailImageId888205" alt="" style="display: block;" width="240" height="120" src="https://opengraph.githubassets.com/48d750ff7e0824367b77ecaa74384386367d08d4ad8958a12dc6d6477c79554a/archivesspace/archivesspace"></a></div>
</td>
<td style="width: 100%;">
<div id="LPTitle888205" style="font-size: 21px; font-weight: 300; margin-right: 8px; font-family: "wf_segoe-ui_light", "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px;">
<a target="_blank" id="LPUrlAnchor888205" href="https://github.com/archivesspace/archivesspace/blob/a37fcedd610505e633abdc68694ccda75cb756a3/public/config/initializers/locales.rb#L2" style="text-decoration: none; color: var(--themePrimary);">archivesspace/locales.rb
 at a37fcedd610505e633abdc68694ccda75cb756a3 · archivesspace/archivesspace</a></div>
<div id="LPDescription888205" style="font-size: 14px; max-height: 100px; color: rgb(102, 102, 102); font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px; margin-right: 8px; overflow: hidden;">
The ArchivesSpace archives management tool. Contribute to archivesspace/archivesspace development by creating an account on GitHub.</div>
<div id="LPMetadata888205" style="font-size: 14px; font-weight: 400; color: rgb(166, 166, 166); font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif;">
github.com</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif;">I don't really understand why this is working (the locales in question don't have entries in any frontend files) but I'd like to move this change to a development environment
 to investigate further. I can't see how to use a plugin to stop this reordering from running - might anyone have any suggestions?</span></div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Many thanks,</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Nick<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Nick Butler
 <npwb2@cam.ac.uk><br>
<b>Sent:</b> 31 March 2022 09:55<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] PUI locales not being fully loaded in v3.1.1?</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi Andrew,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks for your reply. That doesn't appear to be the case here (either in my dockerised local development environment, where this is my only active plugin, or in our development server, where there are no other
<code>public/locale/*</code>​ files in any of our other currently-loaded plugins). Thanks for pointing that commit out, it looks like the related PR (<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Fpull%2F2266&data=04%7C01%7Cnpwb2%40universityofcambridgecloud.onmicrosoft.com%7C6ddd14faa83a41deaad908da12f43496%7C49a50445bdfa4b79ade3547b4f3986e9%7C0%7C0%7C637843138269353601%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=8Xm%2Fh19A0vMNPyY4NH1Wb%2FyZU%2BeRsLx39%2B69QT3M2lU%3D&reserved=0" originalsrc="https://github.com/archivesspace/archivesspace/pull/2266" shash="ddBIV2NgXMFP4HbUHl/uDrBXku7DvOLjsA0ErSeZvflpJm2KrOtGPfbe695zcQKBBnndxSWIwhtc74bUzBvKlqkT85FDN7HbdmFG3DZ0Cm659u5Ii5VFCkMGH8//HjV8xacJBKQD5E/rfsbkXPy6PXN7xgusT/AfliRjoH3yHWM=" id="LPlnkOWALinkPreview">https://github.com/archivesspace/archivesspace/pull/2266</a>)
 made a number of other changes to plugins as well. I'll take a closer look.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Many thanks,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Nick<br>
</div>
<div class="x__Entity x__EType_OWALinkPreview x__EId_OWALinkPreview x__EReadonly_1">
<div id="LPBorder_GTaHR0cHM6Ly9naXRodWIuY29tL2FyY2hpdmVzc3BhY2UvYXJjaGl2ZXNzcGFjZS9wdWxsLzIyNjY." class="x_LPBorder469075" style="width:100%; margin-top:16px; margin-bottom:16px; max-width:800px; min-width:424px">
<table id="LPContainer469075" role="presentation" style="padding:12px 36px 12px 12px; width:100%; border-width:1px; border-style:solid; border-color:rgb(200,200,200); border-radius:2px">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td>
<div id="LPImageContainer469075" style="margin-right:12px; height:120px; overflow:hidden; width:240px">
<a target="_blank" id="LPImageAnchor469075" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Fpull%2F2266&data=04%7C01%7Cnpwb2%40universityofcambridgecloud.onmicrosoft.com%7C6ddd14faa83a41deaad908da12f43496%7C49a50445bdfa4b79ade3547b4f3986e9%7C0%7C0%7C637843138269353601%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=8Xm%2Fh19A0vMNPyY4NH1Wb%2FyZU%2BeRsLx39%2B69QT3M2lU%3D&reserved=0" originalsrc="https://github.com/archivesspace/archivesspace/pull/2266" shash="ddBIV2NgXMFP4HbUHl/uDrBXku7DvOLjsA0ErSeZvflpJm2KrOtGPfbe695zcQKBBnndxSWIwhtc74bUzBvKlqkT85FDN7HbdmFG3DZ0Cm659u5Ii5VFCkMGH8//HjV8xacJBKQD5E/rfsbkXPy6PXN7xgusT/AfliRjoH3yHWM="><img id="LPThumbnailImageId469075" alt="" width="240" height="120" style="display:block" src="https://opengraph.githubassets.com/4f0a13a1a5b8753a7c5f583c5b46fc83586f0f61767e88e9effaef05c794c08a/archivesspace/archivesspace/pull/2266"></a></div>
</td>
<td style="width:100%">
<div id="LPTitle469075" style="font-size:21px; font-weight:300; margin-right:8px; font-family:"wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; margin-bottom:12px">
<a target="_blank" id="LPUrlAnchor469075" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Fpull%2F2266&data=04%7C01%7Cnpwb2%40universityofcambridgecloud.onmicrosoft.com%7C6ddd14faa83a41deaad908da12f43496%7C49a50445bdfa4b79ade3547b4f3986e9%7C0%7C0%7C637843138269353601%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=8Xm%2Fh19A0vMNPyY4NH1Wb%2FyZU%2BeRsLx39%2B69QT3M2lU%3D&reserved=0" originalsrc="https://github.com/archivesspace/archivesspace/pull/2266" shash="ddBIV2NgXMFP4HbUHl/uDrBXku7DvOLjsA0ErSeZvflpJm2KrOtGPfbe695zcQKBBnndxSWIwhtc74bUzBvKlqkT85FDN7HbdmFG3DZ0Cm659u5Ii5VFCkMGH8//HjV8xacJBKQD5E/rfsbkXPy6PXN7xgusT/AfliRjoH3yHWM=" style="text-decoration:none">Hm
 plugin enhancements from #1896 by lorawoodford · Pull Request #2266 · archivesspace/archivesspace</a></div>
<div id="LPDescription469075" style="font-size:14px; max-height:100px; color:rgb(102,102,102); font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; margin-bottom:12px; margin-right:8px; overflow:hidden">
Includes 30 commits from the larger #1896 written by @marktriggs @jambun @payten and funded by Queensland State Archives. 3dc860a: Introduce AbstractPluginSection (and examples) to allow arbitrar...</div>
<div id="LPMetadata469075" style="font-size:14px; font-weight:400; color:rgb(166,166,166); font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif">
github.com</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Andrew Morrison
 <andrew.morrison@bodleian.ox.ac.uk><br>
<b>Sent:</b> 31 March 2022 08:54<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] PUI locales not being fully loaded in v3.1.1?</font>
<div> </div>
</div>
<div>
<p>Do you have two or more plug-ins with a <i>public/locale/en.yml</i> file in each? If they have both have a brand: section, then one will override the other, even if only one defines a translation for the title: variable.</p>
<p><br>
</p>
<p>There has been a change between 2.8.1 and 3.1.1 in how plug-ins are loaded:</p>
<p><br>
</p>
<p><a class="x_x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Fcommit%2F1f4f34dd7cc655fc4a6e6d68cd8a5d8ff8c35cf8&data=04%7C01%7Cnpwb2%40universityofcambridgecloud.onmicrosoft.com%7C6ddd14faa83a41deaad908da12f43496%7C49a50445bdfa4b79ade3547b4f3986e9%7C0%7C0%7C637843138269353601%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=I2bZqcMfwfn3HaaMztU5kzexM%2FElIUnbCJWwgohSLe0%3D&reserved=0" originalsrc="https://github.com/archivesspace/archivesspace/commit/1f4f34dd7cc655fc4a6e6d68cd8a5d8ff8c35cf8" shash="goFxQYWiXC+loPwl62YqNXp/cXq2vBo03PP9u+RFoYdr5qwGZ/DG8gvmuLXzM5rHqixiUHrOFkkt793wPeJM2pdr2VlXJpzDv9XLLDLovFV1k8V3sOJBH6t0Hsyrt9QPkBayQWftgOdVKnNnVZZj/iwyiyteH0Sf2fdNVsH7sc4=" originalsrc="https://github.com/archivesspace/archivesspace/commit/1f4f34dd7cc655fc4a6e6d68cd8a5d8ff8c35cf8" shash="aGhii7TwTMRndyz/JvSjwmu+SBnuy1xEpTv+pXz2RkOAnB8KyV2X2+p+N6BBSRvR1pluIhctEdROpo0K+20L+1wsMEIz6S7NLzcWN6elhCash0v+uShOaR42P56EjbnAvQP5xy03ex4sraIkfjK2EW1awamKMZkiMeRylXklTKY=">https://github.com/archivesspace/archivesspace/commit/1f4f34dd7cc655fc4a6e6d68cd8a5d8ff8c35cf8</a><br>
</p>
<p><br>
</p>
<p>Andrew.</p>
<p><br>
</p>
<p><br>
</p>
<div class="x_x_moz-cite-prefix">On 30/03/2022 15:10, Nick Butler wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi all,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
We've been trying out ArchivesSpace v3.1.1 in development environments prior to upgrading our production system from v2.8.1. We're experiencing an issue whereby some of the entries in our local plugin's
<code>public/locales/en.yml</code>​ file seemingly aren't being recognised. As far as I can tell, anything that's intended to override an entry in the default file isn't being seen (i.e. the value of
<code>brand.title</code>​) , but everything new (i.e. entries in a <code>plugins</code>​ block) is being loaded successfully. Using ArchivesSpace version v2.8.1 again, without making any other changes, makes the locales load as expected. All entries in the
 plugin's <code>frontend/locales/en.yml</code>​ file are being respected as expected in both v2.8.1 and v3.1.1. Has anyone else experienced this?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Many thanks,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Nick<br>
</div>
<br>
<fieldset class="x_x_moz-mime-attachment-header"></fieldset>
<pre class="x_x_moz-quote-pre">_______________________________________________
Archivesspace_Users_Group mailing list
<a class="x_x_moz-txt-link-abbreviated" href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a>
<a class="x_x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flyralists.lyrasis.org%2Fmailman%2Flistinfo%2Farchivesspace_users_group&data=04%7C01%7Cnpwb2%40universityofcambridgecloud.onmicrosoft.com%7C6ddd14faa83a41deaad908da12f43496%7C49a50445bdfa4b79ade3547b4f3986e9%7C0%7C0%7C637843138269353601%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=o8TVNfcg33VHd030ug7K5wqkfKF2naom2%2FkTEUnCOxI%3D&reserved=0" originalsrc="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" shash="clDG637F7pgCcRH3d7mLzrbx3QiRrtJogbpo/+gchbhcp/nQga7QadctfnwOT7mFhhwiiToXflv6MfQ1rWwAubDtN1hYCT5Xn2VaJyXZ3x6WWTqRGPEzOZTDH80kiNwZwgHPS/tdNJutrHmjexzS3Z8VxcoHMQqeDwnPeIvr+jY=" originalsrc="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" shash="fjB3Lqtn4B+x001myi9DtrO8Sx7abhL9yW0O4Rw3TvlTQ3SRAzumval6lvfu88P6RvvpQAaJC9Itt7yHZM55wXbl2AtdXewpLuvDharPdieHDZeDuqimyeGsfMc4Uvoamlxk2TkRGu7aRizS4jh3hiWbSQ4iiOfgkc4fNJ03SdU=">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a>
</pre>
</blockquote>
</div>
</div>
</body>
</html>