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

Add translate calls to strings in SectionHeader docs #1536

Merged
merged 2 commits into from
Dec 14, 2015

Conversation

deBhal
Copy link
Contributor

@deBhal deBhal commented Dec 14, 2015

This PR adds translate() calls to strings in SectionHeader, as suggested in #1468

You can see the example with the translate calls works at http://calypso.localhost:3000/devdocs/design/section-header and you can check that the strings won't go out to translators by running make translate and then checking calypso-strings.php both from the top directory of calypso.

@ebinnion: I've opened this PR because I feel bad about being away and missing the other PR, not to be pushy. If you feel like the example stands better without the changes, feel free to comment to that effect and close

@deBhal deBhal added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. i18n labels Dec 14, 2015
@@ -14,7 +14,7 @@ render: function() {
return (
<SectionHeader label={ this.translate( 'Team' ) }>
<Button compact>
Manage
this.translate( 'Manage' ) }
Copy link
Member

Choose a reason for hiding this comment

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

{ is missing here

@ebinnion ebinnion force-pushed the update/add-translate-calls-to-section-header-docs branch from c5c48ee to ff757c1 Compare December 14, 2015 19:53
@ebinnion
Copy link
Contributor

I rebased against master to fix a conflict after #1533 (removes Card component from docs example) got merged. I also went ahead and added the missing {.

LGTM. Thanks for the explanation in this comment.

ebinnion added a commit that referenced this pull request Dec 14, 2015
…o-section-header-docs

Add translate calls to strings in SectionHeader docs
@ebinnion ebinnion merged commit d24b195 into master Dec 14, 2015
@scruffian scruffian removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Dec 14, 2015
@ebinnion ebinnion deleted the update/add-translate-calls-to-section-header-docs branch December 14, 2015 20:03
@akirk
Copy link
Member

akirk commented Dec 14, 2015

Thanks @ebinnion!

@deBhal
Copy link
Contributor Author

deBhal commented Dec 14, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants