mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: move translateItemConfig() from ucocoamodernformconfig_editor to ucocoamodernformconfig
This commit is contained in:
parent
72d5efc80e
commit
79ccbfddb3
2 changed files with 12 additions and 12 deletions
|
|
@ -22,6 +22,18 @@ procedure initCocoaModernFormConfig;
|
|||
|
||||
implementation
|
||||
|
||||
procedure translateItemConfig(
|
||||
const poFile: TPOFile;
|
||||
const identifier: String;
|
||||
var item: TCocoaConfigToolBarItemWithUI );
|
||||
var
|
||||
s: String;
|
||||
begin
|
||||
s:= poFile.Translate( identifier, item.tips );
|
||||
item.title:= s;
|
||||
item.tips:= s;
|
||||
end;
|
||||
|
||||
function shortCutToMacOSName( const shortCutString: String ): String;
|
||||
begin
|
||||
Result:= shortCutString.Replace( 'Cmd+', 'Command+' );
|
||||
|
|
|
|||
|
|
@ -174,18 +174,6 @@ const
|
|||
);
|
||||
|
||||
|
||||
procedure translateItemConfig(
|
||||
const poFile: TPOFile;
|
||||
const identifier: String;
|
||||
var item: TCocoaConfigToolBarItemWithUI );
|
||||
var
|
||||
s: String;
|
||||
begin
|
||||
s:= poFile.Translate( identifier, item.tips );
|
||||
item.title:= s;
|
||||
item.tips:= s;
|
||||
end;
|
||||
|
||||
procedure translateEditorFormToolbarItem;
|
||||
var
|
||||
poFile: TPOFile;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue