Browse Source

[UPDATE] Update native language files.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1142 f5eea248-9336-0410-98b8-ebc06183d4e3
remotes/trunk
Don Ho 11 years ago
parent
commit
cf2dce6728
  1. 13
      PowerEditor/installer/nativeLang/chinese.xml
  2. 13
      PowerEditor/installer/nativeLang/english.xml
  3. 15
      PowerEditor/installer/nativeLang/french.xml
  4. 26
      PowerEditor/src/Notepad_plus.cpp
  5. 11
      PowerEditor/src/WinControls/AnsiCharPanel/ListView.cpp
  6. 2
      PowerEditor/src/WinControls/AnsiCharPanel/ansiCharPanel.h
  7. 2
      PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.h
  8. 10
      PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.cpp
  9. 4
      PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.h
  10. 4
      PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp
  11. 2
      PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.h

13
PowerEditor/installer/nativeLang/chinese.xml

@ -818,6 +818,19 @@
<FileAlreadyOpenedInNpp title="" message="The file is already opened in the Notepad++."/>
<DeleteFileFailed title="Delete File" message="Delete File failed"/>
</MessageBox>
<ClipboardHistory>
<PanelTitle name="剪貼板記錄"/>
</ClipboardHistory>
<DocSwitcher>
<PanelTitle name="開啟文件列表"/>
<ColumnName name="檔名"/>
<ColumnExt name="副檔名"/>
</DocSwitcher>
<AsciiInsertion>
<PanelTitle name="字元列表"/>
<ColumnVal name="數值"/>
<ColumnChar name="字元"/>
</AsciiInsertion>
<DocumentMap>
<PanelTitle name="¤å¥óÁY¹Ï"/>
</DocumentMap>

13
PowerEditor/installer/nativeLang/english.xml

@ -816,6 +816,19 @@
<!-- $INT_REPLACE$ is a place holder, don't translate it -->
<NbFileToOpenImportantWarning title="Amount of files to open is too large" message="$INT_REPLACE$ files are about to be opened.\rAre you sure to open them?"/>
</MessageBox>
<ClipboardHistory>
<PanelTitle name="Clipboard History"/>
</ClipboardHistory>
<DocSwitcher>
<PanelTitle name="Doc Switcher"/>
<ColumnName name="Name"/>
<ColumnExt name="Ext."/>
</DocSwitcher>
<AsciiInsertion>
<PanelTitle name="ASCII Insertion Panel"/>
<ColumnVal name="Value"/>
<ColumnChar name="Character"/>
</AsciiInsertion>
<DocumentMap>
<PanelTitle name="Document Map"/>
</DocumentMap>

15
PowerEditor/installer/nativeLang/french.xml

@ -840,8 +840,21 @@
<NppHelpAbsentWarning title="Le fichier n'existe pas" message=" n'existe pas. S'il vous plaît, le télécharger sur le site de Notepad++."/>
<SaveCurrentModifWarning title="Sauvegarder la modification en cours" message="Vous devez enregistrer la modification en cours. Toutes les modifications enregistrées ne peuvent pas être annulées. Continuer?"/>
</MessageBox>
<ClipboardHistory>
<PanelTitle name="Panneau historique du presse-papiers"/>
</ClipboardHistory>
<DocSwitcher>
<PanelTitle name="Commutateur de documents"/>
<ColumnName name="Nom"/>
<ColumnExt name="Ext."/>
</DocSwitcher>
<AsciiInsertion>
<PanelTitle name="Panneau des caractères ASCII"/>
<ColumnVal name="Valeur"/>
<ColumnChar name="Caractère"/>
</AsciiInsertion>
<DocumentMap>
<PanelTitle name="Map de Document"/>
<PanelTitle name="Plan du Document"/>
</DocumentMap>
<FunctionList>
<PanelTitle name="Liste des Fonctions"/>

26
PowerEditor/src/Notepad_plus.cpp

@ -5041,6 +5041,14 @@ void Notepad_plus::launchClipboardHistoryPanel()
// in this case is DOCKABLE_DEMO_INDEX
// In the case of Notepad++ internal function, it'll be the command ID which triggers this dialog
data.dlgID = IDM_EDIT_CLIPBOARDHISTORY_PANEL;
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance())->getNativeLangSpeaker();
generic_string title_temp = pNativeSpeaker->getAttrNameStr(CH_PROJECTPANELTITLE, "ClipboardHistory", "PanelTitle");
static TCHAR title[32];
if (title_temp.length() < 32)
{
lstrcpy(title, title_temp.c_str());
data.pszName = title;
}
::SendMessage(_pPublicInterface->getHSelf(), NPPM_DMMREGASDCKDLG, 0, (LPARAM)&data);
}
_pClipboardHistoryPanel->display();
@ -5067,6 +5075,15 @@ void Notepad_plus::launchFileSwitcherPanel()
// in this case is DOCKABLE_DEMO_INDEX
// In the case of Notepad++ internal function, it'll be the command ID which triggers this dialog
data.dlgID = IDM_VIEW_FILESWITCHER_PANEL;
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance())->getNativeLangSpeaker();
generic_string title_temp = pNativeSpeaker->getAttrNameStr(FS_PROJECTPANELTITLE, "DocSwitcher", "PanelTitle");
static TCHAR title[32];
if (title_temp.length() < 32)
{
lstrcpy(title, title_temp.c_str());
data.pszName = title;
}
::SendMessage(_pPublicInterface->getHSelf(), NPPM_DMMREGASDCKDLG, 0, (LPARAM)&data);
}
_pFileSwitcherPanel->display();
@ -5093,6 +5110,15 @@ void Notepad_plus::launchAnsiCharPanel()
// in this case is DOCKABLE_DEMO_INDEX
// In the case of Notepad++ internal function, it'll be the command ID which triggers this dialog
data.dlgID = IDM_EDIT_CHAR_PANEL;
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance())->getNativeLangSpeaker();
generic_string title_temp = pNativeSpeaker->getAttrNameStr(AI_PROJECTPANELTITLE, "AsciiInsertion", "PanelTitle");
static TCHAR title[32];
if (title_temp.length() < 32)
{
lstrcpy(title, title_temp.c_str());
data.pszName = title;
}
::SendMessage(_pPublicInterface->getHSelf(), NPPM_DMMREGASDCKDLG, 0, (LPARAM)&data);
}
_pAnsiCharPanel->display();

