Anwiki CMS

Anwiki CMS : the first wiki/CMS dedicated to multilingual contents
| Tasklist |

FS#151 - Empty translations ( ) should be removed from output

Attached to Project: Anwiki CMS
Opened by Wladimir Palant (trev) - Friday, 11 February 2011, 07:33 GMT
Last edited by anw (anw) - Sunday, 20 February 2011, 21:09 GMT
Task Type Bug Report
Category Core
Status New
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Anwiki 0.2.5
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Anwiki marks empty translations with   which is a good thing, it allows adding passages to the page like "<a>Add <fix>Foo</fix> </a>" which might turn into something like "<a> <fix>Foo</fix> hinzuf├╝gen</a>" when translated. However, while   means "empty" in the translation screen, in the final output you still get   - and that is sometimes suboptimal. The links mentioned above will have strange underline - for the first it will extend to far to the right, for the second too far to the right. I think that strings consisting only of   needs to be removed from the output. Patch is attached.
This task depends upon

Comment by anw (anw) - Sunday, 20 February 2011, 21:09 GMT
Hi,
I agree, translation mode shouldn't automatically transform each empty translation with " ".
However, I think we shouldn't remove it automatically from any content, making it impossible to get "> <" rendered in final output.
I'll see if translation mode can be modified in order to :
- not add   if it was not typed by translator, or present in original content
- keep   otherwise

Loading...