Add gettext processing to Cmake build instructions

This commit is contained in:
Robin Stuart
2020-11-21 21:52:27 +00:00
parent b765ea1918
commit cc2ff81205
15 changed files with 714 additions and 87 deletions

View File

@ -0,0 +1,9 @@
PROJECT(zint_po)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../")
set(GettextTranslate_ALL true)
set(GettextTranslate_GMO_BINARY true)
include(GettextTranslate)
GettextTranslate()

1
backend/po/LINGUAS Normal file
View File

@ -0,0 +1 @@
ru

15
backend/po/Makevars Normal file
View File

@ -0,0 +1,15 @@
# Makefile variables for PO directory in any package using GNU gettext.
# Usually the message domain is the same as the package name.
DOMAIN = libzint
# These two variables depend on the location of this directory.
subdir = po
top_builddir = ..
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=_ --language=C --sort-output --from-code=UTF-8 --foreign-user --no-wrap
# This is the email address or URL to which the translators shall report
# bugs in the untranslated strings
MSGID_BUGS_ADDRESS = rstuart114@gmail.com

1
backend/po/POTFILES.in Normal file
View File

@ -0,0 +1 @@

View File

@ -1,6 +1,6 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# This file is distributed under the same license as the libzint package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: libzint 2.9\n"
"Report-Msgid-Bugs-To: rstuart114@gmail.com\n"
"POT-Creation-Date: 2020-11-21 16:40+0000\n"
"POT-Creation-Date: 2020-11-21 19:34+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"