Skip to content

MCKIN-15673 Japanese translations corrections - #274

Merged
viadanna merged 9 commits into
open-craft:masterfrom
musmanmalik:MCKIN_15673
Apr 17, 2020
Merged

MCKIN-15673 Japanese translations corrections#274
viadanna merged 9 commits into
open-craft:masterfrom
musmanmalik:MCKIN_15673

Conversation

@musmanmalik

Copy link
Copy Markdown
Contributor

Japanese translations corrections

@viadanna viadanna left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@musmanmalik I've left a couple comments, I'll now test this.

Comment thread problem_builder/step.py
else:
new_lang = language
return self.resource_string('public/js/translations/{lang}/textjs.js'.format(
lang=utils.translation.get_language(),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Didn't this work for Japanese? Why was it removed in favor of a manual approach?

@musmanmalik musmanmalik Apr 17, 2020

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Here we are receiving language code like ja-jp, de-DE while we have directories ja_JP ,de_DE , etc. If we don't do like this the default en is returning. That is we need to do this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

So for four character language code we need to change last 3 characters. - to _ last two characters to upper case e.g. jp to JP.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Might be good to have a comment here to make that more clear.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@bradenmacdonald Thank you for highlighting. I have added a comment. Please proceed.
Thanks

"\u7d50\u679c\u3092<%= creation_time %> (<%= seconds %> \u79d2) \u3067\u53d6\u5f97\u3057\u307e\u3057\u305f\u3002"
],
"The report is currently being generated\u2026": "\u73fe\u5728\u30ec\u30dd\u30fc\u30c8\u3092\u4f5c\u6210\u4e2d\u3067\u3059\u2026"
"The report is currently being generated\u2026": "\u73fe\u5728\u30ec\u30dd\u30fc\u30c8\u3092\u4f5c\u6210\u4e2d\u3067\u3059\u2026",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

While I can test this and review it works, I cannot attest the translation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We got these translations from trusted translator.

"You have used {num_used} of 1 submission.": [
"上限{max_attempts}回のうち {num_used} 回提出しました。",
"上限1回のうち {num_used} 回提出しました。"
],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure I understand correctly, but I think you have plural first, when it's expected to be second, e.g.

"You have used {num_used} of 1 submission.": [
"Vous avez utilis\u00e9 {num_used} de 1 soumissions.",
"Vous avez utilis\u00e9 {num_used} de {max_attempts} soumissions."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@viadanna have you tested this one? I have tested this and working fine as written in this pr.

@viadanna viadanna Apr 17, 2020

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

image
This was the result for a setup with 3 attempts.

Seems it's just different for JP.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is result is after first attempt out of three

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

"You have used 1 of 3 submissions" needs to translate to "上限3回のうち1回提出しました。"

Translator has given us the same

@musmanmalik

Copy link
Copy Markdown
Contributor Author

@bradenmacdonald @viadanna Please review this. A test is failing which seems not related to the changes in this pr. This may be a flaky test case. Rest if all is good kindly merge this and create a release tag.

Thanks

@viadanna
viadanna merged commit 6d8de81 into open-craft:master Apr 17, 2020
@viadanna

Copy link
Copy Markdown
Member

Alright, merged and tagged, @musmanmalik

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