From 29733e8c8b6b7ea1481304c1365ddc6bd1eaae2e Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Tue, 6 Jul 2021 20:01:25 +0200 Subject: [PATCH] #102 add Spanish translation made by c-sanchez --- config/ConfigFormUnit.cpp | 50 +++++- config/ConfigFormUnit.dfm | 362 +++++++++++++++++++------------------- config/ConfigFormUnit.h | 2 +- 3 files changed, 231 insertions(+), 183 deletions(-) diff --git a/config/ConfigFormUnit.cpp b/config/ConfigFormUnit.cpp index 3c3a49fbf2..751db8c4b9 100644 --- a/config/ConfigFormUnit.cpp +++ b/config/ConfigFormUnit.cpp @@ -25,7 +25,7 @@ __fastcall TConfigForm::TConfigForm(TComponent* Owner) : TForm(Owner) { if (SysLocale.PriLangID == LANG_CHINESE) { - /* Chinese Simplified made by universal963 @ github */ + /* -Chinese Simplified- made by universal963 @ github */ ConfigForm->Caption = L"cnc-ddraw 配置"; DisplayBtn->Caption = L"显示设置"; @@ -72,6 +72,54 @@ __fastcall TConfigForm::TConfigForm(TComponent* Owner) MaxgameticksCbx->AddItem(L"25tick每秒", NULL); MaxgameticksCbx->AddItem(L"15tick每秒", NULL); } + else if (SysLocale.PriLangID == LANG_SPANISH) { + /* -Spanish- made by c-sanchez @ github */ + + ConfigForm->Caption = L"Ajustes de cnc-ddraw"; + DisplayBtn->Caption = L"Ajustes de pantalla"; + AdvancedBtn->Caption = L"Ajustes avanzados"; + CompatibilityBtn->Caption = L"Ajustes de compatibilidad"; + PresentationLbl->Caption = L"Presentación"; + MaintasLbl->Caption = L"Mantener la relación de aspecto"; + VsyncLbl->Caption = L"Activar VSync"; + AdjmouseLbl->Caption = L"Ajustar sensibilidad de ratón"; + DevmodeLbl->Caption = L"Bloquear cursor a la ventana / pantalla"; + RendererLbl->Caption = L"Renderizador"; + BorderLbl->Caption = L"Mostrar bordes en modo ventana"; + SavesettingsLbl->Caption = L"Recordar posición y tamaño de ventana"; + ShaderLbl->Caption = L"Sombreador OpenGL"; + MaxfpsLbl->Caption = L"Limitar velocidad de fotogramas"; + BoxingLbl->Caption = L"Activar encajado de ventanas / escalado de enteros"; + MaxgameticksLbl->Caption = L"Limitar velocidad de juego"; + NoactivateappLbl->Caption = L"Corregir Alt+Tab roto"; + HookLbl->Caption = L"Corregir modo ventana o ampliación de escala"; + MinfpsLbl->Caption = L"Forzar un alto FPS / Corregir retrasos en Freesync/G-Sync"; + FixpitchLbl->Caption = L"Corregir problemas de visualización de dibujos en diagonal"; + NonexclusiveLbl->Caption = L"Corregir vídeos / elementos de interfaz invisibles"; + + RendererCbx->Items->Clear(); + RendererCbx->AddItem(L"Automático", NULL); + RendererCbx->AddItem(L"Direct3D9", NULL); + RendererCbx->AddItem(L"OpenGL", NULL); + RendererCbx->AddItem(L"GDI", NULL); + + PresentationCbx->Items->Clear(); + PresentationCbx->AddItem(L"Pantalla completa", NULL); + PresentationCbx->AddItem(L"Pantalla completa ampliada", NULL); + PresentationCbx->AddItem(L"Sin bordes", NULL); + PresentationCbx->AddItem(L"Ventana", NULL); + + MaxgameticksCbx->Items->Clear(); + MaxgameticksCbx->AddItem(L"Sin límite", NULL); + MaxgameticksCbx->AddItem(L"Sincronizar con tasa de refresco de monitor", NULL); + MaxgameticksCbx->AddItem(L"Emular monitor con tasa de refresco de 60hz", NULL); + MaxgameticksCbx->AddItem(L"1000 tics por segundo", NULL); + MaxgameticksCbx->AddItem(L"500 tics por segundo", NULL); + MaxgameticksCbx->AddItem(L"60 tics por segundo", NULL); + MaxgameticksCbx->AddItem(L"30 tics por segundo", NULL); + MaxgameticksCbx->AddItem(L"25 tics por segundo", NULL); + MaxgameticksCbx->AddItem(L"15 tics por segundo", NULL); + } else { /* ConfigForm->Caption = L"cnc-ddraw config"; diff --git a/config/ConfigFormUnit.dfm b/config/ConfigFormUnit.dfm index c0261ae570..735d04b434 100644 --- a/config/ConfigFormUnit.dfm +++ b/config/ConfigFormUnit.dfm @@ -2682,7 +2682,7 @@ object ConfigForm: TConfigForm OnCreate = FormCreate PixelsPerInch = 96 TextHeight = 13 - object DisplayPnl: TPanel + object AdvancedPnl: TPanel Left = 191 Top = 8 Width = 499 @@ -2691,14 +2691,15 @@ object ConfigForm: TConfigForm Color = clWhite ParentBackground = False ShowCaption = False - TabOrder = 1 + TabOrder = 2 + Visible = False StyleElements = [seFont, seBorder] - object PresentationLbl: TLabel + object RendererLbl: TLabel Left = 40 Top = 28 - Width = 87 + Width = 64 Height = 21 - Caption = 'Presentation' + Caption = 'Renderer' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -2707,13 +2708,28 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object MaintasLbl: TLabel + object SavesettingsLbl: TLabel + Left = 40 + Top = 386 + Width = 256 + Height = 21 + Margins.Top = 18 + Caption = 'Remember window position and size' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -16 + Font.Name = 'Segoe UI' + Font.Style = [] + ParentFont = False + StyleElements = [seClient, seBorder] + end + object ShaderLbl: TLabel Left = 40 Top = 105 - Width = 145 + Width = 108 Height = 21 Margins.Top = 18 - Caption = 'Maintain aspect ratio' + Caption = 'OpenGL shader' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -2722,13 +2738,13 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object VsyncLbl: TLabel + object MaxfpsLbl: TLabel Left = 40 - Top = 173 - Width = 93 + Top = 182 + Width = 111 Height = 21 Margins.Top = 18 - Caption = 'Enable VSync' + Caption = 'Limit frame rate' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -2737,13 +2753,13 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object AdjmouseLbl: TLabel + object BorderLbl: TLabel Left = 40 - Top = 241 - Width = 168 + Top = 318 + Width = 293 Height = 21 Margins.Top = 18 - Caption = 'Adjust mouse sensitivity' + Caption = 'Show window borders in windowed mode' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -2752,13 +2768,13 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object DevmodeLbl: TLabel + object BoxingLbl: TLabel Left = 40 - Top = 309 - Width = 216 + Top = 250 + Width = 267 Height = 21 Margins.Top = 18 - Caption = 'Lock cursor to window / screen' + Caption = 'Enable windowboxing / integer scaling' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -2767,17 +2783,24 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object PresentationPbox: TPaintBox + object RendererPbox: TPaintBox Left = 40 Top = 54 - Width = 187 + Width = 207 Height = 31 OnPaint = PboxPaint end - object PresentationCbx: TComboBox + object ShaderPbox: TPaintBox + Left = 40 + Top = 131 + Width = 427 + Height = 31 + OnPaint = PboxPaint + end + object RendererCbx: TComboBox Left = 41 Top = 55 - Width = 185 + Width = 205 Height = 29 BevelEdges = [] BevelInner = bvNone @@ -2789,52 +2812,70 @@ object ConfigForm: TConfigForm Font.Name = 'Segoe UI' Font.Style = [] ParentFont = False - TabOrder = 1 - OnChange = PresentationCbxChange + TabOrder = 0 + OnChange = RendererCbxChange Items.Strings = ( - 'Fullscreen' - 'Fullscreen Upscaled' - 'Borderless' - 'Windowed') + 'Automatic' + 'Direct3D9' + 'OpenGL' + 'GDI') end - object MaintasChk: TToggleSwitch + object BorderChk: TToggleSwitch Left = 40 - Top = 132 + Top = 345 Width = 50 Height = 20 ShowStateCaption = False - TabOrder = 0 - OnClick = MaintasChkClick + TabOrder = 1 + OnClick = BorderChkClick end - object VsyncChk: TToggleSwitch + object SavesettingsChk: TToggleSwitch Left = 40 - Top = 200 + Top = 413 Width = 50 Height = 20 ShowStateCaption = False TabOrder = 2 - OnClick = VsyncChkClick + OnClick = SavesettingsChkClick end - object AdjmouseChk: TToggleSwitch + object ShaderCbx: TComboBox + Left = 41 + Top = 132 + Width = 425 + Height = 29 + BevelEdges = [] + BevelInner = bvNone + BevelOuter = bvSpace + Style = csDropDownList + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -16 + Font.Name = 'Segoe UI' + Font.Style = [] + ParentFont = False + TabOrder = 3 + OnChange = ShaderCbxChange + end + object MaxfpsChk: TToggleSwitch Left = 40 - Top = 268 + Top = 209 Width = 50 Height = 20 ShowStateCaption = False - TabOrder = 3 - OnClick = AdjmouseChkClick + TabOrder = 4 + OnClick = MaxfpsChkClick end - object DevmodeChk: TToggleSwitch + object BoxingChk: TToggleSwitch Left = 40 - Top = 336 + Top = 277 Width = 50 Height = 20 ShowStateCaption = False - TabOrder = 4 - OnClick = DevmodeChkClick + TabOrder = 5 + OnClick = BoxingChkClick end end - object CompatibilityPnl: TPanel + object DisplayPnl: TPanel Left = 191 Top = 8 Width = 499 @@ -2843,15 +2884,14 @@ object ConfigForm: TConfigForm Color = clWhite ParentBackground = False ShowCaption = False - TabOrder = 3 - Visible = False + TabOrder = 1 StyleElements = [seFont, seBorder] - object MaxgameticksLbl: TLabel + object PresentationLbl: TLabel Left = 40 Top = 28 - Width = 123 + Width = 87 Height = 21 - Caption = 'Limit game speed' + Caption = 'Presentation' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -2860,13 +2900,13 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object NoactivateappLbl: TLabel + object MaintasLbl: TLabel Left = 40 Top = 105 - Width = 129 + Width = 145 Height = 21 Margins.Top = 18 - Caption = 'Fix broken Alt+Tab' + Caption = 'Maintain aspect ratio' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -2875,13 +2915,13 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object HookLbl: TLabel + object VsyncLbl: TLabel Left = 40 Top = 173 - Width = 281 + Width = 93 Height = 21 Margins.Top = 18 - Caption = 'Fix broken windowed mode or upscaling' + Caption = 'Enable VSync' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -2890,13 +2930,13 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object MinfpsLbl: TLabel + object AdjmouseLbl: TLabel Left = 40 Top = 241 - Width = 350 + Width = 168 Height = 21 Margins.Top = 18 - Caption = 'Force high FPS / Fix stuttering on Freesync/G-Sync' + Caption = 'Adjust mouse sensitivity' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -2905,28 +2945,13 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object FixpitchLbl: TLabel + object DevmodeLbl: TLabel Left = 40 Top = 309 - Width = 272 - Height = 21 - Margins.Top = 18 - Caption = 'Fix diagonally displayed drawing issues' - Font.Charset = DEFAULT_CHARSET - Font.Color = clWindowText - Font.Height = -16 - Font.Name = 'Segoe UI' - Font.Style = [] - ParentFont = False - StyleElements = [seClient, seBorder] - end - object NonexclusiveLbl: TLabel - Left = 40 - Top = 377 - Width = 225 + Width = 216 Height = 21 Margins.Top = 18 - Caption = 'Fix invisible videos / UI elements' + Caption = 'Lock cursor to window / screen' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -2935,89 +2960,74 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object MaxfpsPbox: TPaintBox + object PresentationPbox: TPaintBox Left = 40 Top = 54 - Width = 291 + Width = 207 Height = 31 OnPaint = PboxPaint end - object MaxgameticksCbx: TComboBox + object PresentationCbx: TComboBox Left = 41 Top = 55 - Width = 289 + Width = 205 Height = 29 BevelEdges = [] BevelInner = bvNone BevelOuter = bvSpace Style = csDropDownList - DropDownCount = 10 Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 Font.Name = 'Segoe UI' Font.Style = [] ParentFont = False - TabOrder = 0 - OnChange = MaxgameticksCbxChange + TabOrder = 1 + OnChange = PresentationCbxChange Items.Strings = ( - 'No limit' - 'Sync with monitor refresh rate' - 'Emulate 60hz refresh rate monitor' - '1000 ticks per second' - '500 ticks per second' - '60 ticks per second' - '30 ticks per second' - '25 ticks per second' - '15 ticks per second') + 'Fullscreen' + 'Fullscreen Upscaled' + 'Borderless' + 'Windowed') end - object NoactivateappChk: TToggleSwitch + object MaintasChk: TToggleSwitch Left = 40 Top = 132 Width = 50 Height = 20 ShowStateCaption = False - TabOrder = 1 - OnClick = NoactivateappChkClick + TabOrder = 0 + OnClick = MaintasChkClick end - object HookChk: TToggleSwitch + object VsyncChk: TToggleSwitch Left = 40 Top = 200 Width = 50 Height = 20 ShowStateCaption = False TabOrder = 2 - OnClick = HookChkClick + OnClick = VsyncChkClick end - object MinfpsChk: TToggleSwitch + object AdjmouseChk: TToggleSwitch Left = 40 Top = 268 Width = 50 Height = 20 ShowStateCaption = False TabOrder = 3 - OnClick = MinfpsChkClick + OnClick = AdjmouseChkClick end - object FixpitchChk: TToggleSwitch + object DevmodeChk: TToggleSwitch Left = 40 Top = 336 Width = 50 Height = 20 ShowStateCaption = False TabOrder = 4 - OnClick = FixpitchChkClick - end - object NonexclusiveChk: TToggleSwitch - Left = 40 - Top = 404 - Width = 50 - Height = 20 - ShowStateCaption = False - TabOrder = 5 - OnClick = NonexclusiveChkClick + OnClick = DevmodeChkClick end end - object AdvancedPnl: TPanel + object CompatibilityPnl: TPanel Left = 191 Top = 8 Width = 499 @@ -3026,15 +3036,15 @@ object ConfigForm: TConfigForm Color = clWhite ParentBackground = False ShowCaption = False - TabOrder = 2 + TabOrder = 3 Visible = False StyleElements = [seFont, seBorder] - object RendererLbl: TLabel + object MaxgameticksLbl: TLabel Left = 40 Top = 28 - Width = 64 + Width = 123 Height = 21 - Caption = 'Renderer' + Caption = 'Limit game speed' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -3043,13 +3053,13 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object SavesettingsLbl: TLabel + object NoactivateappLbl: TLabel Left = 40 - Top = 386 - Width = 256 + Top = 105 + Width = 129 Height = 21 Margins.Top = 18 - Caption = 'Remember window position and size' + Caption = 'Fix broken Alt+Tab' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -3058,13 +3068,13 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object ShaderLbl: TLabel + object HookLbl: TLabel Left = 40 - Top = 105 - Width = 108 + Top = 173 + Width = 281 Height = 21 Margins.Top = 18 - Caption = 'OpenGL shader' + Caption = 'Fix broken windowed mode or upscaling' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -3073,13 +3083,13 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object MaxfpsLbl: TLabel + object MinfpsLbl: TLabel Left = 40 - Top = 182 - Width = 111 + Top = 241 + Width = 350 Height = 21 Margins.Top = 18 - Caption = 'Limit frame rate' + Caption = 'Force high FPS / Fix stuttering on Freesync/G-Sync' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -3088,13 +3098,13 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object BorderLbl: TLabel + object FixpitchLbl: TLabel Left = 40 - Top = 318 - Width = 293 + Top = 309 + Width = 272 Height = 21 Margins.Top = 18 - Caption = 'Show window borders in windowed mode' + Caption = 'Fix diagonally displayed drawing issues' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -3103,13 +3113,13 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object BoxingLbl: TLabel + object NonexclusiveLbl: TLabel Left = 40 - Top = 250 - Width = 267 + Top = 377 + Width = 225 Height = 21 Margins.Top = 18 - Caption = 'Enable windowboxing / integer scaling' + Caption = 'Fix invisible videos / UI elements' Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -3118,29 +3128,23 @@ object ConfigForm: TConfigForm ParentFont = False StyleElements = [seClient, seBorder] end - object RendererPbox: TPaintBox + object MaxgameticksPbox: TPaintBox Left = 40 Top = 54 - Width = 187 - Height = 31 - OnPaint = PboxPaint - end - object ShaderPbox: TPaintBox - Left = 40 - Top = 131 - Width = 427 + Width = 342 Height = 31 OnPaint = PboxPaint end - object RendererCbx: TComboBox + object MaxgameticksCbx: TComboBox Left = 41 Top = 55 - Width = 185 + Width = 340 Height = 29 BevelEdges = [] BevelInner = bvNone BevelOuter = bvSpace Style = csDropDownList + DropDownCount = 10 Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -3148,66 +3152,62 @@ object ConfigForm: TConfigForm Font.Style = [] ParentFont = False TabOrder = 0 - OnChange = RendererCbxChange + OnChange = MaxgameticksCbxChange Items.Strings = ( - 'Automatic' - 'Direct3D9' - 'OpenGL' - 'GDI') + 'No limit' + 'Sync with monitor refresh rate' + 'Emulate 60hz refresh rate monitor' + '1000 ticks per second' + '500 ticks per second' + '60 ticks per second' + '30 ticks per second' + '25 ticks per second' + '15 ticks per second') end - object BorderChk: TToggleSwitch + object NoactivateappChk: TToggleSwitch Left = 40 - Top = 345 + Top = 132 Width = 50 Height = 20 ShowStateCaption = False TabOrder = 1 - OnClick = BorderChkClick + OnClick = NoactivateappChkClick end - object SavesettingsChk: TToggleSwitch + object HookChk: TToggleSwitch Left = 40 - Top = 413 + Top = 200 Width = 50 Height = 20 ShowStateCaption = False TabOrder = 2 - OnClick = SavesettingsChkClick + OnClick = HookChkClick end - object ShaderCbx: TComboBox - Left = 41 - Top = 132 - Width = 425 - Height = 29 - BevelEdges = [] - BevelInner = bvNone - BevelOuter = bvSpace - Style = csDropDownList - Font.Charset = DEFAULT_CHARSET - Font.Color = clWindowText - Font.Height = -16 - Font.Name = 'Segoe UI' - Font.Style = [] - ParentFont = False + object MinfpsChk: TToggleSwitch + Left = 40 + Top = 268 + Width = 50 + Height = 20 + ShowStateCaption = False TabOrder = 3 - OnChange = ShaderCbxChange + OnClick = MinfpsChkClick end - object MaxfpsChk: TToggleSwitch + object FixpitchChk: TToggleSwitch Left = 40 - Top = 209 + Top = 336 Width = 50 Height = 20 ShowStateCaption = False TabOrder = 4 - OnClick = MaxfpsChkClick + OnClick = FixpitchChkClick end - object BoxingChk: TToggleSwitch + object NonexclusiveChk: TToggleSwitch Left = 40 - Top = 277 + Top = 404 Width = 50 Height = 20 ShowStateCaption = False TabOrder = 5 - OnClick = BoxingChkClick + OnClick = NonexclusiveChkClick end end object MenuPnl: TPanel diff --git a/config/ConfigFormUnit.h b/config/ConfigFormUnit.h index 80311ed885..c49a754907 100644 --- a/config/ConfigFormUnit.h +++ b/config/ConfigFormUnit.h @@ -59,7 +59,7 @@ class TConfigForm : public TForm TPaintBox *PresentationPbox; TPaintBox *RendererPbox; TPaintBox *ShaderPbox; - TPaintBox *MaxfpsPbox; + TPaintBox *MaxgameticksPbox; void __fastcall DisplayBtnClick(TObject *Sender); void __fastcall AdvancedBtnClick(TObject *Sender); void __fastcall CompatibilityBtnClick(TObject *Sender);