mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Localize string grids in options dialogs.
This commit is contained in:
parent
e2ae062079
commit
c356df6531
2 changed files with 23 additions and 3 deletions
|
|
@ -588,6 +588,17 @@ begin
|
|||
cbToolsUseExternalProgramChange(nil);
|
||||
FUpdatingTools := False;
|
||||
|
||||
// Localize Hotkeys.
|
||||
// stgCommands is localized in FillCommandList.
|
||||
stgHotkeys.Columns.Items[0].Title.Caption := rsOptHotkeysHotkey;
|
||||
stgHotkeys.Columns.Items[1].Title.Caption := rsOptHotkeysParameters;
|
||||
|
||||
// Localize plugins.
|
||||
stgPlugins.Columns.Items[0].Title.Caption := rsOptPluginsActive;
|
||||
stgPlugins.Columns.Items[1].Title.Caption := rsOptPluginsName;
|
||||
stgPlugins.Columns.Items[2].Title.Caption := rsOptPluginsRegisteredFor;
|
||||
stgPlugins.Columns.Items[3].Title.Caption := rsOptPluginsFileName;
|
||||
|
||||
// create plugins lists
|
||||
tmpDSXPlugins:= TDSXModuleList.Create;
|
||||
tmpWCXPlugins:= TWCXModuleList.Create;
|
||||
|
|
@ -1822,9 +1833,9 @@ begin
|
|||
slHotKey.add(StListToStr(';',slTmp)); //add to hotkey list created string
|
||||
end;
|
||||
// add to list NAMES of columns
|
||||
slFiltered.Insert(0,'Commands');
|
||||
slComments.Insert(0,'Comments');
|
||||
slHotKey.Insert(0,'Hotkeys');
|
||||
slFiltered.Insert(0, rsOptHotkeysCommands);
|
||||
slComments.Insert(0, rsOptHotkeysComments);
|
||||
slHotKey.Insert(0, rsOptHotkeysHotkeys);
|
||||
//set stringgrid rows count
|
||||
stgCommands.RowCount:=slFiltered.Count;
|
||||
// copy to string grid created lists
|
||||
|
|
|
|||
|
|
@ -277,11 +277,20 @@ resourcestring
|
|||
rsOptExampleCursor = 'Cursor';
|
||||
rsOptExampleMarkCursor = 'Mark + Cursor';
|
||||
// Hotkeys
|
||||
rsOptHotkeysCommands = 'Commands';
|
||||
rsOptHotkeysComments = 'Comments';
|
||||
rsOptHotkeysHotkeys = 'Hotkeys';
|
||||
rsOptHotkeysHotkey = 'Hotkey';
|
||||
rsOptHotkeysParameters = 'Parameters';
|
||||
rsOptHotkeysShortCutUsed = 'Shortcut in use';
|
||||
rsOptHotkeysShortCutUsedText1 = 'Shortcut %s is already used for %s.';
|
||||
rsOptHotkeysShortCutUsedText2 = 'Change it to %s?';
|
||||
rsOptHotkeysUsedBy = 'used by';
|
||||
// Plugins
|
||||
rsOptPluginsActive = 'Active';
|
||||
rsOptPluginsName = 'Name';
|
||||
rsOptPluginsRegisteredFor = 'Registered for';
|
||||
rsOptPluginsFileName = 'File name';
|
||||
rsOptPluginAlreadyAssigned = 'Plugin %s is already assigned for the following extensions:';
|
||||
|
||||
//Columns Menu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue