summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhollowman6 <hollowman186@vip.qq.com>2020-03-03 09:17:49 +0000
committerPeng Wu <alexepico@gmail.com>2020-03-03 19:15:27 +0900
commit8c65964af7d214ff2ba700b341c9adc80de860e7 (patch)
treed5a94b6de05504b9e1c4ec0289fa517cdfaf706c
parent107e405d72e0bb09112b82d3cfef51e29f0119cd (diff)
downloadibus-libpinyin-8c65964af7d214ff2ba700b341c9adc80de860e7.tar.gz
ibus-libpinyin-8c65964af7d214ff2ba700b341c9adc80de860e7.tar.xz
ibus-libpinyin-8c65964af7d214ff2ba700b341c9adc80de860e7.zip
Fix grammar errors in code
-rw-r--r--setup/ibus-libpinyin-preferences.ui6
-rw-r--r--setup/keyboardshortcut.py2
-rw-r--r--setup/shortcuteditor.py2
-rw-r--r--src/PYEnglishEditor.cc4
4 files changed, 7 insertions, 7 deletions
diff --git a/setup/ibus-libpinyin-preferences.ui b/setup/ibus-libpinyin-preferences.ui
index 36bfe47..e4f970a 100644
--- a/setup/ibus-libpinyin-preferences.ui
+++ b/setup/ibus-libpinyin-preferences.ui
@@ -601,7 +601,7 @@
<property name="orientation">vertical</property>
<child>
<object class="GtkCheckButton" id="DynamicAdjust">
- <property name="label" translatable="yes">Dynamic adjust the candidates order.</property>
+ <property name="label" translatable="yes">Dynamically adjust the candidates order.</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -1128,7 +1128,7 @@
</child>
<child>
<object class="GtkCheckButton" id="CorrectPinyin">
- <property name="label" translatable="yes">Enable correct pinyin</property>
+ <property name="label" translatable="yes">Enable pinyin correction</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -1856,7 +1856,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">end</property>
- <property name="label" translatable="yes">Tips: this changes may take effects after ime restarted.</property>
+ <property name="label" translatable="yes">Tips: Changes may not take effect until ime restarts.</property>
</object>
<packing>
<property name="expand">True</property>
diff --git a/setup/keyboardshortcut.py b/setup/keyboardshortcut.py
index 755888d..fdf936b 100644
--- a/setup/keyboardshortcut.py
+++ b/setup/keyboardshortcut.py
@@ -169,7 +169,7 @@ class KeyboardShortcutSelection(Gtk.Box):
dlg = Gtk.MessageDialog(transient_for = self.get_toplevel(),
buttons = Gtk.ButtonsType.CLOSE)
message = _("Please press a key (or a key combination).\n" \
- "The dialog will be closed when the key is released.")
+ "The dialog will close when the key is released.")
dlg.set_markup(message)
dlg.set_title(_("Please press a key (or a key combination)"))
diff --git a/setup/shortcuteditor.py b/setup/shortcuteditor.py
index a40b84e..af07faa 100644
--- a/setup/shortcuteditor.py
+++ b/setup/shortcuteditor.py
@@ -103,7 +103,7 @@ class ShortcutTreeView(Gtk.TreeView):
if row[COLUMN_ACCELERATOR] == value:
dialog = Gtk.MessageDialog(None, 0, Gtk.MessageType.WARNING,
Gtk.ButtonsType.OK,
- _("This shortcut key is already used."))
+ _("This shortcut key is already in use."))
dialog.run()
dialog.destroy()
return False
diff --git a/src/PYEnglishEditor.cc b/src/PYEnglishEditor.cc
index 058eedb..8cd370b 100644
--- a/src/PYEnglishEditor.cc
+++ b/src/PYEnglishEditor.cc
@@ -374,7 +374,7 @@ EnglishEditor::EnglishEditor (PinyinProperties & props, Config &config)
m_english_database->openDatabase
(PKGDATADIR G_DIR_SEPARATOR_S "db" G_DIR_SEPARATOR_S "english.db", path);
if (!result)
- g_warning ("can't open english word list database.\n");
+ g_warning ("can't open English word list database.\n");
}
EnglishEditor::~EnglishEditor ()
@@ -616,7 +616,7 @@ EnglishEditor::updateStateFromInput (void)
if (1 == m_text.length ()) {
clearLookupTable ();
- const char * help_string = _("Please input the english word.");
+ const char * help_string = _("Please input the English word.");
int space_len = std::max ( 0, m_aux_text_len
- (int) g_utf8_strlen (help_string, -1));
m_auxiliary_text.append (space_len, ' ');