summaryrefslogtreecommitdiffstats
path: root/twin
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-12 12:07:41 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-12 12:07:41 +0900
commit9ba68726b5f486af09b7e1d6dd3cd2a8394e2ea4 (patch)
tree240f792c2264cd32410a4b67012d69b0684c8252 /twin
parent75a74bedaee5c942c8d3cf8d353b33f10cf460b2 (diff)
downloadtdebase-9ba68726b5f486af09b7e1d6dd3cd2a8394e2ea4.tar.gz
tdebase-9ba68726b5f486af09b7e1d6dd3cd2a8394e2ea4.zip
twin: avoid adding strings from lib subfolders in two .pot files
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'twin')
-rw-r--r--twin/CMakeL10n.txt1
-rw-r--r--twin/killer/killer.cpp1
-rw-r--r--twin/main.cpp1
-rw-r--r--twin/resumer/resumer.cpp1
4 files changed, 4 insertions, 0 deletions
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 );