Skip to content

Commit

Permalink
Merge pull request #6508 from logkos/main
Browse files Browse the repository at this point in the history
Replace GB/MB with GiB/MiB since binary units are actually being used
  • Loading branch information
osy authored Aug 23, 2024
2 parents c6fe227 + b23b615 commit a03951b
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Platform/Shared/RAMSlider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct RAMSlider: View {
}
NumberTextField("", number: $systemMemory, prompt: "Size", onEditingChanged: validateMemorySize)
.frame(width: 80)
Text("MB")
Text("MiB")
}
}.frame(height: 30)
}
Expand Down
4 changes: 2 additions & 2 deletions Platform/Shared/SizeTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ struct SizeTextField: View {
Button(action: { isGiB.toggle() }, label: {
Group {
if isGiB {
Text("GB")
Text("GiB")
} else {
Text("MB")
Text("MiB")
}
}.foregroundColor(.blue)
}).buttonStyle(.plain)
Expand Down
2 changes: 1 addition & 1 deletion Platform/Shared/VMConfigSystemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct VMConfigSystemView: View {
HStack {
NumberTextField("", number: $config.jitCacheSize, prompt: "Default", onEditingChanged: validateMemorySize)
.multilineTextAlignment(.trailing)
Text("MB")
Text("MiB")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Platform/Shared/VMWizardDrivesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct VMWizardDrivesView: View {
NumberTextField("", number: $wizardState.storageSizeGib)
.textFieldStyle(.roundedBorder)
.frame(maxWidth: 50)
Text("GB")
Text("GiB")
}
} header: {
Text("Size")
Expand Down
4 changes: 2 additions & 2 deletions Platform/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
"Force Multicore" = "Multicore erzwingen";

/* No comment provided by engineer. */
"GB" = "GB";
"GiB" = "GiB";

/* UTMQemuConstants */
"GDB Debug Stub" = "GDB Debug Stub";
Expand Down Expand Up @@ -520,7 +520,7 @@
"Maximum Shared USB Devices" = "Anzahl weitergeleiteter USB-Geräte (max.)";

/* No comment provided by engineer. */
"MB" = "MB";
"MiB" = "MiB";

/* No comment provided by engineer. */
"Memory" = "Speicher";
Expand Down
4 changes: 2 additions & 2 deletions Platform/es-419.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@
"Full Graphics" = "Gráficos completos";

/* No comment provided by engineer. */
"GB" = "GB";
"GiB" = "GiB";

/* UTMQemuConstants */
"GDB Debug Stub" = "GDB Debug Stub";
Expand Down Expand Up @@ -989,7 +989,7 @@
"Maximum Shared USB Devices" = "Número máximo de dispositivos USB compartidos";

/* No comment provided by engineer. */
"MB" = "MB";
"MiB" = "MiB";

/* No comment provided by engineer. */
"Memory" = "Memoria";
Expand Down
4 changes: 2 additions & 2 deletions Platform/fi.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"Full Graphics" = "Täysi grafiikka";

/* No comment provided by engineer. */
"GB" = "Gt";
"GiB" = "GiB";

/* No comment provided by engineer. */
"Generate Windows Installer ISO" = "Luo Windows Installer ISO";
Expand Down Expand Up @@ -650,7 +650,7 @@
"Maximum Shared USB Devices" = "Jaettujen USB-laitteiden enimmäismäärä";

/* No comment provided by engineer. */
"MB" = "Mt";
"MiB" = "MiB";

/* No comment provided by engineer. */
"Memory" = "Muisti";
Expand Down
4 changes: 2 additions & 2 deletions Platform/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,11 @@

// RAMSlider.swift
"Size" = "Taille";
"MB" = "MB";
"MiB" = "MiB";

// SizeTextField.swift
"The amount of storage to allocate for this image. Ignored if importing an image. If this is a raw image, then an empty file of this size will be stored with the VM. Otherwise, the disk image will dynamically expand up to this size." = "La quantité de stockage à allouer pour cette image. Ignoré si importation d’image. Si c'est une image brute, un fichier vide de la même taille sera enregistré avec la VM. Sinon, l’image disque sera dynamiquement étendue jusqu’à cette taille.";
"GB" = "GB";
"GiB" = "GiB";

// VMCardView.swift
"Run" = "Démarrer";
Expand Down
4 changes: 2 additions & 2 deletions Platform/it.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@
"Full Graphics" = "Grafica Completa";

/* No comment provided by engineer. */
"GB" = "GB";
"GiB" = "GiB";

/* UTMQemuConstants */
"GDB Debug Stub" = "GDB Debug Stub";
Expand Down Expand Up @@ -1100,7 +1100,7 @@
"Maximum Shared USB Devices" = "Dispositivi USB Condivisi Massimi";

/* No comment provided by engineer. */
"MB" = "MB";
"MiB" = "MiB";

/* No comment provided by engineer. */
"Memory" = "Memoria";
Expand Down
4 changes: 2 additions & 2 deletions Platform/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,11 @@

// RAMSlider.swift
"Size" = "サイズ";
"MB" = "MB";
"MiB" = "MiB";

// SizeTextField.swift
"The amount of storage to allocate for this image. Ignored if importing an image. If this is a raw image, then an empty file of this size will be stored with the VM. Otherwise, the disk image will dynamically expand up to this size." = "このイメージに割り当てるストレージ領域です。イメージを読み込む場合は無視されます。生イメージの場合、このサイズの空のファイルが仮想マシンに保存されます。そうでない場合、ディスクイメージはこのサイズまで動的に拡張されます。";
"GB" = "GB";
"GiB" = "GiB";

// VMCardView.swift
"Run" = "実行";
Expand Down
2 changes: 1 addition & 1 deletion Platform/ko.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@
"Manager being deallocated, killing pending RPC." = "Manager being deallocated, killing pending RPC.";

/* No comment provided by engineer. */
"MB" = "MB";
"MiB" = "MiB";

/* No comment provided by engineer. */
"Memory" = "메모리";
Expand Down
8 changes: 4 additions & 4 deletions Platform/pl.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,8 @@
"If checked, the drive image will be stored with the VM." = "Jeśli zaznaczone, obraz dysku będzie przechowywany wraz z wirtualną maszyną.";
"Size" = "Rozmiar";
"The amount of storage to allocate for this image. An empty file of this size will be stored with the VM." = "Ilość pamięci masowej przydzielonej dla tego obrazu. Pusty plik takiego rozmiaru będzie przechowywany wraz z maszyną wirtualną";
"GB" = "GB";
"MB" = "MB";
"GiB" = "GiB";
"MiB" = "MiB";

/* VMConfigAppleDriveDetailsView.swift */
"Name" = "Nazwa";
Expand Down Expand Up @@ -547,14 +547,14 @@

/* RAMSlider.swift */
"Size" = "Rozmiar";
"MB" = "MB";
"MiB" = "MiB";

/* FileBrowseField.swift */
"Path" = "Ścieżka";

/* SizeTextField.swift */
"The amount of storage to allocate for this image. Ignored if importing an image. If this is a raw image, then an empty file of this size will be stored with the VM. Otherwise, the disk image will dynamically expand up to this size." = "Ilość pamięci masowej do przydzielenia dla tego obrazu. Ignorowane, jeśli importujesz obraz. Jeśli jest to surowy obraz, wtedy plusty plik tego rozmiaru będzie przechowywany wraz z wirtualną maszyną. W przeciwnym wypadku, obraz dysku będzie dynamicznie się rozszerzał do docelowego rozmiaru.";
"GB" = "GB";
"GiB" = "GiB";

/* VMCardView.swift */
"Run" = "Uruchom";
Expand Down
4 changes: 2 additions & 2 deletions Platform/ru.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@
"Full Graphics" = "Полная графика";

/* No comment provided by engineer. */
"GB" = "ГБ";
"GiB" = "ГиБ";

/* UTMQemuConstants */
"GDB Debug Stub" = "Плагин отладки GDB";
Expand Down Expand Up @@ -1004,7 +1004,7 @@
"Maximum Shared USB Devices" = "Максимальное кол-во совместно используемых USB-устройств";

/* No comment provided by engineer. */
"MB" = "МБ";
"MiB" = "МиБ";

/* No comment provided by engineer. */
"Memory" = "Память";
Expand Down
4 changes: 2 additions & 2 deletions Platform/zh-HK.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@
"Force shut down" = "強行關機";

/* No comment provided by engineer. */
"GB" = "GB";
"GiB" = "GiB";

/* UTMQemuConstants */
"GDB Debug Stub" = "GDB Debug Stub";
Expand Down Expand Up @@ -725,7 +725,7 @@
"Maximum Shared USB Devices" = "最多分享 USB 裝置";

/* No comment provided by engineer. */
"MB" = "MB";
"MiB" = "MiB";

/* No comment provided by engineer. */
"Memory" = "記憶體";
Expand Down
4 changes: 2 additions & 2 deletions Platform/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@
"Force shut down" = "强制关机";

/* No comment provided by engineer. */
"GB" = "GB";
"GiB" = "GiB";

/* UTMQemuConstants */
"GDB Debug Stub" = "GDB 调试存根";
Expand Down Expand Up @@ -725,7 +725,7 @@
"Maximum Shared USB Devices" = "最大共享 USB 设备数";

/* No comment provided by engineer. */
"MB" = "MB";
"MiB" = "MiB";

/* No comment provided by engineer. */
"Memory" = "内存";
Expand Down
4 changes: 2 additions & 2 deletions Platform/zh-Hant.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@
"FPS Limit" = "FPS 上限";

/* No comment provided by engineer. */
"GB" = "GB";
"GiB" = "GiB";

/* UTMQemuConstants */
"GDB Debug Stub" = "GDB 除錯 stub";
Expand Down Expand Up @@ -1023,7 +1023,7 @@
"Maximum Shared USB Devices" = "最大共享 USB 裝置";

/* No comment provided by engineer. */
"MB" = "MB";
"MiB" = "MiB";

/* No comment provided by engineer. */
"Memory" = "記憶體";
Expand Down

0 comments on commit a03951b

Please sign in to comment.