Re: Add support for Feeds

There are a couple of options, here:

1. add some custom target rule that does a pass of xgettext on the Blueprint files, using the `--language` command line argument to tell it to use the same rules as C files
2. use some script to extract the translatable strings into a C source file that does not get compiled, but is used by xgettext to extract the strings
3. commit the generated XML files, and let xgettext use those instead of the Blueprint files; this also avoids requiring the blueprint compiler when building your project from release tarballs
4. change the Blueprint syntax not to look like Vala or C, and instead use some custom marker; then blueprint can ship an ITS and LOC file pair to let xgettext know how to extract the files

To be quite honest, I'd recommend the last approach; the C syntax is obscure and weird.


On Sun, 5 Dec 2021 at 15:13, Zander Brown <zbrown gnome org> wrote:
On Sun, 2021-12-05 at 12:07 +0100, Piotr Drąg via gnome-i18n wrote:
> What are these, why are they needed, what can we do to fix or
> at least work around the problem?

It's the new ‘Blueprint’ language, not played with it myself but I *think*
treating it as C will work for string extraction


gnome-i18n mailing list
gnome-i18n gnome org

[@] ebassi []

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