diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-03-24 12:23:00 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-03-24 12:23:00 +0000 |
commit | 7c809200754d707f440ec45686692db405da8ae1 (patch) | |
tree | 2164131ef6a523a5a2dbb137b9e875a1d11d478e /Game/Code/Classes | |
parent | 95dc3d90b3eb11080fdcd5edae37cbd35c4ffb57 (diff) | |
download | usdx-7c809200754d707f440ec45686692db405da8ae1.tar.gz usdx-7c809200754d707f440ec45686692db405da8ae1.tar.xz usdx-7c809200754d707f440ec45686692db405da8ae1.zip |
Fixed Bug: Not translating Texts reading Theme.Ini
Compiler doesn't define CompilerConst Translate correctly.
Fixed by Commenting IFDEF Operations out
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@21 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes')
-rw-r--r-- | Game/Code/Classes/UThemes.pas | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Game/Code/Classes/UThemes.pas b/Game/Code/Classes/UThemes.pas index c4b83d8b..7dbac5a9 100644 --- a/Game/Code/Classes/UThemes.pas +++ b/Game/Code/Classes/UThemes.pas @@ -3,9 +3,6 @@ unit UThemes; interface
uses
-{$IFDEF TRANSLATE}
- ULanguage,
-{$ENDIF}
IniFiles, SysUtils, Classes;
type
@@ -580,6 +577,9 @@ var implementation
uses
+{{$IFDEF TRANSLATE}
+ ULanguage,
+{{$ENDIF}
USkins, UIni;
constructor TTheme.Create(FileName: string);
@@ -716,7 +716,7 @@ begin //Score Text Translation Start
- {$IFDEF TRANSLATE}
+ {{$IFDEF TRANSLATE}
Main.Description[0] := Language.Translate('SING_SING');
Main.DescriptionLong[0] := Language.Translate('SING_SING_DESC');
Main.Description[1] := Language.Translate('SING_EDITOR');
@@ -725,7 +725,7 @@ begin Main.DescriptionLong[2] := Language.Translate('SING_GAME_OPTIONS_DESC');
Main.Description[3] := Language.Translate('SING_EXIT');
Main.DescriptionLong[3] := Language.Translate('SING_EXIT_DESC');
- {$ENDIF}
+ {{$ENDIF}
//Score Text Translation End
@@ -910,7 +910,7 @@ begin ThemeLoadButton(Options.ButtonRecord, 'OptionsButtonRecord');
ThemeLoadButton(Options.ButtonExit, 'OptionsButtonExit');
- {$IFDEF TRANSLATE}
+ {{$IFDEF TRANSLATE}
Options.Description[0] := Language.Translate('SING_OPTIONS_GAME');
Options.Description[1] := Language.Translate('SING_OPTIONS_GRAPHICS');
Options.Description[2] := Language.Translate('SING_OPTIONS_SOUND');
@@ -918,7 +918,7 @@ begin Options.Description[4] := Language.Translate('SING_OPTIONS_THEMES');
Options.Description[5] := Language.Translate('SING_OPTIONS_RECORD');
Options.Description[6] := Language.Translate('SING_OPTIONS_EXIT');
- {$ENDIF}
+ {{$ENDIF}
ThemeLoadText(Options.TextDescription, 'OptionsTextDescription');
Options.TextDescription.Text := Options.Description[0];
@@ -1137,9 +1137,9 @@ begin ThemeText.Size := ThemeIni.ReadInteger(Name, 'Size', 0);
ThemeText.Align := ThemeIni.ReadInteger(Name, 'Align', 0);
- {$IFDEF TRANSLATE}
+ {{$IFDEF TRANSLATE}
ThemeText.Text := Language.Translate(ThemeIni.ReadString(Name, 'Text', ''));
- {$ELSE}
+ {{$ELSE}{
ThemeText.Text := ThemeIni.ReadString(Name, 'Text', '');
{$ENDIF}
@@ -1268,9 +1268,9 @@ var begin
DecimalSeparator := '.';
- {$IFDEF TRANSLATE}
+ {{$IFDEF TRANSLATE}
ThemeSelect.Text := Language.Translate(ThemeIni.ReadString(Name, 'Text', ''));
- {$ELSE}
+ {{$ELSE}{
ThemeSelect.Text := ThemeIni.ReadString(Name, 'Text', '');
{$ENDIF}
@@ -1314,9 +1314,9 @@ var begin
DecimalSeparator := '.';
- {$IFDEF TRANSLATE}
+ {{$IFDEF TRANSLATE}
ThemeSelectS.Text := Language.Translate(ThemeIni.ReadString(Name, 'Text', ''));
- {$ELSE}
+ {{$ELSE}{
ThemeSelectS.Text := ThemeIni.ReadString(Name, 'Text', '');
{$ENDIF}
|