Re: keywords in desktop files, again

2014-01-27 Thread Andre Klapper
(One year later, anyway:)

On Fri, 2013-03-22 at 10:24 -0400, Matthias Clasen wrote:
> I sent a mail about this in January already[1], but we are still
> seeing a steady stream of broken syntax in translations for the
> Keywords field in desktop files.

A pre-commit check for po files could refuse broken translations.
I have filed https://bugzilla.gnome.org/show_bug.cgi?id=723138 .
Anybody who knows shell scripts & regexes: Feel free to create a patch.

andre
-- 
Andre Klapper  |  ak...@gmx.net
http://blogs.gnome.org/aklapper/

___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-24 Thread Ask Hjorth Larsen
Thanks, the one in Danish has been corrected :)

2013/3/24 Daniel Mustieles García :
> Hi all,
>
> Here is the report I've generated about the missing «;» in the Keywords
> translated string.
>
> Translation team coordinator: As this is an important fix we should do
> before the new release, please let me know if you won't be able to fix it,
> so I'll review and fix it for you.
>
> Best regards
>
>
> 2013/3/24 Daniel Mustieles García 
>>
>> Hi Ask,
>>
>> You can use this script to get all the PO files for the most relevant
>> languages. The script also has the ability to get all the language codes
>> from DL, sou you can get all the PO files from all the languages.
>>
>> Cheers!
>>
>>
>> 2013/3/23 Ask Hjorth Larsen 
>>>
>>> Hi
>>>
>>> What is the easiest way to download all the translations in all
>>> languages?
>>>
>>> Regards
>>> Ask
>>>
>>> 2013/3/22 Daniel Mustieles García :
>>> > It works great!!
>>> >
>>> > I've detected (and fixed) an error in gnome-control-center. Thanks!!
>>> >
>>> > This weekend ill try to clean the output to be less verbose and I'll
>>> > create
>>> > a report with it. Stay tuned!!
>>> >
>>> > Again, many thanks!
>>> >
>>> >
>>> > 2013/3/22 Ask Hjorth Larsen 
>>> >>
>>> >> It can be used like this:
>>> >>
>>> >> askhl@mime:~/translate$ find -name "*.po" | xargs desktopfilecheck.py
>>> >> ./gdm-and-friends/gnome-control-center.gnome-3-8.da.po
>>> >> ERROR, bad syntax line 6684:
>>> >> #. Translators: those are keywords for the wacom tablet control-center
>>> >> panel
>>> >> #: ../panels/wacom/gnome-wacom-panel.desktop.in.in.h:4
>>> >> msgid "Tablet;Wacom;Stylus;Eraser;Mouse;"
>>> >> msgstr "Tegneplade;Wacom;Pen;Viskelæder;Mus"
>>> >>
>>> >> Regards
>>> >> Ask
>>> >>
>>> >> 2013/3/22 Ask Hjorth Larsen :
>>> >> > Hi, here's a script (uses pyg3t):
>>> >> >
>>> >> >   http://www.student.dtu.dk/~ashj/opendir/desktopfilecheck.py
>>> >> >
>>> >> > I'm actually at work at the moment, but someone can run it or I'll
>>> >> > do
>>> >> > it tomorrow or so when I have time.
>>> >> >
>>> >> > Let me know about any issues or if it needs to check for anything
>>> >> > else.
>>> >> >
>>> >> > Regards
>>> >> > Ask
>>> >> >
>>> >> > 2013/3/22 Daniel Mustieles García :
>>> >> >> Hi Ask,
>>> >> >>
>>> >> >> The Keywords string just has to end with ";" to be ok, no need to
>>> >> >> have
>>> >> >> the
>>> >> >> same number of words
>>> >> >>
>>> >> >> Many thanks fin advance for your script!
>>> >> >>
>>> >> >>
>>> >> >> 2013/3/22 Ask Hjorth Larsen 
>>> >> >>>
>>> >> >>> Hi
>>> >> >>>
>>> >> >>> Could someone specify how these files *should* be translated?
>>> >> >>> Must
>>> >> >>> there be the same number of elements in the list?
>>> >> >>>
>>> >> >>> I suppose the most obvious thing is that it should end with ;.
>>> >> >>>
>>> >> >>> I'll write a script and check it on all the files, then send a
>>> >> >>> complete
>>> >> >>> list.
>>> >> >>>
>>> >> >>> Regards
>>> >> >>> Ask
>>> >> >>>
>>> >> >>> 2013/3/22 Daniel Mustieles García :
>>> >> >>> > In bash it may be tricky to do this check, but I guess Python
>>> >> >>> > could
>>> >> >>> > help. I
>>> >> >>> > tried to do it in bash and I wasted my time :(
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > 2013/3/22 Andre Klapper 
>>> >> >>> >>
>>> >> >>> >> On Fri, 2013-03-22 at 15:46 +0100, Olav Vitters wrote:
>>> >> >>> >> > Any idea how that could be implemented? I am willing to make
>>> >> >>> >> > it
>>> >> >>> >> > happen,
>>> >> >>> >> > just don't see how. E.g. figure out exactly which line is the
>>> >> >>> >> > Keywords
>>> >> >>> >> > line, etc.
>>> >> >>> >>
>>> >> >>> >> Grep for a line that starts with
>>> >> >>> >>  #: ../
>>> >> >>> >> and includes the string
>>> >> >>> >> .desktop.in.in.h:
>>> >> >>> >> then find the next line that starts with
>>> >> >>> >> msgid
>>> >> >>> >> and ends with
>>> >> >>> >> ;"
>>> >> >>> >> then count the number of ; in that specific line,
>>> >> >>> >> compare that number with the next line that starts with
>>> >> >>> >> msgstr
>>> >> >>> >> and which is not
>>> >> >>> >> msgstr ""
>>> >> >>> >> which would mean not translated yet.
>>> >> >>> >> Trigger a warning if the number is not the same.
>>> >> >>> >> Or something like that. Cough. Sounds error-prone.
>>> >> >>> >>
>>> >> >>> >> andre
>>> >> >>> >> --
>>> >> >>> >> Andre Klapper  |  ak...@gmx.net
>>> >> >>> >> http://blogs.gnome.org/aklapper/
>>> >> >>> >>
>>> >> >>> >> ___
>>> >> >>> >> gnome-i18n mailing list
>>> >> >>> >> gnome-i18n@gnome.org
>>> >> >>> >> https://mail.gnome.org/mailman/listinfo/gnome-i18n
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > ___
>>> >> >>> > gnome-i18n mailing list
>>> >> >>> > gnome-i18n@gnome.org
>>> >> >>> > https://mail.gnome.org/mailman/listinfo/gnome-i18n
>>> >> >>> >
>>> >> >>
>>> >> >>
>>> >
>>> >
>>
>>
>
___

Re: keywords in desktop files, again

2013-03-24 Thread Daniel Mustieles García
Hi all,

Here is the report I've generated about the missing «;» in the Keywords
translated string.

Translation team coordinator: As this is an important fix we should do
before the new release, please let me know if you won't be able to fix it,
so I'll review and fix it for you.

Best regards

2013/3/24 Daniel Mustieles García 

> Hi Ask,
>
> You can use this script to get all the PO files for the most relevant
> languages. The script also has the ability to get all the language codes
> from DL, sou you can get all the PO files from all the languages.
>
> Cheers!
>
>
> 2013/3/23 Ask Hjorth Larsen 
>
>> Hi
>>
>> What is the easiest way to download all the translations in all languages?
>>
>> Regards
>> Ask
>>
>> 2013/3/22 Daniel Mustieles García :
>> > It works great!!
>> >
>> > I've detected (and fixed) an error in gnome-control-center. Thanks!!
>> >
>> > This weekend ill try to clean the output to be less verbose and I'll
>> create
>> > a report with it. Stay tuned!!
>> >
>> > Again, many thanks!
>> >
>> >
>> > 2013/3/22 Ask Hjorth Larsen 
>> >>
>> >> It can be used like this:
>> >>
>> >> askhl@mime:~/translate$ find -name "*.po" | xargs desktopfilecheck.py
>> >> ./gdm-and-friends/gnome-control-center.gnome-3-8.da.po
>> >> ERROR, bad syntax line 6684:
>> >> #. Translators: those are keywords for the wacom tablet control-center
>> >> panel
>> >> #: ../panels/wacom/gnome-wacom-panel.desktop.in.in.h:4
>> >> msgid "Tablet;Wacom;Stylus;Eraser;Mouse;"
>> >> msgstr "Tegneplade;Wacom;Pen;Viskelæder;Mus"
>> >>
>> >> Regards
>> >> Ask
>> >>
>> >> 2013/3/22 Ask Hjorth Larsen :
>> >> > Hi, here's a script (uses pyg3t):
>> >> >
>> >> >   http://www.student.dtu.dk/~ashj/opendir/desktopfilecheck.py
>> >> >
>> >> > I'm actually at work at the moment, but someone can run it or I'll do
>> >> > it tomorrow or so when I have time.
>> >> >
>> >> > Let me know about any issues or if it needs to check for anything
>> else.
>> >> >
>> >> > Regards
>> >> > Ask
>> >> >
>> >> > 2013/3/22 Daniel Mustieles García :
>> >> >> Hi Ask,
>> >> >>
>> >> >> The Keywords string just has to end with ";" to be ok, no need to
>> have
>> >> >> the
>> >> >> same number of words
>> >> >>
>> >> >> Many thanks fin advance for your script!
>> >> >>
>> >> >>
>> >> >> 2013/3/22 Ask Hjorth Larsen 
>> >> >>>
>> >> >>> Hi
>> >> >>>
>> >> >>> Could someone specify how these files *should* be translated?  Must
>> >> >>> there be the same number of elements in the list?
>> >> >>>
>> >> >>> I suppose the most obvious thing is that it should end with ;.
>> >> >>>
>> >> >>> I'll write a script and check it on all the files, then send a
>> >> >>> complete
>> >> >>> list.
>> >> >>>
>> >> >>> Regards
>> >> >>> Ask
>> >> >>>
>> >> >>> 2013/3/22 Daniel Mustieles García :
>> >> >>> > In bash it may be tricky to do this check, but I guess Python
>> could
>> >> >>> > help. I
>> >> >>> > tried to do it in bash and I wasted my time :(
>> >> >>> >
>> >> >>> >
>> >> >>> > 2013/3/22 Andre Klapper 
>> >> >>> >>
>> >> >>> >> On Fri, 2013-03-22 at 15:46 +0100, Olav Vitters wrote:
>> >> >>> >> > Any idea how that could be implemented? I am willing to make
>> it
>> >> >>> >> > happen,
>> >> >>> >> > just don't see how. E.g. figure out exactly which line is the
>> >> >>> >> > Keywords
>> >> >>> >> > line, etc.
>> >> >>> >>
>> >> >>> >> Grep for a line that starts with
>> >> >>> >>  #: ../
>> >> >>> >> and includes the string
>> >> >>> >> .desktop.in.in.h:
>> >> >>> >> then find the next line that starts with
>> >> >>> >> msgid
>> >> >>> >> and ends with
>> >> >>> >> ;"
>> >> >>> >> then count the number of ; in that specific line,
>> >> >>> >> compare that number with the next line that starts with
>> >> >>> >> msgstr
>> >> >>> >> and which is not
>> >> >>> >> msgstr ""
>> >> >>> >> which would mean not translated yet.
>> >> >>> >> Trigger a warning if the number is not the same.
>> >> >>> >> Or something like that. Cough. Sounds error-prone.
>> >> >>> >>
>> >> >>> >> andre
>> >> >>> >> --
>> >> >>> >> Andre Klapper  |  ak...@gmx.net
>> >> >>> >> http://blogs.gnome.org/aklapper/
>> >> >>> >>
>> >> >>> >> ___
>> >> >>> >> gnome-i18n mailing list
>> >> >>> >> gnome-i18n@gnome.org
>> >> >>> >> https://mail.gnome.org/mailman/listinfo/gnome-i18n
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > ___
>> >> >>> > gnome-i18n mailing list
>> >> >>> > gnome-i18n@gnome.org
>> >> >>> > https://mail.gnome.org/mailman/listinfo/gnome-i18n
>> >> >>> >
>> >> >>
>> >> >>
>> >
>> >
>>
>
>


keywords-reports.tar.gz
Description: GNU Zip compressed data
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-24 Thread Philip Withnall
El vie, 22-03-2013 a las 15:46 +0100, Olav Vitters escribió:
> On Fri, Mar 22, 2013 at 02:42:39PM +, Philip Withnall wrote:
> > We already have validation of .po files in a pre-receive git hook[1].
> > Might it be an idea to add validation of .desktop files?
> 
> Any idea how that could be implemented? I am willing to make it happen,
> just don't see how. E.g. figure out exactly which line is the Keywords
> line, etc.

So this doesn’t get forgotten about, I’ve filed
https://bugzilla.gnome.org/show_bug.cgi?id=696489 about adding a
pre-receive hook. I don’t have time to work on it myself, but hopefully
someone else does.

Philip


signature.asc
Description: This is a digitally signed message part
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-24 Thread Daniel Mustieles García
Hi Ask,

You can use this script to get all the PO files for the most relevant
languages. The script also has the ability to get all the language codes
from DL, sou you can get all the PO files from all the languages.

Cheers!

2013/3/23 Ask Hjorth Larsen 

> Hi
>
> What is the easiest way to download all the translations in all languages?
>
> Regards
> Ask
>
> 2013/3/22 Daniel Mustieles García :
> > It works great!!
> >
> > I've detected (and fixed) an error in gnome-control-center. Thanks!!
> >
> > This weekend ill try to clean the output to be less verbose and I'll
> create
> > a report with it. Stay tuned!!
> >
> > Again, many thanks!
> >
> >
> > 2013/3/22 Ask Hjorth Larsen 
> >>
> >> It can be used like this:
> >>
> >> askhl@mime:~/translate$ find -name "*.po" | xargs desktopfilecheck.py
> >> ./gdm-and-friends/gnome-control-center.gnome-3-8.da.po
> >> ERROR, bad syntax line 6684:
> >> #. Translators: those are keywords for the wacom tablet control-center
> >> panel
> >> #: ../panels/wacom/gnome-wacom-panel.desktop.in.in.h:4
> >> msgid "Tablet;Wacom;Stylus;Eraser;Mouse;"
> >> msgstr "Tegneplade;Wacom;Pen;Viskelæder;Mus"
> >>
> >> Regards
> >> Ask
> >>
> >> 2013/3/22 Ask Hjorth Larsen :
> >> > Hi, here's a script (uses pyg3t):
> >> >
> >> >   http://www.student.dtu.dk/~ashj/opendir/desktopfilecheck.py
> >> >
> >> > I'm actually at work at the moment, but someone can run it or I'll do
> >> > it tomorrow or so when I have time.
> >> >
> >> > Let me know about any issues or if it needs to check for anything
> else.
> >> >
> >> > Regards
> >> > Ask
> >> >
> >> > 2013/3/22 Daniel Mustieles García :
> >> >> Hi Ask,
> >> >>
> >> >> The Keywords string just has to end with ";" to be ok, no need to
> have
> >> >> the
> >> >> same number of words
> >> >>
> >> >> Many thanks fin advance for your script!
> >> >>
> >> >>
> >> >> 2013/3/22 Ask Hjorth Larsen 
> >> >>>
> >> >>> Hi
> >> >>>
> >> >>> Could someone specify how these files *should* be translated?  Must
> >> >>> there be the same number of elements in the list?
> >> >>>
> >> >>> I suppose the most obvious thing is that it should end with ;.
> >> >>>
> >> >>> I'll write a script and check it on all the files, then send a
> >> >>> complete
> >> >>> list.
> >> >>>
> >> >>> Regards
> >> >>> Ask
> >> >>>
> >> >>> 2013/3/22 Daniel Mustieles García :
> >> >>> > In bash it may be tricky to do this check, but I guess Python
> could
> >> >>> > help. I
> >> >>> > tried to do it in bash and I wasted my time :(
> >> >>> >
> >> >>> >
> >> >>> > 2013/3/22 Andre Klapper 
> >> >>> >>
> >> >>> >> On Fri, 2013-03-22 at 15:46 +0100, Olav Vitters wrote:
> >> >>> >> > Any idea how that could be implemented? I am willing to make it
> >> >>> >> > happen,
> >> >>> >> > just don't see how. E.g. figure out exactly which line is the
> >> >>> >> > Keywords
> >> >>> >> > line, etc.
> >> >>> >>
> >> >>> >> Grep for a line that starts with
> >> >>> >>  #: ../
> >> >>> >> and includes the string
> >> >>> >> .desktop.in.in.h:
> >> >>> >> then find the next line that starts with
> >> >>> >> msgid
> >> >>> >> and ends with
> >> >>> >> ;"
> >> >>> >> then count the number of ; in that specific line,
> >> >>> >> compare that number with the next line that starts with
> >> >>> >> msgstr
> >> >>> >> and which is not
> >> >>> >> msgstr ""
> >> >>> >> which would mean not translated yet.
> >> >>> >> Trigger a warning if the number is not the same.
> >> >>> >> Or something like that. Cough. Sounds error-prone.
> >> >>> >>
> >> >>> >> andre
> >> >>> >> --
> >> >>> >> Andre Klapper  |  ak...@gmx.net
> >> >>> >> http://blogs.gnome.org/aklapper/
> >> >>> >>
> >> >>> >> ___
> >> >>> >> gnome-i18n mailing list
> >> >>> >> gnome-i18n@gnome.org
> >> >>> >> https://mail.gnome.org/mailman/listinfo/gnome-i18n
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> > ___
> >> >>> > gnome-i18n mailing list
> >> >>> > gnome-i18n@gnome.org
> >> >>> > https://mail.gnome.org/mailman/listinfo/gnome-i18n
> >> >>> >
> >> >>
> >> >>
> >
> >
>


get_po_files.sh
Description: Bourne shell script
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-23 Thread Ask Hjorth Larsen
Hi

What is the easiest way to download all the translations in all languages?

Regards
Ask

2013/3/22 Daniel Mustieles García :
> It works great!!
>
> I've detected (and fixed) an error in gnome-control-center. Thanks!!
>
> This weekend ill try to clean the output to be less verbose and I'll create
> a report with it. Stay tuned!!
>
> Again, many thanks!
>
>
> 2013/3/22 Ask Hjorth Larsen 
>>
>> It can be used like this:
>>
>> askhl@mime:~/translate$ find -name "*.po" | xargs desktopfilecheck.py
>> ./gdm-and-friends/gnome-control-center.gnome-3-8.da.po
>> ERROR, bad syntax line 6684:
>> #. Translators: those are keywords for the wacom tablet control-center
>> panel
>> #: ../panels/wacom/gnome-wacom-panel.desktop.in.in.h:4
>> msgid "Tablet;Wacom;Stylus;Eraser;Mouse;"
>> msgstr "Tegneplade;Wacom;Pen;Viskelæder;Mus"
>>
>> Regards
>> Ask
>>
>> 2013/3/22 Ask Hjorth Larsen :
>> > Hi, here's a script (uses pyg3t):
>> >
>> >   http://www.student.dtu.dk/~ashj/opendir/desktopfilecheck.py
>> >
>> > I'm actually at work at the moment, but someone can run it or I'll do
>> > it tomorrow or so when I have time.
>> >
>> > Let me know about any issues or if it needs to check for anything else.
>> >
>> > Regards
>> > Ask
>> >
>> > 2013/3/22 Daniel Mustieles García :
>> >> Hi Ask,
>> >>
>> >> The Keywords string just has to end with ";" to be ok, no need to have
>> >> the
>> >> same number of words
>> >>
>> >> Many thanks fin advance for your script!
>> >>
>> >>
>> >> 2013/3/22 Ask Hjorth Larsen 
>> >>>
>> >>> Hi
>> >>>
>> >>> Could someone specify how these files *should* be translated?  Must
>> >>> there be the same number of elements in the list?
>> >>>
>> >>> I suppose the most obvious thing is that it should end with ;.
>> >>>
>> >>> I'll write a script and check it on all the files, then send a
>> >>> complete
>> >>> list.
>> >>>
>> >>> Regards
>> >>> Ask
>> >>>
>> >>> 2013/3/22 Daniel Mustieles García :
>> >>> > In bash it may be tricky to do this check, but I guess Python could
>> >>> > help. I
>> >>> > tried to do it in bash and I wasted my time :(
>> >>> >
>> >>> >
>> >>> > 2013/3/22 Andre Klapper 
>> >>> >>
>> >>> >> On Fri, 2013-03-22 at 15:46 +0100, Olav Vitters wrote:
>> >>> >> > Any idea how that could be implemented? I am willing to make it
>> >>> >> > happen,
>> >>> >> > just don't see how. E.g. figure out exactly which line is the
>> >>> >> > Keywords
>> >>> >> > line, etc.
>> >>> >>
>> >>> >> Grep for a line that starts with
>> >>> >>  #: ../
>> >>> >> and includes the string
>> >>> >> .desktop.in.in.h:
>> >>> >> then find the next line that starts with
>> >>> >> msgid
>> >>> >> and ends with
>> >>> >> ;"
>> >>> >> then count the number of ; in that specific line,
>> >>> >> compare that number with the next line that starts with
>> >>> >> msgstr
>> >>> >> and which is not
>> >>> >> msgstr ""
>> >>> >> which would mean not translated yet.
>> >>> >> Trigger a warning if the number is not the same.
>> >>> >> Or something like that. Cough. Sounds error-prone.
>> >>> >>
>> >>> >> andre
>> >>> >> --
>> >>> >> Andre Klapper  |  ak...@gmx.net
>> >>> >> http://blogs.gnome.org/aklapper/
>> >>> >>
>> >>> >> ___
>> >>> >> gnome-i18n mailing list
>> >>> >> gnome-i18n@gnome.org
>> >>> >> https://mail.gnome.org/mailman/listinfo/gnome-i18n
>> >>> >
>> >>> >
>> >>> >
>> >>> > ___
>> >>> > gnome-i18n mailing list
>> >>> > gnome-i18n@gnome.org
>> >>> > https://mail.gnome.org/mailman/listinfo/gnome-i18n
>> >>> >
>> >>
>> >>
>
>
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-22 Thread Daniel Mustieles García
It works great!!

I've detected (and fixed) an error in gnome-control-center. Thanks!!

This weekend ill try to clean the output to be less verbose and I'll create
a report with it. Stay tuned!!

Again, many thanks!

2013/3/22 Ask Hjorth Larsen 

> It can be used like this:
>
> askhl@mime:~/translate$ find -name "*.po" | xargs desktopfilecheck.py
> ./gdm-and-friends/gnome-control-center.gnome-3-8.da.po
> ERROR, bad syntax line 6684:
> #. Translators: those are keywords for the wacom tablet control-center
> panel
> #: ../panels/wacom/gnome-wacom-panel.desktop.in.in.h:4
> msgid "Tablet;Wacom;Stylus;Eraser;Mouse;"
> msgstr "Tegneplade;Wacom;Pen;Viskelæder;Mus"
>
> Regards
> Ask
>
> 2013/3/22 Ask Hjorth Larsen :
> > Hi, here's a script (uses pyg3t):
> >
> >   http://www.student.dtu.dk/~ashj/opendir/desktopfilecheck.py
> >
> > I'm actually at work at the moment, but someone can run it or I'll do
> > it tomorrow or so when I have time.
> >
> > Let me know about any issues or if it needs to check for anything else.
> >
> > Regards
> > Ask
> >
> > 2013/3/22 Daniel Mustieles García :
> >> Hi Ask,
> >>
> >> The Keywords string just has to end with ";" to be ok, no need to have
> the
> >> same number of words
> >>
> >> Many thanks fin advance for your script!
> >>
> >>
> >> 2013/3/22 Ask Hjorth Larsen 
> >>>
> >>> Hi
> >>>
> >>> Could someone specify how these files *should* be translated?  Must
> >>> there be the same number of elements in the list?
> >>>
> >>> I suppose the most obvious thing is that it should end with ;.
> >>>
> >>> I'll write a script and check it on all the files, then send a complete
> >>> list.
> >>>
> >>> Regards
> >>> Ask
> >>>
> >>> 2013/3/22 Daniel Mustieles García :
> >>> > In bash it may be tricky to do this check, but I guess Python could
> >>> > help. I
> >>> > tried to do it in bash and I wasted my time :(
> >>> >
> >>> >
> >>> > 2013/3/22 Andre Klapper 
> >>> >>
> >>> >> On Fri, 2013-03-22 at 15:46 +0100, Olav Vitters wrote:
> >>> >> > Any idea how that could be implemented? I am willing to make it
> >>> >> > happen,
> >>> >> > just don't see how. E.g. figure out exactly which line is the
> >>> >> > Keywords
> >>> >> > line, etc.
> >>> >>
> >>> >> Grep for a line that starts with
> >>> >>  #: ../
> >>> >> and includes the string
> >>> >> .desktop.in.in.h:
> >>> >> then find the next line that starts with
> >>> >> msgid
> >>> >> and ends with
> >>> >> ;"
> >>> >> then count the number of ; in that specific line,
> >>> >> compare that number with the next line that starts with
> >>> >> msgstr
> >>> >> and which is not
> >>> >> msgstr ""
> >>> >> which would mean not translated yet.
> >>> >> Trigger a warning if the number is not the same.
> >>> >> Or something like that. Cough. Sounds error-prone.
> >>> >>
> >>> >> andre
> >>> >> --
> >>> >> Andre Klapper  |  ak...@gmx.net
> >>> >> http://blogs.gnome.org/aklapper/
> >>> >>
> >>> >> ___
> >>> >> gnome-i18n mailing list
> >>> >> gnome-i18n@gnome.org
> >>> >> https://mail.gnome.org/mailman/listinfo/gnome-i18n
> >>> >
> >>> >
> >>> >
> >>> > ___
> >>> > gnome-i18n mailing list
> >>> > gnome-i18n@gnome.org
> >>> > https://mail.gnome.org/mailman/listinfo/gnome-i18n
> >>> >
> >>
> >>
>
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-22 Thread Ask Hjorth Larsen
It can be used like this:

askhl@mime:~/translate$ find -name "*.po" | xargs desktopfilecheck.py
./gdm-and-friends/gnome-control-center.gnome-3-8.da.po
ERROR, bad syntax line 6684:
#. Translators: those are keywords for the wacom tablet control-center panel
#: ../panels/wacom/gnome-wacom-panel.desktop.in.in.h:4
msgid "Tablet;Wacom;Stylus;Eraser;Mouse;"
msgstr "Tegneplade;Wacom;Pen;Viskelæder;Mus"

Regards
Ask

2013/3/22 Ask Hjorth Larsen :
> Hi, here's a script (uses pyg3t):
>
>   http://www.student.dtu.dk/~ashj/opendir/desktopfilecheck.py
>
> I'm actually at work at the moment, but someone can run it or I'll do
> it tomorrow or so when I have time.
>
> Let me know about any issues or if it needs to check for anything else.
>
> Regards
> Ask
>
> 2013/3/22 Daniel Mustieles García :
>> Hi Ask,
>>
>> The Keywords string just has to end with ";" to be ok, no need to have the
>> same number of words
>>
>> Many thanks fin advance for your script!
>>
>>
>> 2013/3/22 Ask Hjorth Larsen 
>>>
>>> Hi
>>>
>>> Could someone specify how these files *should* be translated?  Must
>>> there be the same number of elements in the list?
>>>
>>> I suppose the most obvious thing is that it should end with ;.
>>>
>>> I'll write a script and check it on all the files, then send a complete
>>> list.
>>>
>>> Regards
>>> Ask
>>>
>>> 2013/3/22 Daniel Mustieles García :
>>> > In bash it may be tricky to do this check, but I guess Python could
>>> > help. I
>>> > tried to do it in bash and I wasted my time :(
>>> >
>>> >
>>> > 2013/3/22 Andre Klapper 
>>> >>
>>> >> On Fri, 2013-03-22 at 15:46 +0100, Olav Vitters wrote:
>>> >> > Any idea how that could be implemented? I am willing to make it
>>> >> > happen,
>>> >> > just don't see how. E.g. figure out exactly which line is the
>>> >> > Keywords
>>> >> > line, etc.
>>> >>
>>> >> Grep for a line that starts with
>>> >>  #: ../
>>> >> and includes the string
>>> >> .desktop.in.in.h:
>>> >> then find the next line that starts with
>>> >> msgid
>>> >> and ends with
>>> >> ;"
>>> >> then count the number of ; in that specific line,
>>> >> compare that number with the next line that starts with
>>> >> msgstr
>>> >> and which is not
>>> >> msgstr ""
>>> >> which would mean not translated yet.
>>> >> Trigger a warning if the number is not the same.
>>> >> Or something like that. Cough. Sounds error-prone.
>>> >>
>>> >> andre
>>> >> --
>>> >> Andre Klapper  |  ak...@gmx.net
>>> >> http://blogs.gnome.org/aklapper/
>>> >>
>>> >> ___
>>> >> gnome-i18n mailing list
>>> >> gnome-i18n@gnome.org
>>> >> https://mail.gnome.org/mailman/listinfo/gnome-i18n
>>> >
>>> >
>>> >
>>> > ___
>>> > gnome-i18n mailing list
>>> > gnome-i18n@gnome.org
>>> > https://mail.gnome.org/mailman/listinfo/gnome-i18n
>>> >
>>
>>
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-22 Thread Ask Hjorth Larsen
Hi, here's a script (uses pyg3t):

  http://www.student.dtu.dk/~ashj/opendir/desktopfilecheck.py

I'm actually at work at the moment, but someone can run it or I'll do
it tomorrow or so when I have time.

Let me know about any issues or if it needs to check for anything else.

Regards
Ask

2013/3/22 Daniel Mustieles García :
> Hi Ask,
>
> The Keywords string just has to end with ";" to be ok, no need to have the
> same number of words
>
> Many thanks fin advance for your script!
>
>
> 2013/3/22 Ask Hjorth Larsen 
>>
>> Hi
>>
>> Could someone specify how these files *should* be translated?  Must
>> there be the same number of elements in the list?
>>
>> I suppose the most obvious thing is that it should end with ;.
>>
>> I'll write a script and check it on all the files, then send a complete
>> list.
>>
>> Regards
>> Ask
>>
>> 2013/3/22 Daniel Mustieles García :
>> > In bash it may be tricky to do this check, but I guess Python could
>> > help. I
>> > tried to do it in bash and I wasted my time :(
>> >
>> >
>> > 2013/3/22 Andre Klapper 
>> >>
>> >> On Fri, 2013-03-22 at 15:46 +0100, Olav Vitters wrote:
>> >> > Any idea how that could be implemented? I am willing to make it
>> >> > happen,
>> >> > just don't see how. E.g. figure out exactly which line is the
>> >> > Keywords
>> >> > line, etc.
>> >>
>> >> Grep for a line that starts with
>> >>  #: ../
>> >> and includes the string
>> >> .desktop.in.in.h:
>> >> then find the next line that starts with
>> >> msgid
>> >> and ends with
>> >> ;"
>> >> then count the number of ; in that specific line,
>> >> compare that number with the next line that starts with
>> >> msgstr
>> >> and which is not
>> >> msgstr ""
>> >> which would mean not translated yet.
>> >> Trigger a warning if the number is not the same.
>> >> Or something like that. Cough. Sounds error-prone.
>> >>
>> >> andre
>> >> --
>> >> Andre Klapper  |  ak...@gmx.net
>> >> http://blogs.gnome.org/aklapper/
>> >>
>> >> ___
>> >> gnome-i18n mailing list
>> >> gnome-i18n@gnome.org
>> >> https://mail.gnome.org/mailman/listinfo/gnome-i18n
>> >
>> >
>> >
>> > ___
>> > gnome-i18n mailing list
>> > gnome-i18n@gnome.org
>> > https://mail.gnome.org/mailman/listinfo/gnome-i18n
>> >
>
>
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-22 Thread Daniel Mustieles García
Hi Ask,

The Keywords string just has to end with ";" to be ok, no need to have the
same number of words

Many thanks fin advance for your script!

2013/3/22 Ask Hjorth Larsen 

> Hi
>
> Could someone specify how these files *should* be translated?  Must
> there be the same number of elements in the list?
>
> I suppose the most obvious thing is that it should end with ;.
>
> I'll write a script and check it on all the files, then send a complete
> list.
>
> Regards
> Ask
>
> 2013/3/22 Daniel Mustieles García :
> > In bash it may be tricky to do this check, but I guess Python could
> help. I
> > tried to do it in bash and I wasted my time :(
> >
> >
> > 2013/3/22 Andre Klapper 
> >>
> >> On Fri, 2013-03-22 at 15:46 +0100, Olav Vitters wrote:
> >> > Any idea how that could be implemented? I am willing to make it
> happen,
> >> > just don't see how. E.g. figure out exactly which line is the Keywords
> >> > line, etc.
> >>
> >> Grep for a line that starts with
> >>  #: ../
> >> and includes the string
> >> .desktop.in.in.h:
> >> then find the next line that starts with
> >> msgid
> >> and ends with
> >> ;"
> >> then count the number of ; in that specific line,
> >> compare that number with the next line that starts with
> >> msgstr
> >> and which is not
> >> msgstr ""
> >> which would mean not translated yet.
> >> Trigger a warning if the number is not the same.
> >> Or something like that. Cough. Sounds error-prone.
> >>
> >> andre
> >> --
> >> Andre Klapper  |  ak...@gmx.net
> >> http://blogs.gnome.org/aklapper/
> >>
> >> ___
> >> gnome-i18n mailing list
> >> gnome-i18n@gnome.org
> >> https://mail.gnome.org/mailman/listinfo/gnome-i18n
> >
> >
> >
> > ___
> > gnome-i18n mailing list
> > gnome-i18n@gnome.org
> > https://mail.gnome.org/mailman/listinfo/gnome-i18n
> >
>
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-22 Thread Ask Hjorth Larsen
Hi

Could someone specify how these files *should* be translated?  Must
there be the same number of elements in the list?

I suppose the most obvious thing is that it should end with ;.

I'll write a script and check it on all the files, then send a complete list.

Regards
Ask

2013/3/22 Daniel Mustieles García :
> In bash it may be tricky to do this check, but I guess Python could help. I
> tried to do it in bash and I wasted my time :(
>
>
> 2013/3/22 Andre Klapper 
>>
>> On Fri, 2013-03-22 at 15:46 +0100, Olav Vitters wrote:
>> > Any idea how that could be implemented? I am willing to make it happen,
>> > just don't see how. E.g. figure out exactly which line is the Keywords
>> > line, etc.
>>
>> Grep for a line that starts with
>>  #: ../
>> and includes the string
>> .desktop.in.in.h:
>> then find the next line that starts with
>> msgid
>> and ends with
>> ;"
>> then count the number of ; in that specific line,
>> compare that number with the next line that starts with
>> msgstr
>> and which is not
>> msgstr ""
>> which would mean not translated yet.
>> Trigger a warning if the number is not the same.
>> Or something like that. Cough. Sounds error-prone.
>>
>> andre
>> --
>> Andre Klapper  |  ak...@gmx.net
>> http://blogs.gnome.org/aklapper/
>>
>> ___
>> gnome-i18n mailing list
>> gnome-i18n@gnome.org
>> https://mail.gnome.org/mailman/listinfo/gnome-i18n
>
>
>
> ___
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-i18n
>
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-22 Thread Daniel Mustieles García
In bash it may be tricky to do this check, but I guess Python could help. I
tried to do it in bash and I wasted my time :(

2013/3/22 Andre Klapper 

> On Fri, 2013-03-22 at 15:46 +0100, Olav Vitters wrote:
> > Any idea how that could be implemented? I am willing to make it happen,
> > just don't see how. E.g. figure out exactly which line is the Keywords
> > line, etc.
>
> Grep for a line that starts with
>  #: ../
> and includes the string
> .desktop.in.in.h:
> then find the next line that starts with
> msgid
> and ends with
> ;"
> then count the number of ; in that specific line,
> compare that number with the next line that starts with
> msgstr
> and which is not
> msgstr ""
> which would mean not translated yet.
> Trigger a warning if the number is not the same.
> Or something like that. Cough. Sounds error-prone.
>
> andre
> --
> Andre Klapper  |  ak...@gmx.net
> http://blogs.gnome.org/aklapper/
>
> ___
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-i18n
>
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-22 Thread Andre Klapper
On Fri, 2013-03-22 at 15:46 +0100, Olav Vitters wrote:
> Any idea how that could be implemented? I am willing to make it happen,
> just don't see how. E.g. figure out exactly which line is the Keywords
> line, etc.

Grep for a line that starts with
 #: ../
and includes the string
.desktop.in.in.h:
then find the next line that starts with
msgid
and ends with
;"
then count the number of ; in that specific line,
compare that number with the next line that starts with
msgstr
and which is not
msgstr ""
which would mean not translated yet.
Trigger a warning if the number is not the same.
Or something like that. Cough. Sounds error-prone.

andre
-- 
Andre Klapper  |  ak...@gmx.net
http://blogs.gnome.org/aklapper/

___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-22 Thread Philip Withnall
El vie, 22-03-2013 a las 15:46 +0100, Olav Vitters escribió:
> On Fri, Mar 22, 2013 at 02:42:39PM +, Philip Withnall wrote:
> > We already have validation of .po files in a pre-receive git hook[1].
> > Might it be an idea to add validation of .desktop files?
> 
> Any idea how that could be implemented? I am willing to make it happen,
> just don't see how. E.g. figure out exactly which line is the Keywords
> line, etc.

Well, Matthias mentioned desktop-file-validate[1], which appears to do
exactly what’s needed, according to its web page. I’ve never used it,
though, so I can’t be sure.

Philip

[1]: http://freedesktop.org/wiki/Software/desktop-file-utils


signature.asc
Description: This is a digitally signed message part
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-22 Thread matthias.clasen

If you have a jhbuild build, you can run desktop-file-validate on the desktop 
files in the module. You'll have to rebuild after making translation changes to 
regenerate those files.



Sent from my Samsung Galaxy Note™, an AT&T LTE smartphonerafael ff1 
 wrote:Is there a easy way to track down this bug in 
every module, except for
going in and out of each one? I'd love to make sure it doesn't happen
to my language.

Rafael Ferreira

2013/3/22 Matthias Clasen :
> I sent a mail about this in January already[1], but we are still
> seeing a steady stream of broken syntax in translations for the
> Keywords field in desktop files. Please, try to educate your fellow
> translators about this issue, it is really making building GNOME
> package updates cumbersome, since the desktop-file-validate call in
> the spec file is normally the first place where this breakage becomes
> apparent.
>
> Matthias
>
> [1] https://mail.gnome.org/archives/gnome-i18n/2013-January/msg00030.html
> ___
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-i18n
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-22 Thread Olav Vitters
On Fri, Mar 22, 2013 at 02:42:39PM +, Philip Withnall wrote:
> We already have validation of .po files in a pre-receive git hook[1].
> Might it be an idea to add validation of .desktop files?

Any idea how that could be implemented? I am willing to make it happen,
just don't see how. E.g. figure out exactly which line is the Keywords
line, etc.

-- 
Regards,
Olav
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-22 Thread Philip Withnall
El vie, 22-03-2013 a las 10:24 -0400, Matthias Clasen escribió:
> I sent a mail about this in January already[1], but we are still
> seeing a steady stream of broken syntax in translations for the
> Keywords field in desktop files. Please, try to educate your fellow
> translators about this issue, it is really making building GNOME
> package updates cumbersome, since the desktop-file-validate call in
> the spec file is normally the first place where this breakage becomes
> apparent.

We already have validation of .po files in a pre-receive git hook[1].
Might it be an idea to add validation of .desktop files?

Philip

[1]:
https://git.gnome.org/browse/sysadmin-bin/tree/git/pre-receive-check-po


signature.asc
Description: This is a digitally signed message part
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: keywords in desktop files, again

2013-03-22 Thread rafael ff1
Is there a easy way to track down this bug in every module, except for
going in and out of each one? I'd love to make sure it doesn't happen
to my language.

Rafael Ferreira

2013/3/22 Matthias Clasen :
> I sent a mail about this in January already[1], but we are still
> seeing a steady stream of broken syntax in translations for the
> Keywords field in desktop files. Please, try to educate your fellow
> translators about this issue, it is really making building GNOME
> package updates cumbersome, since the desktop-file-validate call in
> the spec file is normally the first place where this breakage becomes
> apparent.
>
> Matthias
>
> [1] https://mail.gnome.org/archives/gnome-i18n/2013-January/msg00030.html
> ___
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-i18n
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


keywords in desktop files, again

2013-03-22 Thread Matthias Clasen
I sent a mail about this in January already[1], but we are still
seeing a steady stream of broken syntax in translations for the
Keywords field in desktop files. Please, try to educate your fellow
translators about this issue, it is really making building GNOME
package updates cumbersome, since the desktop-file-validate call in
the spec file is normally the first place where this breakage becomes
apparent.

Matthias

[1] https://mail.gnome.org/archives/gnome-i18n/2013-January/msg00030.html
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Keywords in desktop files

2013-01-23 Thread Ask Hjorth Larsen
2013/1/23 Ask Hjorth Larsen :
(...)
>
> 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 " 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
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Keywords in desktop files

2013-01-23 Thread Ask Hjorth Larsen
Hi

2013/1/23 Shaun McCance :
> On Thu, 2013-01-17 at 14:04 +0100, Daniel Mustieles García wrote:
>> Another check that should be implemented is the XML syntax check done
>> in gtxml [1]. It checks the documentation PO files syntax, and is
>> really useful to avoid errors in malfomed or wrong tags in doc files.
>>
>> [1] https://launchpad.net/pyg3t
>
> How does gtxml determine which strings have XML in them? Last April,
> I asked on the gettext mailing list about adding a flag to identify
> XML content, but got no response.
>
> http://lists.gnu.org/archive/html/bug-gettext/2012-04/msg00013.html
>
> --
> Shaun

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
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Keywords in desktop files

2013-01-23 Thread Shaun McCance
On Thu, 2013-01-17 at 14:04 +0100, Daniel Mustieles García wrote:
> Another check that should be implemented is the XML syntax check done
> in gtxml [1]. It checks the documentation PO files syntax, and is
> really useful to avoid errors in malfomed or wrong tags in doc files.
> 
> [1] https://launchpad.net/pyg3t

How does gtxml determine which strings have XML in them? Last April,
I asked on the gettext mailing list about adding a flag to identify
XML content, but got no response.

http://lists.gnu.org/archive/html/bug-gettext/2012-04/msg00013.html

--
Shaun


___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Keywords in desktop files

2013-01-19 Thread Daniel Mustieles García
Check desktop files is easy to do with find and grep... just need to have
all the modules cloned in your local computer. Yesterday i reviewd some of
them, and just found an error in Rhythmbox, but I don't have a local copy
of all the modules... maybe sysadmins could help us with this?

About the XML syntax, no, I don't think it could be a GNOME Goal, since the
PO files are alive, and you can check and fix the syntax today, but if
tomorrow you add more translated strings to the file, you can make mistakes
on them, breaking the goal achieved.

Checking the XML syntax should be done whe uploading PO files git, like
actuallyy is done using msgftm. Doing it, if your PO file contains errors
in XML syntax, git will avoid you to push it


2013/1/19 Christian Kirbach 

> Wouldn't both tasks - XML syntax check and keyword check in desktop
> files - make a fine GnomeGoal?
>
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Keywords in desktop files

2013-01-18 Thread Александър Шопов
Speaking of keywords:
When translating - I add the Bulgarian translation and then copy and add
the English original because people will search and expect both the
translated and the original version.
Is there any problem with this strategy?
Kind regards:
al_shopov

___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Keywords in desktop files

2013-01-18 Thread Christian Kirbach
Wouldn't both tasks - XML syntax check and keyword check in desktop
files - make a fine GnomeGoal?


Am Donnerstag, den 17.01.2013, 14:04 +0100 schrieb Daniel Mustieles
García:
> Another check that should be implemented is the XML syntax check done
> in gtxml [1]. It checks the documentation PO files syntax, and is
> really useful to avoid errors in malfomed or wrong tags in doc files.
> 
> [1] https://launchpad.net/pyg3t
> 
> 
> 
> 2013/1/17 Matthias Clasen 
> On Thu, Jan 17, 2013 at 3:55 AM, Olav Vitters
>  wrote:
> > On Wed, Jan 16, 2013 at 02:31:41PM -0500, Matthias Clasen
> wrote:
> >> In trying to build 3.7.4 in Fedora, I've come across a few
> modules
> >> where translations got this wrong. Here is an example:
> >
> > I usually just commit fixes for that, but Mageia is sticking
> with 3.6
> > for now.
> >
> > Any way to check this on the server? I know various po
> checks are done,
> > if possible, we should include the check for correct
> Keywords
> > translations as well.
> 
> 
> Two good points. I would normally do that too, but I am
> struggling to
> even identify the word boundaries in some of the languages
> that
> desktop-file-validate complains about. Adding
> desktop-file-validate to
> make check is certainly a good idea.
> ___
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-i18n
> 
> 
> ___
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-i18n

-- 
Christian Kirbach 
Christian Kirbach 
Christian Kirbach 

___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Keywords in desktop files

2013-01-17 Thread Daniel Mustieles García
Another check that should be implemented is the XML syntax check done in
gtxml [1]. It checks the documentation PO files syntax, and is really
useful to avoid errors in malfomed or wrong tags in doc files.

[1] https://launchpad.net/pyg3t



2013/1/17 Matthias Clasen 

> On Thu, Jan 17, 2013 at 3:55 AM, Olav Vitters  wrote:
> > On Wed, Jan 16, 2013 at 02:31:41PM -0500, Matthias Clasen wrote:
> >> In trying to build 3.7.4 in Fedora, I've come across a few modules
> >> where translations got this wrong. Here is an example:
> >
> > I usually just commit fixes for that, but Mageia is sticking with 3.6
> > for now.
> >
> > Any way to check this on the server? I know various po checks are done,
> > if possible, we should include the check for correct Keywords
> > translations as well.
>
> Two good points. I would normally do that too, but I am struggling to
> even identify the word boundaries in some of the languages that
> desktop-file-validate complains about. Adding desktop-file-validate to
> make check is certainly a good idea.
> ___
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-i18n
>
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Keywords in desktop files

2013-01-17 Thread Olav Vitters
On Thu, Jan 17, 2013 at 05:55:18AM -0500, Matthias Clasen wrote:
> On Thu, Jan 17, 2013 at 3:55 AM, Olav Vitters  wrote:
> > On Wed, Jan 16, 2013 at 02:31:41PM -0500, Matthias Clasen wrote:
> >> In trying to build 3.7.4 in Fedora, I've come across a few modules
> >> where translations got this wrong. Here is an example:
> >
> > I usually just commit fixes for that, but Mageia is sticking with 3.6
> > for now.
> >
> > Any way to check this on the server? I know various po checks are done,
> > if possible, we should include the check for correct Keywords
> > translations as well.
> 
> Two good points. I would normally do that too, but I am struggling to
> even identify the word boundaries in some of the languages that
> desktop-file-validate complains about. Adding desktop-file-validate to
> make check is certainly a good idea.

I actually meant this file:
http://git.gnome.org/browse/sysadmin-bin/tree/git/pre-receive-check-po

It checks the PO file on 'commit'.
-- 
Regards,
Olav
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Keywords in desktop files

2013-01-17 Thread Matthias Clasen
On Thu, Jan 17, 2013 at 3:55 AM, Olav Vitters  wrote:
> On Wed, Jan 16, 2013 at 02:31:41PM -0500, Matthias Clasen wrote:
>> In trying to build 3.7.4 in Fedora, I've come across a few modules
>> where translations got this wrong. Here is an example:
>
> I usually just commit fixes for that, but Mageia is sticking with 3.6
> for now.
>
> Any way to check this on the server? I know various po checks are done,
> if possible, we should include the check for correct Keywords
> translations as well.

Two good points. I would normally do that too, but I am struggling to
even identify the word boundaries in some of the languages that
desktop-file-validate complains about. Adding desktop-file-validate to
make check is certainly a good idea.
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Keywords in desktop files

2013-01-17 Thread Olav Vitters
On Wed, Jan 16, 2013 at 02:31:41PM -0500, Matthias Clasen wrote:
> In trying to build 3.7.4 in Fedora, I've come across a few modules
> where translations got this wrong. Here is an example:

I usually just commit fixes for that, but Mageia is sticking with 3.6
for now.

Any way to check this on the server? I know various po checks are done,
if possible, we should include the check for correct Keywords
translations as well.

-- 
Regards,
Olav
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Keywords in desktop files

2013-01-16 Thread Daniel Mustieles García
Thanks Matthias for your advice. I've also noticed this same error in some
originals strings, and I've fixed it, but It would be great if there were a
way to check it without reviewing all the PO files. I'll investigate it and
will post here the results.

I'd also like to comment that adding this keywords to .desktop is a GNOME
Goal (https://live.gnome.org/GnomeGoals/DesktopFileKeywords) and we are
really near to finish it. There are a few patches awaiting review so,
please, if you are a maintainer, check out the wiki page above mentioned
and, if your module is yellow-flagged, please review the patch in BZ.

Best regards

2013/1/16 Matthias Clasen 

> Hi,
>
> recently, we've added keywords to quite a few desktop files. This
> field is what the desktop entry spec calls a  'string list' - ie a
> list of strings that are separated by ; - including a terminating ;
>
> In trying to build 3.7.4 in Fedora, I've come across a few modules
> where translations got this wrong. Here is an example:
>
> https://bugzilla.gnome.org/show_bug.cgi?id=691888
>
> I can't really blame you for that - we didn't add translator comments,
> and it isn't exactly obvious from the string that the ; are part of a
> prescribed syntax.
> But they are, so please, look over your translations of these Keywords
> fields and correct them where needed.
>
> Thanks !
>
> Matthias
> ___
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-i18n
>
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Keywords in desktop files

2013-01-16 Thread Matthias Clasen
Hi,

recently, we've added keywords to quite a few desktop files. This
field is what the desktop entry spec calls a  'string list' - ie a
list of strings that are separated by ; - including a terminating ;

In trying to build 3.7.4 in Fedora, I've come across a few modules
where translations got this wrong. Here is an example:

https://bugzilla.gnome.org/show_bug.cgi?id=691888

I can't really blame you for that - we didn't add translator comments,
and it isn't exactly obvious from the string that the ; are part of a
prescribed syntax.
But they are, so please, look over your translations of these Keywords
fields and correct them where needed.

Thanks !

Matthias
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: what does _X-GNOME-Keywords in .desktop files mean?

2010-11-25 Thread Luca Ferretti
Il giorno mer, 24/11/2010 alle 00.36 +0200, Lucian Adrian Grijincu ha
scritto:
> Hi,
> 
> In 
> http://git.gnome.org/browse/gnome-control-center/tree/panels/display/gnome-display-panel.desktop.in.in
> 
> There's this string marked for translation:
> 
> # Translators: those are keywords for the display control-center panel
> _X-GNOME-Keywords=Panel;Projector;xrandr;Screen;Resolution;Refresh;
> 
> Are these strings that a user might use to search for this application?

Yes.

> If yes should translations include both the original english and
> localizations for those terms and maybe other terms that would likely
> be used in that language to get to this application?

The actual search works only in your current locale, so if you want to
include, for instance. "Screen" as a valid match you have to include it
in you translation.

However g-c-c developers were planning to add a page on live.gnome.org
explaining how to translate those items, stay tuned.

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


what does _X-GNOME-Keywords in .desktop files mean?

2010-11-23 Thread Lucian Adrian Grijincu
Hi,

In 
http://git.gnome.org/browse/gnome-control-center/tree/panels/display/gnome-display-panel.desktop.in.in

There's this string marked for translation:

# Translators: those are keywords for the display control-center panel
_X-GNOME-Keywords=Panel;Projector;xrandr;Screen;Resolution;Refresh;

Are these strings that a user might use to search for this application?

If yes should translations include both the original english and
localizations for those terms and maybe other terms that would likely
be used in that language to get to this application?

-- 
 .
..: Lucian
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n