Skip to content

Commit

Permalink
Converted strings to concat
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerhance committed Aug 2, 2018
1 parent fb0c08b commit 06f00a1
Show file tree
Hide file tree
Showing 19 changed files with 140 additions and 36 deletions.
Binary file modified credentials/conf/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions credentials/conf/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-07-30 17:27+0000\n"
"PO-Revision-Date: 2018-07-30 17:27:21.918989\n"
"POT-Creation-Date: 2018-08-01 18:49+0000\n"
"PO-Revision-Date: 2018-08-01 18:49:59.259425\n"
"Last-Translator: \n"
"Language-Team: openedx-translation <[email protected]>\n"
"Language: en\n"
Expand Down
Binary file modified credentials/conf/locale/en/LC_MESSAGES/djangojs.mo
Binary file not shown.
46 changes: 39 additions & 7 deletions credentials/conf/locale/en/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-07-30 17:27+0000\n"
"PO-Revision-Date: 2018-07-30 17:27:21.926504\n"
"POT-Creation-Date: 2018-08-01 18:49+0000\n"
"PO-Revision-Date: 2018-08-01 18:49:59.272548\n"
"Last-Translator: \n"
"Language-Team: openedx-translation <[email protected]>\n"
"Language: en\n"
Expand All @@ -18,29 +18,65 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: static/components/ProgramRecord.jsx
msgid "Not Earned"
msgid "Earned"
msgstr ""

#: static/components/ProgramRecord.jsx
msgid "Send Learner Record"
msgstr ""

#: static/components/ProgramRecord.jsx
msgid "Share"
msgstr ""

#: static/components/ProgramRecord.jsx
msgid "Download Record"
msgstr ""

#: static/components/ProgramRecord.jsx
msgid "We are sending your program record."
msgstr ""

#: static/components/ProgramRecord.jsx
msgid "We were unable to send your program record."
msgstr ""

#: static/components/ProgramRecord.jsx
msgid ""
"We were unable to send your record to {orgs}. You can attempt to send this "
"record again. Contact support if this issue persists."
msgstr ""

#: static/components/ProgramRecord.jsx
msgid "You have successfully shared your Learner Record"
msgstr ""

#: static/components/ProgramRecord.jsx
msgid ""
"You have sent your record to {orgs}. Next, ensure you understand their "
"application process."
msgstr ""

#: static/components/ProgramRecord.jsx
msgid "{name} Record"
msgstr ""

#: static/components/ProgramRecord.jsx
msgid "{type} Program Record"
msgstr ""

#: static/components/ProgramRecord.jsx static/components/RecordsList.jsx
msgid "Completed"
msgstr ""

#: static/components/ProgramRecord.jsx static/components/RecordsList.jsx
msgid "Partially Completed"
msgstr ""

#: static/components/ProgramRecord.jsx
msgid "Last Updated {date}"
msgstr ""

#: static/components/ProgramRecord.jsx
msgid "Course Name"
msgstr ""
Expand Down Expand Up @@ -117,10 +153,6 @@ msgstr ""
msgid "Back to My Profile"
msgstr ""

#: static/components/RecordsList.jsx
msgid "Completed"
msgstr ""

#: static/components/RecordsList.jsx
msgid "View Program Record"
msgstr ""
Expand Down
Binary file modified credentials/conf/locale/eo/LC_MESSAGES/django.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions credentials/conf/locale/eo/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-07-30 17:27+0000\n"
"PO-Revision-Date: 2018-07-30 17:27:21.918989\n"
"POT-Creation-Date: 2018-08-01 18:49+0000\n"
"PO-Revision-Date: 2018-08-01 18:49:59.259425\n"
"Last-Translator: \n"
"Language-Team: openedx-translation <[email protected]>\n"
"Language: eo\n"
Expand Down
Binary file modified credentials/conf/locale/eo/LC_MESSAGES/djangojs.mo
Binary file not shown.
53 changes: 45 additions & 8 deletions credentials/conf/locale/eo/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-07-30 17:27+0000\n"
"PO-Revision-Date: 2018-07-30 17:27:21.926504\n"
"POT-Creation-Date: 2018-08-01 18:49+0000\n"
"PO-Revision-Date: 2018-08-01 18:49:59.272548\n"
"Last-Translator: \n"
"Language-Team: openedx-translation <[email protected]>\n"
"Language: eo\n"
Expand All @@ -18,13 +18,32 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: static/components/ProgramRecord.jsx
msgid "Not Earned"
msgstr "Nöt Éärnéd Ⱡ'σяєм ιρѕυм ∂σłσ#"
msgid "Earned"
msgstr "Éärnéd Ⱡ'σяєм ιρѕυ#"

#: static/components/ProgramRecord.jsx
msgid "Send Learner Record"
msgstr "Sénd Léärnér Réçörd Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт,#"

#: static/components/ProgramRecord.jsx
msgid "Share"
msgstr "Shäré Ⱡ'σяєм ιρѕ#"

#: static/components/ProgramRecord.jsx
msgid "Download Record"
msgstr "Döwnlöäd Réçörd Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт α#"

#: static/components/ProgramRecord.jsx
msgid "We are sending your program record."
msgstr ""
"Wé äré séndïng ýöür prögräm réçörd. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєт#"

#: static/components/ProgramRecord.jsx
msgid "We were unable to send your program record."
msgstr ""
"Wé wéré ünäßlé tö sénd ýöür prögräm réçörd. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, "
"¢σηѕє¢тєтυя #"

#: static/components/ProgramRecord.jsx
msgid ""
"We were unable to send your record to {orgs}. You can attempt to send this "
Expand All @@ -33,6 +52,12 @@ msgstr ""
"Wé wéré ünäßlé tö sénd ýöür réçörd tö {orgs}. Ýöü çän ättémpt tö sénd thïs "
"réçörd ägäïn. Çöntäçt süppört ïf thïs ïssüé pérsïsts. Ⱡ'σяє#"

#: static/components/ProgramRecord.jsx
msgid "You have successfully shared your Learner Record"
msgstr ""
"Ýöü hävé süççéssfüllý shäréd ýöür Léärnér Réçörd Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт "
"αмєт, ¢σηѕє¢тєтυя α#"

#: static/components/ProgramRecord.jsx
msgid ""
"You have sent your record to {orgs}. Next, ensure you understand their "
Expand All @@ -41,10 +66,26 @@ msgstr ""
"Ýöü hävé sént ýöür réçörd tö {orgs}. Néxt, énsüré ýöü ündérständ théïr "
"äpplïçätïön pröçéss. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕ#"

#: static/components/ProgramRecord.jsx
msgid "{name} Record"
msgstr "{name} Réçörd Ⱡ'σяєм ιρѕυм ∂σłσ#"

#: static/components/ProgramRecord.jsx
msgid "{type} Program Record"
msgstr "{type} Prögräm Réçörd Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт#"

#: static/components/ProgramRecord.jsx static/components/RecordsList.jsx
msgid "Completed"
msgstr "Çömplétéd Ⱡ'σяєм ιρѕυм ∂σł#"

#: static/components/ProgramRecord.jsx static/components/RecordsList.jsx
msgid "Partially Completed"
msgstr "Pärtïällý Çömplétéd Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт,#"

#: static/components/ProgramRecord.jsx
msgid "Last Updated {date}"
msgstr "Läst Ûpdätéd {date} Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αм#"

#: static/components/ProgramRecord.jsx
msgid "Course Name"
msgstr "Çöürsé Nämé Ⱡ'σяєм ιρѕυм ∂σłσя #"
Expand Down Expand Up @@ -126,10 +167,6 @@ msgstr ""
msgid "Back to My Profile"
msgstr "Bäçk tö Mý Pröfïlé Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт#"

#: static/components/RecordsList.jsx
msgid "Completed"
msgstr "Çömplétéd Ⱡ'σяєм ιρѕυм ∂σł#"

