Opened 4 years ago
Last modified 4 years ago
#5563 new enhancement
I a translation file is imported that contains wrong placeholders the line is not rejected.
Reported by: | psmits1567 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Translate Site & Plugins | Keywords: | |
Cc: |
Description
Currently, if you import a file that contains a translation where the placeholder is not properly formatted, the line is not rejected but inserted and creates a waiting record with warning.
Looking at the daily number of errors passing by, it would be better to reject those lines instead of inserting them with an error.
The person that imports translations is responsible to import properly formatted strings. Now as a PTE or GTE you have to either correct those lines or remove them. Because obviously they are not corrected by the person that imports them
Examples "% s", "% 1 $ s", "% d", "% 2 $ s"
If rejected indicate the number of lines rejected, and a hint of the rejected reason.
E.g. "Import has finished with errors in XXX lines, containing wrong formatted placeholders!"
Change History (5)
#2
@
4 years ago
It is related, but a more progressive approach. The number of warning records is huge, so we need to really concider to make a decision about this.
Maybe also consider to not save records that have a missing/wrong placeholder. Currrently if you are manually translating, a warning is given. But the record is stored and creates a warning in polyglots warning channel. If you do not have PTE or GTE capability, you cannot correct it. Hence a PTE or GTE needs to correct it. Just generate a warning without saving the record, would cause less records in the database and less waiting strings, and less work for the PTE/GTE
Whenever you see spaces after/around those placeholders like that, you can bet it's a machine translated (probably Google Translate) translation.
My understanding was that importing/uploading of strings required a higher level of access though? As in, regular accounts shouldn't have the ability to upload accounts, and if a PTE is processing uploads such as this they probably shouldn't have the status for that language they're not reviewing?This is incorrect, all users have upload permissions, they're just imported as waiting.Possibly a dup of #4171