Skip to content

translated “you’ve earned {int} XP” - #398

Merged
brandonjackson merged 1 commit into
masterfrom
i18n-xp
Feb 24, 2017
Merged

brandonjackson merged 1 commit into
masterfrom
i18n-xp

Conversation

@brandonjackson

@brandonjackson brandonjackson commented Feb 24, 2017

Copy link
Copy Markdown
Contributor

@brandonjackson

Copy link
Copy Markdown
Contributor Author

$scope.id = $routeParams.id;
$scope.worldId = $routeParams.world;

$scope.offline = $rootScope.cfg.OFFLINE;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this ever used?

@brandonjackson brandonjackson Feb 24, 2017

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's used to determine which success message to show. There are lots of conditionals already in the view which turn different components on or off, but for some reason only the "Is this online or on the kit?" conditional was being handled in the controller... so by adding this to scope i moved that conditional to the view which makes it easier to translate the success message

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Then fine with me

@skarbat

skarbat commented Feb 24, 2017

Copy link
Copy Markdown
Contributor

👍

@brandonjackson
brandonjackson merged commit 8f74c86 into master Feb 24, 2017
@tombettany
tombettany deleted the i18n-xp branch February 24, 2017 17:01
paulvarache pushed a commit that referenced this pull request May 6, 2019
translated “you’ve earned {int} XP”
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.

3 participants