From 17193e4f2947460094e1e387e9e2cac84b80facb Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Wed, 21 May 2025 15:26:39 +0600 Subject: [PATCH] Localisation edits --- Makefile | 11 ++-- locale/journals_list.pot | 54 +++++++++++++++++++ locale/journals_list_ru.po | 35 ++++++++++++ locale/logging_services.pot | 30 +++++++++++ locale/logging_services_ru.po | 30 +++++++++++ .../ubl-settings-logging.pot | 0 .../ubl-settings-logging_ru.po | 0 7 files changed, 153 insertions(+), 7 deletions(-) create mode 100644 locale/journals_list.pot create mode 100644 locale/journals_list_ru.po create mode 100644 locale/logging_services.pot create mode 100644 locale/logging_services_ru.po rename ubl-settings-logging.pot => locale/ubl-settings-logging.pot (100%) rename ubl-settings-logging_ru.po => locale/ubl-settings-logging_ru.po (100%) diff --git a/Makefile b/Makefile index f4c8cb4..0a3fbd6 100644 --- a/Makefile +++ b/Makefile @@ -105,13 +105,10 @@ uninstall: install: check uninstall @echo "Install ..." - @for FILE_PO in $(wildcard *.po); do \ - LANG=$${FILE_PO##*_};LANG=$${LANG%.*}; \ - install -dm755 "${DESTDIR}/usr/share/locale/$${LANG}/LC_MESSAGES"; \ - FILE_MO=$${FILE_PO##*/}; FILE_MO="$${FILE_MO%_*.po}.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}"; \ + @for po in $(LOCALE_DIR)/$(PKGNAME)_*.po; do \ + lang=$$(basename $$po | sed -E 's/^$(PKGNAME)_([^.]+)\.po$$/\1/'); \ + file=$$(find ./locale/ -name '*_'"$$lang"'.po'); \ + msgfmt $$file -v -f -o ${DESTDIR}/usr/share/locale/$$lang/LC_MESSAGES/$(FILE_MO); \ done @for SIZE in 16 32 48; do \ install -dm755 "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}x$${SIZE}/apps"; \ diff --git a/locale/journals_list.pot b/locale/journals_list.pot new file mode 100644 index 0000000..06a9598 --- /dev/null +++ b/locale/journals_list.pot @@ -0,0 +1,54 @@ +# Language translations for ubl-settings-logging package. +# Copyright (C) 2025, UBTech LLC +# This file is distributed under the same license as the ubl-settings-logging package. +# UBLinux Team , 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: ubl-settings-logging 1.0\n" +"Report-Msgid-Bugs-To: support@ublinux.com\n" +"POT-Creation-Date: 2025-05-20 00:00+0600\n" +"PO-Revision-Date: 2025-05-20 00:00+0600\n" +"Last-Translator: UBLinux Team \n" +"Language-Team: UBLinux Team \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Log of work and requests to Acpid" +msgstr "" + +msgid "Log of work and requests to the web server" +msgstr "" + +msgid "Audit log" +msgstr "" + +msgid "Log of authorization procedures" +msgstr "" + +msgid "Job scheduler log (cron)" +msgstr "" + +msgid "Log of work and calls to the print server (cups)" +msgstr "" + +msgid "Log of operation and access to system services" +msgstr "" + +msgid "Log of work and access to Samba" +msgstr "" + +msgid "Postfix mail server log" +msgstr "" + +msgid "System log" +msgstr "" + +msgid "X.org display server log" +msgstr "" + +msgid "Graphics X session log" +msgstr "" \ No newline at end of file diff --git a/locale/journals_list_ru.po b/locale/journals_list_ru.po new file mode 100644 index 0000000..360248e --- /dev/null +++ b/locale/journals_list_ru.po @@ -0,0 +1,35 @@ +msgid "Log of work and requests to Acpid" +msgstr "Журнал работы и обращений к Acpid" + +msgid "Log of work and requests to the web server" +msgstr "Журнал работы и обращений к веб-серверу" + +msgid "Audit log" +msgstr "Журнал аудита (audit)" + +msgid "Log of authorization procedures" +msgstr "Журнал процедур авторизации" + +msgid "Job scheduler log (cron)" +msgstr "Журнал работы планировщика заданий (cron)" + +msgid "Log of work and calls to the print server (cups)" +msgstr "Журнал работы и обращений к серверу печати (cups)" + +msgid "Log of operation and access to system services" +msgstr "Журнал работы и обращения к службам системы" + +msgid "Log of work and access to Samba" +msgstr "Журнал работы и обращения к Samba" + +msgid "Postfix mail server log" +msgstr "Журнал почтового сервера Postfix" + +msgid "System log" +msgstr "Системный журнал" + +msgid "X.org display server log" +msgstr "Журнал работы дисплейного сервера X.org" + +msgid "Graphics X session log" +msgstr "Журнал сеансов графической системы X" \ No newline at end of file diff --git a/locale/logging_services.pot b/locale/logging_services.pot new file mode 100644 index 0000000..8c2e07d --- /dev/null +++ b/locale/logging_services.pot @@ -0,0 +1,30 @@ +# Language translations for ubl-settings-logging package. +# Copyright (C) 2025, UBTech LLC +# This file is distributed under the same license as the ubl-settings-logging package. +# UBLinux Team , 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: ubl-settings-logging 1.0\n" +"Report-Msgid-Bugs-To: support@ublinux.com\n" +"POT-Creation-Date: 2025-05-20 00:00+0600\n" +"PO-Revision-Date: 2025-05-20 00:00+0600\n" +"Last-Translator: UBLinux Team \n" +"Language-Team: UBLinux Team \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "System event log" +msgstr "" + +msgid "System event log rotation service" +msgstr "" + +msgid "System event log" +msgstr "" + +msgid "Service for collecting messages from system events of active network devices" +msgstr "" \ No newline at end of file diff --git a/locale/logging_services_ru.po b/locale/logging_services_ru.po new file mode 100644 index 0000000..778a40d --- /dev/null +++ b/locale/logging_services_ru.po @@ -0,0 +1,30 @@ +# Russian translations for ubl-settings-logging package. +# Copyright (C) 2025, UBTech LLC +# This file is distributed under the same license as the ubl-settings-logging package. +# UBLinux Team , 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: ubl-settings-logging 1.0\n" +"Report-Msgid-Bugs-To: support@ublinux.com\n" +"POT-Creation-Date: 2025-05-20 00:00+0600\n" +"PO-Revision-Date: 2025-05-20 00:00+0600\n" +"Last-Translator: ublinux \n" +"Language-Team: Russian - UBLinux Team \n" +"Language: Russian\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "System event log" +msgstr "Системный журнал событий" + +msgid "System event log rotation service" +msgstr "Служба ротации системных журналов событий" + +msgid "System event log" +msgstr "Системный журнал событий" + +msgid "Service for collecting messages from system events of active network devices" +msgstr "Сервис сбора сообщений системных событий активных сетевых устройств" \ No newline at end of file diff --git a/ubl-settings-logging.pot b/locale/ubl-settings-logging.pot similarity index 100% rename from ubl-settings-logging.pot rename to locale/ubl-settings-logging.pot diff --git a/ubl-settings-logging_ru.po b/locale/ubl-settings-logging_ru.po similarity index 100% rename from ubl-settings-logging_ru.po rename to locale/ubl-settings-logging_ru.po