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

Localize buttons #360

Merged
merged 1 commit into from
Aug 30, 2015
Merged

Conversation

tannerj
Copy link
Contributor

@tannerj tannerj commented Aug 17, 2015

Adds localizations for buttons and navigation links in all view files.

@monfresh
Copy link
Member

I think this looks great so far. Could you please do 3 more things:

expect(page).to have_link 'Services'

with

expect(page).to have_link t('admin.navigation.services')
  • When you're done, please squash your commits into one. Let me know if you need help doing that.

Thanks!

…ation and buttons in views and specs. Admin buttons are namespaced with "admin".
@tannerj
Copy link
Contributor Author

tannerj commented Aug 30, 2015

I think I have addressed the three issues you raised. I also removed the calls to admin.navigation and replaced them with calls to admin.buttons in config/locales/en.yml because they were repeating the same text. I'm not sure if this is the way you want this done. Another option would be referencing one in the other. Please let me know how you'd like that structured and I'll add that change in my next pull request. Thanks for being patient with me on this.

@monfresh
Copy link
Member

Thanks so much for doing this! At first glance, this looks perfect.

monfresh added a commit that referenced this pull request Aug 30, 2015
@monfresh monfresh merged commit 67af86b into codeforamerica:master Aug 30, 2015
@@ -19,4 +19,4 @@
permanently.
.modal-footer
%button.btn.btn-default{ 'data-dismiss' => 'modal' } Close
Copy link
Contributor

Choose a reason for hiding this comment

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

Should "Close" be localized here?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, good catch!

Copy link
Member

Choose a reason for hiding this comment

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

We should also move that to a shared partial as the same code is used on other delete views.

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