1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-14 22:03:27 +01:00

#102 add hungarian and french translations

This commit is contained in:
FunkyFr3sh 2021-09-29 13:48:12 +02:00
parent cf38abed60
commit 3a3eef6c75
5 changed files with 135 additions and 1 deletions

View File

@ -253,6 +253,106 @@ void TConfigForm::ApplyTranslation(TIniFile *ini)
MaxgameticksCbx->AddItem(L"25 тиков в секунду", NULL);
MaxgameticksCbx->AddItem(L"15 тиков в секунду", NULL);
}
else if (lang == "hungarian" || (lang == "auto" && priID == LANG_HUNGARIAN)) {
LanguageImg->Visible = true;
/* -Hungarian - made by cyberdyne-sys @ github */
ConfigForm->Caption = L"cnc-ddraw Beállító";
DisplayBtn->Caption = L"Képbeállítások";
AdvancedBtn->Caption = L"Haladó Beállítások";
CompatibilityBtn->Caption = L"Kompatibilitás Beállítások";
PresentationLbl->Caption = L"Bemutató";
MaintasLbl->Caption = L"Képarány megtartása";
VsyncLbl->Caption = L"VSync bekapcsolása";
AdjmouseLbl->Caption = L"Egérérzékenység beállítás";
DevmodeLbl->Caption = L"Kurzor bezárása az ablakba / képbe";
RendererLbl->Caption = L"Renderelő";
BorderLbl->Caption = L"Szegélyek megjelenítése ablakos módban";
SavesettingsLbl->Caption = L"Ablakhelyzet és méret megjegyzése";
ShaderLbl->Caption = L"OpenGL árnyaló";
MaxfpsLbl->Caption = L"Képkockaszám korlátozás";
BoxingLbl->Caption = L"Ablakos mód / felskálázás bekapcsolása";
MaxgameticksLbl->Caption = L"Játéksebesség korlátozás";
NoactivateappLbl->Caption = L"Alt+Tab hiba kiküszöbölése";
HookLbl->Caption = L"Hibás ablakos mód, vagy felskálázás javítása";
MinfpsLbl->Caption = L"Magas FPS kényszerítés / Akadozásjavítás Freesync/G-Sync esetén";
FixpitchLbl->Caption = L"Átlós rajzolási gondok kiküszöbölése";
NonexclusiveLbl->Caption = L"Láthatatlan videók / kezelőfelületi elemek javítása";
RendererCbx->Items->Clear();
RendererCbx->AddItem(L"Automatikus", NULL);
RendererCbx->AddItem(L"Direct3D 9", NULL);
RendererCbx->AddItem(L"OpenGL", NULL);
RendererCbx->AddItem(L"GDI", NULL);
PresentationCbx->Items->Clear();
PresentationCbx->AddItem(L"Teljes képernyő", NULL);
PresentationCbx->AddItem(L"Teljes képernyő felskálázva", NULL);
PresentationCbx->AddItem(L"Keret nélkül", NULL);
PresentationCbx->AddItem(L"Ablakban", NULL);
MaxgameticksCbx->Items->Clear();
MaxgameticksCbx->AddItem(L"Korlátlan", NULL);
MaxgameticksCbx->AddItem(L"Hangolás a kijelző képfrissítéséhez", NULL);
MaxgameticksCbx->AddItem(L"60hz képfrissítésű kijelző emulálása", NULL);
MaxgameticksCbx->AddItem(L"1000 tick másodpercenként", NULL);
MaxgameticksCbx->AddItem(L"500 tick másodpercenként", NULL);
MaxgameticksCbx->AddItem(L"60 tick másodpercenként", NULL);
MaxgameticksCbx->AddItem(L"30 tick másodpercenként", NULL);
MaxgameticksCbx->AddItem(L"25 tick másodpercenként", NULL);
MaxgameticksCbx->AddItem(L"15 tick másodpercenként", NULL);
}
else if (lang == "french" || (lang == "auto" && priID == LANG_FRENCH)) {
LanguageImg->Visible = true;
/* -French - made by Toshiba-3 @ github */
ConfigForm->Caption = L"Configuration cnc-ddraw";
DisplayBtn->Caption = L"Paramètres d'Affichage";
AdvancedBtn->Caption = L"Paramètres Avancés";
CompatibilityBtn->Caption = L"Paramètres de Compatibilité";
PresentationLbl->Caption = L"Présentation";
MaintasLbl->Caption = L"Conserver les proportions de l'image";
VsyncLbl->Caption = L"Activer la synchro verticale (VSync)";
AdjmouseLbl->Caption = L"Ajuster la sensibilité souris";
DevmodeLbl->Caption = L"Capturer le curseur dans la fenêtre / l'écran";
RendererLbl->Caption = L"Moteur de rendu";
BorderLbl->Caption = L"Afficher les bordures en mode fenêtré";
SavesettingsLbl->Caption = L"Retenir position/dimensions de la fenêtre";
ShaderLbl->Caption = L"Shader OpenGL";
MaxfpsLbl->Caption = L"Limiter les images par seconde (FPS)";
BoxingLbl->Caption = L"Activer windowboxing / mise à l'échelle par nombres entiers";
MaxgameticksLbl->Caption = L"Limiter la vitesse du jeu";
NoactivateappLbl->Caption = L"Corriger Alt+Tab défaillant";
HookLbl->Caption = L"Corriger mode fenêtré ou mise à l'échelle défaillant";
MinfpsLbl->Caption = L"Forcer FPS élevé / Corriger saccades en Freesync/G-Sync";
FixpitchLbl->Caption = L"Corriger défauts d'affichage diagonaux";
NonexclusiveLbl->Caption = L"Corriger vidéos et éléments d'interface invisibles";
RendererCbx->Items->Clear();
RendererCbx->AddItem(L"Automatique", NULL);
RendererCbx->AddItem(L"Direct3D 9", NULL);
RendererCbx->AddItem(L"OpenGL", NULL);
RendererCbx->AddItem(L"GDI", NULL);
PresentationCbx->Items->Clear();
PresentationCbx->AddItem(L"Plein Écran", NULL);
PresentationCbx->AddItem(L"Plein Écran Mis à l'Échelle", NULL);
PresentationCbx->AddItem(L"Sans Bordure", NULL);
PresentationCbx->AddItem(L"Fenêtré", NULL);
MaxgameticksCbx->Items->Clear();
MaxgameticksCbx->AddItem(L"Pas de limite", NULL);
MaxgameticksCbx->AddItem(L"Sync avec la fréquence de l'écran", NULL);
MaxgameticksCbx->AddItem(L"Émuler un écran à 60Hz", NULL);
MaxgameticksCbx->AddItem(L"1000 tics par seconde", NULL);
MaxgameticksCbx->AddItem(L"500 tics par seconde", NULL);
MaxgameticksCbx->AddItem(L"60 tics par seconde", NULL);
MaxgameticksCbx->AddItem(L"30 tics par seconde", NULL);
MaxgameticksCbx->AddItem(L"25 tics par seconde", NULL);
MaxgameticksCbx->AddItem(L"15 tics par seconde", NULL);
}
else {
IsEnglish = true;
@ -281,6 +381,18 @@ void TConfigForm::ApplyTranslation(TIniFile *ini)
LanguageImg->Picture->Graphic = png;
LanguageImg->Visible = true;
}
else if (priID == LANG_HUNGARIAN) {
TPngImage *png = new TPngImage();
png->LoadFromResourceName((int)HInstance, "PngImage_HU");
LanguageImg->Picture->Graphic = png;
LanguageImg->Visible = true;
}
else if (priID == LANG_FRENCH) {
TPngImage *png = new TPngImage();
png->LoadFromResourceName((int)HInstance, "PngImage_FR");
LanguageImg->Picture->Graphic = png;
LanguageImg->Visible = true;
}
} catch (...) {
}
@ -692,7 +804,7 @@ void __fastcall TConfigForm::RendererCbxChange(TObject *Sender)
void __fastcall TConfigForm::ShaderCbxChange(TObject *Sender)
{
RendererCbx->ItemIndex = 2;
RendererCbx->ItemIndex = 2;
SaveSettings();
}

