Opened 4 years ago
Closed 5 days ago
#6441 closed enhancement (fixed)
If an import contains a blank at te beginning or end while the original does not have that, the line is accepted
| Reported by: | psmits1567 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Translate Site & Plugins | Keywords: | |
| Cc: |
Description
When an import is performed with a suggestion that contains a blank at the beginning or at the end of the line, it will be imported. That will lead to fuzzed records after a while.
So this could be improved by doing the following, check the record when importing against the original
Then the following options could be created:
- Reject the imported record as it is invalid
- Mark the imported record as fuzzy, so the person that does the import knows it is wrong
Change History (3)
#2
@
4 years ago
In that case the best option would be to mark it as fuzzy, because then the import is not halted by the warning
#3
@
5 days ago
- Resolution → fixed
- Status new → closed
GlotPress 4.0 added a warning for leading or trailing spaces that the original doesn’t have (https://github.com/GlotPress/GlotPress/issues/1427). Imports run that warning and set flagged strings to waiting instead of current.
I'd say, perhaps raise a "warning". There may be situations where the translation needs to contain a space that was not present in the original. For instance if the plugin hard-codes a colon after the string, then in French an extra space will be needed at the end.