Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Amir-61
Copy link
Contributor

@Amir-61 Amir-61 commented Jul 25, 2016

  • Add support for globalization.

/to: @0candy PTAL

var m = findMethod(this.client, method);
if(!m) {
throw new Error('Method not found in WSDL port types: ' + m);
throw new Error(g.f('Method not found in {{WSDL}} port types: %s', m));
Copy link
Contributor

Choose a reason for hiding this comment

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

You have to run slt-globalize -e again for intl/en/messages.json to get updated with the brackets change.

Copy link
Contributor Author

@Amir-61 Amir-61 Jul 26, 2016

Choose a reason for hiding this comment

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

@0candy Done, pushed the changes. Thanks!

@Amir-61 Amir-61 force-pushed the feature/globalizationfeature/globalization branch 2 times, most recently from f5cd295 to 0086c04 Compare July 27, 2016 19:05
@Amir-61
Copy link
Contributor Author

Amir-61 commented Jul 27, 2016

@superkhau @0candy Also I changed g.t to g.f in this patch as well. I assume this should be LGTM. Could you sign it off please, if everything looks good?

node_modules
!intl/
intl/*

Copy link
Contributor

Choose a reason for hiding this comment

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

Missing this line? !intl/en/

@Amir-61 Amir-61 force-pushed the feature/globalizationfeature/globalization branch from eb0ae3d to 2e23d54 Compare July 27, 2016 19:20
@Amir-61
Copy link
Contributor Author

Amir-61 commented Jul 27, 2016

@0candy Fixed now. PTAL. Thanks!

node_modules
!intl/en/
intl/*

Copy link
Contributor

@0candy 0candy Jul 27, 2016

Choose a reason for hiding this comment

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

There should be 3 lines
!intl/
intl/*
!intl/en/

Copy link
Contributor Author

@Amir-61 Amir-61 Jul 27, 2016

Choose a reason for hiding this comment

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

But your comment in my loopback-datasource-juggler PR, says we can get rid of !intl/, no?

Does it work without this line? !intl/

And in fact it works

Choose a reason for hiding this comment

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

I m not sure who originally decided the three line's standard, but if the original decider requires three, then probably we should keep !intl/.
ATM i think the only difference is if a repo doesn't have folder en, !intl makes sure the intl folder(empty in this case) still exist in that repo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I m not sure who originally decided the three line's standard, but if the original decider requires three, then probably we should keep !intl/.
ATM i think the only difference is if a repo doesn't have folder en, !intl makes sure the intl folder(empty in this case) still exist in that repo

@0candy Tested this in her initial run and @Amir-61 found out you don't need the first line. Hence the update in globalization.md PR. These are nitpicks if you already have those lines in your files anyways. It's up to you since you're the repo owner whether you want to address them now or in the future or if ever. This won't stop your PR from getting the green light.

@jannyHou
Copy link

@Amir-61 LGTM πŸ‘
only one comment for !intl

@Amir-61 Amir-61 closed this Jul 28, 2016
@Amir-61 Amir-61 reopened this Jul 28, 2016
@Amir-61 Amir-61 added #review and removed #review labels Jul 28, 2016
@Amir-61 Amir-61 merged commit 3ea43fd into master Jul 28, 2016
@Amir-61 Amir-61 deleted the feature/globalizationfeature/globalization branch July 28, 2016 20:04
@Amir-61 Amir-61 removed the #review label Jul 28, 2016
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.

5 participants