Subject: Re: [bug#52736] [PATCH] home: services: Make strings in Gexps translateble.
From: Ludovic Courtès <[email-masked]>
To: Xinglu Chen <[email-masked]>
Cc: [email-masked]
Date: Mon, 03 Jan 2022 15:10:52 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Xinglu Chen <[email-masked]> skribis:

> * gnu/home/services.scm (%initialize-gettext): New variable.
> (compute-on-first-login-script): Use it.
> (compute-on-change-gexp): Likewise.
> * gnu/home/services/symlink-manager.scm (update-symlinks-script): Likewise.
> * po/guix/POTFILES.in: Add gnu/home-services.scm and
> gnu/home/services/symlink-manager.scm.
>
> Suggested-by: Ludovic Courtès <[email-masked]>
> Link: <https://yhetil.org/guix-bugs/[email-masked]>

Applied with a fix in POTFILES.in (the file names were incorrect).

> Is there a way to test if these strings are actually translatable
> without pushing this to the Git repo and going to Weblate to check?

Yes, you can run:

  # Regenerate the “PO template”.
  make -C po/guix guix.pot-update

  # Check whether it contains the new strings.
  grep "XDG_RUNTIME_DIR does" po/guix/guix.pot

Thank you!

Ludo’.