Re: Keywords in desktop files



2013/1/23 Ask Hjorth Larsen <asklarsen gmail com>:
(...)
>
> Presently it's a very simple heuristic.  It checks whether the English
> message looks like XML, by looking for the character '<' and checking
> if it is valid XML.  If the English message fulfills those criteria
> and the translation isn't valid XML, then a warning is printed.
>
> Best regards
> Ask

Something like &quot; could easily exist without any actual tags, and
thus wouldn't be handled by this heuristic.  However this case is
difficult to detect without getting false positives.  If it is known
about the GNOME docs that all strings must be valid XML (or if any
other strict conditions can be inferred) then the heuristic is easily
improved.

Regards
Ask


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]