Commit d601eb79 authored by Luigi Toscano's avatar Luigi Toscano
Browse files

Rename the translation catalog (avoid conflicts)

Avoid the conflict with their still-shipped counterparts from
kdelibs and kde-runtime.
parent 3189f81a
add_definitions(-DTRANSLATION_DOMAIN=\"attica_kde\")
add_definitions(-DTRANSLATION_DOMAIN=\"attica_kde_plugin\")
ecm_qt_declare_logging_category(SRCS
HEADER "attica_plugin_debug.h"
......
#! /bin/sh
$XGETTEXT *.cpp -o $podir/attica_kde.pot
$XGETTEXT *.cpp -o $podir/attica_kde_plugin.pot
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_baloofile\")
add_definitions(-DTRANSLATION_DOMAIN=\"kcm5_baloofile\")
set(kcm_file_SRCS
kcm.cpp
......
#! /usr/bin/env bash
$EXTRACTRC `find . -name "*.ui"` >> rc.cpp || exit 11
$XGETTEXT `find . -name "*.cpp"` -o $podir/kcm_baloofile.pot
$XGETTEXT `find . -name "*.cpp"` -o $podir/kcm5_baloofile.pot
rm -f rc.cpp
# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcmcomponentchooser\")
add_definitions(-DTRANSLATION_DOMAIN=\"kcm5_componentchooser\")
add_subdirectory( componentservices )
......
#! /usr/bin/env bash
$EXTRACTRC *.ui >> rc.cpp
$XGETTEXT *.cpp -o $podir/kcmcomponentchooser.pot
$XGETTEXT *.cpp -o $podir/kcm5_componentchooser.pot
# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_emoticons\")
add_definitions(-DTRANSLATION_DOMAIN=\"kcm5_emoticons\")
set(kcmemoticons_SRCS emoticonslist.cpp)
ki18n_wrap_ui(kcmemoticons_SRCS emoticonslist.ui)
......
#!/usr/bin/env bash
$EXTRACTRC *.ui >> rc.cpp
$XGETTEXT *.cpp -o $podir/kcm_emoticons.pot
$XGETTEXT *.cpp -o $podir/kcm5_emoticons.pot
# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcmicons\")
add_definitions(-DTRANSLATION_DOMAIN=\"kcm5_icons\")
add_subdirectory(tests)
......
#! /usr/bin/env bash
$XGETTEXT *.cpp -o $podir/kcmicons.pot
$XGETTEXT *.cpp -o $podir/kcm5_icons.pot
# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcmkded\")
add_definitions(-DTRANSLATION_DOMAIN=\"kcm5_kded\")
add_library(kcm_kded MODULE kcmkded.cpp)
target_link_libraries(kcm_kded KF5::ConfigWidgets KF5::Service KF5::I18n Qt5::DBus)
......
#! /usr/bin/env bash
$XGETTEXT *.cpp -o $podir/kcmkded.pot
$XGETTEXT *.cpp -o $podir/kcm5_kded.pot
# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcmnotify\")
add_definitions(-DTRANSLATION_DOMAIN=\"kcm5_notify\")
########### next target ###############
......
#! /usr/bin/env bash
$EXTRACTRC *.ui >> rc.cpp
$XGETTEXT *.cpp -o $podir/kcmnotify.pot
$XGETTEXT *.cpp -o $podir/kcm5_notify.pot
......@@ -2,7 +2,7 @@ find_package(Phonon4Qt5 4.6.60 NO_MODULE)
include_directories(BEFORE ${PHONON_INCLUDES})
add_definitions(-DPHONON_LIB_SONAME=\"${PHONON_LIB_SONAME}\")
# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_phonon\")
add_definitions(-DTRANSLATION_DOMAIN=\"kcm5_phonon\")
find_package(PulseAudio 0.9.16)
......
......@@ -13,6 +13,6 @@ dirs=`cat dirs`
find $dirs -maxdepth 1 -name "*.cpp" -print > files
find $dirs -maxdepth 1 -name "*.cc" -print >> files
find $dirs -maxdepth 1 -name "*.h" -print >> files
$XGETTEXT --files-from=files -o $podir/kcm_phonon.pot
$XGETTEXT --files-from=files -o $podir/kcm5_phonon.pot
rm -f dirs
rm -f files
#! /usr/bin/env bash
$EXTRACTRC *.ui >> rc.cpp
$XGETTEXT *.cpp *.h -o $podir/knetattach.pot
$XGETTEXT *.cpp *.h -o $podir/knetattach5.pot
rm -f rc.cpp
......@@ -26,7 +26,7 @@
#include "knetattach.h"
int main(int argc, char **argv) {
KLocalizedString::setApplicationDomain("knetattach");
KLocalizedString::setApplicationDomain("knetattach5");
KAboutData aboutData(QLatin1String("knetattach"), i18n("KDE Network Wizard"), PROJECT_VERSION, i18n("KDE Network Wizard"),KAboutLicense::GPL, i18n("(c) 2004 George Staikos"), QLatin1String("http://www.kde.org/"));
......
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_device_automounter\")
add_definitions(-DTRANSLATION_DOMAIN=\"kcm5_device_automounter\")
set(kcm_device_automounter_SRCS DeviceAutomounterKCM.cpp DeviceModel.cpp)
......
#! /bin/sh
$EXTRACTRC *.ui *.kcfg >> rc.cpp
$XGETTEXT *.cpp -o $podir/kcm_device_automounter.pot
$XGETTEXT *.cpp -o $podir/kcm5_device_automounter.pot
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment