Fixed Makefile localisation install

pull/86/head
parent bad0528c9b
commit 7acf98a85b

@ -14,6 +14,9 @@ PKGNAME = $(MAKEFILE_DIR)
FILE_VER = source/${PKGNAME}.h FILE_VER = source/${PKGNAME}.h
PKGIDENT=$(subst /,-,${PREFIX}) PKGIDENT=$(subst /,-,${PREFIX})
FILE_MO := $(PKGNAME).mo
LOCALE_DIR := ./locale
default_target: all default_target: all
.PHONY: all init depend debug prepare check build uninstall install clean help .PHONY: all init depend debug prepare check build uninstall install clean help
@ -104,16 +107,12 @@ uninstall:
install: check uninstall install: check uninstall
@echo "Install ..." @echo "Install ..."
@for FILE_PO in $(wildcard *.po); do \ @for po in $(LOCALE_DIR)/$(PKGNAME)_*.po; do \
LANG=$${FILE_PO##*_};LANG=$${LANG%.*}; \ lang=$$(basename $$po | sed -E 's/^$(PKGNAME)_([^.]+)\.po$$/\1/'); \
install -dm755 "${DESTDIR}/usr/share/locale/$${LANG}/LC_MESSAGES"; \ file=$$(find ./locale/ -name '*_'"$$lang"'.po'); \
FILE_MO=$${FILE_PO##*/}; FILE_MO="$${FILE_MO%_*.po}.mo"; \ msgfmt $$file -v -f -o ${DESTDIR}/usr/share/locale/$$lang/LC_MESSAGES/$(FILE_MO); \
PATH_FILE_MO="${DESTDIR}/usr/share/locale/$${LANG}/LC_MESSAGES/$${FILE_MO}"; \
echo "$${FILE_PO}"; \
msgfmt "$${FILE_PO}" -v -f -o "$${PATH_FILE_MO}"; \
done done
@mkdir -p ./locale
@msgcat $(wildcard *.pot) | msgfmt -o ./locale/common.mo -
@for SIZE in 16 32 48; do \ @for SIZE in 16 32 48; do \
install -dm755 "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}x$${SIZE}/apps"; \ install -dm755 "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}x$${SIZE}/apps"; \
rsvg-convert -w $${SIZE} -h $${SIZE} -f svg --keep-image-data "com.ublinux.${PKGNAME}.svg" -o "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}x$${SIZE}/apps/com.ublinux.${PKGNAME}.svg"; \ rsvg-convert -w $${SIZE} -h $${SIZE} -f svg --keep-image-data "com.ublinux.${PKGNAME}.svg" -o "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}x$${SIZE}/apps/com.ublinux.${PKGNAME}.svg"; \

@ -22,15 +22,9 @@ msgstr ""
msgid "Description" msgid "Description"
msgstr "" msgstr ""
#: ./grub-parameters.csv:2
msgid "Disable Plymouth"
msgstr ""
#: ./grub-parameters.csv:3
msgid "Disable Plymouth"
msgstr ""
#: ./grub-parameters.csv:4 #: ./grub-parameters.csv:4
#: ./grub-parameters.csv:3
#: ./grub-parameters.csv:2
msgid "Disable Plymouth" msgid "Disable Plymouth"
msgstr "" msgstr ""
@ -135,13 +129,7 @@ msgid "Prevents the processor from going into a deep sleep state (default:9) (in
msgstr "" msgstr ""
#: ./grub-parameters.csv:30 #: ./grub-parameters.csv:30
msgid "Eliminates flickering laptop display on Ultra Voltage processors (int)"
msgstr ""
#: ./grub-parameters.csv:31 #: ./grub-parameters.csv:31
msgid "Eliminates flickering laptop display on Ultra Voltage processors (int)"
msgstr ""
#: ./grub-parameters.csv:32 #: ./grub-parameters.csv:32
msgid "Eliminates flickering laptop display on Ultra Voltage processors (int)" msgid "Eliminates flickering laptop display on Ultra Voltage processors (int)"
msgstr "" msgstr ""

@ -1,27 +1,3 @@
# Russian translations for ubl-settings-bootloader-/home/superadmin/Документы/ubl-settings-bootloader/grub-parameters.csv package.
# Copyright (C) 2022, UBTech LLC
# This file is distributed under the same license as the ubl-settings-bootloader-/home/superadmin/Документы/ubl-settings-bootloader/grub-parameters.csv package.
# UBLinux Team <info@ublinux.com>, 2022
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: ubl-settings-bootloader-/home/superadmin/Документы/ubl-settings-bootloader/grub-parameters.csv 1.0\n"
"Report-Msgid-Bugs-To: support@ublinux.com\n"
"POT-Creation-Date: 2023-01-01 00:00+0600\n"
"PO-Revision-Date: 2025-04-17 23:28+0600\n"
"Last-Translator: ublinux <support@ublinux.ru>\n"
"Language-Team: Russian - UBLinux Team <support@ublinux.ru>\n"
"Language: Russian\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ./grub-parameters.csv:1
msgid "Description"
msgstr "Описание"
#: ./grub-parameters.csv:3 #: ./grub-parameters.csv:3
#: ./grub-parameters.csv:4 #: ./grub-parameters.csv:4
#: ./grub-parameters.csv:2 #: ./grub-parameters.csv:2

@ -1,38 +1,3 @@
# Russian translations for ubl-settings-bootloader-/home/superadmin/Документы/ubl-settings-bootloader/grub-terminal-input.csv package.
# Copyright (C) 2022, UBTech LLC
# This file is distributed under the same license as the ubl-settings-bootloader-/home/superadmin/Документы/ubl-settings-bootloader/grub-terminal-input.csv package.
# UBLinux Team <info@ublinux.com>, 2022
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: ubl-settings-bootloader-/home/superadmin/Документы/ubl-settings-bootloader/grub-terminal-input.csv 1.0\n"
"Report-Msgid-Bugs-To: support@ublinux.com\n"
"POT-Creation-Date: 2023-01-01 00:00+0600\n"
"PO-Revision-Date: 2025-04-17 23:28+0600\n"
"Last-Translator: ublinux <support@ublinux.ru>\n"
"Language-Team: Russian - UBLinux Team <support@ublinux.ru>\n"
"Language: Russian\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ./grub-terminal-input.csv:1
msgid "Description"
msgstr "Описание"
#: ./grub-terminal-input.csv:2
msgid "PC BIOS & EFI console"
msgstr "PC BIOS & EFI консоль"
#: ./grub-terminal-input.csv:3
msgid "Serial terminal"
msgstr "Терминал Serial"
#: ./grub-terminal-input.csv:4
msgid "Open Firmware Console"
msgstr "Консоль Open Firmware"
#: ./grub-terminal-input.csv:5 #: ./grub-terminal-input.csv:5
msgid "PC AT Keyboard (Coreboot)" msgid "PC AT Keyboard (Coreboot)"

@ -1,27 +1,3 @@
# Russian translations for ubl-settings-bootloader-/home/superadmin/Документы/ubl-settings-bootloader/grub-terminal-output.csv package.
# Copyright (C) 2022, UBTech LLC
# This file is distributed under the same license as the ubl-settings-bootloader-/home/superadmin/Документы/ubl-settings-bootloader/grub-terminal-output.csv package.
# UBLinux Team <info@ublinux.com>, 2022
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: ubl-settings-bootloader-/home/superadmin/Документы/ubl-settings-bootloader/grub-terminal-output.csv 1.0\n"
"Report-Msgid-Bugs-To: support@ublinux.com\n"
"POT-Creation-Date: 2023-01-01 00:00+0600\n"
"PO-Revision-Date: 2025-04-17 23:28+0600\n"
"Last-Translator: ublinux <support@ublinux.ru>\n"
"Language-Team: Russian - UBLinux Team <support@ublinux.ru>\n"
"Language: Russian\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ./grub-terminal-output.csv:1
msgid "Description"
msgstr "Описание"
#: ./grub-terminal-output.csv:2 #: ./grub-terminal-output.csv:2
msgid "PC BIOS & EFI console" msgid "PC BIOS & EFI console"
msgstr "PC BIOS & EFI консоль" msgstr "PC BIOS & EFI консоль"

Loading…
Cancel
Save