Re: gnome-devel-docs on developer.gnome.org

2014-08-21 Thread Shaun McCance
On Fri, 2014-05-09 at 21:08 +0200, Ask Hjorth Larsen wrote: Hello everyone First of all I am very willing to implement a mode in gtxml specifically for this. Fixing the translator-credits issue is obviously very easy. I can make it so that gtxml will only complain about syntax errors,

Re: gnome-devel-docs on developer.gnome.org

2014-06-05 Thread Daniel Mustieles García
Hi Ask. Now it's me who is answering too late... sorry. I guess we could integrate gtxml checks in git as pre-commit hook (like it's actually done with msgfmt to check integrity), but to do this we need to ensure it will not report false positives. If you can modify gtxml to ignore the

Re: gnome-devel-docs on developer.gnome.org

2014-05-26 Thread Ask Hjorth Larsen
Hello Daniel: Sorry for the late reply. gtxml presently assumes that strings by default should be valid xml, which was not the case in previous revisions. This probably explains the difference. Back in the days I don't think there were translator_credits strings in the docs, so this change

Re: gnome-devel-docs on developer.gnome.org

2014-05-13 Thread Daniel Mustieles García
As I've commented to Christian Kirbach in private mail, when I generated the reports before a new stable release, I didn't get this kind of errors, so I'm really confused about what is happening. The only difference I see is that I used to generate them under Ubuntu 12, and now I'm using Debian...

gnome-devel-docs on developer.gnome.org

2014-05-09 Thread Ekaterina Gerasimova
Hi all, the gnome-devel-docs module is now shown in developer.gnome.org live from git, not from release tarballs. This means that if the XML validation is broken in any of the files or a translation, a few hours after the commit, it will be broken on the website. I would appreciate it if anyone

Re: gnome-devel-docs on developer.gnome.org

2014-05-09 Thread Rafael Ferreira
Ekaterina, Rather than rely on the carefulness of the translators (which will possibly fail at some point and a few times), isn't it possible to implement some kind of verification before pushing from the module to the website? My idea would be something like: schedule the pushes to website and

Re: gnome-devel-docs on developer.gnome.org

2014-05-09 Thread Daniel Mustieles García
Hi, Could we implement a pre-commit hook to check XML syntax with gtxml [1]? This is the tool I use to periodically check XML syntax from PO files, to detecttypos in tags or not properly closed tags in PO files, so running it before pushing changes into Git could help us to avoid this kind of

Re: gnome-devel-docs on developer.gnome.org

2014-05-09 Thread Alexandre Franke
On Fri, May 9, 2014 at 5:14 PM, Daniel Mustieles García daniel.mustie...@gmail.com wrote: Hi, Hi, Could we implement a pre-commit hook to check XML syntax with gtxml [1]? Are there any false positives? -- Alexandre Franke ___ gnome-i18n mailing

Re: gnome-devel-docs on developer.gnome.org

2014-05-09 Thread Daniel Mustieles García
No AFAIK, but I'm not 100% about it. Cc'ing Ask, maintainer of pyg3t, to hear his oppinion about this question. El 09/05/2014 17:37, Alexandre Franke alexandre.fra...@gmail.com escribió: On Fri, May 9, 2014 at 5:14 PM, Daniel Mustieles García daniel.mustie...@gmail.com wrote: Hi, Hi,

Re: gnome-devel-docs on developer.gnome.org

2014-05-09 Thread Rafael Ferreira
The only false positive I know of gtxml is the 'translator-credits' string, returning exit code 1. For instance: $ gtxml platform-demos.master.pt_BR.po At line 23: not well-formed (invalid token) --- #. Put one translator per line, in the form NAME EMAIL,

Re: gnome-devel-docs on developer.gnome.org

2014-05-09 Thread Daniel Mustieles García
Maybe it is because of the newline character? Translator credits should be in one line per credit El 09/05/2014 18:01, Rafael Ferreira rafael.f...@gmail.com escribió: The only false positive I know of gtxml is the 'translator-credits' string, returning exit code 1. For instance: $ gtxml

Re: gnome-devel-docs on developer.gnome.org

2014-05-09 Thread Rafael Ferreira
No, it is a false positive. My example had only one translator. But here is another example, now with two translators in translator-credits: $ gtxml ~/Downloads//optimization-guide.master.pt_BR.po At line 24: not well-formed (invalid token) --- #. Put one

Re: gnome-devel-docs on developer.gnome.org

2014-05-09 Thread Daniel Mustieles García
Pyg3t's maintainer is in Cc (Ask) so maybe he is the best option to fix it ;-) El 09/05/2014 18:51, Rafael Ferreira rafael.f...@gmail.com escribió: No, it is a false positive. My example had only one translator. But here is another example, now with two translators in translator-credits: $

Re: gnome-devel-docs on developer.gnome.org

2014-05-09 Thread Rūdolfs Mazurs
Pk, 2014.05.09. 16:51 +, Rafael Ferreira rakstīja: If someone that knows python3 could patch pyg3t to fix this, I think it would be a great tool for this XML validation... Someone? specifically in translator-credits strings, the e-mail is often put in angle brackets, which is not a valid

Re: gnome-devel-docs on developer.gnome.org

2014-05-09 Thread Ask Hjorth Larsen
Hello everyone First of all I am very willing to implement a mode in gtxml specifically for this. Fixing the translator-credits issue is obviously very easy. I can make it so that gtxml will only complain about syntax errors, i.e. strings that are not accepted by the xml parser. This requires