From: Julien Lepiller <julien@lepiller.eu>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>,
Meiyo Peng <meiyo@riseup.net>
Cc: Guix-devel <guix-devel@gnu.org>, bug-guix@gnu.org
Subject: Re: Some manual @ref @xref @pxref fail when untranslated
Date: Sat, 18 May 2019 09:40:42 +0200 [thread overview]
Message-ID: <6AC44E83-CD88-4DB6-AA71-A134378DAAC9@lepiller.eu> (raw)
In-Reply-To: <20190517224826.4cy2aymsxaa5sehz@pelzflorian.localdomain>
Le 18 mai 2019 00:48:26 GMT+02:00, "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> a écrit :
>Meiyo Peng reports at
><https://lists.gnu.org/archive/html/guix-devel/2019-05/msg00275.html>
>
>On Tue, May 14, 2019 at 10:29:35AM +0800, Meiyo Peng wrote:
>> I just find out that the @pxref{Packages with Multiple Outputs} in
>> doc/contributing.texi has to be translated. Or I will get an error
>> while running make:
>>
>> #+begin_example
>> doc/contributing.zh_CN.texi:567: @pxref reference to nonexistent
>node `Packages with Multiple Outputs'
>> #+end_example
>>
>> I guess it's because the node name is in doc/guix.texi (another file
>> than doc/contributing.texi). Any idea?
>>
>
>The reason appears to be that when not translating (using the first
>attached patch that reverts back to @pxref{Packages with Multiple
>Outputs}), po4a-translate transforms
>
>@item
>Take a look at the profile reported by @command{guix size}
>(@pxref{Invoking guix size}). This will allow you to notice references
>to other packages unwillingly retained. It may also help determine
>whether to split the package (@pxref{Packages with Multiple Outputs}),
>and which optional dependencies should be used. In particular, avoid
>adding
>@code{texlive} as a dependency: because of its extreme size, use
>@code{texlive-tiny} or @code{texlive-union} instead.
>
>to
>
>@item
>看一下@command{guix size}(@pxref{Invoking guix
>size})的分析报告。这会让你注意到对其它软件包无意中的引用。它也可以帮助决定是否要把一个软件包分割成几个输出(@pxref{Packages
>with Multiple
>Outputs}),以及需要使用哪些可选的依赖。特别地,避免把@code{texlive}添加为依赖:因为它太大了,请使用@code{texlive-tiny}或@code{texlive-union}代替它。
>
>with the pxref split over three lines because the surrounding context
>has no space characters. doc/local.mk’s xref_command can only deal
>with two lines however.
>
>The second attached patch makes xref_command grep three-line
>references too, so it finds the translation, *however* I cannot get
>this multiline sed to actually insert the translation into three line
>references. Perhaps it would be better to just replace this complex
>xref_command with Guile code? I will not do it however.
>
>I am Cc’ing the bug-guix@gnu.org; I hope this is OK.
>
>Regards,
>Florian
We have some guile code for doing exactly that in guix pull, so we could reuse it here.
next prev parent reply other threads:[~2019-05-18 7:40 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-23 13:33 Translation of the Guix manual & node names Ludovic Courtès
2019-04-23 13:52 ` Julien Lepiller
2019-04-23 21:48 ` Miguel
2019-04-23 21:56 ` Laura Lazzati
2019-04-26 11:01 ` Miguel
2019-04-23 21:59 ` Julien Lepiller
2019-04-23 22:45 ` Ludovic Courtès
2019-04-24 7:08 ` Meiyo Peng
2019-04-24 7:24 ` Julien Lepiller
2019-05-14 2:29 ` Meiyo Peng
2019-05-17 22:48 ` bug#35786: Some manual @ref @xref @pxref fail when untranslated pelzflorian (Florian Pelz)
2019-05-18 7:40 ` Julien Lepiller [this message]
2019-05-23 4:05 ` Meiyo Peng
2022-06-11 11:24 ` bug#35786: " pelzflorian (Florian Pelz)
2019-04-23 18:11 ` Translation of the Guix manual & node names Meiyo Peng
2019-04-24 6:44 ` pelzflorian (Florian Pelz)
2019-04-24 7:31 ` Julien Lepiller
2019-04-24 8:51 ` pelzflorian (Florian Pelz)
2019-04-24 9:24 ` Julien Lepiller
2019-04-24 10:36 ` pelzflorian (Florian Pelz)
2019-04-25 8:56 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6AC44E83-CD88-4DB6-AA71-A134378DAAC9@lepiller.eu \
--to=julien@lepiller.eu \
--cc=bug-guix@gnu.org \
--cc=guix-devel@gnu.org \
--cc=meiyo@riseup.net \
--cc=pelzflorian@pelzflorian.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.