Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top Container Type does not always use translations from container_type enumeration #3053

Open
kloor opened this issue Sep 26, 2023 · 0 comments

Comments

@kloor
Copy link

kloor commented Sep 26, 2023

Expected Behavior

Our Controlled Value List for container_type includes "flat_file", which has an English enumeration translation of "Flat File". When a Top Container that is a Flat File is displayed, the title should start with "Flat File : ".

Current Behavior

Instead, it currently displays as "Flat_file :" in both the frontend and public UI.

Possible Solution

The top_container.rb display_string and long_display_string simply use type.capitalize instead of properly looking up the translation. There may be other areas where a translation is not used.

Steps to Reproduce (for bugs)

  1. Create a new container_type value of "flat_file"
  2. Add "flat_file: Flat File" to the container_type English enumerations in locales/enums/en.yml.
  3. Reload server, and set the container_type of a Top Container to Flat File (the Type selection properly has the translation).
  4. After saving the Top Container, the displayed title has "Flat_file : " at the beginning and the Container Type field is displayed as "flat_file".

Context

Our archivists wish to use "flat_file" as a Top Container type.

Your Environment

  • Version used: 3.4.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant