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

Move the default language process to on_before_process event #43

Closed
wants to merge 1 commit into from

Conversation

hissy
Copy link
Contributor

@hissy hissy commented Nov 14, 2013

Now, setupSiteInterfaceLocalization method got to be able to change core locale, but this is not enough. Some block messages like error messages on Form block are not still localized. Let's move setup localization process to on_before_process event.

NOTE: This PR is work in progress. We have to check app version for backward compatibility.

@hissy
Copy link
Contributor Author

hissy commented Nov 14, 2013

To use on_before_process event, we need this request is merged. concretecms/concretecms#1511

@hissy
Copy link
Contributor Author

hissy commented Nov 14, 2013

on_start:
before_english
before_japanese
Form messages depends on ACTIVE_LOCALE

on_before_process:
after_english
after_japanese
Works fine

@hissy
Copy link
Contributor Author

hissy commented Nov 14, 2013

Thanks Patrick!

@hissy
Copy link
Contributor Author

hissy commented Feb 18, 2014

Pull request on core repository was closed. But, on_page_view event is now moved earlier, so this problem will be fixed in 5.6.3.
concretecms/concretecms@4fdea7e

@hissy hissy closed this Feb 18, 2014
@hissy
Copy link
Contributor Author

hissy commented Feb 18, 2014

I closed this pull request, but still we need change the event for hook check default language to on_page_view from on_start. I'll make another pull request.

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.

None yet

2 participants