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

Language translation for Gantry 5 constants - override does not work. #2642

Open
marktaylor46 opened this issue May 7, 2020 · 4 comments
Open

Comments

@marktaylor46
Copy link

Having studies the GRAV and Gantry 5 docs there does not appear to be a way of overriding the Gantry 5 language strings and having them be retained after either a Gantry 5 update or a theme update.

As a specific example, /user/plugins/gantry5/admin/translations/en/nucleus.yaml contains a number of string including GANTRY5_ENGINE_BLOG_ITEM_NEXT_POST and GANTRY5_ENGINE_BLOG_ITEM_PREV_POST which are "Next post" and "Previous post" respectively.

You can add German with /user/plugins/gantry5/admin/translations/de/nucleus.yaml file and that will work but the whole new folder will be removed by a gantry5 plugin update.

There should be a mechanism to override these constants by language that is not overwritten again by updates. I have tried using a "language.yaml" file but that does not appear to work.

After discussion with @mahagr he needs to investigate.

@mahagr mahagr self-assigned this May 7, 2020
@mahagr
Copy link
Member

mahagr commented May 7, 2020

As a workaround, you can copy the language file into your theme, for example user/themes/g5_helium/admin/translations/de/nucleus.yaml

@marktaylor46
Copy link
Author

Thanks yes and also platform.yaml works too

@tobiashartmann
Copy link

@marktaylor46 @mahagr Are there already translation files e.g. for german, or can I contribute to generate them somehow? Greetings

@marktaylor46
Copy link
Author

see https://github.com/gantry/gantry5/pull/2177/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants