Package list fcitx-unikey / upstream/latest
New upstream version 0.2.7 Boyuan Yang 2 years ago
7 changed file(s) with 129 addition(s) and 135 deletion(s). Raw diff Collapse all Expand all
2424 find_package(LibIntl REQUIRED)
2525
2626 if (ENABLE_QT)
27 find_package(Qt4 4.8)
27 find_package(Qt5 5.7 REQUIRED COMPONENTS Core Gui Widgets)
28 find_package(FcitxQt5WidgetsAddons 1.1 REQUIRED)
2829
29 pkg_check_modules(FCITX_QT "fcitx-qt>=4.2.8")
3030 endif (ENABLE_QT)
3131
3232 configure_file(config.h.in config.h)
1515 ${MACRO_EDITOR_SRCS}
1616 ${MACRO_EDITOR_HDRS})
1717
18 if (NOT QT_FOUND OR NOT FCITX_QT_FOUND OR NOT ENABLE_QT)
18 if (NOT ENABLE_QT)
1919 return()
20 endif (NOT QT_FOUND OR NOT FCITX_QT_FOUND OR NOT ENABLE_QT)
20 endif (NOT ENABLE_QT)
2121
2222 include_directories(
23 ${FCITX_QT_INCLUDE_DIRS}
24 ${QT_QTCORE_INCLUDE_DIR}
25 ${QT_QTGUI_INCLUDE_DIR}
2623 ${CMAKE_CURRENT_BINARY_DIR}
2724 ${PROJECT_SOURCE_DIR}/unikey
2825 )
3027 link_directories(
3128 ${FCITX4_FCITX_UTILS_LIBRARY_DIRS}
3229 ${FCITX4_FCITX_CONFIG_LIBRARY_DIRS}
33 ${FCITX_QT_LIBRARY_DIRS}
3430 )
35 qt4_wrap_cpp(MACRO_EDITOR_MOCS ${MACRO_EDITOR_HDRS})
36 qt4_wrap_ui(MACRO_EDITOR_SRCS editor.ui dialog.ui)
31 qt5_wrap_ui(MACRO_EDITOR_SRCS editor.ui dialog.ui)
3732 add_library(fcitx-unikey-macro-editor
3833 MODULE ${MACRO_EDITOR_SRCS} ${MACRO_EDITOR_MOCS})
3934 set_target_properties(fcitx-unikey-macro-editor PROPERTIES
4035 LINK_FLAGS "-Wl,--no-undefined"
36 AUTOMOC TRUE
4137 )
4238 target_link_libraries(fcitx-unikey-macro-editor
43 debug ${QT_QTCORE_LIBRARY_DEBUG}
44 debug ${QT_QTDBUS_LIBRARY_DEBUG}
45 debug ${QT_QTGUI_LIBRARY_DEBUG}
46 optimized ${QT_QTCORE_LIBRARY_RELEASE}
47 optimized ${QT_QTDBUS_LIBRARY_RELEASE}
48 optimized ${QT_QTGUI_LIBRARY_RELEASE}
39 Qt5::Core
40 Qt5::Widgets
41 FcitxQt5::WidgetsAddons
42 LibIntl::LibIntl
4943 unikey
5044 ${FCITX4_FCITX_UTILS_LIBRARIES}
5145 ${FCITX4_FCITX_CONFIG_LIBRARIES}
52 ${FCITX_QT_LIBRARIES}
53 LibIntl::LibIntl
5446 )
5547
5648 install(TARGETS fcitx-unikey-macro-editor DESTINATION ${FCITX4_ADDON_INSTALL_DIR}/qt)
1616 * *
1717 ***************************************************************************/
1818
19 #include <fcitx-qt/fcitxqtconfiguiwidget.h>
19 #include <fcitxqtconfiguiwidget.h>
2020
2121 class CMacroTable;
2222 namespace Ui {
4949 {
5050 return "fcitx-unikey";
5151 }
52
53
54 Q_EXPORT_PLUGIN2 (fcitx_macro_editor, MacroEditorPlugin)
1919 #ifndef _MAIN_H_
2020 #define _MAIN_H_
2121
22 #include <fcitx-qt/fcitxqtconfiguiplugin.h>
22 #include <fcitxqtconfiguiplugin.h>
2323
2424 class MacroEditorPlugin : public FcitxQtConfigUIPlugin {
2525 Q_OBJECT
2626 public:
27 Q_PLUGIN_METADATA(IID FcitxQtConfigUIFactoryInterface_iid FILE "macro-editor.json")
2728 explicit MacroEditorPlugin(QObject* parent = 0);
2829 virtual QString name();
2930 virtual QStringList files();
+114
-112
po/ru.po less more
00 # SOME DESCRIPTIVE TITLE.
11 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
22 # This file is distributed under the same license as the PACKAGE package.
3 #
3 #
44 # Translators:
55 # TotalCaesar659 <x24cm5b8c54q6szxw@yandex.ru>, 2016
66 msgid ""
77 msgstr ""
88 "Project-Id-Version: fcitx\n"
99 "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n"
10 "POT-Creation-Date: 2016-09-17 12:02-0700\n"
11 "PO-Revision-Date: 2016-11-30 23:45+0000\n"
10 "POT-Creation-Date: 2017-09-14 16:03-0700\n"
11 "PO-Revision-Date: 2017-08-03 16:58+0000\n"
1212 "Last-Translator: TotalCaesar659 <x24cm5b8c54q6szxw@yandex.ru>\n"
1313 "Language-Team: Russian (http://www.transifex.com/fcitx/fcitx/language/ru/)\n"
14 "Language: ru\n"
1415 "MIME-Version: 1.0\n"
1516 "Content-Type: text/plain; charset=UTF-8\n"
1617 "Content-Transfer-Encoding: 8bit\n"
17 "Language: ru\n"
18 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
18 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n"
20 "%100>=11 && n%100<=14)? 2 : 3);\n"
1921
2022 #: macro-editor/editor.cpp:41
2123 msgid "&Add"
2527 msgid "&Delete"
2628 msgstr "&Удалить"
2729
28 #: macro-editor/editor.cpp:43
29 msgid "De&lete All"
30 msgstr "Уд&алить все"
30 #: macro-editor/editor.cpp:45
31 msgid "&Export"
32 msgstr "&Экспорт"
3133
3234 #: macro-editor/editor.cpp:44
3335 msgid "&Import"
3436 msgstr "&Импорт"
3537
36 #: macro-editor/editor.cpp:45
37 msgid "&Export"
38 msgstr "&Экспорт"
38 #: src/fcitx-unikey.desc:46
39 msgid "Allow type with more freedom"
40 msgstr "Разрешать тип с большей свободой"
3941
40 #: macro-editor/editor.cpp:48 macro-editor/editor.cpp:76
41 msgid "Unikey Macro Editor"
42 msgstr "Редактор макросов Unikey"
42 #: src/fcitx-unikey.desc:51
43 msgid "Auto restore keys with invalid words"
44 msgstr "Автоматически восстанавливать клавиши при некорректных словах"
4345
44 #: macro-editor/model.cpp:44 src/unikey-ui.cpp:127 src/unikey-ui.cpp:187
45 #: src/fcitx-unikey.conf.in:10
46 msgid "Macro"
47 msgstr "Макрос"
46 #: src/fcitx-unikey.desc:23
47 msgid "BK HCM 2"
48 msgstr "BK HCM 2"
4849
49 #: macro-editor/model.cpp:46
50 msgid "Word"
51 msgstr "Слово"
52
53 #: src/unikey-im.cpp:116 src/fcitx-unikey.conf.in:3 src/unikey.conf.in:3
54 #: src/fcitx-unikey.desc:1 src/fcitx-unikey.desc:14 src/fcitx-unikey.desc:28
55 #: src/fcitx-unikey.desc:33 src/fcitx-unikey.desc:38 src/fcitx-unikey.desc:43
56 #: src/fcitx-unikey.desc:48 src/fcitx-unikey.desc:53
57 msgid "Unikey"
58 msgstr "Unikey"
50 #: src/fcitx-unikey.desc:24
51 msgid "CString"
52 msgstr "CString"
5953
6054 #: src/unikey-ui.cpp:105 src/unikey-ui.cpp:172
6155 msgid "Choose input method"
6559 msgid "Choose output charset"
6660 msgstr "Выбрать кодировку на выходе"
6761
68 #: src/unikey-ui.cpp:119 src/unikey-ui.cpp:182
69 msgid "Spell Check"
70 msgstr "Проверка правописания"
62 #: macro-editor/editor.cpp:43
63 msgid "De&lete All"
64 msgstr "Уд&алить все"
65
66 #: src/unikey-ui.cpp:128
67 msgid "Enable Macro"
68 msgstr "Включить макросы"
7169
7270 #: src/unikey-ui.cpp:120
7371 msgid "Enable Spell Check"
7472 msgstr "Включить проверку правописания"
7573
76 #: src/unikey-ui.cpp:128
77 msgid "Enable Macro"
74 #: src/fcitx-unikey.desc:36
75 msgid "Enable macro"
7876 msgstr "Включить макросы"
7977
80 #: src/unikey-ui.cpp:142
81 msgid "Unikey Input Method"
82 msgstr "Метод ввода Unikey"
78 #: src/fcitx-unikey.desc:31
79 msgid "Enable spell check"
80 msgstr "Включить проверку правописания"
81
82 #: src/fcitx-unikey.desc:4
83 msgid "Input Method"
84 msgstr "Метод ввода"
85
86 #: macro-editor/model.cpp:44 src/unikey-ui.cpp:127 src/unikey-ui.cpp:187
87 #: src/fcitx-unikey.conf.in:10
88 msgid "Macro"
89 msgstr "Макрос"
90
91 #: src/fcitx-unikey.desc:9
92 msgid "Microsoft Vietnamese"
93 msgstr "Вьетнамский Microsoft"
94
95 #: src/fcitx-unikey.desc:25
96 msgid "NCR Decimal"
97 msgstr "Десятичный NCR"
98
99 #: src/fcitx-unikey.desc:26
100 msgid "NCR Hex"
101 msgstr "Шестнадцатиричный NCR"
102
103 #: src/unikey-ui.cpp:187
104 msgid "No Macro"
105 msgstr "Нет макросов"
106
107 #: src/unikey-ui.cpp:182
108 msgid "No Spell Check"
109 msgstr "Нет проверки правописания"
83110
84111 #: src/unikey-ui.cpp:156 src/fcitx-unikey.desc:17
85112 msgid "Output Charset"
86113 msgstr "Кодировка на выходе"
87114
88 #: src/unikey-ui.cpp:182
89 msgid "No Spell Check"
90 msgstr "Нет проверки правописания"
91
92 #: src/unikey-ui.cpp:183
93 msgid "Toggle Spell Check"
94 msgstr "Пререключить проверку правописания"
95
96 #: src/unikey-ui.cpp:187
97 msgid "No Macro"
98 msgstr "Нет макросов"
99
100 #: src/unikey-ui.cpp:188
101 msgid "Toggle Macro"
102 msgstr "Переключить макросы"
103
104 #: src/fcitx-unikey.conf.in:4
105 msgid "Unikey Wrapper For Fcitx"
106 msgstr "Обертка Wrapper для Fcitx"
107
108 #: src/fcitx-unikey.desc:4
109 msgid "Input Method"
110 msgstr "Метод ввода"
111
112 #: src/fcitx-unikey.desc:6
113 msgid "Telex"
114 msgstr "Telex"
115
116 #: src/fcitx-unikey.desc:7
117 msgid "VNI"
118 msgstr "VNI"
119
120 #: src/fcitx-unikey.desc:8 src/fcitx-unikey.desc:22
121 msgid "VIQR"
122 msgstr "VIQR"
123
124 #: src/fcitx-unikey.desc:9
125 msgid "Microsoft Vietnamese"
126 msgstr "Вьетнамский Microsoft"
127
128 #: src/fcitx-unikey.desc:10
129 msgid "UserIM"
130 msgstr "UserIM"
115 #: src/fcitx-unikey.desc:56
116 msgid "Process W at word begin"
117 msgstr "Наберите W в начале слова"
131118
132119 #: src/fcitx-unikey.desc:11
133120 msgid "Simple Telex"
137124 msgid "Simple Telex2"
138125 msgstr "Простой Telex2"
139126
140 #: src/fcitx-unikey.desc:19
141 msgid "Unicode"
142 msgstr "Unicode"
127 #: src/unikey-ui.cpp:119 src/unikey-ui.cpp:182
128 msgid "Spell Check"
129 msgstr "Проверка правописания"
143130
144131 #: src/fcitx-unikey.desc:20
145132 msgid "TCVN3"
146133 msgstr "TCVN3"
147134
148 #: src/fcitx-unikey.desc:21
149 msgid "VNI Win"
150 msgstr "VNI Win"
135 #: src/fcitx-unikey.desc:6
136 msgid "Telex"
137 msgstr "Telex"
151138
152 #: src/fcitx-unikey.desc:23
153 msgid "BK HCM 2"
154 msgstr "BK HCM 2"
139 #: src/unikey-ui.cpp:188
140 msgid "Toggle Macro"
141 msgstr "Переключить макросы"
155142
156 #: src/fcitx-unikey.desc:24
157 msgid "CString"
158 msgstr "CString"
143 #: src/unikey-ui.cpp:183
144 msgid "Toggle Spell Check"
145 msgstr "Пререключить проверку правописания"
159146
160 #: src/fcitx-unikey.desc:25
161 msgid "NCR Decimal"
162 msgstr "Десятичный NCR"
147 #: src/fcitx-unikey.desc:19
148 msgid "Unicode"
149 msgstr "Unicode"
163150
164 #: src/fcitx-unikey.desc:26
165 msgid "NCR Hex"
166 msgstr "Шестнадцатиричный NCR"
151 #: src/unikey-im.cpp:116 src/fcitx-unikey.conf.in:3 src/unikey.conf.in:3
152 #: src/fcitx-unikey.desc:1 src/fcitx-unikey.desc:14 src/fcitx-unikey.desc:28
153 #: src/fcitx-unikey.desc:33 src/fcitx-unikey.desc:38 src/fcitx-unikey.desc:43
154 #: src/fcitx-unikey.desc:48 src/fcitx-unikey.desc:53
155 msgid "Unikey"
156 msgstr "Unikey"
167157
168 #: src/fcitx-unikey.desc:31
169 msgid "Enable spell check"
170 msgstr "Включить проверку правописания"
158 #: src/unikey-ui.cpp:142
159 msgid "Unikey Input Method"
160 msgstr "Метод ввода Unikey"
171161
172 #: src/fcitx-unikey.desc:36
173 msgid "Enable macro"
174 msgstr "Включить макросы"
162 #: macro-editor/editor.cpp:48 macro-editor/editor.cpp:76
163 msgid "Unikey Macro Editor"
164 msgstr "Редактор макросов Unikey"
165
166 #: src/fcitx-unikey.conf.in:4
167 msgid "Unikey Wrapper For Fcitx"
168 msgstr "Обертка Wrapper для Fcitx"
175169
176170 #: src/fcitx-unikey.desc:41
177171 msgid "Use oà, _uý (instead of òa, úy)"
178172 msgstr "Использовать oà, _uý (вместо òa, úy)"
179173
180 #: src/fcitx-unikey.desc:46
181 msgid "Allow type with more freedom"
182 msgstr "Разрешать тип с большей свободой"
174 #: src/fcitx-unikey.desc:10
175 msgid "UserIM"
176 msgstr "UserIM"
183177
184 #: src/fcitx-unikey.desc:51
185 msgid "Auto restore keys with invalid words"
186 msgstr "Автоматически восстанавливать клавиши при некорректных словах"
178 #: src/fcitx-unikey.desc:8 src/fcitx-unikey.desc:22
179 msgid "VIQR"
180 msgstr "VIQR"
187181
188 #: src/fcitx-unikey.desc:56
189 msgid "Process W at word begin"
190 msgstr "Наберите W в начале слова"
182 #: src/fcitx-unikey.desc:7
183 msgid "VNI"
184 msgstr "VNI"
185
186 #: src/fcitx-unikey.desc:21
187 msgid "VNI Win"
188 msgstr "VNI Win"
189
190 #: macro-editor/model.cpp:46
191 msgid "Word"
192 msgstr "Слово"