mirror of
https://github.com/SourMesen/Mesen.git
synced 2024-06-01 19:08:17 -04:00
UI: Added Italian language (#658)
This commit is contained in:
parent
373c489b01
commit
f648a30f17
|
@ -529,6 +529,7 @@ enum class Language
|
|||
Portuguese = 7,
|
||||
Catalan = 8,
|
||||
Chinese = 9,
|
||||
Italian = 10,
|
||||
};
|
||||
|
||||
enum class MouseDevice
|
||||
|
|
|
@ -678,6 +678,81 @@ std::unordered_map<string, string> MessageManager::_zhResources = {
|
|||
{ "SynchronizationCompleted", u8"同步已完成." },
|
||||
};
|
||||
|
||||
std::unordered_map<string, string> MessageManager::_itResources = {
|
||||
{ "Cheats", u8"Cheat" },
|
||||
{ "Debug", u8"Debug" },
|
||||
{ "EmulationSpeed", u8"Velocità Emulazione" },
|
||||
{ "ClockRate", u8"Frequenza di clock" },
|
||||
{ "Error", u8"Errore" },
|
||||
{ "GameInfo", u8"Informazioni sul Gioco" },
|
||||
{ "GameLoaded", u8"Caricamento Gioco" },
|
||||
{ "Input", u8"Input" },
|
||||
{ "Patch", u8"Patch" },
|
||||
{ "Movies", u8"Filmati" },
|
||||
{ "NetPlay", u8"Gioco Online" },
|
||||
{ "Region", u8"Regione" },
|
||||
{ "SaveStates", u8"Salva Stato" },
|
||||
{ "ScreenshotSaved", u8"Screenshot Salvato" },
|
||||
{ "SoundRecorder", u8"Suono Registrato" },
|
||||
{ "Test", u8"Test" },
|
||||
{ "VideoRecorder", u8"Video Registrato" },
|
||||
|
||||
{ "ApplyingPatch", u8"Applicando la patch: %1" },
|
||||
{ "CheatApplied", u8"1 cheat attivato." },
|
||||
{ "CheatsApplied", u8"%1 cheat attivati." },
|
||||
{ "CheatsDisabled", u8"Tutte le cheat disattivate." },
|
||||
{ "CoinInsertedSlot", u8"Moneta inserita (slot %1)" },
|
||||
{ "ConnectedToServer", u8"Connesso al server." },
|
||||
{ "ConnectedAsPlayer", u8"Connesso come giocatore %1" },
|
||||
{ "ConnectedAsSpectator", u8"Connesso come spettatore." },
|
||||
{ "ConnectionLost", u8"Connessione al server persa." },
|
||||
{ "CouldNotConnect", u8"Impossibile connettersi al server." },
|
||||
{ "CouldNotInitializeAudioSystem", u8"Impossibile inizializzare il sistema audio" },
|
||||
{ "CouldNotFindRom", u8"Impossibile trovare la ROM del gioco corrispondente." },
|
||||
{ "CouldNotLoadFile", u8"Impossibile caricare il file: %1" },
|
||||
{ "EmulationMaximumSpeed", u8"Velocità massima" },
|
||||
{ "EmulationSpeedPercent", u8"%1%" },
|
||||
{ "FdsDiskInserted", u8"Disco %1 Lato %2 inserito." },
|
||||
{ "Frame", u8"Frame" },
|
||||
{ "GameCrash", u8"Il gioco è andato in crash (%1)" },
|
||||
{ "KeyboardModeDisabled", u8"Modalità tastiera disabilitata." },
|
||||
{ "KeyboardModeEnabled", u8"Modalità tastiera abilitata." },
|
||||
{ "Lag", u8"Lag" },
|
||||
{ "Mapper", u8"Mapper: %1, SubMapper: %2" },
|
||||
{ "MovieEnded", u8"Filmato finito." },
|
||||
{ "MovieInvalid", u8"File filmato non valido." },
|
||||
{ "MovieMissingRom", u8"È richiesta la ROM mancante (% 1) per riprodurre il filmato." },
|
||||
{ "MovieNewerVersion", u8"Impossibile caricare filmati creati da una versione più recente di Mesen. Si prega di scaricare l'ultima versione." },
|
||||
{ "MovieIncompatibleVersion", u8"Questo filmato non è compatibile con questa versione di Mesen." },
|
||||
{ "MoviePlaying", u8"Riproduci filmato: %1" },
|
||||
{ "MovieRecordingTo", u8"Registrazione su: %1" },
|
||||
{ "MovieSaved", u8"Filmato salvato su file: %1" },
|
||||
{ "NetplayVersionMismatch", u8"%1 non sta eseguendo la stessa versione di Mesen ed è stato disconnesso." },
|
||||
{ "PrgSizeWarning", u8"La dimensione del PRG è inferiore a 32kb" },
|
||||
{ "SaveStateEmpty", u8"Lo slot è vuoto" },
|
||||
{ "SaveStateIncompatibleVersion", u8"Il salva stato è incompatibile con questa versione di Mesen." },
|
||||
{ "SaveStateInvalidFile", u8"File salva stato non valido." },
|
||||
{ "SaveStateLoaded", u8"Stato #%1 caricato." },
|
||||
{ "SaveStateMissingRom", u8"Richiesto ROM mancante (%1) per caricare il salva stato." },
|
||||
{ "SaveStateNewerVersion", u8"Impossibile caricare gli stati salvati creati da una versione più recente di Mesen. Si prega di scaricare l'ultima versione." },
|
||||
{ "SaveStateSaved", u8"Stato #%1 salvato." },
|
||||
{ "SaveStateSlotSelected", u8"Slot #%1 selezionato." },
|
||||
{ "ScanlineTimingWarning", u8"Il tempo della PPU è stato cambiato." },
|
||||
{ "ServerStarted", u8"Server avviato (Port: %1)" },
|
||||
{ "ServerStopped", u8"Server arrestato" },
|
||||
{ "SoundRecorderStarted", u8"Registrazione su: %1" },
|
||||
{ "SoundRecorderStopped", u8"Registrazione salvata in: %1" },
|
||||
{ "TestFileSavedTo", u8"File di prova salvato in: %1" },
|
||||
{ "UnsupportedMapper", u8"Mapper non supportato (%1), impossibile caricare il gioco." },
|
||||
{ "VideoRecorderStarted", u8"Registrazione su: %1" },
|
||||
{ "VideoRecorderStopped", u8"Registrazione salvata in: %1" },
|
||||
|
||||
{ "GoogleDrive", u8"Google Drive" },
|
||||
{ "SynchronizationStarted", u8"Sincronizzazione avviata." },
|
||||
{ "SynchronizationFailed", u8"Sincronizzazione fallita." },
|
||||
{ "SynchronizationCompleted", u8"Sincronizzazione completata." },
|
||||
};
|
||||
|
||||
std::list<string> MessageManager::_log;
|
||||
SimpleLock MessageManager::_logLock;
|
||||
SimpleLock MessageManager::_messageLock;
|
||||
|
@ -716,6 +791,7 @@ string MessageManager::Localize(string key)
|
|||
case Language::Portuguese: resources = &_ptResources; break;
|
||||
case Language::Catalan: resources = &_caResources; break;
|
||||
case Language::Chinese: resources = &_zhResources; break;
|
||||
case Language::Italian: resources = &_itResources; break;
|
||||
}
|
||||
if(resources) {
|
||||
if(resources->find(key) != resources->end()) {
|
||||
|
|
|
@ -19,6 +19,7 @@ private:
|
|||
static std::unordered_map<string, string> _ptResources;
|
||||
static std::unordered_map<string, string> _caResources;
|
||||
static std::unordered_map<string, string> _zhResources;
|
||||
static std::unordered_map<string, string> _itResources;
|
||||
|
||||
static bool _osdEnabled;
|
||||
static SimpleLock _logLock;
|
||||
|
|
|
@ -1068,6 +1068,7 @@
|
|||
<Value ID="Ukrainian">Українська</Value>
|
||||
<Value ID="Catalan">Català</Value>
|
||||
<Value ID="Chinese">中文</Value>
|
||||
<Value ID="Italian">Italiano</Value>
|
||||
</Enum>
|
||||
<Enum ID="VideoCodec">
|
||||
<Value ID="None">Cap (vídeo sense compressió)</Value>
|
||||
|
|
|
@ -1084,6 +1084,7 @@
|
|||
<Value ID="Ukrainian">Українська</Value>
|
||||
<Value ID="Catalan">Català</Value>
|
||||
<Value ID="Chinese">中文</Value>
|
||||
<Value ID="Italian">Italiano</Value>
|
||||
</Enum>
|
||||
<Enum ID="RamPowerOnState">
|
||||
<Value ID="AllZeros">All 0s (Default)</Value>
|
||||
|
|
|
@ -1085,6 +1085,7 @@
|
|||
<Value ID="Ukrainian">Українська</Value>
|
||||
<Value ID="Catalan">Català</Value>
|
||||
<Value ID="Chinese">中文</Value>
|
||||
<Value ID="Italian">Italiano</Value>
|
||||
</Enum>
|
||||
<Enum ID="VideoCodec">
|
||||
<Value ID="None">Ninguno (Sin comprimir)</Value>
|
||||
|
|
|
@ -1082,6 +1082,7 @@
|
|||
<Value ID="Ukrainian">Українська</Value>
|
||||
<Value ID="Catalan">Català</Value>
|
||||
<Value ID="Chinese">中文</Value>
|
||||
<Value ID="Italian">Italiano</Value>
|
||||
</Enum>
|
||||
<Enum ID="RamPowerOnState">
|
||||
<Value ID="AllZeros">Tous les bits à 0 (Défaut)</Value>
|
||||
|
|
1323
GUI.NET/Dependencies/resources.it.xml
Normal file
1323
GUI.NET/Dependencies/resources.it.xml
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1070,6 +1070,7 @@
|
|||
<Value ID="Ukrainian">Українська</Value>
|
||||
<Value ID="Catalan">Català</Value>
|
||||
<Value ID="Chinese">中文</Value>
|
||||
<Value ID="Italian">Italiano</Value>
|
||||
</Enum>
|
||||
<Enum ID="RamPowerOnState">
|
||||
<Value ID="AllZeros">ビット全てを0にする (デフォルト)</Value>
|
||||
|
|
|
@ -1084,6 +1084,7 @@
|
|||
<Value ID="Ukrainian">Українська</Value>
|
||||
<Value ID="Catalan">Català</Value>
|
||||
<Value ID="Chinese">中文</Value>
|
||||
<Value ID="Italian">Italiano</Value>
|
||||
</Enum>
|
||||
<Enum ID="RamPowerOnState">
|
||||
<Value ID="AllZeros">Todos os 0 (Padrão)</Value>
|
||||
|
|
|
@ -1070,6 +1070,7 @@
|
|||
<Value ID="Ukrainian">Українська</Value>
|
||||
<Value ID="Catalan">Català</Value>
|
||||
<Value ID="Chinese">中文</Value>
|
||||
<Value ID="Italian">Italiano</Value>
|
||||
</Enum>
|
||||
<Enum ID="RamPowerOnState">
|
||||
<Value ID="AllZeros">Все 0 (По умолчанию)</Value>
|
||||
|
|
|
@ -1070,6 +1070,7 @@
|
|||
<Value ID="Ukrainian">Українська</Value>
|
||||
<Value ID="Catalan">Català</Value>
|
||||
<Value ID="Chinese">中文</Value>
|
||||
<Value ID="Italian">Italiano</Value>
|
||||
</Enum>
|
||||
<Enum ID="RamPowerOnState">
|
||||
<Value ID="AllZeros">Всi 0 (По умолчанию)</Value>
|
||||
|
|
|
@ -1096,6 +1096,7 @@
|
|||
<Value ID="Ukrainian">Українська</Value>
|
||||
<Value ID="Catalan">Català</Value>
|
||||
<Value ID="Chinese">中文</Value>
|
||||
<Value ID="Italian">Italiano</Value>
|
||||
</Enum>
|
||||
<Enum ID="RamPowerOnState">
|
||||
<Value ID="AllZeros">全 0 (默认)</Value>
|
||||
|
|
|
@ -26,6 +26,7 @@ namespace Mesen.GUI.Forms
|
|||
Portuguese = 7,
|
||||
Catalan = 8,
|
||||
Chinese = 9,
|
||||
Italian = 10,
|
||||
}
|
||||
|
||||
class ResourceHelper
|
||||
|
@ -51,6 +52,7 @@ namespace Mesen.GUI.Forms
|
|||
case Language.Portuguese: return "pt";
|
||||
case Language.Catalan: return "ca";
|
||||
case Language.Chinese: return "zh";
|
||||
case Language.Italian: return "it";
|
||||
}
|
||||
|
||||
return "";
|
||||
|
@ -74,6 +76,7 @@ namespace Mesen.GUI.Forms
|
|||
case "uk": language = Language.Ukrainian; break;
|
||||
case "pt": language = Language.Portuguese; break;
|
||||
case "zh": language = Language.Chinese; break;
|
||||
case "it": language = Language.Italian; break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -90,6 +93,7 @@ namespace Mesen.GUI.Forms
|
|||
case Language.Portuguese: filename = "resources.pt.xml"; break;
|
||||
case Language.Catalan: filename = "resources.ca.xml"; break;
|
||||
case Language.Chinese: filename = "resources.zh.xml"; break;
|
||||
case Language.Italian: filename = "resources.it.xml"; break;
|
||||
}
|
||||
|
||||
_language = language;
|
||||
|
|
|
@ -1896,6 +1896,10 @@
|
|||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="Dependencies\resources.it.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="Dependencies\DipswitchDefinitions.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<SubType>Designer</SubType>
|
||||
|
|
Loading…
Reference in a new issue