utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.4k stars 1.32k forks source link

Localization Issues #4500

Open conath opened 1 year ago

conath commented 1 year ago

I will use this issue to collect issues I notice while creating the German localization.

For example, in VMWizardOSLinuxView line 117 there is a conditional statement within the Text call, which means the localized string will not contain the word "uncompressed" but rather a %@ placeholder, and the word "uncompressed" will never be localized.

conath commented 1 year ago

It seems the description strings in VMConfigSystemView do not appear in the exported localized strings file. (probably a bug relating to how the localizations keys are handled in DetailedSection struct)

The QEMU pane has many strings that do not get localized.

The left-aligned labels in Display, Network and Sound also are not localized, as well as the button titles in the sidebar.

conath commented 1 year ago

The TileButton in VMPlaceholderView also doesn't localize, but I have fixed that in my German PR.

MMP0 commented 1 year ago

I suggest you base them on Japanese localization files. Most of the localization files for other languages were out of date, so I extracted all the localizable texts and created them from scratch. And I update them frequently with each commit and they are up to date.

conath commented 1 year ago

@MMP0 Thanks for the hint! I will look at the diff and add more translations. BTW are you using some kind of tool for this or are you manually copying the missing localizable strings?

MMP0 commented 1 year ago

I extracted localization strings by Product > Export Localizations... in the Xcode menu. Just to be sure, I went through all the source files, added missing strings that weren't automatically detected, and sorted/formatted them for maintainability.