Allow relocating locales to the system directory on Linux

Toshio Kuratomi avatarToshio Kuratomi created an issue

I'm helping maintain the sphinx package in Fedora and we recently got a request to move the locale files and javascript files holding translations into the directories that are proper under Linux. The reporter sent a patch that Debian Linux has been using for a while. I took a look and modified the Debian patch so that we first search for the locales where sphinx installs them by default (in a locale subdirectory of the sphinx package directory and if not found there, looks in sys.prefix + share/locale (the default directory)

This should let things continue working the same way unless the system packager moves the locale files manually.

Comments (2)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.