bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] libpeas Plugin file support


From: Iñigo Martínez
Subject: Re: [bug-gettext] libpeas Plugin file support
Date: Tue, 6 Jun 2017 13:41:09 +0200

Hello,

Following the last mail, you can find attached three patches that add
full support for libpeas plugin files support.

libpeas[0] is the GObject Plugin System. It uses plugin files which
are a Desktop Entry variant with custom keywords: Name and
Description. You can find the definition in the following link:

https://git.gnome.org/browse/libpeas/tree/libpeas/peas-plugin-info.c

libpeas is the default library chosen for plugins regarding GNOME
applications, so those applications would benefit from this patch.
Examples of those applications could be: totem[1], gnome-todo[2],
gedit[3], etc.

The first patch adds plugin file support to xgettext in order to
extract translatable strings. The second patch adds plugin file
support to msgfmt in order to generate plugin files. Finally, the
third patch adds a new example program which uses libpeas as a plugin
system and translates plugin files using previous changes,

Any suggestions you may have would be greatly appreciated,

Best regards,

[0] https://wiki.gnome.org/Projects/Libpeas
[1] https://wiki.gnome.org/Apps/Videos
[2] https://wiki.gnome.org/Apps/Todo
[3] https://wiki.gnome.org/Apps/Gedit

2017-06-05 13:42 GMT+02:00 Iñigo Martínez <address@hidden>:
> Hello,
>
> Recently I have been working on migrating totem[0] from Intltool to a
> modern Gettext version[1], but I have faced a problem with libpeas
> plugin files[2], which are a Desktop Entry variant[3].
>
> While there are different workarounds, libpeas is the default library
> choosen for plugins regarding GNOME applications, so I've decided to
> solve this problem properly and I've working on its support on
> gettext.
>
> At the moment, I have only added support for extracting text and I
> would like to know if my approach is the best way to do it while I
> continue working on it.
>
> You can find attach a patch with those changes. Any suggestion is welcome.
>
> Best regards,
>
> [0] https://wiki.gnome.org/Apps/Videos
> [1] https://bugzilla.gnome.org/show_bug.cgi?id=783316
> [2] https://bugzilla.gnome.org/show_bug.cgi?id=783316#c10
> [3] https://git.gnome.org/browse/libpeas/tree/libpeas/peas-plugin-info.c

Attachment: 0001-Added-support-for-plugin-file-string-extraction-in-x.patch
Description: Text Data

Attachment: 0002-Added-support-for-plugin-file-generation-with-msgfmt.patch
Description: Text Data

Attachment: 0003-Created-a-new-example-program-for-translating-plugin.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]