mirror of
				https://github.com/hedge-dev/UnleashedRecomp.git
				synced 2025-10-30 07:11:05 +00:00 
			
		
		
		
	Fix line splitting issues from localization changes (#1503)
* fix wrongly split lines from localization changes * skip 0x200B line split guidance like new line if line starts with it
This commit is contained in:
		
							parent
							
								
									ff5aae2595
								
							
						
					
					
						commit
						30aa528f84
					
				
					 3 changed files with 9 additions and 4 deletions
				
			
		|  | @ -233,7 +233,7 @@ CONFIG_DEFINE_ENUM_LOCALE(EControllerIcons) | |||
|     { | ||||
|         ELanguage::English, | ||||
|         { | ||||
|             { EControllerIcons::Auto,        { "AUTO", "Auto : the game will determine which icons to use based on the current input device." } }, | ||||
|             { EControllerIcons::Auto,        { "AUTO", "Auto: the game will determine which icons to use based on the current input device." } }, | ||||
|             { EControllerIcons::Xbox,        { "XBOX", "" } }, | ||||
|             { EControllerIcons::PlayStation, { "PLAYSTATION", "" } } | ||||
|         } | ||||
|  | @ -407,7 +407,7 @@ CONFIG_DEFINE_LOCALE(EffectsVolume) | |||
| CONFIG_DEFINE_LOCALE(MusicAttenuation) | ||||
| { | ||||
|     { ELanguage::English,  { "Music Attenuation", "Fade out the game's music when external media is playing." } }, | ||||
|     { ELanguage::Japanese, { "BGM[減衰:げんすい]", "[外部:がいぶ]メディアを\u200B[再生:さいせい]すると\u200Bゲームの\u200B[音楽:おんがく]を\u200Bフェードアウトします" } }, | ||||
|     { ELanguage::Japanese, { "BGM[減衰:げんすい]", "[外部:がいぶ]メディアを\u200B[再生:さいせい]すると\u200Bゲームの\u200B[音楽:おんがく]を\u200Bフェードアウト\u200Bします" } }, | ||||
|     { ELanguage::German,   { "Musikdämpfung", "Stelle die Musik des Spiels stumm während externe Medien abgespielt werden." } }, | ||||
|     { ELanguage::French,   { "Atténuation audio", "Abaisse le volume des musiques du jeu lorsqu'un média externe est en cours de lecture." } }, | ||||
|     { ELanguage::Spanish,  { "Atenuación de música", "Atenúa la música del juego cuando un reproductor multimedia se encuentra activo." } }, | ||||
|  | @ -508,7 +508,7 @@ CONFIG_DEFINE_LOCALE(BattleTheme) | |||
| CONFIG_DEFINE_LOCALE(WindowSize) | ||||
| { | ||||
|     { ELanguage::English,  { "Window Size", "Adjust the size of the game window in windowed mode." } }, | ||||
|     { ELanguage::Japanese, { "ウィンドウサイズ", "ウィンドウモードでの\u200Bゲームの\u200Bウィンドウサイズを\u200B[調整:ちょうせい]できます" } }, | ||||
|     { ELanguage::Japanese, { "ウィンドウサイズ", "ウィンドウ\u200Bモードでの\u200Bゲームの\u200Bウィンドウサイズを\u200B[調整:ちょうせい]できます" } }, | ||||
|     { ELanguage::German,   { "Fenstergröße", "Ändere die Größe des Spielfensters im Fenstermodus." } }, | ||||
|     { ELanguage::French,   { "Taille de la fenêtre", "Modifie la taille de la fenêtre de jeu en mode fenêtré." } }, | ||||
|     { ELanguage::Spanish,  { "Tamaño de ventana", "Ajusta el tamaño de la ventana de juego." } }, | ||||
|  |  | |||
|  | @ -366,7 +366,7 @@ std::unordered_map<std::string_view, std::unordered_map<ELanguage, std::string>> | |||
|             { ELanguage::English,  "Installation complete!\nThis project is brought to you by:" }, | ||||
|             { ELanguage::Japanese, "インストール[完了:かんりょう]!\nプロジェクト[制作:せいさく]:" }, | ||||
|             { ELanguage::German,   "Installation abgeschlossen!\nDieses Projekt wird präsentiert von:" }, | ||||
|             { ELanguage::French,   "Installation terminée !\nCe projet vous est présenté par :" }, | ||||
|             { ELanguage::French,   "Installation terminée !\nCe projet vous est présenté\npar :" }, | ||||
|             { ELanguage::Spanish,  "¡Instalación completada!\nEste proyecto ha sido posible gracias a:" }, | ||||
|             { ELanguage::Italian,  "Installazione completata!\nQuesto progetto è stato creato da:" } | ||||
|         } | ||||
|  |  | |||
|  | @ -510,6 +510,11 @@ std::vector<std::string> Split(const char* strStart, const ImFont* font, float f | |||
|                 if (*str == '\n') | ||||
|                     str++; | ||||
| 
 | ||||
|                 if (strncmp(str, "\u200B", 3) == 0) | ||||
|                 { | ||||
|                     str += 3; | ||||
|                 } | ||||
| 
 | ||||
|                 lineStart = str; | ||||
|                 continue; | ||||
|             } | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 ĐeäTh
						ĐeäTh