#: static/components/RecordsList.jsx
msgid "View Program Record"
msgstr "Vïéw Prögräm Réçörd Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт,#"
Expand Down
Binary file modified credentials/conf/locale/rtl/LC_MESSAGES/django.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions credentials/conf/locale/rtl/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-07-30 17:27+0000\n"
"PO-Revision-Date: 2018-07-30 17:27:21.918989\n"
"POT-Creation-Date: 2018-08-01 18:49+0000\n"
"PO-Revision-Date: 2018-08-01 18:49:59.259425\n"
"Last-Translator: \n"
"Language-Team: openedx-translation <[email protected]>\n"
"Language: rtl\n"
Expand Down
Binary file modified credentials/conf/locale/rtl/LC_MESSAGES/djangojs.mo
Binary file not shown.
48 changes: 40 additions & 8 deletions credentials/conf/locale/rtl/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-07-30 17:27+0000\n"
"PO-Revision-Date: 2018-07-30 17:27:21.926504\n"
"POT-Creation-Date: 2018-08-01 18:49+0000\n"
"PO-Revision-Date: 2018-08-01 18:49:59.272548\n"
"Last-Translator: \n"
"Language-Team: openedx-translation <[email protected]>\n"
"Language: rtl\n"
Expand All @@ -18,13 +18,29 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: static/components/ProgramRecord.jsx
msgid "Not Earned"
msgstr "Nøʇ Ɇɐɹnǝd"
msgid "Earned"
msgstr "Ɇɐɹnǝd"

#: static/components/ProgramRecord.jsx
msgid "Send Learner Record"
msgstr "Sǝnd Łǝɐɹnǝɹ Ɍǝɔøɹd"

#: static/components/ProgramRecord.jsx
msgid "Share"
msgstr "Sɥɐɹǝ"

#: static/components/ProgramRecord.jsx
msgid "Download Record"
msgstr "Đøʍnløɐd Ɍǝɔøɹd"

#: static/components/ProgramRecord.jsx
msgid "We are sending your program record."
msgstr "Wǝ ɐɹǝ sǝndᴉnƃ ʎønɹ dɹøƃɹɐɯ ɹǝɔøɹd."

#: static/components/ProgramRecord.jsx
msgid "We were unable to send your program record."
msgstr "Wǝ ʍǝɹǝ nnɐblǝ ʇø sǝnd ʎønɹ dɹøƃɹɐɯ ɹǝɔøɹd."

#: static/components/ProgramRecord.jsx
msgid ""
"We were unable to send your record to {orgs}. You can attempt to send this "
Expand All @@ -33,6 +49,10 @@ msgstr ""
"Wǝ ʍǝɹǝ nnɐblǝ ʇø sǝnd ʎønɹ ɹǝɔøɹd ʇø {orgs}. Ɏøn ɔɐn ɐʇʇǝɯdʇ ʇø sǝnd ʇɥᴉs "
"ɹǝɔøɹd ɐƃɐᴉn. Ȼønʇɐɔʇ snddøɹʇ ᴉɟ ʇɥᴉs ᴉssnǝ dǝɹsᴉsʇs."

#: static/components/ProgramRecord.jsx
msgid "You have successfully shared your Learner Record"
msgstr "Ɏøn ɥɐʌǝ snɔɔǝssɟnllʎ sɥɐɹǝd ʎønɹ Łǝɐɹnǝɹ Ɍǝɔøɹd"

#: static/components/ProgramRecord.jsx
msgid ""
"You have sent your record to {orgs}. Next, ensure you understand their "
Expand All @@ -41,10 +61,26 @@ msgstr ""
"Ɏøn ɥɐʌǝ sǝnʇ ʎønɹ ɹǝɔøɹd ʇø {orgs}. Nǝxʇ, ǝnsnɹǝ ʎøn nndǝɹsʇɐnd ʇɥǝᴉɹ "
"ɐddlᴉɔɐʇᴉøn dɹøɔǝss."

#: static/components/ProgramRecord.jsx
msgid "{name} Record"
msgstr "{name} Ɍǝɔøɹd"

#: static/components/ProgramRecord.jsx
msgid "{type} Program Record"
msgstr "{type} Ᵽɹøƃɹɐɯ Ɍǝɔøɹd"

#: static/components/ProgramRecord.jsx static/components/RecordsList.jsx
msgid "Completed"
msgstr "Ȼøɯdlǝʇǝd"

#: static/components/ProgramRecord.jsx static/components/RecordsList.jsx
msgid "Partially Completed"
msgstr "Ᵽɐɹʇᴉɐllʎ Ȼøɯdlǝʇǝd"

