Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enable translations for some components that were missing them

  • Loading branch information...
commit bec626aeaa6a5ee15764f355ef7d8a9fdbed6e70 1 parent 9f235d7
@amoskvin amoskvin authored
View
1  razorqt-autosuspend/config/CMakeLists.txt
@@ -67,6 +67,7 @@ add_executable ( ${PROJECT_NAME}
${UIS}
${MOCS}
${DESKTOP_FILES}
+ ${QM_FILES}
)
target_link_libraries ( razor-config-autosuspend
View
4 razorqt-autosuspend/config/main.cpp
@@ -26,11 +26,13 @@
* END_COMMON_COPYRIGHT_HEADER */
#include <razorqt/razorapplication.h>
+#include "razortranslate.h"
#include "mainwindow.h"
+
int main(int argc, char *argv[])
{
-
RazorApplication a(argc, argv);
+ TRANSLATE_APP;
MainWindow mainWindow;
mainWindow.show();
View
2  razorqt-config/razor-config-mouse/main.cpp
@@ -13,6 +13,7 @@
#include <qtxdg/xdgicon.h>
#include <razorqt/razorsettings.h>
#include "main.h"
+#include "razortranslate.h"
#include <razorqt/razorapplication.h>
#include <QtCore/QFile>
@@ -30,6 +31,7 @@ int main (int argc, char *argv[])
//QTextCodec::setCodecForLocale(QTextCodec::codecForName("koi8-r"));
RazorApplication app(argc, argv);
+ TRANSLATE_APP;
//qDebug() << findDefaultTheme() << getCurrentTheme();
View
2  razorqt-config/src/CMakeLists.txt
@@ -41,7 +41,7 @@ razor_translate_desktop(DESKTOP_FILES
)
#************************************************
-add_executable ( razor-config ${razor-config_SRCS} ${UIS} ${MOCS} ${DESKTOP_FILES})
+add_executable ( razor-config ${razor-config_SRCS} ${UIS} ${MOCS} ${DESKTOP_FILES} ${QM_FILES})
add_dependencies( razor-config razorqt qtxdg)
target_link_libraries ( razor-config
${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY}
View
4 razorqt-config/src/main.cpp
@@ -25,13 +25,15 @@
*
* END_COMMON_COPYRIGHT_HEADER */
-#include "razorqt/razorapplication.h"
+#include <razorqt/razorapplication.h>
+#include "razortranslate.h"
#include "mainwindow.h"
int main(int argc, char **argv)
{
RazorApplication app(argc, argv);
+ TRANSLATE_APP;
RazorConfig::MainWindow w;
w.show();
View
3  razorqt-desktop/config/main.cpp
@@ -31,12 +31,13 @@
#include <razorqt/razorsettings.h>
#include "desktopconfigwindow.h"
-
+//#include "razortranslate.h"
int main(int argc, char** argv)
{
// TODO/FIXME: maybe singleapp?
RazorApplication a(argc, argv);
+ //TRANSLATE_APP;
DesktopConfigWindow w;
w.show();
View
2  razorqt-desktop/desktop-razor/plugin-analogclock/CMakeLists.txt
@@ -34,7 +34,6 @@ set(PROGRAM "razor-desktop")
set(PROG_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/razor/${PROGRAM})
set(PLUGIN_SHARE_DIR ${PROG_SHARE_DIR}/${PLUGIN})
-file (GLOB TS_FILES translations/*.ts )
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/../../libraries
@@ -73,4 +72,3 @@ target_link_libraries(${PROJECT} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} deskto
install(TARGETS ${PROJECT} DESTINATION ${DESKTOP_PLUGIN_DIR})
install(FILES ${DESKTOP_FILES} DESTINATION share/razor/razor-desktop/)
-#install(FILES ${QM_FILES} DESTINATION ${PLUGIN_SHARE_DIR})
View
8 razorqt-desktop/desktop-razor/plugin-helloworld/CMakeLists.txt
@@ -20,6 +20,11 @@ set(PROJECT "${PLUGIN}")
project(${PROJECT})
+set(PROGRAM "razor-desktop")
+
+set(PROG_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/razor/${PROGRAM})
+set(PLUGIN_SHARE_DIR ${PROG_SHARE_DIR}/${PLUGIN})
+
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}/../../libraries
${CMAKE_CURRENT_SOURCE_DIR}/../
@@ -28,6 +33,7 @@ include_directories (
qt4_wrap_cpp(HW_MOC_SOURCES ${HW_MOCS})
qt4_add_resources(QRC_SOURCES ${RESOURCES})
+
# Translations **********************************
include(RazorTranslate)
@@ -52,5 +58,3 @@ add_dependencies(${PROJECT} razorqt desktop-razor)
install(TARGETS ${PROJECT} DESTINATION ${DESKTOP_PLUGIN_DIR})
install(FILES ${DESKTOP_FILES} DESTINATION share/razor/razor-desktop/)
-install(FILES ${QM_FILES} DESTINATION ${PLUGIN_SHARE_DIR})
-
View
5 razorqt-desktop/desktop-razor/plugin-iconview/CMakeLists.txt
@@ -26,6 +26,10 @@ set(PROJECT "${PLUGIN}")
project(${PROJECT})
+set(PROGRAM "razor-desktop")
+
+set(PROG_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/razor/${PROGRAM})
+set(PLUGIN_SHARE_DIR ${PROG_SHARE_DIR}/${PLUGIN})
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}/../../libraries
@@ -62,4 +66,3 @@ target_link_libraries(${PROJECT} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} deskto
install(TARGETS ${PROJECT} DESTINATION ${DESKTOP_PLUGIN_DIR})
install(FILES ${DESKTOP_FILES} DESTINATION share/razor/razor-desktop/)
-install(FILES ${QM_FILES} DESTINATION ${PLUGIN_SHARE_DIR})
View
7 razorqt-desktop/desktop-razor/plugin-notepad/CMakeLists.txt
@@ -22,6 +22,11 @@ set(PROJECT "${PLUGIN}")
project(${PROJECT})
+set(PROGRAM "razor-desktop")
+
+set(PROG_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/razor/${PROGRAM})
+set(PLUGIN_SHARE_DIR ${PROG_SHARE_DIR}/${PLUGIN})
+
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}/../../librazorqt
${CMAKE_CURRENT_SOURCE_DIR}/../
@@ -30,6 +35,7 @@ include_directories (
qt4_wrap_cpp(HW_MOC_SOURCES ${HW_MOCS})
qt4_add_resources(QRC_SOURCES ${RESOURCES})
+
# Translations **********************************
include(RazorTranslate)
@@ -54,4 +60,3 @@ add_dependencies(${PROJECT} razorqt)
install(TARGETS ${PROJECT} DESTINATION ${DESKTOP_PLUGIN_DIR})
install(FILES ${DESKTOP_FILES} DESTINATION share/razor/razor-desktop/)
-install(FILES ${QM_FILES} DESTINATION ${PLUGIN_SHARE_DIR})
View
2  razorqt-globalkeyshortcuts/config/CMakeLists.txt
@@ -35,7 +35,7 @@ set(LIBRARIES
# Translations **********************************
-razor_translate_ts(razor-sessioncfg_QM_FILES
+razor_translate_ts(QM_FILES
SOURCES
${H_FILES}
${CPP_FILES}
View
51 razorqt-globalkeyshortcuts/config/main.cpp
@@ -1,36 +1,39 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
- * (c)LGPL2+
- *
- * Razor - a lightweight, Qt based, desktop toolset
- * http://razor-qt.org
- *
- * Copyright: 2012 Razor team
- * Authors:
- *   Aaron Lewis <the.warl0ck.1989@gmail.com>
- *
- * This program or library is free software; you can redistribute it
- * and/or modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
+ * (c)LGPL2+
+ *
+ * Razor - a lightweight, Qt based, desktop toolset
+ * http://razor-qt.org
+ *
+ * Copyright: 2012 Razor team
+ * Authors:
+ * Aaron Lewis <the.warl0ck.1989@gmail.com>
+ *
+ * This program or library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301 USA
- *
- * END_COMMON_COPYRIGHT_HEADER */
+ * You should have received a copy of the GNU Lesser General
+ * Public License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA
+ *
+ * END_COMMON_COPYRIGHT_HEADER */
#include <razorqt/razorapplication.h>
+#include "razortranslate.h"
#include "shortcuteditor.h"
int main(int argc, char *argv[])
{
RazorApplication a(argc, argv);
+ TRANSLATE_APP;
+
ShortcutEditor w;
w.show();
Please sign in to comment.
Something went wrong with that request. Please try again.