From fe7addc0b01c53978088040713517715f45e983c Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 20 May 2021 07:58:42 +0200 Subject: [PATCH] (Re-)generate .pot file by default, update readme. --- .gitignore | 1 + CMakeLists.txt | 2 +- README.adoc | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 64ef882..a26b784 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /build/ /doc/ /examples/example99* +/translations/*.pot /translations/de diff --git a/CMakeLists.txt b/CMakeLists.txt index 6904344..fbb5835 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") # Project build options. option(WITH_TESTS "Compile tests." NO) -option(GENERATE_POT "Generate / Update .pot file" NO) +option(GENERATE_POT "Generate / Update .pot file" YES) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/README.adoc b/README.adoc index cc90223..b6b6bfd 100644 --- a/README.adoc +++ b/README.adoc @@ -9,6 +9,7 @@ :uri-clang: https://clang.llvm.org/ :uri-cmake: https://cmake.org/ :uri-catch: https://github.com/catchorg/Catch2 +:uri-gettext: https://www.gnu.org/software/gettext/ *{project}* is a search tool for EPUB ebooks. @@ -35,6 +36,7 @@ image::https://repology.org/badge/vertical-allrepos/epubgrep.svg[] * C\++ compiler with C++17 support (tested: link:{uri-gcc}[GCC] 7/10, link:{uri-clang}[clang] 6/11) * link:{uri-cmake}[CMake] (at least: 3.12) +* link:{uri-gettext}[gettext] (tested: 0.21) * Optional ** Tests: link:{uri-catch}[Catch] (tested: 2.5 / 1.2) @@ -63,5 +65,7 @@ cmake --build . -- --jobs=$(nproc --ignore=1) .CMake options: * `-DCMAKE_BUILD_TYPE=Debug` for a debug build. * `-DWITH_TESTS=YES` if you want to compile the tests. +* `-DGENERATE_POT=NO` to not (re-)generate the .pot file. + ** `-DXGETTEXT_CMD=String` The program to use instead of `xgettext`. include::{uri-base}/raw/branch/main/CONTRIBUTING.adoc[]