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

Fail the translation test when there are multiple single placeholders #10219

Conversation

nickvergessen
Copy link
Member

Temp solution to detect failing strings

@nickvergessen nickvergessen added the 2. developing Work in progress label Jul 12, 2018
@nickvergessen nickvergessen added this to the Nextcloud 14 milestone Jul 12, 2018
@MorrisJobke
Copy link
Member

this is more and administrative thing right? We should update all those strings. Isn't it better to wait for 15 or do we want to overhaul all the strings now? I guess this is for RTL languages, correct?

@nickvergessen
Copy link
Member Author

Yeah, one more "broken" version, but well better then all in english for everyone

@MorrisJobke
Copy link
Member

MorrisJobke commented Jul 20, 2018

Yeah, one more "broken" version, but well better then all in english for everyone

We could also do it now ... still one month to go.

@MorrisJobke MorrisJobke mentioned this pull request Jul 24, 2018
21 tasks
@MorrisJobke
Copy link
Member

Most likely nothing for 14 -> moving to 15.

Signed-off-by: Joas Schilling <coding@schilljs.com>
@MorrisJobke MorrisJobke force-pushed the feature/noid/block-translation-strings-with-simple-placeholders branch from a6f932b to f19633d Compare November 7, 2018 15:13
@MorrisJobke
Copy link
Member

Rebased. Let's try to get this in.

@MorrisJobke MorrisJobke self-assigned this Nov 7, 2018
@MorrisJobke MorrisJobke mentioned this pull request Nov 7, 2018
29 tasks
@MorrisJobke
Copy link
Member

I noticed following:

  • this is checking the translation files - thus a failure will only be noticed once the code is in master, was synced to transifex, was translated there and then got synced back - that's too late. We maybe should use the translationtool.phar to extract the current strings and check this.
  • "_%s group found_::_%s groups found_" is a false positive, because it is a plural string and not a string with two placeholders

@MorrisJobke
Copy link
Member

Beside that all mentioned strings are already fixed.

@MorrisJobke MorrisJobke modified the milestones: Nextcloud 15, Nextcloud 16 Nov 7, 2018
@nickvergessen
Copy link
Member Author

"%s group found::%s groups found" is a false positive, because it is a plural string and not a string with two placeholders

is a error in itself, if it is a plural it should use %n

@nickvergessen
Copy link
Member Author

this is checking the translation files - thus a failure will only be noticed once the code is in master, was synced to transifex, was translated there and then got synced back - that's too late. We maybe should use the translationtool.phar to extract the current strings and check this.

Yeah, although it is still visible after the first pull from transifex because of en.
I just didn't find a better way.

@MorrisJobke
Copy link
Member

Yeah, although it is still visible after the first pull from transifex because of en.
I just didn't find a better way.

I would let https://github.com/nextcloud/docker-ci/tree/master/translations/translationtool run in here and then check the generated .pot files for those strings. Then we can tackle it right away.

@ChristophWurst
Copy link
Member

I would let https://github.com/nextcloud/docker-ci/tree/master/translations/translationtool run in here and then check the generated .pot files for those strings. Then we can tackle it right away.

What were the results? :D

@ChristophWurst ChristophWurst added 1. to develop Accepted and waiting to be taken care of 0. Needs triage Pending check for reproducibility or if it fits our roadmap and removed 1. to develop Accepted and waiting to be taken care of 2. developing Work in progress labels Jan 30, 2019
@MorrisJobke
Copy link
Member

What were the results? :D

It was never implemented 🙈

@stale
Copy link

stale bot commented Jun 5, 2019

This issue has been automatically marked as stale because it has not had recent activity and it seems to be missing some essential informations. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Ticket or PR with no recent activity label Jun 5, 2019
@skjnldsv skjnldsv removed stale Ticket or PR with no recent activity labels Jun 12, 2019
@MorrisJobke MorrisJobke mentioned this pull request Jul 17, 2019
28 tasks
@rullzer
Copy link
Member

rullzer commented Sep 15, 2019

Let me close this.
If somebody wants to pick this up feel free to reopen.

@rullzer rullzer closed this Sep 15, 2019
@rullzer rullzer deleted the feature/noid/block-translation-strings-with-simple-placeholders branch September 15, 2019 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants