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

Mouse position translation #3360

Merged
merged 3 commits into from Jan 10, 2018
Merged

Mouse position translation #3360

merged 3 commits into from Jan 10, 2018

Conversation

llienher
Copy link
Member

@llienher llienher commented Jan 9, 2018

Fixes #3344

This fixes the translation issue with the mouse position OL control. Now we wait for gettextCatalog to fire an event that the language is loaded/changed to create the component with the correct language string.

@@ -64,32 +65,64 @@ gmf.MousepositionController = function($element, $filter, gettextCatalog) {
*/
this.projection;

/**
* @type {angular.Scope}
*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing @private

* @type {angularGettext.Catalog}
* @private
*/
this.gettextCatalog_ = gettextCatalog;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, you can mark it protected and remove the trailing underscore. Then there is no need to alias it in the code below.

@llienher llienher merged commit 25f899b into 2.2 Jan 10, 2018
@llienher llienher deleted the mouse-position-translation branch January 10, 2018 08:30
@sbrunner sbrunner added this to the 2.2 milestone Jan 16, 2018
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

4 participants