From 977d3b0d7e68a2ae855bba1dc1688cd25fcc34c8 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 4 Feb 2018 23:01:59 -0500 Subject: fix make locales --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f8c4d35f..dfb5fa36 100644 --- a/Makefile +++ b/Makefile @@ -21,14 +21,14 @@ messages.po: embroider*.py inkstitch.py .PHONY: locales locales: # message files will look like this: - # translations/messages-en_US.po + # translations/messages_en_US.po if ls translations/*.po > /dev/null 2>&1; then \ for po in translations/*.po; do \ - lang=$${po%.po}; \ - lang=$${lang#messages-}; \ + lang=$${po%.*}; \ + lang=$${lang#*_}; \ mkdir -p locales/$$lang/LC_MESSAGES/; \ msgfmt $$po -o locales/$$lang/LC_MESSAGES/inkstitch.mo; \ done; \ else \ - mkdir locales; \ + mkdir -p locales; \ fi -- cgit v1.2.3