11
PowerEditor/src/WinControls/AnsiCharPanel/ListView.cpp

@ -28,7 +28,8 @@
#include "precompiledHeaders.h"
#include "ListView.h"
#include "Parameters.h"
#include "localization.h"
void ListView::init(HINSTANCE hInst, HWND parent)
{
@ -71,12 +72,16 @@ void ListView::init(HINSTANCE hInst, HWND parent)
LVCOLUMN lvColumn;
lvColumn.mask = LVCF_TEXT|LVCF_WIDTH;
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance())->getNativeLangSpeaker();
generic_string valStr = pNativeSpeaker->getAttrNameStr(TEXT("Value"), "AsciiInsertion", "ColumnVal");
generic_string charStr = pNativeSpeaker->getAttrNameStr(TEXT("Character"), "AsciiInsertion", "ColumnChar");
lvColumn.cx = 45;
lvColumn.pszText = TEXT("Value");
lvColumn.pszText = (TCHAR *)valStr.c_str();
ListView_InsertColumn(_hSelf, 0, &lvColumn);
lvColumn.cx = 70;
lvColumn.pszText = TEXT("Character");
lvColumn.pszText = (TCHAR *)charStr.c_str();
ListView_InsertColumn(_hSelf, 1, &lvColumn);
}

2
PowerEditor/src/WinControls/AnsiCharPanel/ansiCharPanel.h

@ -37,6 +37,8 @@
#include "ansiCharPanel_rc.h"
#include "ListView.h"
#define AI_PROJECTPANELTITLE TEXT("ASCII Insertion Panel")
class ScintillaEditView;
class AnsiCharPanel : public DockingDlgInterface {

2
PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.h

@ -37,6 +37,8 @@
#include "clipboardHistoryPanel_rc.h"
#include <vector>
#define CH_PROJECTPANELTITLE TEXT("Clipboard History")
typedef std::vector<unsigned char> ClipboardData;
class ScintillaEditView;

10
PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.cpp

@ -29,6 +29,8 @@
#include "precompiledHeaders.h"
#include "VerticalFileSwitcher.h"
#include "menuCmdID.h"
#include "Parameters.h"
#include "localization.h"
int CALLBACK ListViewCompareProc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
{
@ -59,8 +61,12 @@ BOOL CALLBACK VerticalFileSwitcher::run_dlgProc(UINT message, WPARAM wParam, LPA
case WM_INITDIALOG :
{
_fileListView.init(_hInst, _hSelf, _hImaLst);
_fileListView.insertColumn(TEXT("Name"), 150, 0);
_fileListView.insertColumn(TEXT("Ext."), 50, 1);
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance())->getNativeLangSpeaker();
generic_string nameStr = pNativeSpeaker->getAttrNameStr(TEXT("Name"), FS_ROOTNODE, FS_CLMNNAME);
generic_string extStr = pNativeSpeaker->getAttrNameStr(TEXT("Ext."), FS_ROOTNODE, FS_CLMNEXT);
_fileListView.insertColumn(nameStr.c_str(), 150, 0);
_fileListView.insertColumn(extStr.c_str(), 50, 1);
_fileListView.initList();
_fileListView.display();

4
PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcher.h

@ -37,6 +37,10 @@
#include "VerticalFileSwitcher_rc.h"
#include "VerticalFileSwitcherListView.h"
#define FS_PROJECTPANELTITLE TEXT("Doc Switcher")
#define FS_ROOTNODE "DocSwitcher"
#define FS_CLMNNAME "ColumnName"
#define FS_CLMNEXT "ColumnExt"
class VerticalFileSwitcher : public DockingDlgInterface {
public:

4
PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp

@ -273,13 +273,13 @@ int VerticalFileSwitcherListView::find(int bufferID, int iView) const
return (found?i:-1);
}
void VerticalFileSwitcherListView::insertColumn(TCHAR *name, int width, int index)
void VerticalFileSwitcherListView::insertColumn(const TCHAR *name, int width, int index)
{
LVCOLUMN lvColumn;
lvColumn.mask = LVCF_TEXT | LVCF_WIDTH;
lvColumn.cx = width;
lvColumn.pszText = name;
lvColumn.pszText = (TCHAR *)name;
ListView_InsertColumn(_hSelf, index, &lvColumn);
}

2
PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.h

@ -60,7 +60,7 @@ public:
void setItemIconStatus(int bufferID);
generic_string getFullFilePath(size_t i) const;
void insertColumn(TCHAR *name, int width, int index);
void insertColumn(const TCHAR *name, int width, int index);
int nbSelectedFiles() const {
return SendMessage(_hSelf, LVM_GETSELECTEDCOUNT, 0, 0);
};

Loading…
Cancel
Save