[UPDATE] Update native language files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1142 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
c824157bcc
commit
cf2dce6728
@ -818,6 +818,19 @@
|
|||||||
<FileAlreadyOpenedInNpp title="" message="The file is already opened in the Notepad++."/>
|
<FileAlreadyOpenedInNpp title="" message="The file is already opened in the Notepad++."/>
|
||||||
<DeleteFileFailed title="Delete File" message="Delete File failed"/>
|
<DeleteFileFailed title="Delete File" message="Delete File failed"/>
|
||||||
</MessageBox>
|
</MessageBox>
|
||||||
|
<ClipboardHistory>
|
||||||
|
<PanelTitle name="剪貼板記錄"/>
|
||||||
|
</ClipboardHistory>
|
||||||
|
<DocSwitcher>
|
||||||
|
<PanelTitle name="開啟文件列表"/>
|
||||||
|
<ColumnName name="檔名"/>
|
||||||
|
<ColumnExt name="副檔名"/>
|
||||||
|
</DocSwitcher>
|
||||||
|
<AsciiInsertion>
|
||||||
|
<PanelTitle name="字元列表"/>
|
||||||
|
<ColumnVal name="數值"/>
|
||||||
|
<ColumnChar name="字元"/>
|
||||||
|
</AsciiInsertion>
|
||||||
<DocumentMap>
|
<DocumentMap>
|
||||||
<PanelTitle name="¤å¥óÁY¹Ï"/>
|
<PanelTitle name="¤å¥óÁY¹Ï"/>
|
||||||
</DocumentMap>
|
</DocumentMap>
|
||||||
|
@ -816,6 +816,19 @@
|
|||||||
<!-- $INT_REPLACE$ is a place holder, don't translate it -->
|
<!-- $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?"/>
|
<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>
|
</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>
|
<DocumentMap>
|
||||||
<PanelTitle name="Document Map"/>
|
<PanelTitle name="Document Map"/>
|
||||||
</DocumentMap>
|
</DocumentMap>
|
||||||
|
@ -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++."/>
|
<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?"/>
|
<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>
|
</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>
|
<DocumentMap>
|
||||||
<PanelTitle name="Map de Document"/>
|
<PanelTitle name="Plan du Document"/>
|
||||||
</DocumentMap>
|
</DocumentMap>
|
||||||
<FunctionList>
|
<FunctionList>
|
||||||
<PanelTitle name="Liste des Fonctions"/>
|
<PanelTitle name="Liste des Fonctions"/>
|
||||||
|
@ -5041,6 +5041,14 @@ void Notepad_plus::launchClipboardHistoryPanel()
|
|||||||
// in this case is DOCKABLE_DEMO_INDEX
|
// in this case is DOCKABLE_DEMO_INDEX
|
||||||
// In the case of Notepad++ internal function, it'll be the command ID which triggers this dialog
|
// In the case of Notepad++ internal function, it'll be the command ID which triggers this dialog
|
||||||
data.dlgID = IDM_EDIT_CLIPBOARDHISTORY_PANEL;
|
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);
|
::SendMessage(_pPublicInterface->getHSelf(), NPPM_DMMREGASDCKDLG, 0, (LPARAM)&data);
|
||||||
}
|
}
|
||||||
_pClipboardHistoryPanel->display();
|
_pClipboardHistoryPanel->display();
|
||||||
@ -5067,6 +5075,15 @@ void Notepad_plus::launchFileSwitcherPanel()
|
|||||||
// in this case is DOCKABLE_DEMO_INDEX
|
// in this case is DOCKABLE_DEMO_INDEX
|
||||||
// In the case of Notepad++ internal function, it'll be the command ID which triggers this dialog
|
// In the case of Notepad++ internal function, it'll be the command ID which triggers this dialog
|
||||||
data.dlgID = IDM_VIEW_FILESWITCHER_PANEL;
|
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);
|
::SendMessage(_pPublicInterface->getHSelf(), NPPM_DMMREGASDCKDLG, 0, (LPARAM)&data);
|
||||||
}
|
}
|
||||||
_pFileSwitcherPanel->display();
|
_pFileSwitcherPanel->display();
|
||||||
@ -5093,6 +5110,15 @@ void Notepad_plus::launchAnsiCharPanel()
|
|||||||
// in this case is DOCKABLE_DEMO_INDEX
|
// in this case is DOCKABLE_DEMO_INDEX
|
||||||
// In the case of Notepad++ internal function, it'll be the command ID which triggers this dialog
|
// In the case of Notepad++ internal function, it'll be the command ID which triggers this dialog
|
||||||
data.dlgID = IDM_EDIT_CHAR_PANEL;
|
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);
|
::SendMessage(_pPublicInterface->getHSelf(), NPPM_DMMREGASDCKDLG, 0, (LPARAM)&data);
|
||||||
}
|
}
|
||||||
_pAnsiCharPanel->display();
|
_pAnsiCharPanel->display();
|
||||||
|
@ -28,7 +28,8 @@
|
|||||||
|
|
||||||
#include "precompiledHeaders.h"
|
#include "precompiledHeaders.h"
|
||||||
#include "ListView.h"
|
#include "ListView.h"
|
||||||
|
#include "Parameters.h"
|
||||||
|
#include "localization.h"
|
||||||
|
|
||||||
void ListView::init(HINSTANCE hInst, HWND parent)
|
void ListView::init(HINSTANCE hInst, HWND parent)
|
||||||
{
|
{
|
||||||
@ -71,12 +72,16 @@ void ListView::init(HINSTANCE hInst, HWND parent)
|
|||||||
LVCOLUMN lvColumn;
|
LVCOLUMN lvColumn;
|
||||||
lvColumn.mask = LVCF_TEXT|LVCF_WIDTH;
|
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.cx = 45;
|
||||||
lvColumn.pszText = TEXT("Value");
|
lvColumn.pszText = (TCHAR *)valStr.c_str();
|
||||||
ListView_InsertColumn(_hSelf, 0, &lvColumn);
|
ListView_InsertColumn(_hSelf, 0, &lvColumn);
|
||||||
|
|
||||||
lvColumn.cx = 70;
|
lvColumn.cx = 70;
|
||||||
lvColumn.pszText = TEXT("Character");
|
lvColumn.pszText = (TCHAR *)charStr.c_str();
|
||||||
ListView_InsertColumn(_hSelf, 1, &lvColumn);
|
ListView_InsertColumn(_hSelf, 1, &lvColumn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
#include "ansiCharPanel_rc.h"
|
#include "ansiCharPanel_rc.h"
|
||||||
#include "ListView.h"
|
#include "ListView.h"
|
||||||
|
|
||||||
|
#define AI_PROJECTPANELTITLE TEXT("ASCII Insertion Panel")
|
||||||
|
|
||||||
class ScintillaEditView;
|
class ScintillaEditView;
|
||||||
|
|
||||||
class AnsiCharPanel : public DockingDlgInterface {
|
class AnsiCharPanel : public DockingDlgInterface {
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
#include "clipboardHistoryPanel_rc.h"
|
#include "clipboardHistoryPanel_rc.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#define CH_PROJECTPANELTITLE TEXT("Clipboard History")
|
||||||
|
|
||||||
typedef std::vector<unsigned char> ClipboardData;
|
typedef std::vector<unsigned char> ClipboardData;
|
||||||
|
|
||||||
class ScintillaEditView;
|
class ScintillaEditView;
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#include "precompiledHeaders.h"
|
#include "precompiledHeaders.h"
|
||||||
#include "VerticalFileSwitcher.h"
|
#include "VerticalFileSwitcher.h"
|
||||||
#include "menuCmdID.h"
|
#include "menuCmdID.h"
|
||||||
|
#include "Parameters.h"
|
||||||
|
#include "localization.h"
|
||||||
|
|
||||||
int CALLBACK ListViewCompareProc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
|
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 :
|
case WM_INITDIALOG :
|
||||||
{
|
{
|
||||||
_fileListView.init(_hInst, _hSelf, _hImaLst);
|
_fileListView.init(_hInst, _hSelf, _hImaLst);
|
||||||
_fileListView.insertColumn(TEXT("Name"), 150, 0);
|
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance())->getNativeLangSpeaker();
|
||||||
_fileListView.insertColumn(TEXT("Ext."), 50, 1);
|
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.initList();
|
||||||
_fileListView.display();
|
_fileListView.display();
|
||||||
|
|
||||||
|
@ -37,6 +37,10 @@
|
|||||||
#include "VerticalFileSwitcher_rc.h"
|
#include "VerticalFileSwitcher_rc.h"
|
||||||
#include "VerticalFileSwitcherListView.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 {
|
class VerticalFileSwitcher : public DockingDlgInterface {
|
||||||
public:
|
public:
|
||||||
|
@ -273,13 +273,13 @@ int VerticalFileSwitcherListView::find(int bufferID, int iView) const
|
|||||||
return (found?i:-1);
|
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 lvColumn;
|
||||||
|
|
||||||
lvColumn.mask = LVCF_TEXT | LVCF_WIDTH;
|
lvColumn.mask = LVCF_TEXT | LVCF_WIDTH;
|
||||||
lvColumn.cx = width;
|
lvColumn.cx = width;
|
||||||
lvColumn.pszText = name;
|
lvColumn.pszText = (TCHAR *)name;
|
||||||
ListView_InsertColumn(_hSelf, index, &lvColumn);
|
ListView_InsertColumn(_hSelf, index, &lvColumn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ public:
|
|||||||
void setItemIconStatus(int bufferID);
|
void setItemIconStatus(int bufferID);
|
||||||
generic_string getFullFilePath(size_t i) const;
|
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 {
|
int nbSelectedFiles() const {
|
||||||
return SendMessage(_hSelf, LVM_GETSELECTEDCOUNT, 0, 0);
|
return SendMessage(_hSelf, LVM_GETSELECTEDCOUNT, 0, 0);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user