mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
allow downstream maintainers to specify a static locale path
This commit is contained in:
parent
527e8714b2
commit
0faf3f4bce
@ -33,6 +33,8 @@ from gettext import gettext as _, ngettext, textdomain, bindtextdomain
|
||||
textdomain("mpdevil")
|
||||
if os.path.isfile("/.flatpak-info"): # test for flatpak environment
|
||||
bindtextdomain("mpdevil", "/app/share/locale")
|
||||
else:
|
||||
bindtextdomain("mpdevil", localedir=None) # replace "None" by a static path if needed (e.g when installing on a non-FHS distro)
|
||||
|
||||
VERSION="1.1.1-dev" # sync with setup.py
|
||||
COVER_REGEX=r"^\.?(album|cover|folder|front).*\.(gif|jpeg|jpg|png)$"
|
||||
|
Loading…
Reference in New Issue
Block a user