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

Chinese plural rule is broken #14627

Closed
nickvergessen opened this issue Mar 11, 2019 · 1 comment
Closed

Chinese plural rule is broken #14627

nickvergessen opened this issue Mar 11, 2019 · 1 comment

Comments

@nickvergessen
Copy link
Member

Unhandled promise rejection TypeError: "e is undefined"

    translate l10n.js:108
translate l10n.js:107
translatePlural l10n.js:156
…
update filesummary.js:224
setSummary filesummary.js:190
calculate filesummary.js:173
setFiles filelist.js:1311
reloadCallback filelist.js:2014
…

Also the summary %n files shows instead of being replaced with the number of files. Deleting all plural rules from all zh_CN.js files removes the error.
adding a second item into the arrays also works, so it seems that the plural rule somehow tries to use a wrong plural rule, because chinese only has 1 rule.

Maybe @rullzer you can help? I tried debugging it, but I fail to recompile the new file after js/core/l10n.js was modified.

It also breaks worse in other apps, when the plural string is required instead of being added afterwards: nextcloud/announcementcenter#146

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

No branches or pull requests

1 participant