Skip to content

Update i18n translation from Transifex (first time on Juniper) - #872

Merged
OmarIthawi merged 4 commits into
mainfrom
omar/i18n-apr-7
Apr 9, 2021
Merged

Update i18n translation from Transifex (first time on Juniper)#872
OmarIthawi merged 4 commits into
mainfrom
omar/i18n-apr-7

Conversation

@OmarIthawi

@OmarIthawi OmarIthawi commented Apr 7, 2021

Copy link
Copy Markdown

RED-1509. This addressed my reported juniper_i18n QA issues due to the outdated translations of Juniper.

This a regular process in every release upgrade. Unfortunately, we usually have to do hacks and workarounds over the standard Open edX process since it's not much tailored to our needs as fork maintainers.

Changes

Runbook

Tests

This pull request has no tests for thew paver tasks. Those tasks would be very hard to test against and we run them on engineer machines so they're safer to keep untested.

Testing is still possible, but out of the scope of this upgrade since we'd like to focus on code that's being used by customers instead.

How to review this pull request?

It's very hard to review this pull request but few things to keep any eye on:

  • Entries are not being emptied from their translations in .po files.
  • Python code looks good.
  • Git history looks good.

@coveralls

coveralls commented Apr 7, 2021

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.001%) to 40.203% when pulling d18b056 on omar/i18n-apr-7 into c92d019 on main.

without this fix i18n_robot_pull would only pull reviewed entries which
is a problem since release translations are not reviewed:

 - openedx/i18n-tools#96
django.pluralidx = function(n) {
var v=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;
if (typeof(v) == 'boolean') {
return v ? 1 : 0;
} else {
return v;
}
};
django.pluralidx = function(count) { return (count == 1) ? 0 : 1; };

@OmarIthawi OmarIthawi Apr 7, 2021

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This change would break the Arabic plural forms, but I don't want to fix it now. We don't use Arabic and I don't know what's causing Django to switch to this oversimplified plural form.

@OmarIthawi
OmarIthawi marked this pull request as ready for review April 7, 2021 17:13
@OmarIthawi
OmarIthawi merged commit 69fec9e into main Apr 9, 2021
@OmarIthawi
OmarIthawi deleted the omar/i18n-apr-7 branch April 9, 2021 13:06
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