BIN
config/Resources/fr.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

BIN
config/Resources/hu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

View File

@ -143,6 +143,14 @@
<ResourceType>RCDATA</ResourceType>
<ResourceId>PngImage_ES</ResourceId>
</RcItem>
<RcItem Include="Resources\fr.png">
<ResourceType>RCDATA</ResourceType>
<ResourceId>PngImage_FR</ResourceId>
</RcItem>
<RcItem Include="Resources\hu.png">
<ResourceType>RCDATA</ResourceType>
<ResourceId>PngImage_HU</ResourceId>
</RcItem>
<RcItem Include="Resources\RU.png">
<ResourceType>RCDATA</ResourceType>
<ResourceId>PngImage_RU</ResourceId>
@ -281,11 +289,23 @@
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="Resources\hu.png" Configuration="Release" Class="ProjectFile">
<Platform Name="Win32">
<RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile Condition="'$(DynamicRTL)'=='true'" LocalName="$(BDS)\Redist\osx64\libcgcrtl.dylib" Class="DependencyModule">
<Platform Name="OSX64">
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="Resources\fr.png" Configuration="Release" Class="ProjectFile">
<Platform Name="Win32">
<RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployClass Name="AdditionalDebugSymbols">
<Platform Name="iOSSimulator">
<Operation>1</Operation>

View File

@ -1,5 +1,7 @@
PngImage_CN RCDATA "Resources\\CN.png"
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_RU RCDATA "Resources\\RU.png"
PngImage_US RCDATA "Resources\\US.png"