lazarus/examples/lazresexplorer/reconstsunit.pas
maxim 0fe76beb12 LazResExplorer:
1) Renamed all files to lowercase, fixed typo (exploer -> explorer);
  2) Disable project i18n to avoid blown up .po files;
  3) Temporarily removed Russian translation (will be added later).

git-svn-id: trunk@23867 -
2010-03-07 19:38:13 +00:00

69 lines
1.8 KiB
ObjectPascal

unit reConstsUnit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
resourcestring
sResourceExplorer = 'Resource explorer';
sSaveResource = 'Save resource...';
sAbout = 'About...';
sExit = 'Exit';
sOpen = 'Open...';
sFile = 'File';
sHelp = 'Help';
sStrings = 'Strings';
sImage = 'Image';
sLicense = 'This program is free software under GNU GPL 2 license, see COPYING file';
sLCLVersion = 'LCL Version: ';
sBuildDate = 'Build date : ';
sFpcVersion = 'FPC version : ';
sTargetCPU = 'Target CPU : ';
sTargetOS = 'Target OS : ';
sGTKWidgetSet = 'GTK widget set';
sGTK2WidgetSet = 'GTK 2 widget set';
sWin32_64WidgetSet = 'Win32/Win64 widget set';
sWinCEWidgetSet = 'WinCE widget set';
sCarbonWidgetSet = 'Carbon widget set';
sQTWidgetSet = 'QT widget set';
sFpGUIWidgetSet = 'FpGUI widget set';
sOtherGUIWidgetSet = 'Other gui';
function LCLVersionStr: string;
implementation
uses gettext, translations, LCLVersion, InterfaceBase;
function LCLVersionStr: string;
begin
case WidgetSet.LCLPlatform of
lpGtk:Result:=sGTKWidgetSet;
lpGtk2:Result:=sGTK2WidgetSet;
lpWin32:Result:=sWin32_64WidgetSet;
lpWinCE:Result:=sWinCEWidgetSet;
lpCarbon:Result:=sCarbonWidgetSet;
lpQT:Result:=sQTWidgetSet;
lpfpGUI:Result:=sFpGUIWidgetSet;
else
Result:=sOtherGUIWidgetSet;
end;
end;
procedure TranslateResStrings;
var
Lang, FallbackLang: String;
begin
GetLanguageIDs(Lang,FallbackLang); // in unit gettext
TranslateUnitResourceStrings('reConstsUnit','languages'+DirectorySeparator+'resexplorer.%s.po', Lang,FallbackLang);
end;
initialization
TranslateResStrings;
end.