Merge tag 'upstream/0.2.0'
Upstream version 0.2.0
Aron Xu
10 years ago
17 | 17 | set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed ${CMAKE_SHARED_LINKER_FLAGS}") |
18 | 18 | set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--as-needed ${CMAKE_MODULE_LINKER_FLAGS}") |
19 | 19 | |
20 | find_package(Fcitx 4.2.3 REQUIRED) | |
20 | find_package(Fcitx 4.2.7 REQUIRED) | |
21 | 21 | find_package(Libiconv REQUIRED) |
22 | 22 | find_package(Gettext REQUIRED) |
23 | 23 | find_package(Qt4) |
24 | 24 | |
25 | pkg_check_modules(FCITX_QT "fcitx-qt>=4.2.7") | |
26 | ||
25 | 27 | configure_file(config.h.in config.h) |
26 | 28 | |
29 | add_subdirectory(po) | |
27 | 30 | add_subdirectory(unikey) |
28 | 31 | add_subdirectory(src) |
29 | 32 | add_subdirectory(data) |
30 | add_subdirectory(po) | |
31 | ||
32 | if (QT_FOUND) | |
33 | 33 | add_subdirectory(macro-editor) |
34 | endif(QT_FOUND)⏎ |
0 | fcitx_add_addon_conf_file(fcitx-unikey.conf) | |
1 | fcitx_add_configdesc_file(fcitx-unikey.desc) | |
2 | fcitx_add_inputmethod_conf_file(unikey.conf) | |
3 | ||
4 | install(FILES unikey.png DESTINATION ${FCITX4_PREFIX}/share/fcitx/skin/default/) | |
5 | install(FILES unikey.png RENAME fcitx-unikey.png DESTINATION share/icons/hicolor/256x256/apps/)⏎ | |
0 | install(FILES unikey.png DESTINATION ${FCITX4_PREFIX}/share/fcitx/skin/imicon/) | |
1 | install(FILES unikey.png RENAME fcitx-unikey.png DESTINATION share/icons/hicolor/256x256/apps/) |
0 | [Addon] | |
1 | Name=fcitx-unikey | |
2 | _GeneralName=Unikey | |
3 | _Comment=Unikey Wrapper For Fcitx | |
4 | Category=InputMethod | |
5 | Enabled=True | |
6 | Library=fcitx-unikey.so | |
7 | Type=SharedLibrary | |
8 | IMRegisterMethod=ConfigFile | |
9 | SubConfig=Macro:program:fcitx-unikey-macro-editor,fcitx-unikey:domain⏎ |
0 | [Unikey/InputMethod] | |
1 | Type=Enum | |
2 | DefaultValue=Telex | |
3 | Description=Input Method | |
4 | EnumCount=4 | |
5 | Enum0=Telex | |
6 | Enum1=Vni | |
7 | Enum2=STelex | |
8 | Enum3=STelex2 | |
9 | ||
10 | [Unikey/OutputCharset] | |
11 | Type=Enum | |
12 | DefaultValue=Unicode | |
13 | Description=Output Charset | |
14 | EnumCount=8 | |
15 | Enum0=Unicode | |
16 | Enum1=TCVN3 | |
17 | Enum2=VNI Win | |
18 | Enum3=VIQR | |
19 | Enum4=BK HCM 2 | |
20 | Enum5=CString | |
21 | Enum6=NCR Decimal | |
22 | Enum7=NCR Hex | |
23 | ||
24 | [Unikey/SpellCheck] | |
25 | Type=Boolean | |
26 | DefaultValue=True | |
27 | Description=Enable spell check | |
28 | ||
29 | [Unikey/Macro] | |
30 | Type=Boolean | |
31 | DefaultValue=False | |
32 | Description=Enable macro | |
33 | ||
34 | [Unikey/ModernStyle] | |
35 | Type=Boolean | |
36 | DefaultValue=False | |
37 | Description=Use oà, _uý (instead of òa, úy) | |
38 | ||
39 | [Unikey/FreeMarking] | |
40 | Type=Boolean | |
41 | DefaultValue=True | |
42 | Description=Allow type with more freedom | |
43 | ||
44 | [Unikey/AutoNonVnRestore] | |
45 | Type=Boolean | |
46 | DefaultValue=True | |
47 | Description=Auto restore keys with invalid words | |
48 | ||
49 | [Unikey/ProcessWAtBegin] | |
50 | Type=Boolean | |
51 | DefaultValue=True | |
52 | Description=Process W at word begin | |
53 | ||
54 | [DescriptionFile] | |
55 | LocaleDomain=fcitx-unikey |
0 | include_directories( | |
1 | ${QT_QTCORE_INCLUDE_DIR} | |
2 | ${QT_QTGUI_INCLUDE_DIR} | |
3 | ${CMAKE_CURRENT_BINARY_DIR} | |
4 | ${PROJECT_SOURCE_DIR}/unikey | |
5 | ) | |
6 | 0 | |
7 | link_directories( | |
8 | ${FCITX4_FCITX_UTILS_LIBRARY_DIRS} | |
9 | ${FCITX4_FCITX_CONFIG_LIBRARY_DIRS} | |
10 | ) | |
11 | 1 | |
12 | 2 | set(MACRO_EDITOR_SRCS |
13 | 3 | model.cpp |
19 | 9 | model.h |
20 | 10 | editor.h |
21 | 11 | dialog.h |
12 | main.h | |
22 | 13 | ) |
14 | fcitx_translate_add_sources( | |
15 | ${MACRO_EDITOR_SRCS} | |
16 | ${MACRO_EDITOR_HDRS}) | |
17 | ||
18 | if (NOT QT_FOUND OR NOT FCITX_QT_FOUND) | |
19 | return() | |
20 | endif (NOT QT_FOUND OR NOT FCITX_QT_FOUND) | |
21 | ||
22 | include_directories( | |
23 | ${FCITX_QT_INCLUDE_DIRS} | |
24 | ${QT_QTCORE_INCLUDE_DIR} | |
25 | ${QT_QTGUI_INCLUDE_DIR} | |
26 | ${CMAKE_CURRENT_BINARY_DIR} | |
27 | ${PROJECT_SOURCE_DIR}/unikey | |
28 | ) | |
29 | ||
30 | link_directories( | |
31 | ${FCITX4_FCITX_UTILS_LIBRARY_DIRS} | |
32 | ${FCITX4_FCITX_CONFIG_LIBRARY_DIRS} | |
33 | ${FCITX_QT_LIBRARY_DIRS} | |
34 | ) | |
23 | 35 | qt4_wrap_cpp(MACRO_EDITOR_MOCS ${MACRO_EDITOR_HDRS}) |
24 | 36 | qt4_wrap_ui(MACRO_EDITOR_SRCS editor.ui dialog.ui) |
25 | add_executable(fcitx-unikey-macro-editor ${MACRO_EDITOR_SRCS} ${MACRO_EDITOR_MOCS}) | |
37 | add_library(fcitx-unikey-macro-editor | |
38 | MODULE ${MACRO_EDITOR_SRCS} ${MACRO_EDITOR_MOCS}) | |
39 | set_target_properties(fcitx-unikey-macro-editor PROPERTIES | |
40 | LINK_FLAGS "-Wl,--no-undefined" | |
41 | ) | |
26 | 42 | target_link_libraries(fcitx-unikey-macro-editor |
27 | 43 | debug ${QT_QTCORE_LIBRARY_DEBUG} |
28 | 44 | debug ${QT_QTDBUS_LIBRARY_DEBUG} |
33 | 49 | unikey |
34 | 50 | ${FCITX4_FCITX_UTILS_LIBRARIES} |
35 | 51 | ${FCITX4_FCITX_CONFIG_LIBRARIES} |
52 | ${FCITX_QT_LIBRARIES} | |
36 | 53 | ) |
37 | 54 | |
38 | install(TARGETS fcitx-unikey-macro-editor DESTINATION ${FCITX4_PREFIX}/bin)⏎ | |
55 | install(TARGETS fcitx-unikey-macro-editor DESTINATION ${FCITX4_ADDON_INSTALL_DIR}/qt) |
21 | 21 | |
22 | 22 | #include <libintl.h> |
23 | 23 | |
24 | #define _(x) QString::fromUtf8(gettext(x)) | |
24 | #define _(x) QString::fromUtf8(dgettext("fcitx-unikey", x)) | |
25 | 25 | |
26 | #endif // _FCITX_UNIKEY_COMMON_H⏎ | |
26 | #endif // _FCITX_UNIKEY_COMMON_H |
33 | 33 | |
34 | 34 | namespace fcitx_unikey { |
35 | 35 | |
36 | MacroEditor::MacroEditor(QWidget* parent): QMainWindow(parent) | |
36 | MacroEditor::MacroEditor(QWidget* parent): FcitxQtConfigUIWidget(parent) | |
37 | 37 | ,m_ui(new Ui::Editor) |
38 | 38 | { |
39 | 39 | m_ui->setupUi(this); |
40 | 40 | m_ui->addButton->setText(_("&Add")); |
41 | 41 | m_ui->deleteButton->setText(_("&Delete")); |
42 | 42 | m_ui->clearButton->setText(_("De&lete All")); |
43 | m_ui->exitButton->setText(_("&Quit")); | |
44 | m_ui->saveButton->setText(_("&Save")); | |
45 | 43 | m_ui->importButton->setText(_("&Import")); |
46 | 44 | m_ui->exportButton->setText(_("&Export")); |
47 | 45 | m_ui->macroTableView->setSelectionMode(QAbstractItemView::SingleSelection); |
53 | 51 | connect(m_ui->clearButton, SIGNAL(clicked(bool)), this, SLOT(deleteAllWord())); |
54 | 52 | connect(m_ui->importButton, SIGNAL(clicked(bool)), this, SLOT(importMacro())); |
55 | 53 | connect(m_ui->exportButton, SIGNAL(clicked(bool)), this, SLOT(exportMacro())); |
56 | connect(m_ui->exitButton, SIGNAL(clicked(bool)), this, SLOT(aboutToQuit())); | |
57 | connect(m_ui->saveButton, SIGNAL(clicked(bool)), this, SLOT(saveMacro())); | |
58 | ||
59 | 54 | load(); |
60 | 55 | itemFocusChanged(); |
61 | 56 | } |
65 | 60 | delete m_ui; |
66 | 61 | } |
67 | 62 | |
68 | void MacroEditor::aboutToQuit() | |
69 | { | |
70 | if (!m_model->needSave()) | |
71 | qApp->quit(); | |
72 | else { | |
73 | QMessageBox* dialog = new QMessageBox(this); | |
74 | dialog->setIcon(QMessageBox::Warning); | |
75 | dialog->setWindowTitle(_("Quit Macro Editor")); | |
76 | dialog->setText(_("Macro table still contains unsaved changes. Do you want to save?")); | |
77 | dialog->setStandardButtons(QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel); | |
78 | dialog->setDefaultButton(QMessageBox::Save); | |
79 | dialog->setAttribute(Qt::WA_DeleteOnClose, true); | |
80 | dialog->open(); | |
81 | connect(dialog, SIGNAL(finished(int)), this, SLOT(quitConfirmDone(int))); | |
82 | } | |
83 | } | |
84 | ||
85 | void MacroEditor::quitConfirmDone(int result) | |
86 | { | |
87 | switch(result) { | |
88 | case QMessageBox::Save: | |
89 | saveMacro(); | |
90 | case QMessageBox::Discard: | |
91 | qApp->quit(); | |
92 | break; | |
93 | } | |
94 | } | |
95 | ||
96 | void MacroEditor::closeEvent(QCloseEvent* event) | |
97 | { | |
98 | if (m_model->needSave()) { | |
99 | event->ignore(); | |
100 | ||
101 | QMessageBox* dialog = new QMessageBox(this); | |
102 | dialog->setIcon(QMessageBox::Warning); | |
103 | dialog->setWindowTitle(_("Quit Macro Editor")); | |
104 | dialog->setText(_("Macro table still contains unsaved changes. Do you want to save?")); | |
105 | dialog->setStandardButtons(QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel); | |
106 | dialog->setDefaultButton(QMessageBox::Save); | |
107 | dialog->setAttribute(Qt::WA_DeleteOnClose, true); | |
108 | dialog->open(); | |
109 | connect(dialog, SIGNAL(finished(int)), this, SLOT(quitConfirmDone(int))); | |
110 | } | |
111 | else { | |
112 | event->accept(); | |
113 | qApp->quit(); | |
114 | } | |
115 | } | |
116 | ||
63 | QString MacroEditor::addon() | |
64 | { | |
65 | return "fcitx-unikey"; | |
66 | } | |
67 | ||
68 | QString MacroEditor::title() | |
69 | { | |
70 | return _("Unikey Macro Editor"); | |
71 | } | |
117 | 72 | |
118 | 73 | void MacroEditor::itemFocusChanged() |
119 | 74 | { |
195 | 150 | m_ui->macroTableView->verticalHeader()->setVisible(false); |
196 | 151 | m_ui->macroTableView->setModel(m_model); |
197 | 152 | connect(m_ui->macroTableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(itemFocusChanged())); |
198 | connect(m_model, SIGNAL(needSaveChanged(bool)), this, SLOT(needSaveChanged(bool))); | |
199 | ||
200 | } | |
201 | ||
202 | void MacroEditor::needSaveChanged(bool needSave) | |
203 | { | |
204 | m_ui->saveButton->setEnabled(needSave); | |
205 | } | |
206 | ||
207 | ||
208 | void MacroEditor::saveMacro() | |
153 | connect(m_model, SIGNAL(needSaveChanged(bool)), this, SIGNAL(changed(bool))); | |
154 | ||
155 | } | |
156 | ||
157 | void MacroEditor::save() | |
209 | 158 | { |
210 | 159 | m_model->save(m_table); |
211 | 160 | FILE* f = FcitxXDGGetFileUserWithPrefix("unikey", "macro", "w", NULL); |
250 | 199 | |
251 | 200 | |
252 | 201 | |
253 | }⏎ | |
202 | } |
16 | 16 | * * |
17 | 17 | ***************************************************************************/ |
18 | 18 | |
19 | #include <QMainWindow> | |
19 | #include <fcitx-qt/fcitxqtconfiguiwidget.h> | |
20 | 20 | |
21 | 21 | class CMacroTable; |
22 | 22 | namespace Ui { |
26 | 26 | namespace fcitx_unikey { |
27 | 27 | |
28 | 28 | class MacroModel; |
29 | class MacroEditor : public QMainWindow { | |
29 | class MacroEditor : public FcitxQtConfigUIWidget { | |
30 | 30 | Q_OBJECT |
31 | 31 | public: |
32 | 32 | explicit MacroEditor(QWidget* parent = 0); |
33 | 33 | virtual ~MacroEditor(); |
34 | virtual void load(); | |
35 | virtual void save(); | |
36 | virtual QString title(); | |
37 | virtual QString addon(); | |
34 | 38 | static QString getData(CMacroTable* table, int i, bool iskey); |
35 | protected: | |
36 | virtual void closeEvent(QCloseEvent* event ); | |
37 | 39 | private slots: |
38 | 40 | void addWord(); |
39 | 41 | void deleteWord(); |
40 | 42 | void deleteAllWord(); |
41 | 43 | void itemFocusChanged(); |
42 | void aboutToQuit(); | |
43 | void saveMacro(); | |
44 | void load(); | |
45 | 44 | void addWordAccepted(); |
46 | 45 | void importMacro(); |
47 | 46 | void exportMacro(); |
48 | 47 | void importFileSelected(); |
49 | 48 | void exportFileSelected(); |
50 | void needSaveChanged(bool needSave); | |
51 | void quitConfirmDone(int result); | |
52 | 49 | private: |
53 | 50 | Ui::Editor* m_ui; |
54 | 51 | CMacroTable* m_table; |
55 | 52 | MacroModel* m_model; |
56 | 53 | }; |
57 | }⏎ | |
54 | } |
0 | 0 | <?xml version="1.0" encoding="UTF-8"?> |
1 | 1 | <ui version="4.0"> |
2 | 2 | <class>Editor</class> |
3 | <widget class="QMainWindow" name="Editor"> | |
3 | <widget class="QWidget" name="Editor"> | |
4 | 4 | <property name="geometry"> |
5 | 5 | <rect> |
6 | 6 | <x>0</x> |
13 | 13 | <string>MainWindow</string> |
14 | 14 | </property> |
15 | 15 | <property name="windowIcon"> |
16 | <iconset theme="fcitx-unikey"/> | |
16 | <iconset theme="fcitx-unikey"> | |
17 | <normaloff/> | |
18 | </iconset> | |
17 | 19 | </property> |
18 | <widget class="QWidget" name="centralwidget"> | |
19 | <layout class="QHBoxLayout" name="horizontalLayout"> | |
20 | <item> | |
21 | <widget class="QTableView" name="macroTableView"/> | |
22 | </item> | |
23 | <item> | |
24 | <layout class="QVBoxLayout" name="verticalLayout"> | |
25 | <item> | |
26 | <widget class="QPushButton" name="addButton"> | |
27 | <property name="text"> | |
28 | <string/> | |
29 | </property> | |
30 | <property name="icon"> | |
31 | <iconset theme="list-add"> | |
32 | <normaloff/> | |
33 | </iconset> | |
34 | </property> | |
35 | </widget> | |
36 | </item> | |
37 | <item> | |
38 | <widget class="QPushButton" name="deleteButton"> | |
39 | <property name="text"> | |
40 | <string/> | |
41 | </property> | |
42 | <property name="icon"> | |
43 | <iconset theme="list-remove"> | |
44 | <normaloff/> | |
45 | </iconset> | |
46 | </property> | |
47 | </widget> | |
48 | </item> | |
49 | <item> | |
50 | <widget class="QPushButton" name="clearButton"> | |
51 | <property name="text"> | |
52 | <string/> | |
53 | </property> | |
54 | <property name="icon"> | |
55 | <iconset theme="edit-delete"> | |
56 | <normaloff/> | |
57 | </iconset> | |
58 | </property> | |
59 | </widget> | |
60 | </item> | |
61 | <item> | |
62 | <widget class="Line" name="line"> | |
63 | <property name="orientation"> | |
64 | <enum>Qt::Horizontal</enum> | |
65 | </property> | |
66 | </widget> | |
67 | </item> | |
68 | <item> | |
69 | <widget class="QPushButton" name="importButton"> | |
70 | <property name="text"> | |
71 | <string/> | |
72 | </property> | |
73 | <property name="icon"> | |
74 | <iconset theme="document-import"> | |
75 | <normaloff/> | |
76 | </iconset> | |
77 | </property> | |
78 | </widget> | |
79 | </item> | |
80 | <item> | |
81 | <widget class="QPushButton" name="exportButton"> | |
82 | <property name="text"> | |
83 | <string/> | |
84 | </property> | |
85 | <property name="icon"> | |
86 | <iconset theme="document-export"> | |
87 | <normaloff/> | |
88 | </iconset> | |
89 | </property> | |
90 | </widget> | |
91 | </item> | |
92 | <item> | |
93 | <widget class="Line" name="line_2"> | |
94 | <property name="orientation"> | |
95 | <enum>Qt::Horizontal</enum> | |
96 | </property> | |
97 | </widget> | |
98 | </item> | |
99 | <item> | |
100 | <widget class="QPushButton" name="saveButton"> | |
101 | <property name="enabled"> | |
102 | <bool>false</bool> | |
103 | </property> | |
104 | <property name="text"> | |
105 | <string/> | |
106 | </property> | |
107 | <property name="icon"> | |
108 | <iconset theme="document-save"> | |
109 | <normaloff/> | |
110 | </iconset> | |
111 | </property> | |
112 | </widget> | |
113 | </item> | |
114 | <item> | |
115 | <widget class="QPushButton" name="exitButton"> | |
116 | <property name="text"> | |
117 | <string/> | |
118 | </property> | |
119 | <property name="icon"> | |
120 | <iconset theme="application-exit"> | |
121 | <normaloff/> | |
122 | </iconset> | |
123 | </property> | |
124 | </widget> | |
125 | </item> | |
126 | <item> | |
127 | <spacer name="verticalSpacer"> | |
128 | <property name="orientation"> | |
129 | <enum>Qt::Vertical</enum> | |
130 | </property> | |
131 | <property name="sizeHint" stdset="0"> | |
132 | <size> | |
133 | <width>20</width> | |
134 | <height>40</height> | |
135 | </size> | |
136 | </property> | |
137 | </spacer> | |
138 | </item> | |
139 | </layout> | |
140 | </item> | |
141 | </layout> | |
142 | </widget> | |
20 | <layout class="QHBoxLayout" name="horizontalLayout"> | |
21 | <item> | |
22 | <widget class="QTableView" name="macroTableView"/> | |
23 | </item> | |
24 | <item> | |
25 | <layout class="QVBoxLayout" name="verticalLayout"> | |
26 | <item> | |
27 | <widget class="QPushButton" name="addButton"> | |
28 | <property name="text"> | |
29 | <string/> | |
30 | </property> | |
31 | <property name="icon"> | |
32 | <iconset theme="list-add"> | |
33 | <normaloff/> | |
34 | </iconset> | |
35 | </property> | |
36 | </widget> | |
37 | </item> | |
38 | <item> | |
39 | <widget class="QPushButton" name="deleteButton"> | |
40 | <property name="text"> | |
41 | <string/> | |
42 | </property> | |
43 | <property name="icon"> | |
44 | <iconset theme="list-remove"> | |
45 | <normaloff/> | |
46 | </iconset> | |
47 | </property> | |
48 | </widget> | |
49 | </item> | |
50 | <item> | |
51 | <widget class="QPushButton" name="clearButton"> | |
52 | <property name="text"> | |
53 | <string/> | |
54 | </property> | |
55 | <property name="icon"> | |
56 | <iconset theme="edit-delete"> | |
57 | <normaloff/> | |
58 | </iconset> | |
59 | </property> | |
60 | </widget> | |
61 | </item> | |
62 | <item> | |
63 | <widget class="Line" name="line"> | |
64 | <property name="orientation"> | |
65 | <enum>Qt::Horizontal</enum> | |
66 | </property> | |
67 | </widget> | |
68 | </item> | |
69 | <item> | |
70 | <widget class="QPushButton" name="importButton"> | |
71 | <property name="text"> | |
72 | <string/> | |
73 | </property> | |
74 | <property name="icon"> | |
75 | <iconset theme="document-import"> | |
76 | <normaloff/> | |
77 | </iconset> | |
78 | </property> | |
79 | </widget> | |
80 | </item> | |
81 | <item> | |
82 | <widget class="QPushButton" name="exportButton"> | |
83 | <property name="text"> | |
84 | <string/> | |
85 | </property> | |
86 | <property name="icon"> | |
87 | <iconset theme="document-export"> | |
88 | <normaloff/> | |
89 | </iconset> | |
90 | </property> | |
91 | </widget> | |
92 | </item> | |
93 | <item> | |
94 | <spacer name="verticalSpacer"> | |
95 | <property name="orientation"> | |
96 | <enum>Qt::Vertical</enum> | |
97 | </property> | |
98 | <property name="sizeHint" stdset="0"> | |
99 | <size> | |
100 | <width>20</width> | |
101 | <height>40</height> | |
102 | </size> | |
103 | </property> | |
104 | </spacer> | |
105 | </item> | |
106 | </layout> | |
107 | </item> | |
108 | </layout> | |
143 | 109 | </widget> |
144 | 110 | <resources/> |
145 | 111 | <connections/> |
17 | 17 | ***************************************************************************/ |
18 | 18 | |
19 | 19 | #include <QApplication> |
20 | #include <qplugin.h> | |
20 | 21 | #include <libintl.h> |
21 | 22 | #include <fcitx-utils/utils.h> |
23 | #include "main.h" | |
22 | 24 | #include "editor.h" |
23 | int main(int argc, char* argv[]) | |
25 | #include "model.h" | |
26 | ||
27 | MacroEditorPlugin::MacroEditorPlugin(QObject* parent): FcitxQtConfigUIPlugin(parent) | |
24 | 28 | { |
25 | setlocale(LC_ALL, ""); | |
26 | char* path = fcitx_utils_get_fcitx_path("localedir"); | |
27 | bindtextdomain("fcitx-unikey", path); | |
28 | free(path); | |
29 | bind_textdomain_codeset("fcitx-unikey", "UTF-8"); | |
30 | textdomain("fcitx-unikey"); | |
31 | 29 | |
32 | QApplication app(argc, argv); | |
33 | fcitx_unikey::MacroEditor window; | |
34 | window.show(); | |
35 | return app.exec(); | |
36 | }⏎ | |
30 | } | |
31 | ||
32 | FcitxQtConfigUIWidget* MacroEditorPlugin::create(const QString& key) | |
33 | { | |
34 | Q_UNUSED(key); | |
35 | return new fcitx_unikey::MacroEditor; | |
36 | } | |
37 | ||
38 | QStringList MacroEditorPlugin::files() | |
39 | { | |
40 | return QStringList("unikey/macro"); | |
41 | } | |
42 | ||
43 | QString MacroEditorPlugin::name() | |
44 | { | |
45 | return "unikey-macro-editor"; | |
46 | } | |
47 | ||
48 | QString MacroEditorPlugin::domain() | |
49 | { | |
50 | return "fcitx-unikey"; | |
51 | } | |
52 | ||
53 | ||
54 | Q_EXPORT_PLUGIN2 (fcitx_macro_editor, MacroEditorPlugin) |
0 | /*************************************************************************** | |
1 | * Copyright (C) 2012~2012 by CSSlayer * | |
2 | * wengxt@gmail.com * | |
3 | * * | |
4 | * This program is free software: you can redistribute it and/or modify * | |
5 | * it under the terms of the GNU General Public License as published by * | |
6 | * the Free Software Foundation, either version 3 of the License, or * | |
7 | * (at your option) any later version. * | |
8 | * * | |
9 | * This program is distributed in the hope that it will be useful, * | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | |
12 | * GNU General Public License for more details. * | |
13 | * * | |
14 | * You should have received a copy of the GNU General Public License * | |
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. * | |
16 | * * | |
17 | ***************************************************************************/ | |
18 | ||
19 | #ifndef _MAIN_H_ | |
20 | #define _MAIN_H_ | |
21 | ||
22 | #include <fcitx-qt/fcitxqtconfiguiplugin.h> | |
23 | ||
24 | class MacroEditorPlugin : public FcitxQtConfigUIPlugin { | |
25 | Q_OBJECT | |
26 | public: | |
27 | explicit MacroEditorPlugin(QObject* parent = 0); | |
28 | virtual QString name(); | |
29 | virtual QStringList files(); | |
30 | virtual QString domain(); | |
31 | virtual FcitxQtConfigUIWidget* create(const QString& key); | |
32 | }; | |
33 | ||
34 | #endif // FCITX_TOOLS_GUI_MAIN_H_ |
0 | file(GLOB PO_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po) | |
1 | file(RELATIVE_PATH REL_SOURCE_ROOT ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}) | |
2 | if ("${REL_SOURCE_ROOT}" STREQUAL "") | |
3 | set(REL_SOURCE_ROOT ".") | |
4 | endif("${REL_SOURCE_ROOT}" STREQUAL "") | |
5 | ||
6 | set(POT_FILE fcitx-unikey.pot) | |
7 | ||
8 | configure_file(POTFILES.in.in ${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in) | |
9 | ||
10 | extract_fcitx_addon_conf_postring() | |
11 | extract_fcitx_desc_file_postring() | |
12 | ||
13 | add_custom_target( | |
14 | pot | |
15 | COMMAND INTLTOOL_EXTRACT=${INTLTOOL_EXTRACT} srcdir=${CMAKE_CURRENT_BINARY_DIR} ${INTLTOOL_UPDATE} --gettext-package fcitx-unikey --pot | |
16 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | |
17 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/conf.po ${CMAKE_CURRENT_BINARY_DIR}/desc.po | |
18 | ) | |
19 | ||
20 | # Update .po files and compile them to binary .gmo files | |
21 | gettext_create_translations(${POT_FILE} ALL ${PO_FILES}) | |
22 | ||
0 | set(PO_LANGS zh_CN vi zh_TW) | |
1 | foreach(lang ${PO_LANGS}) | |
2 | fcitx_translate_add_po_file("${lang}" "${lang}.po") | |
3 | endforeach() | |
4 | fcitx_translate_set_pot_target(pot fcitx-unikey fcitx-unikey.pot) |
9 | 9 | @REL_SOURCE_ROOT@/macro-editor/editor.cpp |
10 | 10 | @REL_SOURCE_ROOT@/macro-editor/main.cpp |
11 | 11 | @REL_SOURCE_ROOT@/macro-editor/model.cpp |
12 | @REL_SOURCE_ROOT@/data/fcitx-unikey.conf.in | |
12 | @REL_SOURCE_ROOT@/data/fcitx-unikey.conf.in.in | |
13 | 13 | @REL_SOURCE_ROOT@/data/unikey.conf.in |
6 | 6 | msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: PACKAGE VERSION\n" |
9 | "Report-Msgid-Bugs-To: \n" | |
10 | "POT-Creation-Date: 2012-10-20 22:29-0400\n" | |
9 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" | |
10 | "POT-Creation-Date: 2013-01-18 15:51-0500\n" | |
11 | 11 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
12 | 12 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
13 | 13 | "Language-Team: LANGUAGE <LL@li.org>\n" |
14 | "Language: \n" | |
14 | "Language: LANG\n" | |
15 | 15 | "MIME-Version: 1.0\n" |
16 | "Content-Type: text/plain; charset=UTF-8\n" | |
16 | "Content-Type: text/plain; charset=utf-8\n" | |
17 | 17 | "Content-Transfer-Encoding: 8bit\n" |
18 | 18 | |
19 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:4 | |
20 | msgid "Input Method" | |
19 | #: macro-editor/editor.cpp:41 | |
20 | msgid "&Add" | |
21 | 21 | msgstr "" |
22 | 22 | |
23 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:14 | |
24 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:156 | |
23 | #: macro-editor/editor.cpp:42 | |
24 | msgid "&Delete" | |
25 | msgstr "" | |
26 | ||
27 | #: macro-editor/editor.cpp:43 | |
28 | msgid "De&lete All" | |
29 | msgstr "" | |
30 | ||
31 | #: macro-editor/editor.cpp:44 | |
32 | msgid "&Import" | |
33 | msgstr "" | |
34 | ||
35 | #: macro-editor/editor.cpp:45 | |
36 | msgid "&Export" | |
37 | msgstr "" | |
38 | ||
39 | #: macro-editor/editor.cpp:48 macro-editor/editor.cpp:71 | |
40 | msgid "Unikey Macro Editor" | |
41 | msgstr "" | |
42 | ||
43 | #: macro-editor/model.cpp:44 src/unikey-ui.cpp:127 src/unikey-ui.cpp:187 | |
44 | #: src/fcitx-unikey.conf.in:10 | |
45 | msgid "Macro" | |
46 | msgstr "" | |
47 | ||
48 | #: macro-editor/model.cpp:46 | |
49 | msgid "Word" | |
50 | msgstr "" | |
51 | ||
52 | #: src/unikey-im.cpp:152 src/fcitx-unikey.conf.in:3 | |
53 | msgid "Unikey" | |
54 | msgstr "" | |
55 | ||
56 | #: src/unikey-ui.cpp:105 src/unikey-ui.cpp:172 | |
57 | msgid "Choose input method" | |
58 | msgstr "" | |
59 | ||
60 | #: src/unikey-ui.cpp:113 src/unikey-ui.cpp:178 | |
61 | msgid "Choose output charset" | |
62 | msgstr "" | |
63 | ||
64 | #: src/unikey-ui.cpp:119 src/unikey-ui.cpp:182 | |
65 | msgid "Spell Check" | |
66 | msgstr "" | |
67 | ||
68 | #: src/unikey-ui.cpp:120 src/unikey-ui.cpp:183 | |
69 | msgid "Enable Spell Check" | |
70 | msgstr "" | |
71 | ||
72 | #: src/unikey-ui.cpp:128 src/unikey-ui.cpp:188 | |
73 | msgid "Enable Macro" | |
74 | msgstr "" | |
75 | ||
76 | #: src/unikey-ui.cpp:142 | |
77 | msgid "Unikey Input Method" | |
78 | msgstr "" | |
79 | ||
80 | #: src/unikey-ui.cpp:156 | |
25 | 81 | msgid "Output Charset" |
26 | 82 | msgstr "" |
27 | 83 | |
28 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:28 | |
29 | msgid "Enable spell check" | |
30 | msgstr "" | |
31 | ||
32 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:33 | |
33 | msgid "Enable macro" | |
34 | msgstr "" | |
35 | ||
36 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:38 | |
37 | msgid "Use oà, _uý (instead of òa, úy)" | |
38 | msgstr "" | |
39 | ||
40 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:43 | |
41 | msgid "Allow type with more freedom" | |
42 | msgstr "" | |
43 | ||
44 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:48 | |
45 | msgid "Auto restore keys with invalid words" | |
46 | msgstr "" | |
47 | ||
48 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:53 | |
49 | msgid "Process W at word begin" | |
50 | msgstr "" | |
51 | ||
52 | # unknown | |
53 | #: /home/saber/Develop/fcitx-unikey/build/po/tmp/fcitx-unikey.conf.in.h:1 | |
54 | #: /home/saber/Develop/fcitx-unikey/build/po/tmp/unikey.conf.in.h:1 | |
55 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-im.cpp:150 | |
56 | msgid "Unikey" | |
57 | msgstr "" | |
58 | ||
59 | #: unknown | |
60 | msgid "BK HCM 2" | |
61 | msgstr "" | |
62 | ||
63 | #: unknown | |
64 | msgid "CString" | |
65 | msgstr "" | |
66 | ||
67 | #: unknown | |
68 | msgid "NCR Decimal" | |
69 | msgstr "" | |
70 | ||
71 | #: unknown | |
72 | msgid "NCR Hex" | |
73 | msgstr "" | |
74 | ||
75 | #: unknown | |
76 | msgid "STelex" | |
77 | msgstr "" | |
78 | ||
79 | #: unknown | |
80 | msgid "STelex2" | |
81 | msgstr "" | |
82 | ||
83 | #: unknown | |
84 | msgid "TCVN3" | |
85 | msgstr "" | |
86 | ||
87 | #: unknown | |
88 | msgid "Telex" | |
89 | msgstr "" | |
90 | ||
91 | #: unknown | |
92 | msgid "Unicode" | |
93 | msgstr "" | |
94 | ||
95 | #: unknown | |
96 | msgid "VIQR" | |
97 | msgstr "" | |
98 | ||
99 | #: unknown | |
100 | msgid "Vni" | |
101 | msgstr "" | |
102 | ||
103 | #: unknown | |
104 | msgid "VNI Win" | |
105 | msgstr "" | |
106 | ||
107 | #: unknown | |
108 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:127 | |
109 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:187 | |
110 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/model.cpp:25 | |
111 | msgid "Macro" | |
112 | msgstr "" | |
113 | ||
114 | #: /home/saber/Develop/fcitx-unikey/build/po/tmp/fcitx-unikey.conf.in.h:2 | |
115 | msgid "Unikey Wrapper For Fcitx" | |
116 | msgstr "" | |
117 | ||
118 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:105 | |
119 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:172 | |
120 | msgid "Choose input method" | |
121 | msgstr "" | |
122 | ||
123 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:113 | |
124 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:178 | |
125 | msgid "Choose output charset" | |
126 | msgstr "" | |
127 | ||
128 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:119 | |
129 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:182 | |
130 | msgid "Spell Check" | |
131 | msgstr "" | |
132 | ||
133 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:120 | |
134 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:183 | |
135 | msgid "Enable Spell Check" | |
136 | msgstr "" | |
137 | ||
138 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:128 | |
139 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:188 | |
140 | msgid "Enable Macro" | |
141 | msgstr "" | |
142 | ||
143 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:142 | |
144 | msgid "Unikey Input Method" | |
145 | msgstr "" | |
146 | ||
147 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:182 | |
84 | #: src/unikey-ui.cpp:182 | |
148 | 85 | msgid "No Spell Check" |
149 | 86 | msgstr "" |
150 | 87 | |
151 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:187 | |
88 | #: src/unikey-ui.cpp:187 | |
152 | 89 | msgid "No Macro" |
153 | 90 | msgstr "" |
154 | 91 | |
155 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:21 | |
156 | msgid "&Add" | |
92 | #: src/fcitx-unikey.conf.in:4 | |
93 | msgid "Unikey Wrapper For Fcitx" | |
157 | 94 | msgstr "" |
158 | ||
159 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:22 | |
160 | msgid "&Delete" | |
161 | msgstr "" | |
162 | ||
163 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:23 | |
164 | msgid "De&lete All" | |
165 | msgstr "" | |
166 | ||
167 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:24 | |
168 | msgid "&Quit" | |
169 | msgstr "" | |
170 | ||
171 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:25 | |
172 | msgid "&Save" | |
173 | msgstr "" | |
174 | ||
175 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:26 | |
176 | msgid "&Import" | |
177 | msgstr "" | |
178 | ||
179 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:27 | |
180 | msgid "&Export" | |
181 | msgstr "" | |
182 | ||
183 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:30 | |
184 | msgid "Unikey Macro Editor" | |
185 | msgstr "" | |
186 | ||
187 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:56 | |
188 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:84 | |
189 | msgid "Quit Macro Editor" | |
190 | msgstr "" | |
191 | ||
192 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:57 | |
193 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:85 | |
194 | msgid "Macro table still contains unsaved changes. Do you want to save?" | |
195 | msgstr "" | |
196 | ||
197 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/model.cpp:27 | |
198 | msgid "Word" | |
199 | msgstr "" |
0 | # Vietnamese translations for ibus-unikey package | |
1 | # Bản dịch Việt ngữ cho gói tin ibus-unikey. | |
2 | # Copyright (C) 2009 Free Software Foundation, Inc. | |
3 | # This file is distributed under the same license as the ibus-unikey package. | |
0 | # SOME DESCRIPTIVE TITLE. | |
1 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | |
2 | # This file is distributed under the same license as the PACKAGE package. | |
4 | 3 | # |
4 | # Translators: | |
5 | 5 | # Lê Quốc Tuấn <mr.lequoctuan@gmail.com>, 2009. |
6 | # Weng Xuetian <wengxt@gmail.com>, 2012. | |
6 | # Weng Xuetian <wengxt@gmail.com>, 2012-2013. | |
7 | 7 | msgid "" |
8 | 8 | msgstr "" |
9 | "Project-Id-Version: ibus-unikey 0.6.1\n" | |
10 | "Report-Msgid-Bugs-To: \n" | |
11 | "POT-Creation-Date: 2012-10-20 22:29-0400\n" | |
12 | "PO-Revision-Date: 2012-10-20 22:33-0400\n" | |
13 | "Last-Translator: Weng Xuetian <wengxt@gmail.com>\n" | |
14 | "Language-Team: Chinese Simplified <kde-i18n-doc@kde.org>\n" | |
15 | "Language: zh_CN\n" | |
9 | "Project-Id-Version: fcitx\n" | |
10 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" | |
11 | "POT-Creation-Date: 2013-01-18 15:51-0500\n" | |
12 | "PO-Revision-Date: 2013-01-18 20:49+0000\n" | |
13 | "Last-Translator: Xuetian Weng <wengxt@gmail.com>\n" | |
14 | "Language-Team: Vietnamese (http://www.transifex.com/projects/p/fcitx/" | |
15 | "language/vi/)\n" | |
16 | "Language: vi\n" | |
16 | 17 | "MIME-Version: 1.0\n" |
17 | 18 | "Content-Type: text/plain; charset=UTF-8\n" |
18 | 19 | "Content-Transfer-Encoding: 8bit\n" |
19 | 20 | "Plural-Forms: nplurals=1; plural=0;\n" |
20 | "X-Poedit-Language: Vietnamese\n" | |
21 | "X-Poedit-Country: VIET NAM\n" | |
22 | "X-Poedit-SourceCharset: utf-8\n" | |
23 | "X-Generator: Lokalize 1.5\n" | |
24 | 21 | |
25 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:21 | |
22 | #: macro-editor/editor.cpp:41 | |
26 | 23 | msgid "&Add" |
27 | msgstr "" | |
24 | msgstr "&Thêm" | |
28 | 25 | |
29 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:22 | |
26 | #: macro-editor/editor.cpp:42 | |
30 | 27 | msgid "&Delete" |
31 | 28 | msgstr "&Xóa" |
32 | 29 | |
33 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:27 | |
30 | #: macro-editor/editor.cpp:45 | |
34 | 31 | msgid "&Export" |
35 | 32 | msgstr "&Xuất" |
36 | 33 | |
37 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:26 | |
34 | #: macro-editor/editor.cpp:44 | |
38 | 35 | msgid "&Import" |
39 | 36 | msgstr "&Nhập" |
40 | 37 | |
41 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:24 | |
42 | msgid "&Quit" | |
43 | msgstr "" | |
44 | ||
45 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:25 | |
46 | msgid "&Save" | |
47 | msgstr "" | |
48 | ||
49 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:43 | |
50 | msgid "Allow type with more freedom" | |
51 | msgstr "Tự động trả phím khi gõ từ không hợp lệ" | |
52 | ||
53 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:48 | |
54 | msgid "Auto restore keys with invalid words" | |
55 | msgstr "Tự động trả phím khi gõ từ không hợp lệ" | |
56 | ||
57 | #: unknown | |
58 | msgid "BK HCM 2" | |
59 | msgstr "BK HCM 2" | |
60 | ||
61 | #: unknown | |
62 | msgid "CString" | |
63 | msgstr "CString" | |
64 | ||
65 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:105 | |
66 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:172 | |
38 | #: src/unikey-ui.cpp:105 src/unikey-ui.cpp:172 | |
67 | 39 | msgid "Choose input method" |
68 | 40 | msgstr "Chọn kiểu gõ" |
69 | 41 | |
70 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:113 | |
71 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:178 | |
42 | #: src/unikey-ui.cpp:113 src/unikey-ui.cpp:178 | |
72 | 43 | msgid "Choose output charset" |
73 | 44 | msgstr "Chọn bảng mã" |
74 | 45 | |
75 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:23 | |
46 | #: macro-editor/editor.cpp:43 | |
76 | 47 | msgid "De&lete All" |
77 | 48 | msgstr "Xóa &hết" |
78 | 49 | |
79 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:128 | |
80 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:188 | |
50 | #: src/unikey-ui.cpp:128 src/unikey-ui.cpp:188 | |
81 | 51 | msgid "Enable Macro" |
82 | 52 | msgstr "Bật gõ tắt" |
83 | 53 | |
84 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:120 | |
85 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:183 | |
54 | #: src/unikey-ui.cpp:120 src/unikey-ui.cpp:183 | |
86 | 55 | msgid "Enable Spell Check" |
87 | 56 | msgstr "Bật kiểm tra chính tả" |
88 | 57 | |
89 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:33 | |
90 | msgid "Enable macro" | |
91 | msgstr "Bật gõ tắt" | |
92 | ||
93 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:28 | |
94 | msgid "Enable spell check" | |
95 | msgstr "Bật kiểm tra chính tả" | |
96 | ||
97 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:4 | |
98 | msgid "Input Method" | |
99 | msgstr "Kiểu gõ" | |
100 | ||
101 | #: unknown | |
102 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:127 | |
103 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:187 | |
104 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/model.cpp:25 | |
58 | #: macro-editor/model.cpp:44 src/unikey-ui.cpp:127 src/unikey-ui.cpp:187 | |
59 | #: src/fcitx-unikey.conf.in:10 | |
105 | 60 | msgid "Macro" |
106 | 61 | msgstr "gõ tắt" |
107 | 62 | |
108 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:57 | |
109 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:85 | |
110 | msgid "Macro table still contains unsaved changes. Do you want to save?" | |
111 | msgstr "" | |
63 | #: src/unikey-ui.cpp:187 | |
64 | msgid "No Macro" | |
65 | msgstr "Tắt gõ tắt" | |
112 | 66 | |
113 | #: unknown | |
114 | msgid "NCR Decimal" | |
115 | msgstr "NCR Decimal" | |
67 | #: src/unikey-ui.cpp:182 | |
68 | msgid "No Spell Check" | |
69 | msgstr "Tắt kiểm tra chính tả" | |
116 | 70 | |
117 | #: unknown | |
118 | msgid "NCR Hex" | |
119 | msgstr "NCR Hex" | |
120 | ||
121 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:187 | |
122 | #, fuzzy | |
123 | msgid "No Macro" | |
124 | msgstr "gõ tắt" | |
125 | ||
126 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:182 | |
127 | #, fuzzy | |
128 | msgid "No Spell Check" | |
129 | msgstr "kiểm tra chính tả" | |
130 | ||
131 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:14 | |
132 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:156 | |
71 | #: src/unikey-ui.cpp:156 | |
133 | 72 | msgid "Output Charset" |
134 | 73 | msgstr "Bảng mã" |
135 | 74 | |
136 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:53 | |
137 | msgid "Process W at word begin" | |
138 | msgstr "Xử lý phím W ở đầu từ" | |
139 | ||
140 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:56 | |
141 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:84 | |
142 | msgid "Quit Macro Editor" | |
143 | msgstr "" | |
144 | ||
145 | #: unknown | |
146 | msgid "STelex" | |
147 | msgstr "STelex" | |
148 | ||
149 | #: unknown | |
150 | msgid "STelex2" | |
151 | msgstr "STelex2" | |
152 | ||
153 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:119 | |
154 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:182 | |
75 | #: src/unikey-ui.cpp:119 src/unikey-ui.cpp:182 | |
155 | 76 | msgid "Spell Check" |
156 | 77 | msgstr "kiểm tra chính tả" |
157 | 78 | |
158 | #: unknown | |
159 | msgid "TCVN3" | |
160 | msgstr "TCVN3" | |
161 | ||
162 | #: unknown | |
163 | msgid "Telex" | |
164 | msgstr "Telex" | |
165 | ||
166 | #: unknown | |
167 | msgid "Unicode" | |
168 | msgstr "Unicode" | |
169 | ||
170 | # unknown | |
171 | #: /home/saber/Develop/fcitx-unikey/build/po/tmp/fcitx-unikey.conf.in.h:1 | |
172 | #: /home/saber/Develop/fcitx-unikey/build/po/tmp/unikey.conf.in.h:1 | |
173 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-im.cpp:150 | |
79 | #: src/unikey-im.cpp:152 src/fcitx-unikey.conf.in:3 | |
174 | 80 | msgid "Unikey" |
175 | 81 | msgstr "Unikey" |
176 | 82 | |
177 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:142 | |
83 | #: src/unikey-ui.cpp:142 | |
178 | 84 | msgid "Unikey Input Method" |
179 | 85 | msgstr "Unikey Kiểu gõ" |
180 | 86 | |
181 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:30 | |
87 | #: macro-editor/editor.cpp:48 macro-editor/editor.cpp:71 | |
182 | 88 | msgid "Unikey Macro Editor" |
183 | 89 | msgstr "" |
184 | 90 | |
185 | #: /home/saber/Develop/fcitx-unikey/build/po/tmp/fcitx-unikey.conf.in.h:2 | |
91 | #: src/fcitx-unikey.conf.in:4 | |
186 | 92 | msgid "Unikey Wrapper For Fcitx" |
187 | 93 | msgstr "" |
188 | 94 | |
189 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:38 | |
190 | msgid "Use oà, _uý (instead of òa, úy)" | |
191 | msgstr "Dùng oà, _uý (thay vì òa, úy)" | |
192 | ||
193 | #: unknown | |
194 | msgid "VIQR" | |
195 | msgstr "VIQR" | |
196 | ||
197 | #: unknown | |
198 | msgid "VNI Win" | |
199 | msgstr "VNI Win" | |
200 | ||
201 | #: unknown | |
202 | msgid "Vni" | |
203 | msgstr "Vni" | |
204 | ||
205 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/model.cpp:27 | |
95 | #: macro-editor/model.cpp:46 | |
206 | 96 | msgid "Word" |
207 | 97 | msgstr "Từ" |
208 | ||
209 | #~ msgid "(replace text)" | |
210 | #~ msgstr "(chuỗi thay thế)" | |
211 | ||
212 | #~ msgid "<b>Input/Output</b>" | |
213 | #~ msgstr "<b>Nhập/Xuất</b>" | |
214 | ||
215 | #~ msgid "<b>Options</b>" | |
216 | #~ msgstr "<b>Tùy chọn</b>" | |
217 | ||
218 | #~ msgid "Auto send PreEdit string to Application when mouse move or click" | |
219 | #~ msgstr "" | |
220 | #~ "Tự động gửi chuỗi PreEdit đến ứng dụng khi chuột di chuyển hoặc click" | |
221 | ||
222 | #~ msgid "Capture _mouse event" | |
223 | #~ msgstr "Bắt sự _kiện chuột" | |
224 | ||
225 | #~ msgid "Capture mouse event" | |
226 | #~ msgstr "Bắt sự kiện chuột" | |
227 | ||
228 | #~ msgid "Choose file to export" | |
229 | #~ msgstr "Chọn tập tin để xuất" | |
230 | ||
231 | #~ msgid "Choose file to import" | |
232 | #~ msgstr "Chọn tập tin để nhập" | |
233 | ||
234 | #~ msgid "Full setup utility for IBus-Unikey" | |
235 | #~ msgstr "Tiện ích cài đặt đầy đủ cho IBus-Unikey" | |
236 | ||
237 | #~ msgid "Full setup..." | |
238 | #~ msgstr "Cài đặt đầy đủ..." | |
239 | ||
240 | #~ msgid "IBus-Unikey Setup" | |
241 | #~ msgstr "Cài đặt IBus-Unikey" | |
242 | ||
243 | #~ msgid "If enable, you can decrease mistake when typing" | |
244 | #~ msgstr "Nếu bật, bạn có thể giảm lỗi chính tả khi gõ" | |
245 | ||
246 | #~ msgid "Macro table definition" | |
247 | #~ msgstr "Định nghĩa bảng gõ tắt" | |
248 | ||
249 | #~ msgid "N" | |
250 | #~ msgstr "N" | |
251 | ||
252 | #~ msgid "Options" | |
253 | #~ msgstr "Tùy chọn" | |
254 | ||
255 | #~ msgid "Options for Unikey" | |
256 | #~ msgstr "Tùy chọn cho Unikey" | |
257 | ||
258 | #~ msgid "Replace with" | |
259 | #~ msgstr "Thay thế bởi" | |
260 | ||
261 | #~ msgid "Simple Telex" | |
262 | #~ msgstr "Simple Telex" | |
263 | ||
264 | #~ msgid "Simple Telex 2" | |
265 | #~ msgstr "Simple Telex 2" | |
266 | ||
267 | #, fuzzy | |
268 | #~ msgid "Toggle Macro" | |
269 | #~ msgstr "Bật gõ tắt" | |
270 | ||
271 | #, fuzzy | |
272 | #~ msgid "Toggle Spell Check" | |
273 | #~ msgstr "Bật kiểm tra chính tả" | |
274 | ||
275 | #~ msgid "" | |
276 | #~ "Vietnamese Input Method Engine for IBus using Unikey Engine\n" | |
277 | #~ "Usage:\n" | |
278 | #~ " - Choose input method, output charset, options in language bar.\n" | |
279 | #~ " - There are 4 input methods: Telex, Vni, STelex (simple telex) and " | |
280 | #~ "STelex2 (which same as STelex, the difference is it use w as ư).\n" | |
281 | #~ " - And 7 output charsets: Unicode (UTF-8), TCVN3, VNI Win, VIQR, " | |
282 | #~ "CString, NCR Decimal and NCR Hex.\n" | |
283 | #~ " - Use <Shift>+<Space> or <Shift>+<Shift> to restore keystrokes.\n" | |
284 | #~ " - Use <Control> to commit a word." | |
285 | #~ msgstr "" | |
286 | #~ "Bộ gõ tiếng Việt cho IBus dùng Unikey Engine\n" | |
287 | #~ "Sử dụng:\n" | |
288 | #~ " - Chọn kiểu gõ, bảng mã, tùy chọn trên thanh ngôn ngữ.\n" | |
289 | #~ " - Có 4 kiểu gõ: Telex, Vni, STelex (telex đơn giản) và STelex2 (giống " | |
290 | #~ "như STelex, chỉ khác là nó dùng w như ư).\n" | |
291 | #~ " - Và 7 bảng mã: Unicode (UTF-8), TCVN3, VNI Win, VIQR, CString, NCR " | |
292 | #~ "Decimal và NCR Hex.\n" | |
293 | #~ " - Dùng <Shift>+<Space> hoặc <Shift>+<Shift> để khôi phục phím.\n" | |
294 | #~ " - Dùng <Control> để xác nhận từ (kết thúc từ)." | |
295 | ||
296 | #~ msgid "_Edit macro" | |
297 | #~ msgstr "_Sửa bảng gõ tắt" |
0 | # SOME DESCRIPTIVE TITLE. | |
0 | 1 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER |
1 | 2 | # This file is distributed under the same license as the PACKAGE package. |
2 | 3 | # |
3 | 4 | # Translators: |
4 | 5 | # Christopher Meng <cickumqt@gmail.com>, 2012. |
6 | # marguerite su <i@marguerite.su>, 2012. | |
5 | 7 | # Weng Xuetian <wengxt@gmail.com>, 2012. |
6 | 8 | msgid "" |
7 | 9 | msgstr "" |
8 | 10 | "Project-Id-Version: fcitx\n" |
9 | "Report-Msgid-Bugs-To: \n" | |
10 | "POT-Creation-Date: 2012-10-20 22:29-0400\n" | |
11 | "PO-Revision-Date: 2012-10-20 22:47-0400\n" | |
12 | "Last-Translator: Weng Xuetian <wengxt@gmail.com>\n" | |
13 | "Language-Team: Chinese Simplified <kde-china@kde.org>\n" | |
11 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" | |
12 | "POT-Creation-Date: 2013-01-18 15:51-0500\n" | |
13 | "PO-Revision-Date: 2013-01-18 20:49+0000\n" | |
14 | "Last-Translator: Xuetian Weng <wengxt@gmail.com>\n" | |
15 | "Language-Team: Chinese (China) <fcitx-dev@googlegroups.com>\n" | |
14 | 16 | "Language: zh_CN\n" |
15 | 17 | "MIME-Version: 1.0\n" |
16 | 18 | "Content-Type: text/plain; charset=UTF-8\n" |
17 | 19 | "Content-Transfer-Encoding: 8bit\n" |
18 | "Plural-Forms: nplurals=1; plural=0\n" | |
19 | "X-Generator: Lokalize 1.5\n" | |
20 | "Plural-Forms: nplurals=1; plural=0;\n" | |
20 | 21 | |
21 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:21 | |
22 | #: macro-editor/editor.cpp:41 | |
22 | 23 | msgid "&Add" |
23 | 24 | msgstr "添加(&A)" |
24 | 25 | |
25 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:22 | |
26 | #: macro-editor/editor.cpp:42 | |
26 | 27 | msgid "&Delete" |
27 | 28 | msgstr "删除(&D)" |
28 | 29 | |
29 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:27 | |
30 | #: macro-editor/editor.cpp:45 | |
30 | 31 | msgid "&Export" |
31 | 32 | msgstr "导出(&E)" |
32 | 33 | |
33 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:26 | |
34 | #: macro-editor/editor.cpp:44 | |
34 | 35 | msgid "&Import" |
35 | 36 | msgstr "导入(&I)" |
36 | 37 | |
37 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:24 | |
38 | msgid "&Quit" | |
39 | msgstr "退出(&Q)" | |
40 | ||
41 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:25 | |
42 | msgid "&Save" | |
43 | msgstr "保存(&S)" | |
44 | ||
45 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:43 | |
46 | msgid "Allow type with more freedom" | |
47 | msgstr "" | |
48 | ||
49 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:48 | |
50 | msgid "Auto restore keys with invalid words" | |
51 | msgstr "" | |
52 | ||
53 | #: unknown | |
54 | msgid "BK HCM 2" | |
55 | msgstr "BK HCM 2" | |
56 | ||
57 | #: unknown | |
58 | msgid "CString" | |
59 | msgstr "CString" | |
60 | ||
61 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:105 | |
62 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:172 | |
38 | #: src/unikey-ui.cpp:105 src/unikey-ui.cpp:172 | |
63 | 39 | msgid "Choose input method" |
64 | 40 | msgstr "选择输入法" |
65 | 41 | |
66 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:113 | |
67 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:178 | |
42 | #: src/unikey-ui.cpp:113 src/unikey-ui.cpp:178 | |
68 | 43 | msgid "Choose output charset" |
69 | 44 | msgstr "选择输出字符集" |
70 | 45 | |
71 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:23 | |
46 | #: macro-editor/editor.cpp:43 | |
72 | 47 | msgid "De&lete All" |
73 | 48 | msgstr "全部删除(&L)" |
74 | 49 | |
75 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:128 | |
76 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:188 | |
50 | #: src/unikey-ui.cpp:128 src/unikey-ui.cpp:188 | |
77 | 51 | msgid "Enable Macro" |
78 | 52 | msgstr "开启宏" |
79 | 53 | |
80 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:120 | |
81 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:183 | |
54 | #: src/unikey-ui.cpp:120 src/unikey-ui.cpp:183 | |
82 | 55 | msgid "Enable Spell Check" |
83 | 56 | msgstr "启用拼写检查" |
84 | 57 | |
85 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:33 | |
86 | msgid "Enable macro" | |
87 | msgstr "开启宏" | |
88 | ||
89 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:28 | |
90 | msgid "Enable spell check" | |
91 | msgstr "启用拼写检查" | |
92 | ||
93 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:4 | |
94 | msgid "Input Method" | |
95 | msgstr "输入法" | |
96 | ||
97 | #: unknown | |
98 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:127 | |
99 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:187 | |
100 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/model.cpp:25 | |
58 | #: macro-editor/model.cpp:44 src/unikey-ui.cpp:127 src/unikey-ui.cpp:187 | |
59 | #: src/fcitx-unikey.conf.in:10 | |
101 | 60 | msgid "Macro" |
102 | 61 | msgstr "宏" |
103 | 62 | |
104 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:57 | |
105 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:85 | |
106 | msgid "Macro table still contains unsaved changes. Do you want to save?" | |
107 | msgstr "宏表上有未保存的修改。您想要保存吗?" | |
108 | ||
109 | #: unknown | |
110 | msgid "NCR Decimal" | |
111 | msgstr "NCR Decimal" | |
112 | ||
113 | #: unknown | |
114 | msgid "NCR Hex" | |
115 | msgstr "NCR Hex" | |
116 | ||
117 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:187 | |
63 | #: src/unikey-ui.cpp:187 | |
118 | 64 | msgid "No Macro" |
119 | 65 | msgstr "禁用宏" |
120 | 66 | |
121 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:182 | |
67 | #: src/unikey-ui.cpp:182 | |
122 | 68 | msgid "No Spell Check" |
123 | 69 | msgstr "禁用拼写检查" |
124 | 70 | |
125 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:14 | |
126 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:156 | |
71 | #: src/unikey-ui.cpp:156 | |
127 | 72 | msgid "Output Charset" |
128 | 73 | msgstr "输出字符集" |
129 | 74 | |
130 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:53 | |
131 | msgid "Process W at word begin" | |
132 | msgstr "" | |
133 | ||
134 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:56 | |
135 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:84 | |
136 | msgid "Quit Macro Editor" | |
137 | msgstr "" | |
138 | ||
139 | #: unknown | |
140 | msgid "STelex" | |
141 | msgstr "STelex" | |
142 | ||
143 | #: unknown | |
144 | msgid "STelex2" | |
145 | msgstr "STelex2" | |
146 | ||
147 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:119 | |
148 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:182 | |
75 | #: src/unikey-ui.cpp:119 src/unikey-ui.cpp:182 | |
149 | 76 | msgid "Spell Check" |
150 | 77 | msgstr "拼写检查" |
151 | 78 | |
152 | #: unknown | |
153 | msgid "TCVN3" | |
154 | msgstr "TCVN3" | |
155 | ||
156 | #: unknown | |
157 | msgid "Telex" | |
158 | msgstr "Telex" | |
159 | ||
160 | #: unknown | |
161 | msgid "Unicode" | |
162 | msgstr "Unicode" | |
163 | ||
164 | # unknown | |
165 | #: /home/saber/Develop/fcitx-unikey/build/po/tmp/fcitx-unikey.conf.in.h:1 | |
166 | #: /home/saber/Develop/fcitx-unikey/build/po/tmp/unikey.conf.in.h:1 | |
167 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-im.cpp:150 | |
79 | #: src/unikey-im.cpp:152 src/fcitx-unikey.conf.in:3 | |
168 | 80 | msgid "Unikey" |
169 | 81 | msgstr "Unikey" |
170 | 82 | |
171 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//src/unikey-ui.cpp:142 | |
83 | #: src/unikey-ui.cpp:142 | |
172 | 84 | msgid "Unikey Input Method" |
173 | 85 | msgstr "Unikey 输入法" |
174 | 86 | |
175 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/editor.cpp:30 | |
87 | #: macro-editor/editor.cpp:48 macro-editor/editor.cpp:71 | |
176 | 88 | msgid "Unikey Macro Editor" |
177 | 89 | msgstr "Unikey 宏编辑器" |
178 | 90 | |
179 | #: /home/saber/Develop/fcitx-unikey/build/po/tmp/fcitx-unikey.conf.in.h:2 | |
91 | #: src/fcitx-unikey.conf.in:4 | |
180 | 92 | msgid "Unikey Wrapper For Fcitx" |
181 | 93 | msgstr "Fcitx 的 Unikey 封装" |
182 | 94 | |
183 | #: /home/saber/Develop/fcitx-unikey/data/fcitx-unikey.desc:38 | |
184 | msgid "Use oà, _uý (instead of òa, úy)" | |
185 | msgstr "使用 oà, _uý (替换òa, úy)" | |
186 | ||
187 | #: unknown | |
188 | msgid "VIQR" | |
189 | msgstr "VIQR" | |
190 | ||
191 | #: unknown | |
192 | msgid "VNI Win" | |
193 | msgstr "VNI Win" | |
194 | ||
195 | #: unknown | |
196 | msgid "Vni" | |
197 | msgstr "Vni" | |
198 | ||
199 | #: /home/saber/Develop/fcitx-unikey/build/po/../..//macro-editor/model.cpp:27 | |
95 | #: macro-editor/model.cpp:46 | |
200 | 96 | msgid "Word" |
201 | 97 | msgstr "单词" |
202 | ||
203 | #~ msgid "N" | |
204 | #~ msgstr "N" |
0 | # SOME DESCRIPTIVE TITLE. | |
1 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | |
2 | # This file is distributed under the same license as the PACKAGE package. | |
3 | # | |
4 | # Translators: | |
5 | # Alisha <alisha.4m@gmail.com>, 2012. | |
6 | msgid "" | |
7 | msgstr "" | |
8 | "Project-Id-Version: fcitx\n" | |
9 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" | |
10 | "POT-Creation-Date: 2013-01-18 15:43-0500\n" | |
11 | "PO-Revision-Date: 2013-01-18 20:49+0000\n" | |
12 | "Last-Translator: Xuetian Weng <wengxt@gmail.com>\n" | |
13 | "Language-Team: Chinese (Taiwan) (http://www.transifex.com/projects/p/fcitx/language/zh_TW/)\n" | |
14 | "MIME-Version: 1.0\n" | |
15 | "Content-Type: text/plain; charset=UTF-8\n" | |
16 | "Content-Transfer-Encoding: 8bit\n" | |
17 | "Language: zh_TW\n" | |
18 | "Plural-Forms: nplurals=1; plural=0;\n" | |
19 | ||
20 | #: macro-editor/editor.cpp:41 | |
21 | msgid "&Add" | |
22 | msgstr "新增 (&A)" | |
23 | ||
24 | #: macro-editor/editor.cpp:42 | |
25 | msgid "&Delete" | |
26 | msgstr "刪除 (&D)" | |
27 | ||
28 | #: macro-editor/editor.cpp:43 | |
29 | msgid "De&lete All" | |
30 | msgstr "全部刪除 (&L)" | |
31 | ||
32 | #: macro-editor/editor.cpp:44 | |
33 | msgid "&Import" | |
34 | msgstr "匯入 (&I)" | |
35 | ||
36 | #: macro-editor/editor.cpp:45 | |
37 | msgid "&Export" | |
38 | msgstr "匯出 (&E)" | |
39 | ||
40 | #: macro-editor/editor.cpp:48 macro-editor/editor.cpp:71 | |
41 | msgid "Unikey Macro Editor" | |
42 | msgstr "Unikey 巨集編輯器" | |
43 | ||
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 "巨集" | |
48 | ||
49 | #: macro-editor/model.cpp:46 | |
50 | msgid "Word" | |
51 | msgstr "單字" | |
52 | ||
53 | #: src/unikey-im.cpp:152 src/fcitx-unikey.conf.in:3 | |
54 | msgid "Unikey" | |
55 | msgstr "Unikey" | |
56 | ||
57 | #: src/unikey-ui.cpp:105 src/unikey-ui.cpp:172 | |
58 | msgid "Choose input method" | |
59 | msgstr "選擇輸入法" | |
60 | ||
61 | #: src/unikey-ui.cpp:113 src/unikey-ui.cpp:178 | |
62 | msgid "Choose output charset" | |
63 | msgstr "選擇輸出字元集" | |
64 | ||
65 | #: src/unikey-ui.cpp:119 src/unikey-ui.cpp:182 | |
66 | msgid "Spell Check" | |
67 | msgstr "拼字檢查" | |
68 | ||
69 | #: src/unikey-ui.cpp:120 src/unikey-ui.cpp:183 | |
70 | msgid "Enable Spell Check" | |
71 | msgstr "啟用拼字檢查" | |
72 | ||
73 | #: src/unikey-ui.cpp:128 src/unikey-ui.cpp:188 | |
74 | msgid "Enable Macro" | |
75 | msgstr "啟用巨集" | |
76 | ||
77 | #: src/unikey-ui.cpp:142 | |
78 | msgid "Unikey Input Method" | |
79 | msgstr "Unikey 輸入法" | |
80 | ||
81 | #: src/unikey-ui.cpp:156 | |
82 | msgid "Output Charset" | |
83 | msgstr "輸出字元集" | |
84 | ||
85 | #: src/unikey-ui.cpp:182 | |
86 | msgid "No Spell Check" | |
87 | msgstr "停用拼寫檢查" | |
88 | ||
89 | #: src/unikey-ui.cpp:187 | |
90 | msgid "No Macro" | |
91 | msgstr "停用巨集" | |
92 | ||
93 | #: src/fcitx-unikey.conf.in:4 | |
94 | msgid "Unikey Wrapper For Fcitx" | |
95 | msgstr "Fcitx 的 Unikey 封裝" |
0 | ||
0 | 1 | include_directories ( |
1 | 2 | ${PROJECT_SOURCE_DIR}/unikey |
2 | 3 | ${FCITX4_FCITX_INCLUDE_DIRS} |
14 | 15 | |
15 | 16 | add_definitions( -DLOCALEDIR=\"${CMAKE_INSTALL_PREFIX}/share/locale\" ) |
16 | 17 | |
17 | fcitx_add_addon(fcitx-unikey ${fcitx_unikey_sources} ) | |
18 | target_link_libraries(fcitx-unikey unikey) | |
18 | fcitx_add_addon_full(unikey | |
19 | SOURCES ${fcitx_unikey_sources} | |
20 | LINK_LIBS unikey | |
21 | ) |
0 | [Addon] | |
1 | Name=fcitx-unikey | |
2 | _GeneralName=Unikey | |
3 | _Comment=Unikey Wrapper For Fcitx | |
4 | Category=InputMethod | |
5 | Enabled=True | |
6 | Library=fcitx-unikey.so | |
7 | Type=SharedLibrary | |
8 | IMRegisterMethod=ConfigFile | |
9 | SubConfig=Macro:native:unikey/macro,fcitx-unikey:domain |
0 | [Unikey/InputMethod] | |
1 | Type=Enum | |
2 | DefaultValue=Telex | |
3 | Description=Input Method | |
4 | EnumCount=4 | |
5 | Enum0=Telex | |
6 | Enum1=Vni | |
7 | Enum2=STelex | |
8 | Enum3=STelex2 | |
9 | ||
10 | [Unikey/OutputCharset] | |
11 | Type=Enum | |
12 | DefaultValue=Unicode | |
13 | Description=Output Charset | |
14 | EnumCount=8 | |
15 | Enum0=Unicode | |
16 | Enum1=TCVN3 | |
17 | Enum2=VNI Win | |
18 | Enum3=VIQR | |
19 | Enum4=BK HCM 2 | |
20 | Enum5=CString | |
21 | Enum6=NCR Decimal | |
22 | Enum7=NCR Hex | |
23 | ||
24 | [Unikey/SpellCheck] | |
25 | Type=Boolean | |
26 | DefaultValue=True | |
27 | Description=Enable spell check | |
28 | ||
29 | [Unikey/Macro] | |
30 | Type=Boolean | |
31 | DefaultValue=False | |
32 | Description=Enable macro | |
33 | ||
34 | [Unikey/ModernStyle] | |
35 | Type=Boolean | |
36 | DefaultValue=False | |
37 | Description=Use oà, _uý (instead of òa, úy) | |
38 | ||
39 | [Unikey/FreeMarking] | |
40 | Type=Boolean | |
41 | DefaultValue=True | |
42 | Description=Allow type with more freedom | |
43 | ||
44 | [Unikey/AutoNonVnRestore] | |
45 | Type=Boolean | |
46 | DefaultValue=True | |
47 | Description=Auto restore keys with invalid words | |
48 | ||
49 | [Unikey/ProcessWAtBegin] | |
50 | Type=Boolean | |
51 | DefaultValue=True | |
52 | Description=Process W at word begin | |
53 | ||
54 | [DescriptionFile] | |
55 | LocaleDomain=fcitx-unikey |
50 | 50 | static boolean FcitxUnikeyInit(void* arg); |
51 | 51 | static void FcitxUnikeyReset(void* arg); |
52 | 52 | static void FcitxUnikeyResetUI(void* arg); |
53 | static void FcitxUnikeySave(void* arg); | |
53 | 54 | static INPUT_RETURN_VALUE FcitxUnikeyDoInputPreedit(FcitxUnikey* unikey, FcitxKeySym sym, unsigned int state); |
54 | 55 | static void FcitxUnikeyEraseChars(FcitxUnikey *unikey, int num_chars); |
55 | 56 | static void FcitxUnikeyUpdatePreedit(FcitxUnikey *unikey); |
141 | 142 | iface.ResetIM = FcitxUnikeyReset; |
142 | 143 | iface.DoInput = FcitxUnikeyDoInput; |
143 | 144 | iface.ReloadConfig = ReloadConfigFcitxUnikey; |
145 | iface.Save = FcitxUnikeySave; | |
144 | 146 | |
145 | 147 | FcitxInstanceRegisterIMv2( |
146 | 148 | instance, |
572 | 574 | FcitxUISetStatusVisable(instance, "unikey-macro", visible); |
573 | 575 | } |
574 | 576 | |
577 | void FcitxUnikeySave(void* arg) | |
578 | { | |
579 | FcitxUnikey* unikey = (FcitxUnikey*) arg; | |
580 | if (!unikey->preeditstr->empty()) | |
581 | FcitxUnikeyCommit(unikey); | |
582 | } | |
583 | ||
575 | 584 | void UpdateUnikeyConfig(FcitxUnikey* unikey) |
576 | 585 | { |
577 | 586 | ConfigUnikey(unikey); |
1 | 1 | Version 2, June 1991 |
2 | 2 | |
3 | 3 | Copyright (C) 1991 Free Software Foundation, Inc. |
4 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
4 | 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
5 | 5 | Everyone is permitted to copy and distribute verbatim copies |
6 | 6 | of this license document, but changing it is not allowed. |
7 | 7 | |
463 | 463 | |
464 | 464 | You should have received a copy of the GNU Library General Public |
465 | 465 | License along with this library; if not, write to the |
466 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
467 | Boston, MA 02111-1307 USA. | |
466 | Free Software Foundation, Inc., 51 Franklin St, Fifth Floor | |
467 | Boston, MA 02110-1301, USA. | |
468 | 468 | |
469 | 469 | Also add information on how to contact you by electronic and paper mail. |
470 | 470 |
16 | 16 | |
17 | 17 | You should have received a copy of the GNU General Public License |
18 | 18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | 20 | --------------------------------------------------------------------------------*/ |
21 | 21 | |
22 | 22 | #include <stddef.h> |
16 | 16 | |
17 | 17 | You should have received a copy of the GNU General Public License |
18 | 18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | 20 | --------------------------------------------------------------------------------*/ |
21 | 21 | |
22 | 22 | #ifndef __CHARSET_CONVERT_H |
16 | 16 | |
17 | 17 | You should have received a copy of the GNU General Public License |
18 | 18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | 20 | --------------------------------------------------------------------------------*/ |
21 | 21 | |
22 | 22 | #include "charset.h" |
16 | 16 | |
17 | 17 | You should have received a copy of the GNU General Public License |
18 | 18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | 20 | --------------------------------------------------------------------------------*/ |
21 | 21 | |
22 | 22 | #include "charset.h" |
16 | 16 | |
17 | 17 | You should have received a copy of the GNU General Public License |
18 | 18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | 20 | --------------------------------------------------------------------------------*/ |
21 | 21 | // For some unknown reasons, the functions in this file cannot be exported |
22 | 22 | // We had to move them to convert.cpp. |
16 | 16 | * |
17 | 17 | * You should have received a copy of the GNU Lesser General Public |
18 | 18 | * License along with this library; if not, write to the |
19 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | * Boston, MA 02111-1307, USA. | |
19 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor | |
20 | * Boston, MA 02110-1301, USA. | |
21 | 21 | */ |
22 | 22 | |
23 | 23 | #include <iostream> |
16 | 16 | * |
17 | 17 | * You should have received a copy of the GNU Lesser General Public |
18 | 18 | * License along with this library; if not, write to the |
19 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | * Boston, MA 02111-1307, USA. | |
19 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor | |
20 | * Boston, MA 02110-1301, USA. | |
21 | 21 | */ |
22 | 22 | #ifndef __UK_INPUT_PROCESSOR_H |
23 | 23 | #define __UK_INPUT_PROCESSOR_H |
17 | 17 | |
18 | 18 | You should have received a copy of the GNU General Public License |
19 | 19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
20 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
21 | 21 | --------------------------------------------------------------------------------*/ |
22 | 22 | #ifndef __KEY_CONS_H |
23 | 23 | #define __KEY_CONS_H |
16 | 16 | * |
17 | 17 | * You should have received a copy of the GNU Lesser General Public |
18 | 18 | * License along with this library; if not, write to the |
19 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | * Boston, MA 02111-1307, USA. | |
19 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor | |
20 | * Boston, MA 02110-1301, USA. | |
21 | 21 | */ |
22 | 22 | |
23 | 23 | #include <stdio.h> |
16 | 16 | * |
17 | 17 | * You should have received a copy of the GNU Lesser General Public |
18 | 18 | * License along with this library; if not, write to the |
19 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | * Boston, MA 02111-1307, USA. | |
19 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor | |
20 | * Boston, MA 02110-1301, USA. | |
21 | 21 | */ |
22 | 22 | |
23 | 23 | #ifndef __MACRO_TABLE_H |
16 | 16 | |
17 | 17 | You should have received a copy of the GNU General Public License |
18 | 18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | 20 | --------------------------------------------------------------------------------*/ |
21 | 21 | |
22 | 22 | #include "pattern.h" |
16 | 16 | |
17 | 17 | You should have received a copy of the GNU General Public License |
18 | 18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | 20 | --------------------------------------------------------------------------------*/ |
21 | 21 | |
22 | 22 | #ifndef __PATTERN_H |
16 | 16 | * |
17 | 17 | * You should have received a copy of the GNU Lesser General Public |
18 | 18 | * License along with this library; if not, write to the |
19 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | * Boston, MA 02111-1307, USA. | |
19 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor | |
20 | * Boston, MA 02110-1301, USA. | |
21 | 21 | */ |
22 | 22 | |
23 | 23 | #include <stdlib.h> |
16 | 16 | * |
17 | 17 | * You should have received a copy of the GNU Lesser General Public |
18 | 18 | * License along with this library; if not, write to the |
19 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | * Boston, MA 02111-1307, USA. | |
19 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor | |
20 | * Boston, MA 02110-1301, USA. | |
21 | 21 | */ |
22 | 22 | |
23 | 23 | #ifndef __UKENGINE_H |
17 | 17 | |
18 | 18 | You should have received a copy of the GNU General Public License |
19 | 19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
20 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
21 | 21 | --------------------------------------------------------------------------------*/ |
22 | 22 | |
23 | 23 | #include <ctype.h> |
17 | 17 | |
18 | 18 | You should have received a copy of the GNU General Public License |
19 | 19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
20 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
21 | 21 | --------------------------------------------------------------------------------*/ |
22 | 22 | |
23 | 23 | #ifndef __UNIKEY_H |
16 | 16 | * |
17 | 17 | * You should have received a copy of the GNU Lesser General Public |
18 | 18 | * License along with this library; if not, write to the |
19 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | * Boston, MA 02111-1307, USA. | |
19 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor | |
20 | * Boston, MA 02110-1301, USA. | |
21 | 21 | */ |
22 | 22 | |
23 | 23 | #include <iostream> |
16 | 16 | * |
17 | 17 | * You should have received a copy of the GNU Lesser General Public |
18 | 18 | * License along with this library; if not, write to the |
19 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | * Boston, MA 02111-1307, USA. | |
19 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor | |
20 | * Boston, MA 02110-1301, USA. | |
21 | 21 | */ |
22 | 22 | |
23 | 23 | #ifndef __UNIKEY_USER_KEY_MAP_H |
16 | 16 | |
17 | 17 | You should have received a copy of the GNU General Public License |
18 | 18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | 20 | --------------------------------------------------------------------------------*/ |
21 | 21 | |
22 | 22 | // |
16 | 16 | * |
17 | 17 | * You should have received a copy of the GNU Lesser General Public |
18 | 18 | * License along with this library; if not, write to the |
19 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | * Boston, MA 02111-1307, USA. | |
19 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor | |
20 | * Boston, MA 02110-1301, USA. | |
21 | 21 | */ |
22 | 22 | |
23 | 23 | #ifndef __VN_LEXI_H |