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

Smarter merging of languages #1651

Closed
wants to merge 4 commits into from
Closed

Conversation

rhukster
Copy link
Member

This PR is to address a common request as outlined here: #1514

Basically you can now create a single user/languages/en.yaml file and provide overrides for translations without having to copy the entire 'plugin' language first. For example:

PLUGIN_ADMIN:
  DASHBOARD: "Site Overview"

This will override just the PLUGIN_ADMIN.DASHBOARD string.

Please test this with your various configurations that nothing 'weird' results. I've tested it and so far it all seems to work great.

| NOTE: You must clear cache for languages .yaml files to be recompiled and picked up.

@rhukster
Copy link
Member Author

Also addresses this issue: getgrav/grav-plugin-admin#422

@rhukster rhukster closed this Sep 15, 2017
@rhukster rhukster deleted the feature/language-override-fixes branch October 1, 2018 18:38
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

Successfully merging this pull request may close these issues.

1 participant