-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Check whether we can json decode the translations #4485
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
@@ -14,7 +14,7 @@ OC.L10N.register( | |||
"Save" : "保存", | |||
"Allowed characters {count} of {max}" : "当前字数: {count},最大允许:{max}", | |||
"Error occurred while retrieving comment with id {id}" : "检索 id 为 {id} 的评论出错", | |||
"Error occurred while updating comment with id {id}" : "更新 id 为 {id} 的评论出错", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a box character at the beginning of this string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw I also fixed this on transifex, this is just to confirm that the script works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. But you need to add the test also to the matrix at the end of the .drone.yml :)
* | ||
*/ | ||
|
||
$directories = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might get out of sync at some point, therefore it would make sense to just iterate over all subdirs in apps
. https://github.com/nextcloud/server/pull/4485/files already handles non-existing l10n
directories.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Signed-off-by: Joas Schilling <coding@schilljs.com>
Codecov Report
@@ Coverage Diff @@
## master #4485 +/- ##
============================================
+ Coverage 53.96% 53.96% +<.01%
Complexity 21679 21679
============================================
Files 1272 1272
Lines 75789 75789
============================================
+ Hits 40898 40899 +1
+ Misses 34891 34890 -1
|
@LukasReschke fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@nickvergessen Could you also add this to the stable branches and all the apps we release 🙈 |
No need to backport, the translation files contain the strings of 12, 11 and 10? So the check result will be the same for all? |
Ah right 🙈 But could you create this for most of the apps out there? |
Fix #3189
I'm sick of this, lets add a job to check this, so we dont release something like this again...