1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

Merge pull request #206 from Kappa971/kappa/cnc-ddraw-italiano

Add Italian translation
This commit is contained in:
FunkyFr3sh 2023-08-04 12:36:08 +02:00 committed by GitHub
commit d7dc09dfb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 67 additions and 0 deletions

View File

@ -353,6 +353,56 @@ void TConfigForm::ApplyTranslation(TIniFile *ini)
MaxgameticksCbx->AddItem(L"25 tics par seconde", NULL);
MaxgameticksCbx->AddItem(L"15 tics par seconde", NULL);
}
else if (lang == "italian" || (lang == "auto" && priID == LANG_ITALIAN)) {
LanguageImg->Visible = true;
/* -Italian - made by Kappa971 @ github */
ConfigForm->Caption = L"Configurazione di cnc-ddraw";
DisplayBtn->Caption = L"Impostazioni dello schermo";
AdvancedBtn->Caption = L"Impostazioni avanzate";
CompatibilityBtn->Caption = L"Impostazioni di compatibilità";
PresentationLbl->Caption = L"Presentazione";
MaintasLbl->Caption = L"Mantieni il rapporto d'aspetto";
VsyncLbl->Caption = L"Abilita la sincronizzazione verticale (VSync)";
AdjmouseLbl->Caption = L"Regola la sensibilità del mouse";
DevmodeLbl->Caption = L"Cattura il cursore nella finestra / schermo";
RendererLbl->Caption = L"Renderer";
BorderLbl->Caption = L"Mostra i bordi della finestra in modalità finestra";
SavesettingsLbl->Caption = L"Ricorda la posizione e le dimensioni della finestra";
ShaderLbl->Caption = L"Shader OpenGL";
MaxfpsLbl->Caption = L"Limita la frequenza dei fotogrammi (FPS)";
BoxingLbl->Caption = L"Abilita il ridimensionamento dei numeri interi";
MaxgameticksLbl->Caption = L"Limita la velocità di gioco";
NoactivateappLbl->Caption = L"Correggi il funzionamento di Alt+Tab";
HookLbl->Caption = L"Risolvi i problemi con la modalità finestra o il ridimensionamento";
MinfpsLbl->Caption = L"Forza FPS elevati / Correggi balbuzie su Freesync/G-Sync";
FixpitchLbl->Caption = L"Correggi artefatti mostrati in diagonale";
NonexclusiveLbl->Caption = L"Correggi video / elementi dell'interfaccia utente invisibili";
RendererCbx->Items->Clear();
RendererCbx->AddItem(L"Automatico", NULL);
RendererCbx->AddItem(L"Direct3D 9", NULL);
RendererCbx->AddItem(L"OpenGL", NULL);
RendererCbx->AddItem(L"GDI", NULL);
PresentationCbx->Items->Clear();
PresentationCbx->AddItem(L"Schermo Intero", NULL);
PresentationCbx->AddItem(L"Schermo Intero Ridimensionato", NULL);
PresentationCbx->AddItem(L"Senza Bordi", NULL);
PresentationCbx->AddItem(L"In Finestra", NULL);
MaxgameticksCbx->Items->Clear();
MaxgameticksCbx->AddItem(L"Senza Limiti", NULL);
MaxgameticksCbx->AddItem(L"Sincronizza con la frequenza dello schermo", NULL);
MaxgameticksCbx->AddItem(L"Emula uno schermo a 60Hz", NULL);
MaxgameticksCbx->AddItem(L"1000 tick al secondo", NULL);
MaxgameticksCbx->AddItem(L"500 tick al secondo", NULL);
MaxgameticksCbx->AddItem(L"60 tick al secondo", NULL);
MaxgameticksCbx->AddItem(L"30 tick al secondo", NULL);
MaxgameticksCbx->AddItem(L"25 tick al secondo", NULL);
MaxgameticksCbx->AddItem(L"15 tick al secondo", NULL);
}
else {
IsEnglish = true;
@ -393,6 +443,12 @@ void TConfigForm::ApplyTranslation(TIniFile *ini)
LanguageImg->Picture->Graphic = png;
LanguageImg->Visible = true;
}
else if (priID == LANG_ITALIAN) {
TPngImage *png = new TPngImage();
png->LoadFromResourceName((int)HInstance, "PngImage_IT");
LanguageImg->Picture->Graphic = png;
LanguageImg->Visible = true;
}
} catch (...) {
}

BIN
config/Resources/IT.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

View File

@ -183,6 +183,10 @@
<ResourceType>RCDATA</ResourceType>
<ResourceId>PngImage_HU</ResourceId>
</RcItem>
<RcItem Include="Resources\IT.png">
<ResourceType>RCDATA</ResourceType>
<ResourceId>PngImage_IT</ResourceId>
</RcItem>
<RcItem Include="Resources\RU.png">
<ResourceType>RCDATA</ResourceType>
<ResourceId>PngImage_RU</ResourceId>
@ -269,6 +273,12 @@
<Platform Name="Win32">
<Overwrite>true</Overwrite>
</Platform>
<DeployFile LocalName="Resources\IT.png" Configuration="Release" Class="ProjectFile">
<Platform Name="Win32">
<RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
</DeployFile>
<DeployFile Condition="'$(DynamicRTL)'=='true' And '$(Multithreaded)'!='true'" LocalName="$(BDS)\bin\cc32c260.dll" Class="DependencyModule"/>
<DeployFile Condition="'$(DynamicRTL)'=='true' And '$(Multithreaded)'=='true'" LocalName="$(BDS)\bin\cc32c260mt.dll" Class="DependencyModule"/>

View File

@ -3,5 +3,6 @@ PngImage_DE RCDATA "Resources\\DE.png"
PngImage_ES RCDATA "Resources\\ES.png"
PngImage_FR RCDATA "Resources\\fr.png"
PngImage_HU RCDATA "Resources\\hu.png"
PngImage_IT RCDATA "Resources\\IT.png"
PngImage_RU RCDATA "Resources\\RU.png"
PngImage_US RCDATA "Resources\\US.png"