From 9ba68726b5f486af09b7e1d6dd3cd2a8394e2ea4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 12 Sep 2023 12:07:41 +0900 Subject: twin: avoid adding strings from lib subfolders in two .pot files Signed-off-by: Michele Calgaro --- twin/CMakeL10n.txt | 1 + twin/killer/killer.cpp | 1 + twin/main.cpp | 1 + twin/resumer/resumer.cpp | 1 + 4 files changed, 4 insertions(+) (limited to 'twin') diff --git a/twin/CMakeL10n.txt b/twin/CMakeL10n.txt index 11540e442..07bc99559 100644 --- a/twin/CMakeL10n.txt +++ b/twin/CMakeL10n.txt @@ -5,6 +5,7 @@ tde_l10n_create_template( EXCLUDES "^clients/" "^kcmtwin/" + "^lib/" ) tde_l10n_auto_add_subdirectories( ) diff --git a/twin/killer/killer.cpp b/twin/killer/killer.cpp index bf763e7c1..0c687e79e 100644 --- a/twin/killer/killer.cpp +++ b/twin/killer/killer.cpp @@ -46,6 +46,7 @@ static const TDECmdLineOptions options[] = int main( int argc, char* argv[] ) { TDELocale::setMainCatalogue( "twin" ); // the messages are in twin's .po file + TDELocale::insertCatalogue( "twin_lib" ); TDECmdLineArgs::init( argc, argv, "twin_killer_helper", I18N_NOOP( "TWin" ), I18N_NOOP( "TWin helper utility" ), "1.0" ); TDECmdLineArgs::addCmdLineOptions( options ); diff --git a/twin/main.cpp b/twin/main.cpp index e3e3c6ea3..b3b20c665 100644 --- a/twin/main.cpp +++ b/twin/main.cpp @@ -310,6 +310,7 @@ KDE_EXPORT int kdemain( int argc, char * argv[] ) } TDEGlobal::locale()->setMainCatalogue("twin"); + TDELocale::insertCatalogue("twin_lib"); TDEAboutData aboutData( "twin", I18N_NOOP("TWin"), version, description, TDEAboutData::License_GPL, diff --git a/twin/resumer/resumer.cpp b/twin/resumer/resumer.cpp index 3c915b8c8..154f7b4cf 100644 --- a/twin/resumer/resumer.cpp +++ b/twin/resumer/resumer.cpp @@ -45,6 +45,7 @@ static const TDECmdLineOptions options[] = int main( int argc, char* argv[] ) { TDELocale::setMainCatalogue( "twin" ); // the messages are in twin's .po file + TDELocale::insertCatalogue( "twin_lib" ); TDECmdLineArgs::init( argc, argv, "twin_resume_helper", I18N_NOOP( "TWin" ), I18N_NOOP( "TWin helper utility" ), "1.0" ); TDECmdLineArgs::addCmdLineOptions( options ); -- cgit v1.2.1