There shouldn’t be a text value after ‘brand:’ The value of en.brand is the hash of the following values, so that en.brand.title, for example, maps to a value. If you take out that text it should work:
en: brand: title: McDaniel College Archives Catalog home: Home welcome_message: HEY HEY HEY! ! Error message is a bit confusing, but it’s trying to say it can’t assign mappings of title, home, welcome_message, to en.brand because it already has a string value of “McDaniel Archives” . > On Dec 9, 2019, at 1:34 PM, Janet Hack <[email protected]> wrote: > > So, I finally got some time to get back to this and still can't get it to > work. > > After updating the en.yml file located at plugins/local/public/locales/ to > the following: > > en: > brand: McDaniel Archives > title: McDaniel College Archives Catalog > home: Home > welcome_message: HEY HEY HEY! ! > and restarting the server, I get the following fatal error message in the log: > I18n::InvalidLocaleData (can not load translations from > /opt/archivesspace/archivesspace-2.7.0/plugins/local/public/locales/en.yml: > #<Psych::SyntaxError: > (/opt/archivesspace/archivesspace-2.7.0/plugins/local/public/locales/en.yml): > mapping values are not allowed here at line 3 column 8> > Any suggestions would be greatly appreciated. > > - Janet > > ----------------- > Janet Hack > Science and Online Technologies Librarian > Hoover Library | McDaniel College > 2 College Hill | Westminster, MD 21157-4390 > 410-857-2283 | [email protected] <mailto:[email protected]> > From: [email protected] > <[email protected]> on behalf of > Majewski, Steven Dennis (sdm7g) <[email protected]> > Sent: Friday, November 22, 2019 3:02 PM > To: Archivesspace Users Group > <[email protected]> > Subject: Re: [Archivesspace_Users_Group] need help customizing text in > ArchivesSpace > > > >> On Nov 22, 2019, at 2:49 PM, Blake Carver <[email protected] >> <mailto:[email protected]>> wrote: >> >> I think that doc is out of date, this might be more update: >> https://github.com/archivesspace/tech-docs/blob/master/customization/locales.md >> >> <https://github.com/archivesspace/tech-docs/blob/master/customization/locales.md> >> >> > > > Although, that doc has an error in the whitespace/indentation of the example. > “brand:” should be less indented. — Steve. > > >> >> From: [email protected] >> <mailto:[email protected]> >> <[email protected] >> <mailto:[email protected]>> on behalf >> of Majewski, Steven Dennis (sdm7g) <[email protected] >> <mailto:[email protected]>> >> Sent: Friday, November 22, 2019 2:24 PM >> To: Archivesspace Users Group >> <[email protected] >> <mailto:[email protected]>> >> Subject: Re: [Archivesspace_Users_Group] need help customizing text in >> ArchivesSpace >> >> One thing to check: the spaces and indentation in .yml files are >> significant, and you can’t mix tabs(*) with spaces, so you should make sure >> that you haven’t accidentally inserted a tab when editing. You can edit the >> file in place for testing, but for normal production, I advise copying the >> values you want to change into plugins/local/public/locales/en.yml and >> editing them there. But again, you have to be careful to preserve .yml >> hierarchy. >> >> You may also eventually want to try copying some of the shared view >> templates into plugins/local/public/views/shared/ and editing those. >> It’s easier to manage upgrades if you keep your changes in plugins >> directories. >> >> (*) In fact, googling this, I see it doesn’t like tabs at all. Must be only >> spaces. >> >> >> — Steve M. >> >> >> >>> On Nov 22, 2019, at 1:50 PM, Janet Hack <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> Greetings, >>> >>> we are new to ArchivesSpace and are trying to change the wording on our >>> public-facing pages https://archivesspace.mcdaniel.edu/ >>> <https://archivesspace.mcdaniel.edu/>. We want to change the header title >>> from the standard "ArchivesSpace Public Interface" and we would like to put >>> in a custom welcome message. I have tried editing the en.yml file following >>> the instructions at >>> https://archivesspace.github.io/archivesspace/user/customizing-text-in-archivesspace/ >>> >>> <https://archivesspace.github.io/archivesspace/user/customizing-text-in-archivesspace/> >>> with no success. >>> >>> Any assistance would be greatly appreciated. Please feel free to contact me >>> off-list. >>> >>> - Janet >>> >>> ----------------- >>> Janet Hack >>> Science and Online Technologies Librarian >>> Hoover Library | McDaniel College >>> 2 College Hill | Westminster, MD 21157-4390 >>> 410-857-2283 | [email protected] >>> <mailto:[email protected]>_______________________________________________ >>> Archivesspace_Users_Group mailing list >>> [email protected] >>> <mailto:[email protected]> >>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group >>> <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group> >> _______________________________________________ >> Archivesspace_Users_Group mailing list >> [email protected] >> <mailto:[email protected]> >> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group >> <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group> > _______________________________________________ > Archivesspace_Users_Group mailing list > [email protected] > <mailto:[email protected]> > http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group > <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Archivesspace_Users_Group mailing list [email protected] http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
