Skip to content

Add apostrophe to lorem and fix single-quoted strings - #2139

Merged
nedbat merged 2 commits into
masterfrom
ned/add-apostrophe-to-lorem
Jan 13, 2014
Merged

Add apostrophe to lorem and fix single-quoted strings#2139
nedbat merged 2 commits into
masterfrom
ned/add-apostrophe-to-lorem

Conversation

@nedbat

@nedbat nedbat commented Jan 10, 2014

Copy link
Copy Markdown
Contributor

Translated strings (think French) can have apostrophes in them. Translated strings are sometimes placed into single-quoted string literals, this will break French translations. Add an apostrophe to the dummy text to help flush out these problems. Also fix the dozen or so that I found with grep.

@nedbat

nedbat commented Jan 10, 2014

Copy link
Copy Markdown
Contributor Author

@andy-armstrong I know this is not the bullet-proof solution, but at least we can quickly fix these single-quotes. Review?

Comment thread i18n/dummy.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this enough to make sure that at least L' ## makes it into the string? Probably not for the shortest strings eg "Submit"

@sarina

sarina commented Jan 10, 2014

Copy link
Copy Markdown
Contributor

Should we fix single-quoted strings in *.coffee and *.js files too? I'm curious how big this problem is.

@andy-armstrong

Copy link
Copy Markdown
Contributor

👍 Looks like a reasonable short term fix. Do you know what's up with the test failure?

nedbat added a commit that referenced this pull request Jan 13, 2014
Add apostrophe to lorem and fix single-quoted strings
@nedbat
nedbat merged commit c4792e6 into master Jan 13, 2014
@nedbat
nedbat deleted the ned/add-apostrophe-to-lorem branch January 13, 2014 21:48
jenkins-ks pushed a commit to nttks/edx-platform that referenced this pull request Sep 22, 2017
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