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

Check whether we can json decode the translations #4485

Merged
merged 3 commits into from
Apr 25, 2017

Conversation

nickvergessen
Copy link
Member

Fix #3189

I'm sick of this, lets add a job to check this, so we dont release something like this again...

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen added 3. to review Waiting for reviews bug labels Apr 25, 2017
@nickvergessen nickvergessen added this to the Nextcloud 12.0 milestone Apr 25, 2017
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} 的评论出错",
Copy link
Member Author

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

Copy link
Member Author

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.

Copy link
Member

@LukasReschke LukasReschke left a 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 = [
Copy link
Member

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.

Copy link
Member Author

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
Copy link

codecov bot commented Apr 25, 2017

Codecov Report

Merging #4485 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@             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
Impacted Files Coverage Δ Complexity Δ
apps/files_trashbin/lib/Expiration.php 90.32% <0%> (-1.62%) 29% <0%> (ø)
lib/private/User/Manager.php 84.39% <0%> (+0.57%) 68% <0%> (ø) ⬇️
lib/private/Files/Cache/Propagator.php 96.2% <0%> (+1.26%) 16% <0%> (ø) ⬇️

@nickvergessen
Copy link
Member Author

@LukasReschke fixed

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Looks good!

@MorrisJobke MorrisJobke merged commit bcf5875 into master Apr 25, 2017
@MorrisJobke MorrisJobke deleted the translation-checker branch April 25, 2017 13:46
@MorrisJobke
Copy link
Member

@nickvergessen Could you also add this to the stable branches and all the apps we release 🙈

@nickvergessen
Copy link
Member Author

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?

@MorrisJobke
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants