Bug 888055
Summary: | Newline characters in text flows not obvious enough for translators | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Zanata | Reporter: | Hedda Peters <hpeters> | ||||
Component: | Component-UI | Assignee: | Patrick Huang <pahuang> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ding-Yi Chen <dchen> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | urgent | ||||||
Version: | 2.0 | CC: | irooskov, pahuang, zanata-bugs | ||||
Target Milestone: | --- | ||||||
Target Release: | 2.2 | ||||||
Hardware: | Unspecified | ||||||
OS: | Linux | ||||||
URL: | https://translate.zanata.org/zanata/webtrans/translate?project=subscription-manager&iteration=1.1.X&localeId=de-DE&locale=de#view:doc;doc:keys;search:redeeming%20the | ||||||
Whiteboard: | |||||||
Fixed In Version: | 2.1-SNAPSHOT (20130108-1249) | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-11-27 03:24:29 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Hedda Peters
2012-12-17 22:41:20 UTC
Created attachment 665161 [details]
Newline characters not obvious enough
I actually need to fix this error asap, so the URL provided will not show you a different number of newline characters in msgid and msgstr anymore.
Screenshot attached though from before fixed translation.
There seems to be no way of getting codemirror to show visible newline characters, so I think it's time we investigated the competition: http://ace.ajax.org/ ACE does support visible tabs, and visible newlines. However, we will need to check on its Unicode support: https://github.com/ajaxorg/ace/issues/1153 (a similar bug seems to be in codemirror) https://github.com/ajaxorg/ace/issues/460 (codemirror seems to support variable width) posted a question on code mirror group and the answer is, can't get it done completely with code mirror. https://groups.google.com/forum/?fromgroups=#!topic/codemirror/tab01KLV3DU to summary: with code mirror, we can append a symbol at the end of each line (including last line which technically do not have newline character). It's not visible newline but more of an emphasis that the text flow is NOT wrapped but is broken up into lines. It serves the same purpose as line number on the left. Therefore not suitable to use the pilcrow character. This will be a quick fix. Continue to investigate other editor the other syntax highlighting editor - ACE editor does not integrate well with our code. Tried to integrate it myself and also tried to use https://github.com/daveho/AceGWT Can't get it to show. Finally found a solution working in Code Mirror editor. It will display pilcrow for each line it encountered. For plain text area editor, at the moment it won't support visible newline. But in source text it will now display visible newline. Plus newly added validation rules to check line numbers. Since 2.1 CodeMirror editor under firefox should also support spell check. One less reason to choose plain text area editor :) Sounds promising :-) Thanks for all the effort. committed into master: https://github.com/zanata/zanata/commit/bd228970d065507e0ef4e1cd063684b8f9b570f1 VERIFIED with Zanata version 2.1-SNAPSHOT (20130108-1249) Great work, Patrick! You should mention the solution you found to the CodeMirror group: https://groups.google.com/forum/?fromgroups=#!topic/codemirror/tab01KLV3DU (And perhaps someone there can suggest a way of avoiding the slight gap before the pilchard, er, pilcrow, which is seen on empty lines.) The implemented solution seems to work somewhat, sometimes, but there are several issues: I encountered some weird behaviour when playing around with one string that already contained this syntax error. Opening the string in the editor does not seem to trigger the validation warning, typing normal characters doesn't seem to trigger it either. (see screenshot 1) Only when I entered another line break character into the translation the validation warning appears. But then the warning is somewhat unexpected (see screenshot 2) The msgid contains 3 lines, the translation contains 2 lines - yet the warning tells me that the translation contains too many lines. Occasionally by clicking in and out of this particular string, the msgid disappears and shows only an empty box, with two scroll bars at the right hand side. Not sure if that's related, or how exactly to reproduce. (screenshot 3) All this only works with CodeMirror enabled, the newline characters are not displayed when CodeMirror is not selected - is that expected? Closing VERIFIED bugs for Zanata versions <= 3.1. Closing VERIFIED bugs for Zanata versions <= 3.1. Closing VERIFIED bugs for Zanata versions <= 3.1. Closing VERIFIED bugs for Zanata versions <= 3.1. Closing VERIFIED bugs for Zanata versions <= 3.1. Closing VERIFIED bugs for Zanata versions <= 3.1. |