Skip to content

Commit

Permalink
Translation for Ansi Menu (pcman-bbs#76)
Browse files Browse the repository at this point in the history
Adding some missing zh_TW translation.
  • Loading branch information
wcchang1115 authored and kidwm committed May 13, 2016
1 parent 40337e3 commit 9a8b4b7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
20 changes: 20 additions & 0 deletions po/zh_TW.po
Original file line number Diff line number Diff line change
Expand Up @@ -685,3 +685,23 @@ msgstr "另存新檔"
#, c-format
msgid "Error saving file '%s': %s"
msgstr "當儲存為「%s」時發生錯誤: %s"

#: ../src/mainframe.cpp:533 ../src/mainframe.cpp:1937
msgid "Ansi Editor"
msgstr "Ansi 編輯器"

#: ../src/mainframe.cpp:534
msgid "Open Ansi Editor"
msgstr "開啟 Ansi 編輯器"

#: ../src/mainframe.cpp:535 ../src/mainframe.cpp:1943
msgid "Open Ansi File"
msgstr "開啟 Ansi 檔案"

#: ../src/mainframe.cpp:536 ../src/mainframe.cpp:1976
msgid "Save Ansi File"
msgstr "儲存 Ansi 檔案"

#: ../src/mainframe.cpp:537
msgid "Clear Screen"
msgstr "清除頁面"
6 changes: 3 additions & 3 deletions src/mainframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1934,13 +1934,13 @@ void CMainFrame::UpdateBotStatus()
*/
void CMainFrame::OnAnsiEditor(GtkMenuItem *mitem, CMainFrame *_this)
{
_this->NewCon("Ansi Editor", "ansi_editor");
_this->NewCon(_("Ansi Editor"), "ansi_editor");
}

void CMainFrame::OnOpenAnsiFile(GtkMenuItem *mitem, CMainFrame *_this)
{
GtkWidget *dialog = gtk_file_chooser_dialog_new (
"Open Ansi File",
_("Open Ansi File"),
NULL,
GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
Expand Down Expand Up @@ -1973,7 +1973,7 @@ void CMainFrame::OnSaveAnsiFile(GtkMenuItem *mitem, CMainFrame *_this)
return;

GtkWidget *dialog = gtk_file_chooser_dialog_new (
"Save Ansi File",
_("Save Ansi File"),
GTK_WINDOW(_this),
GTK_FILE_CHOOSER_ACTION_SAVE,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
Expand Down

0 comments on commit 9a8b4b7

Please sign in to comment.