From c3ec57489b0e02a74c8648a07eada20b5ac219ac Mon Sep 17 00:00:00 2001 From: "Hiroshi Miura (momokuri)" Date: Sat, 31 Jul 2010 09:55:27 +0900 Subject: [PATCH] add missing tr() for I18N --- .../fbn/nevernote/dialog/ConfigAppearancePage.java | 8 +- src/cx/fbn/nevernote/dialog/ConfigDebugPage.java | 8 +- src/cx/fbn/nevernote/gui/MainMenuBar.java | 6 +- src/cx/fbn/nevernote/gui/TableView.java | 38 +-- translations/nevernote_de.ts | 307 +++++++++++++-------- translations/nevernote_fr.ts | 307 +++++++++++++-------- translations/nevernote_ja.ts | 267 +++++++++++++----- 7 files changed, 609 insertions(+), 332 deletions(-) diff --git a/src/cx/fbn/nevernote/dialog/ConfigAppearancePage.java b/src/cx/fbn/nevernote/dialog/ConfigAppearancePage.java index 93c35f6..f467374 100644 --- a/src/cx/fbn/nevernote/dialog/ConfigAppearancePage.java +++ b/src/cx/fbn/nevernote/dialog/ConfigAppearancePage.java @@ -90,10 +90,10 @@ public class ConfigAppearancePage extends QWidget { QGroupBox tagBehaviorGroup = new QGroupBox(tr("Tag Behavior")); tagBehavior = new QComboBox(); - tagBehavior.addItem(tr("Do nothing")); - tagBehavior.addItem(tr("Count tags & do not hide inactive")); - tagBehavior.addItem(tr("Count tags & hide inactive")); - tagBehavior.addItem(tr("Color active tags")); + tagBehavior.addItem("Do nothing"); + tagBehavior.addItem("Count tags & do not hide inactive"); + tagBehavior.addItem("Count tags & hide inactive"); + tagBehavior.addItem("Color active tags"); QFormLayout tagLayout = new QFormLayout(); tagLayout.addWidget(tagBehavior); diff --git a/src/cx/fbn/nevernote/dialog/ConfigDebugPage.java b/src/cx/fbn/nevernote/dialog/ConfigDebugPage.java index 3132f23..b204c9c 100644 --- a/src/cx/fbn/nevernote/dialog/ConfigDebugPage.java +++ b/src/cx/fbn/nevernote/dialog/ConfigDebugPage.java @@ -54,10 +54,10 @@ public class ConfigDebugPage extends QWidget { QGroupBox messageGroup = new QGroupBox(tr("Debug Messages")); QLabel messageLevelLabel = new QLabel(tr("Message Level")); messageCombo = new QComboBox(); - messageCombo.addItem(tr("Low")); - messageCombo.addItem(tr("Medium")); - messageCombo.addItem(tr("High")); - messageCombo.addItem(tr("Extreme")); + messageCombo.addItem("Low"); + messageCombo.addItem("Medium"); + messageCombo.addItem("High"); + messageCombo.addItem("Extreme"); QHBoxLayout messageLayout = new QHBoxLayout(); messageLayout.addWidget(messageLevelLabel); diff --git a/src/cx/fbn/nevernote/gui/MainMenuBar.java b/src/cx/fbn/nevernote/gui/MainMenuBar.java index afa4f19..a1b5e3f 100644 --- a/src/cx/fbn/nevernote/gui/MainMenuBar.java +++ b/src/cx/fbn/nevernote/gui/MainMenuBar.java @@ -557,7 +557,7 @@ public class MainMenuBar extends QMenuBar { fileMenu.addAction(emptyTrashAction); fileMenu.addAction(exitAction); - editMenu = addMenu("&Edit"); + editMenu = addMenu(tr("&Edit")); editMenu.addAction(editFind); editMenu.addSeparator(); editMenu.addAction(editUndo); @@ -570,7 +570,7 @@ public class MainMenuBar extends QMenuBar { editMenu.addSeparator(); editMenu.addAction(settingsAction); - viewMenu = addMenu("&View"); + viewMenu = addMenu(tr("&View")); viewMenu.addAction(noteAttributes); viewMenu.addSeparator(); viewMenu.addAction(thumbnailView); @@ -584,7 +584,7 @@ public class MainMenuBar extends QMenuBar { viewMenu.addAction(showEditorBar); viewMenu.addAction(hideLeftSide); - formatMenu = addMenu("&Format"); + formatMenu = addMenu(tr("&Format")); formatMenu.addAction(formatBold); formatMenu.addAction(formatUnderline); formatMenu.addAction(formatItalic); diff --git a/src/cx/fbn/nevernote/gui/TableView.java b/src/cx/fbn/nevernote/gui/TableView.java index b30237b..3368ef2 100644 --- a/src/cx/fbn/nevernote/gui/TableView.java +++ b/src/cx/fbn/nevernote/gui/TableView.java @@ -93,16 +93,16 @@ public class TableView extends QTableView { model = new QStandardItemModel(0,Global.noteTableColumnCount, this); - model.setHeaderData(Global.noteTableCreationPosition, Qt.Orientation.Horizontal, "Date Created"); - model.setHeaderData(Global.noteTableTagPosition, Qt.Orientation.Horizontal, "Tags"); - model.setHeaderData(Global.noteTableGuidPosition, Qt.Orientation.Horizontal, "Guid"); - model.setHeaderData(Global.noteTableNotebookPosition, Qt.Orientation.Horizontal, "Notebook"); - model.setHeaderData(Global.noteTableTitlePosition, Qt.Orientation.Horizontal, "Title"); - model.setHeaderData(Global.noteTableChangedPosition, Qt.Orientation.Horizontal, "Date Changed"); - model.setHeaderData(Global.noteTableAuthorPosition, Qt.Orientation.Horizontal, "Author"); - model.setHeaderData(Global.noteTableSourceUrlPosition, Qt.Orientation.Horizontal, "Source Url"); - model.setHeaderData(Global.noteTableSubjectDatePosition, Qt.Orientation.Horizontal, "Subject Date"); - model.setHeaderData(Global.noteTableSynchronizedPosition, Qt.Orientation.Horizontal, "Synchronized"); + model.setHeaderData(Global.noteTableCreationPosition, Qt.Orientation.Horizontal, tr("Date Created")); + model.setHeaderData(Global.noteTableTagPosition, Qt.Orientation.Horizontal, tr("Tags")); + model.setHeaderData(Global.noteTableGuidPosition, Qt.Orientation.Horizontal, tr("Guid")); + model.setHeaderData(Global.noteTableNotebookPosition, Qt.Orientation.Horizontal, tr("Notebook")); + model.setHeaderData(Global.noteTableTitlePosition, Qt.Orientation.Horizontal, tr("Title")); + model.setHeaderData(Global.noteTableChangedPosition, Qt.Orientation.Horizontal, tr("Date Changed")); + model.setHeaderData(Global.noteTableAuthorPosition, Qt.Orientation.Horizontal, tr("Author")); + model.setHeaderData(Global.noteTableSourceUrlPosition, Qt.Orientation.Horizontal, tr("Source Url")); + model.setHeaderData(Global.noteTableSubjectDatePosition, Qt.Orientation.Horizontal, tr("Subject Date")); + model.setHeaderData(Global.noteTableSynchronizedPosition, Qt.Orientation.Horizontal, tr("Synchronized")); header.sortIndicatorChanged.connect(this, "resetViewport()"); proxyModel = new NoteSortFilterProxyModel(this); @@ -382,15 +382,15 @@ public class TableView extends QTableView { noteTitleColorCyan = new QAction(titleColorMenu); noteTitleColorMagenta = new QAction(titleColorMenu); - noteTitleColorWhite.setText("White"); - noteTitleColorRed.setText("Red"); - noteTitleColorBlue.setText("Blue"); - noteTitleColorGreen.setText("Green"); - noteTitleColorYellow.setText("Yellow"); - noteTitleColorBlack.setText("Black"); - noteTitleColorGray.setText("Gray"); - noteTitleColorCyan.setText("Cyan"); - noteTitleColorMagenta.setText("Magenta"); + noteTitleColorWhite.setText(tr("White")); + noteTitleColorRed.setText(tr("Red")); + noteTitleColorBlue.setText(tr("Blue")); + noteTitleColorGreen.setText(tr("Green")); + noteTitleColorYellow.setText(tr("Yellow")); + noteTitleColorBlack.setText(tr("Black")); + noteTitleColorGray.setText(tr("Gray")); + noteTitleColorCyan.setText(tr("Cyan")); + noteTitleColorMagenta.setText(tr("Magenta")); titleColorMenu.addAction(noteTitleColorWhite); titleColorMenu.addAction(noteTitleColorRed); diff --git a/translations/nevernote_de.ts b/translations/nevernote_de.ts index 2fdba0a..bc49bd5 100644 --- a/translations/nevernote_de.ts +++ b/translations/nevernote_de.ts @@ -4,179 +4,179 @@ cx.fbn.nevernote.NeverNote - + Beginning shutdown. - + Performing synchronization before closing. - + Edit Notebook - - + + Unable to Delete - + Some of the selected notebook(s) contain notes. Please delete the notes or move them to another notebook before deleting any notebooks. - + You must have at least one notebook. - - - - - - + + + + + + Confirmation - + Delete the selected notebooks? - + Delete the selected tags? - + This will free unused space in the database, but please be aware that depending upon the size of your database this can be time consuming and NeverNote will be unresponsive until it is complete. Do you wish to continue? - + Release Notes - + Mesasge Log - + About NeverNote - + <h4><center><b>NeverNote</b></center></h4><hr><center>Version - + <hr></center>Evernote Generic client.<br><br>Licensed under GPL v2. <br><hr><br>Evernote is copyright 2001-2010 by Evernote Corporation<br>Jambi and QT are the licensed trademark of Nokia Corporation<br>PDFRenderer is licened under the LGPL<br>Jazzy is licened under the LGPL<br>Java is a registered trademark of Sun Microsystems.<br><hr> - + toolBar - + This will cause all notes & attachments to be reindexed, but please be aware that depending upon the size of your database updating all these records can be time consuming and NeverNote will be unresponsive until it is complete. Do you wish to continue? - + Marking notes for reindex. - + Database will be reindexed. - + Notes will be reindexed. - + Note will be reindexed. - + Delete selected note(s)? - + Note has never been synchronized. - + Error - + This note has never been sent to Evernote, so there is no history. - + Getting Note History - + Note not found on server. - + History retrieved - + Restoring as new note. - + Note has been restored as a new note. - + Restoring note. - + Note has been restored. - + DOUGH!!! - + Well, this is embarrassing. Some attachments or images for this note appear to be missing from my database. @@ -195,97 +195,97 @@ Who knows, you might get lucky. - + Finalizing Synchronization - + Synchronization Complete - + Index completed. - - + + Indexing notes. - + Indexing is now enabled. - + Indexing is now disabled. - - - - - - + + + + + + A thread his died. - + It appears as the tag counter thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - + It appears as the notebook counter thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - + It appears as the note saver thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - + It appears as the synchronization thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - + It appears as the index thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - - + + Backup Database - - - - + + + + NeverNote Export (*.nnex);;All Files (*.*) - + Backing up database - + Database backup completed. - + This is used to restore a database from backups. It is HIGHLY recommened that this only be used to populate an empty database. Restoring into a database that @@ -295,37 +295,37 @@ Are you sure you want to continue? - + Restore Database - + Restoring database - + Database has been restored. - + Exporting Notes - + Export completed. - + Import Notes - + Notes have been imported. @@ -361,26 +361,6 @@ Are you sure you want to continue? - - Do nothing - - - - - Count tags & do not hide inactive - - - - - Count tags & hide inactive - - - - - Color active tags - - - Date/Time Format @@ -437,26 +417,6 @@ Are you sure you want to continue? - - Low - - - - - Medium - - - - - High - - - - - Extreme - - - Carriage Return Fix @@ -789,14 +749,90 @@ Are you sure you want to continue? + cx.fbn.nevernote.dialog.EnDecryptDialog + + + Decrypt Text + + + + + Password + + + + + Permanently Decrypt + + + + + Remember For This Session + + + + + Hint: + + + + + Cancel + + + + cx.fbn.nevernote.dialog.NotebookArchive + + Cancel + + + + + Open Notebooks + + + + + Closed Notebooks + + + Open/Close Notebooks + cx.fbn.nevernote.dialog.OnlineNoteHistory + + + Online Note History + + + + + History Date: + + + + + Restore Note + + + + + Restore As New Note + + + + + Cancel + + + + cx.fbn.nevernote.dialog.PreviewDialog @@ -810,6 +846,24 @@ Are you sure you want to continue? + cx.fbn.nevernote.dialog.TableDialog + + + Insert Table + + + + + OK + + + + + Cancel + + + + cx.fbn.nevernote.dialog.TagAssign @@ -828,6 +882,16 @@ Are you sure you want to continue? cx.fbn.nevernote.dialog.WatchFolderAdd + + Notebook + + + + + After Import + + + Add Import Folder @@ -1628,6 +1692,21 @@ and I'm too lazy to figure them out by myself. + + &Edit + + + + + &View + + + + + &Format + + + Alignment diff --git a/translations/nevernote_fr.ts b/translations/nevernote_fr.ts index 9e68839..e9b269b 100644 --- a/translations/nevernote_fr.ts +++ b/translations/nevernote_fr.ts @@ -4,179 +4,179 @@ cx.fbn.nevernote.NeverNote - + Beginning shutdown. - + Performing synchronization before closing. - + Edit Notebook - - + + Unable to Delete - + Some of the selected notebook(s) contain notes. Please delete the notes or move them to another notebook before deleting any notebooks. - + You must have at least one notebook. - - - - - - + + + + + + Confirmation - + Delete the selected notebooks? - + Delete the selected tags? - + This will free unused space in the database, but please be aware that depending upon the size of your database this can be time consuming and NeverNote will be unresponsive until it is complete. Do you wish to continue? - + Release Notes - + Mesasge Log - + About NeverNote - + <h4><center><b>NeverNote</b></center></h4><hr><center>Version - + <hr></center>Evernote Generic client.<br><br>Licensed under GPL v2. <br><hr><br>Evernote is copyright 2001-2010 by Evernote Corporation<br>Jambi and QT are the licensed trademark of Nokia Corporation<br>PDFRenderer is licened under the LGPL<br>Jazzy is licened under the LGPL<br>Java is a registered trademark of Sun Microsystems.<br><hr> - + toolBar - + This will cause all notes & attachments to be reindexed, but please be aware that depending upon the size of your database updating all these records can be time consuming and NeverNote will be unresponsive until it is complete. Do you wish to continue? - + Marking notes for reindex. - + Database will be reindexed. - + Notes will be reindexed. - + Note will be reindexed. - + Delete selected note(s)? - + Note has never been synchronized. - + Error - + This note has never been sent to Evernote, so there is no history. - + Getting Note History - + Note not found on server. - + History retrieved - + Restoring as new note. - + Note has been restored as a new note. - + Restoring note. - + Note has been restored. - + DOUGH!!! - + Well, this is embarrassing. Some attachments or images for this note appear to be missing from my database. @@ -195,97 +195,97 @@ Who knows, you might get lucky. - + Finalizing Synchronization - + Synchronization Complete - + Index completed. - - + + Indexing notes. - + Indexing is now enabled. - + Indexing is now disabled. - - - - - - + + + + + + A thread his died. - + It appears as the tag counter thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - + It appears as the notebook counter thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - + It appears as the note saver thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - + It appears as the synchronization thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - + It appears as the index thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - - + + Backup Database - - - - + + + + NeverNote Export (*.nnex);;All Files (*.*) - + Backing up database - + Database backup completed. - + This is used to restore a database from backups. It is HIGHLY recommened that this only be used to populate an empty database. Restoring into a database that @@ -295,37 +295,37 @@ Are you sure you want to continue? - + Restore Database - + Restoring database - + Database has been restored. - + Exporting Notes - + Export completed. - + Import Notes - + Notes have been imported. @@ -361,26 +361,6 @@ Are you sure you want to continue? - - Do nothing - - - - - Count tags & do not hide inactive - - - - - Count tags & hide inactive - - - - - Color active tags - - - Date/Time Format @@ -437,26 +417,6 @@ Are you sure you want to continue? - - Low - - - - - Medium - - - - - High - - - - - Extreme - - - Carriage Return Fix @@ -789,14 +749,90 @@ Are you sure you want to continue? + cx.fbn.nevernote.dialog.EnDecryptDialog + + + Decrypt Text + + + + + Password + + + + + Permanently Decrypt + + + + + Remember For This Session + + + + + Hint: + + + + + Cancel + + + + cx.fbn.nevernote.dialog.NotebookArchive + + Cancel + + + + + Open Notebooks + + + + + Closed Notebooks + + + Open/Close Notebooks + cx.fbn.nevernote.dialog.OnlineNoteHistory + + + Online Note History + + + + + History Date: + + + + + Restore Note + + + + + Restore As New Note + + + + + Cancel + + + + cx.fbn.nevernote.dialog.PreviewDialog @@ -810,6 +846,24 @@ Are you sure you want to continue? + cx.fbn.nevernote.dialog.TableDialog + + + Insert Table + + + + + OK + + + + + Cancel + + + + cx.fbn.nevernote.dialog.TagAssign @@ -828,6 +882,16 @@ Are you sure you want to continue? cx.fbn.nevernote.dialog.WatchFolderAdd + + Notebook + + + + + After Import + + + Add Import Folder @@ -1628,6 +1692,21 @@ and I'm too lazy to figure them out by myself. + + &Edit + + + + + &View + + + + + &Format + + + Alignment diff --git a/translations/nevernote_ja.ts b/translations/nevernote_ja.ts index 421d6a8..65ba8c7 100644 --- a/translations/nevernote_ja.ts +++ b/translations/nevernote_ja.ts @@ -4,181 +4,181 @@ cx.fbn.nevernote.NeverNote - + Beginning shutdown. - + Performing synchronization before closing. - + Edit Notebook - - + + Unable to Delete - + Some of the selected notebook(s) contain notes. Please delete the notes or move them to another notebook before deleting any notebooks. - + You must have at least one notebook. - - - - - - + + + + + + Confirmation - + Delete the selected notebooks? - + Delete the selected tags? - + This will free unused space in the database, but please be aware that depending upon the size of your database this can be time consuming and NeverNote will be unresponsive until it is complete. Do you wish to continue? - + Release Notes - + Mesasge Log - + About NeverNote Nevernoteについて - + <h4><center><b>NeverNote</b></center></h4><hr><center>Version HTMLの一部 <h4><center><b>Nevernote</b></center></h4><hr><center>バージョン - + <hr></center>Evernote Generic client.<br><br>Licensed under GPL v2. <br><hr><br>Evernote is copyright 2001-2010 by Evernote Corporation<br>Jambi and QT are the licensed trademark of Nokia Corporation<br>PDFRenderer is licened under the LGPL<br>Jazzy is licened under the LGPL<br>Java is a registered trademark of Sun Microsystems.<br><hr> Oracle aquire Sun microsystems. <hr></center>Evernoteの総合クライアント<br><br>GPLv2でライセンスされています。<br><hr><br>Evernoteは、Evernote Corporationの2001-2010の著作物です。<br>JambiとQtは、Nokia Corporationの著作物で商標です。<br>PDFRendererは、LGPLのもとライセンスされています<br>Jazzyは、LGPLのもとライセンスされています<br>Javaは、Oracle Corporationの登録商標です<br><hr> - + toolBar - + This will cause all notes & attachments to be reindexed, but please be aware that depending upon the size of your database updating all these records can be time consuming and NeverNote will be unresponsive until it is complete. Do you wish to continue? - + Marking notes for reindex. - + Database will be reindexed. - + Notes will be reindexed. - + Note will be reindexed. - + Delete selected note(s)? - + Note has never been synchronized. - + Error - + This note has never been sent to Evernote, so there is no history. - + Getting Note History - + Note not found on server. - + History retrieved - + Restoring as new note. - + Note has been restored as a new note. - + Restoring note. - + Note has been restored. - + DOUGH!!! - + Well, this is embarrassing. Some attachments or images for this note appear to be missing from my database. @@ -197,97 +197,97 @@ Who knows, you might get lucky. - + Finalizing Synchronization - + Synchronization Complete - + Index completed. - - + + Indexing notes. - + Indexing is now enabled. - + Indexing is now disabled. - - - - - - + + + + + + A thread his died. - + It appears as the tag counter thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - + It appears as the notebook counter thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - + It appears as the note saver thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - + It appears as the synchronization thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - + It appears as the index thread has died. I recommend checking stopping NeverNote, saving the logs for later viewing, and restarting. Sorry. - - + + Backup Database - - - - + + + + NeverNote Export (*.nnex);;All Files (*.*) Nevernoteエキスポート(*.nnex);;すべてのファイル(*.*) - + Backing up database - + Database backup completed. - + This is used to restore a database from backups. It is HIGHLY recommened that this only be used to populate an empty database. Restoring into a database that @@ -297,37 +297,37 @@ Are you sure you want to continue? - + Restore Database - + Restoring database - + Database has been restored. - + Exporting Notes - + Export completed. - + Import Notes - + Notes have been imported. @@ -791,14 +791,90 @@ Are you sure you want to continue? + cx.fbn.nevernote.dialog.EnDecryptDialog + + + Decrypt Text + + + + + Password + パスワード + + + + Permanently Decrypt + + + + + Remember For This Session + + + + + Hint: + + + + + Cancel + キャンセル + + + cx.fbn.nevernote.dialog.NotebookArchive + + Cancel + キャンセル + + + + Open Notebooks + + + + + Closed Notebooks + + + Open/Close Notebooks + cx.fbn.nevernote.dialog.OnlineNoteHistory + + + Online Note History + + + + + History Date: + + + + + Restore Note + + + + + Restore As New Note + + + + + Cancel + キャンセル + + + cx.fbn.nevernote.dialog.PreviewDialog @@ -812,6 +888,24 @@ Are you sure you want to continue? + cx.fbn.nevernote.dialog.TableDialog + + + Insert Table + 表の挿入 + + + + OK + OK + + + + Cancel + キャンセル + + + cx.fbn.nevernote.dialog.TagAssign @@ -830,6 +924,16 @@ Are you sure you want to continue? cx.fbn.nevernote.dialog.WatchFolderAdd + + Notebook + ノートブック + + + + After Import + + + Add Import Folder @@ -1630,6 +1734,21 @@ and I'm too lazy to figure them out by myself. + + &Edit + + + + + &View + + + + + &Format + + + Alignment -- 2.11.0