Skip to content

Commit

Permalink
rename to match system locale dir name
Browse files Browse the repository at this point in the history
  • Loading branch information
schorschii committed Feb 15, 2024
1 parent b8102b1 commit cc81f25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
LANGFILES := $(shell find locales/ -name "*.po")
LANGFILES := $(shell find locale/ -name "*.po")

.DEFAULT_GOAL := default
.PHONY: default
default: $(LANGFILES:.po=.mo)

locales/%/LC_MESSAGES/Companion4Linux.mo : locales/%/LC_MESSAGES/Companion4Linux.po
locale/%/LC_MESSAGES/Companion4Linux.mo : locale/%/LC_MESSAGES/Companion4Linux.po
msgfmt $< -o $@
6 changes: 3 additions & 3 deletions companion2.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ def main():
Notify.init(APP_NAME)

# init translations
if(os.path.isdir("locales")):
# use translations in working dir if avail, otherwise /usr/share/locales is used
gettext.bindtextdomain(APP_NAME, "locales")
if(os.path.isdir("locale")):
# use translations in working dir if avail, otherwise /usr/share/locale is used
gettext.bindtextdomain(APP_NAME, "locale")
print("using local locales")
else:
print("using global locales")
Expand Down
File renamed without changes.

0 comments on commit cc81f25

Please sign in to comment.