Absolute path instead of relative path being used in translatable (.pot and .po) files

113 views
Skip to first unread message

Harmon

unread,
Jan 11, 2020, 1:14:51 PM1/11/20
to sphinx-users
When I use 
make gettext
the .pot files it generates all use the absolute path to the relevant .rst files.

This applies to the .po files when I generate those afterwards as well.

All the .pot and .po files that I normally see use a relative path like
#: ../../whatever.rst:1

What's happening here, and how can I set it to use the relative path instead?


Thanks,
Harmon

Komiya Takeshi

unread,
Jan 11, 2020, 10:53:11 PM1/11/20
to sphinx...@googlegroups.com
Hi Harmon,

Indeed, that is strange. I got absolute paths with Sphinx-2.3.0 and
small project on my local. What Sphinx versions do you use? What will
happen with the Sphinx project just after quickstart'ed?

Thanks,
Takeshi KOMIYA

2020年1月12日(日) 3:14 Harmon <harm...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/cdfe7821-b195-42a0-b198-e4106bc93191%40googlegroups.com.

Harmon

unread,
Jan 12, 2020, 3:31:50 AM1/12/20
to sphinx-users
I was using Sphinx v2.3.1.
After some testing, I've pinpointed the issue to Sphinx >= 2.3.0.
Sphinx v2.2.2 uses the relative path as before.
I don't think quickstart has anything to do with it.
I believe I've found the change that caused this, and I've filed an issue at https://github.com/sphinx-doc/sphinx/issues/7019.

Thanks,
Harmon


On Saturday, January 11, 2020 at 9:53:11 PM UTC-6, Komiya Takeshi wrote:
Hi Harmon,

Indeed, that is strange. I got absolute paths with Sphinx-2.3.0 and
small project on my local. What Sphinx versions do you use? What will
happen with the Sphinx project just after quickstart'ed?

Thanks,
Takeshi KOMIYA

2020年1月12日(日) 3:14 Harmon <harm...@gmail.com>:
>
> When I use
> make gettext
> the .pot files it generates all use the absolute path to the relevant .rst files.
>
> This applies to the .po files when I generate those afterwards as well.
>
> All the .pot and .po files that I normally see use a relative path like
> #: ../../whatever.rst:1
>
> What's happening here, and how can I set it to use the relative path instead?
>
> Thanks,
> Harmon
>
> --
> You received this message because you are subscribed to the Google Groups "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sphinx...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages