Re: keywords in desktop files, again
- From: Daniel Mustieles García <daniel mustieles gmail com>
- To: Andre Klapper <ak-47 gmx net>
- Cc: gnome-i18n gnome org
- Subject: Re: keywords in desktop files, again
- Date: Fri, 22 Mar 2013 17:08:35 +0100
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
<ak-47 gmx net>
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-47 gmx net
http://blogs.gnome.org/aklapper/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]