summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/corelib/gdi/fpgfx_package.lpk6
-rw-r--r--src/corelib/gdi/fpgfx_package.pas3
-rw-r--r--src/corelib/gfx_constants.pas43
-rw-r--r--src/corelib/lang_afrikaans.inc76
-rw-r--r--src/corelib/lang_english.inc76
-rw-r--r--src/corelib/lang_french.inc76
-rw-r--r--src/corelib/lang_german.inc76
-rw-r--r--src/corelib/lang_portuguese.inc76
-rw-r--r--src/corelib/lang_russian.inc76
-rw-r--r--src/corelib/x11/fpgfx_package.lpk6
-rw-r--r--src/corelib/x11/fpgfx_package.pas2
11 files changed, 512 insertions, 4 deletions
diff --git a/src/corelib/gdi/fpgfx_package.lpk b/src/corelib/gdi/fpgfx_package.lpk
index 0f1b2b55..0cd8079a 100644
--- a/src/corelib/gdi/fpgfx_package.lpk
+++ b/src/corelib/gdi/fpgfx_package.lpk
@@ -26,7 +26,7 @@
<License Value="Modified LGPL
"/>
<Version Minor="6"/>
- <Files Count="15">
+ <Files Count="16">
<Item1>
<Filename Value="..\gfxbase.pas"/>
<UnitName Value="gfxbase"/>
@@ -87,6 +87,10 @@
<Filename Value="..\gfx_imagelist.pas"/>
<UnitName Value="gfx_imagelist"/>
</Item15>
+ <Item16>
+ <Filename Value="..\gfx_constants.pas"/>
+ <UnitName Value="gfx_constants"/>
+ </Item16>
</Files>
<RequiredPkgs Count="1">
<Item1>
diff --git a/src/corelib/gdi/fpgfx_package.pas b/src/corelib/gdi/fpgfx_package.pas
index e0a49cb4..12c6944c 100644
--- a/src/corelib/gdi/fpgfx_package.pas
+++ b/src/corelib/gdi/fpgfx_package.pas
@@ -9,7 +9,8 @@ interface
uses
gfxbase, fpgfx, gfx_gdi, gfx_stdimages, gfx_imgfmt_bmp, gfx_widget,
gfx_UTF8utils, gfx_extinterpolation, gfx_cmdlineparams, gfx_utils,
- gfx_popupwindow, gfx_impl, gfx_command_intf, gfx_wuline, gfx_imagelist;
+ gfx_popupwindow, gfx_impl, gfx_command_intf, gfx_wuline, gfx_imagelist,
+ gfx_constants;
implementation
diff --git a/src/corelib/gfx_constants.pas b/src/corelib/gfx_constants.pas
new file mode 100644
index 00000000..e723f674
--- /dev/null
+++ b/src/corelib/gfx_constants.pas
@@ -0,0 +1,43 @@
+{
+ Constants used throughout fpGUI will be defined here. This includes
+ language constants for localization. For now, localization is very simplistic
+ and done at compile time. At a later date we can autodetect and autoselect
+ the correct language resource at runtime.
+
+ GetText might also be a better option.
+}
+unit gfx_constants;
+
+{$mode objfpc}{$H+}
+
+interface
+
+resourcestring
+
+{ Define Compiler language symbol (eg: gr for German) to include the correct
+ language resource file otherwise the Default (English) resource file will
+ be used. }
+
+{.$DEFINE gr} // German
+{.$DEFINE ru} // Russian
+{.$DEFINE fr} // French
+{.$DEFINE pt} // Portuguese
+
+
+{$IF defined(gr)}
+ {$I lang_german.inc}
+{$ELSEIF defined(ru)}
+ {$I lang_russian.inc}
+{$ELSEIF defined(fr)}
+ {$I lang_french.inc}
+{$ELSEIF defined(pt)}
+ {$I lang_portuguese.inc}
+{$ELSE}
+ {$I lang_english.inc}
+{$IFEND}
+
+
+implementation
+
+end.
+
diff --git a/src/corelib/lang_afrikaans.inc b/src/corelib/lang_afrikaans.inc
new file mode 100644
index 00000000..96f3badd
--- /dev/null
+++ b/src/corelib/lang_afrikaans.inc
@@ -0,0 +1,76 @@
+{%mainunit gfx_constants.pas}
+
+rsLanguage = 'Afrikaans';
+
+
+// Buttons
+rsOK = 'OK';
+rsCancel = 'Kanselleer';
+rsHelp = 'Hulp';
+rsOpen = 'Open';
+rsSave = 'Stoor';
+rsCreate = 'Create';
+rsChange = 'Changes';
+rsFind = 'Find';
+rsSearch = 'Soek';
+rsReplace = 'Vervang';
+rsConfirm = 'Confirm';
+rsAll = 'Alles';
+rsSelect = 'Select';
+rsYes = 'Ja';
+rsNo = 'Nee';
+rsAbort = 'Abort';
+rsRetry = 'Retry';
+rsIgnore = 'Ignore';
+rsClose = 'Maak toe';
+rsInsert = 'Insert';
+rsEdit = 'Edit';
+rsDelete = 'Delete';
+rsExit = 'Exit';
+
+
+// Captions
+rsError = 'Fout';
+rsCriticalError = 'Critical Error';
+rsInformation = 'Information';
+rsConfirmation = 'Confirm';
+rsWarning = 'Warning';
+rsMessage = 'Boodskap';
+
+
+// Standard file filters
+rsAllFiles = 'All Files';
+
+
+// CreateDir Dialog
+rsCreateDirectory = 'Create directory';
+rsEnterNewDirectory = 'Enter new directory name';
+rsCannotCreateDir = 'Cannot create directory';
+
+
+// Font Dialog
+rsSelectAFont = 'Select a font';
+rsName = 'Name';
+rsCollection = 'Collection';
+rsSize = 'Size';
+rsStyle = 'Style';
+rsItalic = 'Italic';
+rsBold = 'Bold';
+rsUnderScore = 'UnderScore';
+rsExampleText = 'Example Text';
+
+
+// Open Dialog
+rsOpenAFile = 'Open a file';
+rsFileName = 'Filename';
+rsFileType = 'Type of file';
+rsDrive = 'Drive';
+rsFiles = 'Files';
+rsDirectories = 'Directories';
+rsShowHidden = 'Show hidden files';
+
+
+// Save Dialog
+rsSaveAFile = 'Save file as';
+
+
diff --git a/src/corelib/lang_english.inc b/src/corelib/lang_english.inc
new file mode 100644
index 00000000..b080ee2d
--- /dev/null
+++ b/src/corelib/lang_english.inc
@@ -0,0 +1,76 @@
+{%mainunit gfx_constants.pas}
+
+rsLanguage = 'English';
+
+
+// Buttons
+rsOK = 'OK';
+rsCancel = 'Cancel';
+rsHelp = 'Help';
+rsOpen = 'Open';
+rsSave = 'Save';
+rsCreate = 'Create';
+rsChange = 'Changes';
+rsFind = 'Find';
+rsSearch = 'Search';
+rsReplace = 'Replace';
+rsConfirm = 'Confirm';
+rsAll = 'All';
+rsSelect = 'Select';
+rsYes = 'Yes';
+rsNo = 'No';
+rsAbort = 'Abort';
+rsRetry = 'Retry';
+rsIgnore = 'Ignore';
+rsClose = 'Close';
+rsInsert = 'Insert';
+rsEdit = 'Edit';
+rsDelete = 'Delete';
+rsExit = 'Exit';
+
+
+// Captions
+rsError = 'Error';
+rsCriticalError = 'Critical Error';
+rsInformation = 'Information';
+rsConfirmation = 'Confirm';
+rsWarning = 'Warning';
+rsMessage = 'Message';
+
+
+// Standard file filters
+rsAllFiles = 'All Files';
+
+
+// CreateDir Dialog
+rsCreateDirectory = 'Create directory';
+rsEnterNewDirectory = 'Enter new directory name';
+rsCannotCreateDir = 'Cannot create directory';
+
+
+// Font Dialog
+rsSelectAFont = 'Select a font';
+rsName = 'Name';
+rsCollection = 'Collection';
+rsSize = 'Size';
+rsStyle = 'Style';
+rsItalic = 'Italic';
+rsBold = 'Bold';
+rsUnderScore = 'UnderScore';
+rsExampleText = 'Example Text';
+
+
+// Open Dialog
+rsOpenAFile = 'Open a file';
+rsFileName = 'Filename';
+rsFileType = 'Type of file';
+rsDrive = 'Drive';
+rsFiles = 'Files';
+rsDirectories = 'Directories';
+rsShowHidden = 'Show hidden files';
+
+
+// Save Dialog
+rsSaveAFile = 'Save file as';
+
+
diff --git a/src/corelib/lang_french.inc b/src/corelib/lang_french.inc
new file mode 100644
index 00000000..0a934eb6
--- /dev/null
+++ b/src/corelib/lang_french.inc
@@ -0,0 +1,76 @@
+{%mainunit gfx_constants.pas}
+
+rsLanguage = 'French';
+
+
+// Buttons
+rsOK = 'OK';
+rsCancel = 'Cancel';
+rsHelp = 'Help';
+rsOpen = 'Open';
+rsSave = 'Save';
+rsCreate = 'Create';
+rsChange = 'Changes';
+rsFind = 'Find';
+rsSearch = 'Search';
+rsReplace = 'Replace';
+rsConfirm = 'Confirm';
+rsAll = 'All';
+rsSelect = 'Select';
+rsYes = 'Yes';
+rsNo = 'No';
+rsAbort = 'Abort';
+rsRetry = 'Retry';
+rsIgnore = 'Ignore';
+rsClose = 'Close';
+rsInsert = 'Insert';
+rsEdit = 'Edit';
+rsDelete = 'Delete';
+rsExit = 'Exit';
+
+
+// Captions
+rsError = 'Error';
+rsCriticalError = 'Critical Error';
+rsInformation = 'Information';
+rsConfirmation = 'Confirm';
+rsWarning = 'Warning';
+rsMessage = 'Message';
+
+
+// Standard file filters
+rsAllFiles = 'All Files';
+
+
+// CreateDir Dialog
+rsCreateDirectory = 'Create directory';
+rsEnterNewDirectory = 'Enter new directory name';
+rsCannotCreateDir = 'Cannot create directory';
+
+
+// Font Dialog
+rsSelectAFont = 'Select a font';
+rsName = 'Name';
+rsCollection = 'Collection';
+rsSize = 'Size';
+rsStyle = 'Style';
+rsItalic = 'Italic';
+rsBold = 'Bold';
+rsUnderScore = 'UnderScore';
+rsExampleText = 'Example Text';
+
+
+// Open Dialog
+rsOpenAFile = 'Open a file';
+rsFileName = 'Filename';
+rsFileType = 'Type of file';
+rsDrive = 'Drive';
+rsFiles = 'Files';
+rsDirectories = 'Directories';
+rsShowHidden = 'Show hidden files';
+
+
+// Save Dialog
+rsSaveAFile = 'Save file as';
+
+
diff --git a/src/corelib/lang_german.inc b/src/corelib/lang_german.inc
new file mode 100644
index 00000000..1be28722
--- /dev/null
+++ b/src/corelib/lang_german.inc
@@ -0,0 +1,76 @@
+{%mainunit gfx_constants.pas}
+
+rsLanguage = 'Deutsch';
+
+
+// Buttons
+rsOK = 'OK';
+rsCancel = 'Abbruch';
+rsHelp = 'Hilfe';
+rsOpen = '™ffnen';
+rsSave = 'Speichern';
+rsCreate = 'Erzeugen';
+rsChange = 'Wechseln';
+rsFind = 'Finden';
+rsSearch = 'Suchen';
+rsReplace = 'Ersetzen';
+rsConfirm = 'Best„tigungs';
+rsAll = 'Alle';
+rsSelect = 'Auswahl';
+rsYes = 'Ja';
+rsNo = 'Nein';
+rsAbort = 'šbergehen';
+rsRetry = 'Wiederholen';
+rsIgnore = 'Ignorieren';
+rsClose = 'Schlieáen';
+rsInsert = 'Einfgen';
+rsEdit = 'Bearbeiten';
+rsDelete = 'L”schen';
+rsExit = 'Exit';
+
+
+// Captions
+rsError = 'Fehler';
+rsCriticalError = 'Schwerer Fehler';
+rsInformation = 'Information';
+rsConfirmation = 'Best„tigen';
+rsWarning = 'Warnung';
+rsMessage = 'Nachricht';
+
+
+// Standard file filters
+rsAllFiles = 'Alle Dateien';
+
+
+// CreateDir Dialog
+rsCreateDirectory = 'Verzeichnis erstellen';
+rsEnterNewDirectory = 'Neuenr Verzeichnisname';
+rsCannotCreateDir = 'Verzeichnis kann nicht erzeugt werden';
+
+
+// Font Dialog
+rsSelectAFont = 'Zeichensatz ausw„hlen';
+rsName = 'Name';
+rsCollection = 'Collection';
+rsSize = 'GrӇe';
+rsStyle = 'Stil';
+rsItalic = 'Kursiv';
+rsBold = 'Fett';
+rsUnderScore = 'Unterstrichen';
+rsExampleText = 'Beispieltext';
+
+
+// Open Dialog
+rsOpenAFile = 'Datei ”ffnen';
+rsFileName = 'Dateiname';
+rsFileType = 'Dateityp';
+rsDrive = 'Laufwerk';
+rsFiles = 'Dateien';
+rsDirectories = 'Verzeichnisse';
+rsShowHidden = 'Show hidden files';
+
+
+// Save Dialog
+rsSaveAFile = 'Datei speichern';
+
+
diff --git a/src/corelib/lang_portuguese.inc b/src/corelib/lang_portuguese.inc
new file mode 100644
index 00000000..d86e9079
--- /dev/null
+++ b/src/corelib/lang_portuguese.inc
@@ -0,0 +1,76 @@
+{%mainunit gfx_constants.pas}
+
+rsLanguage = 'Portuguese';
+
+
+// Buttons
+rsOK = 'OK';
+rsCancel = 'Cancel';
+rsHelp = 'Help';
+rsOpen = 'Open';
+rsSave = 'Save';
+rsCreate = 'Create';
+rsChange = 'Changes';
+rsFind = 'Find';
+rsSearch = 'Search';
+rsReplace = 'Replace';
+rsConfirm = 'Confirm';
+rsAll = 'All';
+rsSelect = 'Select';
+rsYes = 'Yes';
+rsNo = 'No';
+rsAbort = 'Abort';
+rsRetry = 'Retry';
+rsIgnore = 'Ignore';
+rsClose = 'Close';
+rsInsert = 'Insert';
+rsEdit = 'Edit';
+rsDelete = 'Delete';
+rsExit = 'Exit';
+
+
+// Captions
+rsError = 'Error';
+rsCriticalError = 'Critical Error';
+rsInformation = 'Information';
+rsConfirmation = 'Confirm';
+rsWarning = 'Warning';
+rsMessage = 'Message';
+
+
+// Standard file filters
+rsAllFiles = 'All Files';
+
+
+// CreateDir Dialog
+rsCreateDirectory = 'Create directory';
+rsEnterNewDirectory = 'Enter new directory name';
+rsCannotCreateDir = 'Cannot create directory';
+
+
+// Font Dialog
+rsSelectAFont = 'Select a font';
+rsName = 'Name';
+rsCollection = 'Collection';
+rsSize = 'Size';
+rsStyle = 'Style';
+rsItalic = 'Italic';
+rsBold = 'Bold';
+rsUnderScore = 'UnderScore';
+rsExampleText = 'Example Text';
+
+
+// Open Dialog
+rsOpenAFile = 'Open a file';
+rsFileName = 'Filename';
+rsFileType = 'Type of file';
+rsDrive = 'Drive';
+rsFiles = 'Files';
+rsDirectories = 'Directories';
+rsShowHidden = 'Show hidden files';
+
+
+// Save Dialog
+rsSaveAFile = 'Save file as';
+
+
diff --git a/src/corelib/lang_russian.inc b/src/corelib/lang_russian.inc
new file mode 100644
index 00000000..0637a107
--- /dev/null
+++ b/src/corelib/lang_russian.inc
@@ -0,0 +1,76 @@
+{%mainunit gfx_constants.pas}
+
+rsLanguage = 'Russian';
+
+
+// Buttons
+rsOK = 'OK';
+rsCancel = 'Cancel';
+rsHelp = 'Help';
+rsOpen = 'Open';
+rsSave = 'Save';
+rsCreate = 'Create';
+rsChange = 'Changes';
+rsFind = 'Find';
+rsSearch = 'Search';
+rsReplace = 'Replace';
+rsConfirm = 'Confirm';
+rsAll = 'All';
+rsSelect = 'Select';
+rsYes = 'Yes';
+rsNo = 'No';
+rsAbort = 'Abort';
+rsRetry = 'Retry';
+rsIgnore = 'Ignore';
+rsClose = 'Close';
+rsInsert = 'Insert';
+rsEdit = 'Edit';
+rsDelete = 'Delete';
+rsExit = 'Exit';
+
+
+// Captions
+rsError = 'Error';
+rsCriticalError = 'Critical Error';
+rsInformation = 'Information';
+rsConfirmation = 'Confirm';
+rsWarning = 'Warning';
+rsMessage = 'Message';
+
+
+// Standard file filters
+rsAllFiles = 'All Files';
+
+
+// CreateDir Dialog
+rsCreateDirectory = 'Create directory';
+rsEnterNewDirectory = 'Enter new directory name';
+rsCannotCreateDir = 'Cannot create directory';
+
+
+// Font Dialog
+rsSelectAFont = 'Select a font';
+rsName = 'Name';
+rsCollection = 'Collection';
+rsSize = 'Size';
+rsStyle = 'Style';
+rsItalic = 'Italic';
+rsBold = 'Bold';
+rsUnderScore = 'UnderScore';
+rsExampleText = 'Example Text';
+
+
+// Open Dialog
+rsOpenAFile = 'Open a file';
+rsFileName = 'Filename';
+rsFileType = 'Type of file';
+rsDrive = 'Drive';
+rsFiles = 'Files';
+rsDirectories = 'Directories';
+rsShowHidden = 'Show hidden files';
+
+
+// Save Dialog
+rsSaveAFile = 'Save file as';
+
+
diff --git a/src/corelib/x11/fpgfx_package.lpk b/src/corelib/x11/fpgfx_package.lpk
index acc7c9ee..764f5f49 100644
--- a/src/corelib/x11/fpgfx_package.lpk
+++ b/src/corelib/x11/fpgfx_package.lpk
@@ -24,7 +24,7 @@
<License Value="Modified LGPL
"/>
<Version Minor="6"/>
- <Files Count="17">
+ <Files Count="18">
<Item1>
<Filename Value="x11_xft.pas"/>
<UnitName Value="x11_xft"/>
@@ -93,6 +93,10 @@
<Filename Value="../gfx_imagelist.pas"/>
<UnitName Value="gfx_imagelist"/>
</Item17>
+ <Item18>
+ <Filename Value="../gfx_constants.pas"/>
+ <UnitName Value="gfx_constants"/>
+ </Item18>
</Files>
<LazDoc Paths="../../../docs/xml/corelib/;../../../docs/xml/corelib/x11/;../../../docs/xml/corelib/gdi/"/>
<RequiredPkgs Count="1">
diff --git a/src/corelib/x11/fpgfx_package.pas b/src/corelib/x11/fpgfx_package.pas
index ee7e9a84..e0827831 100644
--- a/src/corelib/x11/fpgfx_package.pas
+++ b/src/corelib/x11/fpgfx_package.pas
@@ -10,7 +10,7 @@ uses
x11_xft, x11_keyconv, gfxbase, gfx_x11, fpgfx, gfx_stdimages, gfx_imgfmt_bmp,
gfx_widget, gfx_UTF8utils, gfx_extinterpolation, gfx_cmdlineparams,
gfx_utils, gfx_popupwindow, gfx_impl, gfx_command_intf, gfx_wuline,
- gfx_imagelist;
+ gfx_imagelist, gfx_constants;
implementation