#: static/components/ProgramRecord.jsx
msgid "Last Updated {date}"
msgstr "Łɐsʇ Ʉddɐʇǝd {date}"

#: static/components/ProgramRecord.jsx
msgid "Course Name"
msgstr "Ȼønɹsǝ Nɐɯǝ"
Expand Down Expand Up @@ -125,10 +161,6 @@ msgstr ""
msgid "Back to My Profile"
msgstr "Ƀɐɔʞ ʇø Mʎ Ᵽɹøɟᴉlǝ"

#: static/components/RecordsList.jsx
msgid "Completed"
msgstr "Ȼøɯdlǝʇǝd"

#: static/components/RecordsList.jsx
msgid "View Program Record"
msgstr "Vᴉǝʍ Ᵽɹøƃɹɐɯ Ɍǝɔøɹd"
Expand Down
4 changes: 2 additions & 2 deletions credentials/static/components/ProgramRecord.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class ProgramRecord extends React.Component {
const date = new Date(isoDate);

return StringUtils.interpolate('{month}/{date}/{year}', {
month: date.getMonth + 1,
month: date.getMonth() + 1,
date: date.getDate(),
year: date.getFullYear().toString().slice(2),
});
Expand Down Expand Up @@ -249,7 +249,7 @@ class ProgramRecord extends React.Component {
const { sendRecordModalOpen, shareModelOpen } = this.state;
const recordWrapperClass = 'program-record-wrapper';
const defaultModalProps = {
...(loadModalsAsChildren && { parentSelector: '.' + { recordWrapperClass } }),
...(loadModalsAsChildren && { parentSelector: '.' + recordWrapperClass }),
};
const hasHelpUrl = helpUrl !== '';

Expand Down
2 changes: 1 addition & 1 deletion credentials/static/components/RecordsHelp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const RecordsHelp = (props) => {
<h1 className="hd-4 text-black">{gettext('Questions about Learner Records?')}</h1>
{StringUtils.renderDangerousHtml(
gettext('To learn more about records you can {start_anchor}read more in our records help area.{end_anchor}'),
{ start_anchor: `<a href=${helpUrl}>`, end_anchor: '</a>' },
{ start_anchor: '<a href=' + helpUrl + '>', end_anchor: '</a>' },
)}
</footer>
);
Expand Down
2 changes: 1 addition & 1 deletion credentials/static/components/RecordsList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class RecordsList extends React.Component {
</div>
<div className="col-md record-btn-col">
<div className="view-record-container">
<a href={`/records/programs/${row.uuid}`} className="btn view-record-btn font-weight-bold">
<a href={'/records/programs/' + row.uuid} className="btn view-record-btn font-weight-bold">
{gettext('View Program Record')}
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion credentials/static/components/SendLearnerRecordModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class SendLearnerRecordModal extends React.Component {
<CheckBoxGroup>
{this.props.creditPathwaysList.map(pathway => (
<CheckBox
id={`checkbox-${pathway.id}`}
id={'checkbox-' + pathway.id}
name={pathway.name}
label={this.getPathwayDisplayName(pathway.name)}
key={pathway.id}
Expand Down
2 changes: 1 addition & 1 deletion credentials/static/components/ShareProgramRecordModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ShareProgramRecordModal extends React.Component {
},
};

axios.post(`/records/programs/${uuid}/share`, {
axios.post('/records/programs/' + uuid + '/share', {
username,
}, headers)
.then(this.setProgramRecordUrl)
Expand Down
2 changes: 1 addition & 1 deletion credentials/static/components/Utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class StringUtils {
if (parameterName in parameters) {
return String(parameters[parameterName]);
}
return `{${parameterName}}`;
return '{' + parameterName + '}';
});
}

Expand Down
3 changes: 3 additions & 0 deletions credentials/static/components/specs/RecordsList.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import React from 'react';
import { mount } from 'enzyme';
import RecordsList from '../RecordsList';

// Remove once xgettext supports backticks and this rule is removed
/* eslint-disable no-restricted-syntax */

let wrapper;

const defaultProps = {
Expand Down

0 comments on commit 06f00a1

Please sign in to comment.