[Shotwell] Bug fixes (Was: Shotwell - Thoughts on work-flow and extensions)

Lucas Beeler lucas at yorba.org
Mon May 31 10:45:27 PDT 2010


Hi Bruno,

   The GNU gettext suite (see http://www.gnu.org/software/gettext/ for
more information), provides the standard mechanism for
internationalization support on Linux platforms and defines the PO
file format. The suite contains about 15 command line tools, a dynamic
library for runtime support, and headers and stub libraries for
development. At Yorba, we've done a considerable amount of work to
make the gettext tool suite work with the Vala language and to develop
an internationalization workflow. What's more, we've done all of these
things with the aim of the making internationalization as painless and
transparent as possible for developers like you.

   Essentially, the only thing you need to do to as a developer to
plug into the Yorba internationalization workflow is to enclose all of
your translatable strings in gettext markup, which is simply an
underscore and a pair of parentheses. For example, if you'd normally
set the caption text of an on-screen widget by making a method call
like:

    widget.set_caption_text("Publish");

you'd simply alter your code to look like:

    widget.set_caption_text(_("Publish"));

marking up the string "Publish" to let gettext know that it's
translatable. The gettext suite then handles string extraction and POT
template file generation automatically.

   Thanks for your interest in Shotwell and your intended contribution.

Regards,
Lucas

On Sun, May 30, 2010 at 5:02 AM, Bruno Girin <brunogirin at gmail.com> wrote:
> On Tue, 2010-05-25 at 11:37 -0700, Adam Dingle wrote:
> <snip>
>> #1954       show exposure bias in Extended Information
>
> I decided to have a go at solving this one. I now have working code but
> I also have a question: how are the .po files updated? Do you have to
> add new strings manually or is there a way to generate the list of
> translatable strings from the code?
>
> Bruno
>
>
> _______________________________________________
> Shotwell mailing list
> Shotwell at lists.yorba.org
> http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell
>



More information about the Shotwell mailing list