chris2511 / xca

X Certificate and Key management
http://xca.hohnstaedt.de
Other
1.5k stars 202 forks source link

New XCA v2.6.0 - It's not in English #532

Closed SemoTech closed 6 months ago

SemoTech commented 7 months ago

Hello,

I use the Darwin DMG in MacOS Monterey, so just dowloaded (from GitHub) and replaced my XCA v2.5.0 with XCA v2.6.0 and noticed it is not in English! image

I subsequently downloaded v2.6.0 from the Mac App Store, and got this: image

Looks like both locations have XCA defaulting to non-English and I cannot seem to find a way to change the language to English.

Lastly, even running the old XCA v2.5 that was always in English now defaults to non-English as the new version must have changed/left some other core files on my Mac.

Please advise.

Thank you.

chris2511 commented 7 months ago

XCA assumes your system language is Indonesian. It is stored in the file /Users//Library/Application Support/xca/defaultlang

In the menu select Berkas -> Bahasa -> inggris (English)

Lotusshaney commented 7 months ago

That fix almost works, but some dialogs are still in Indonesian. grab As you can see the file requester is not in English

SemoTech commented 7 months ago

Thank you @chris2511 that worked.

Now why would XCA assume my system language is Indonesian when this is an English install and there are no apps doing this or any settings anywhere that have anything to do with Indonesia?

And seems not all sections were translated back into English from Indonesian: image

And lastly, most important I had an existing .xdb file called "Personal.xdb" and the new XCA v2.6.0 no longer has a [File Menu] option (it is missing completely) to open a database. If I right click on "Personal.xdb" and open with XCA I get a notice about old security: image

If I choose ignore a database called "default.xdb" opens and it is empty! image

If I choose "change" and switch encryption it again opens empty!!

Where are all all my certificates and private keys???

Thanks.

chris2511 commented 7 months ago

The Appstore variant uses a fixed database default.xdb Please install the DMG file. It will open your database successfully.

SemoTech commented 7 months ago

The Appstore variant uses a fixed database default.xdb Please install the DMG file. It will open your database successfully.

OK, that part was not intuitive and good to know that the App Store version cannot use anyting but the default database and I guess is missing the [File] and [Token] Menus on purpose I suppose.

I was able to get my database loaded and upgraded the encryption on it. Thank you.

Please note the Indonesian default/system language option seems to be hardcoded as in v2.5 it is correctly detected as English but both App store and Github versions of XCA 2.6 default to Indonesian. Even after changing to English there are still stragglers in other languages: image

Lastly in the Github version 2.6.0 if you open a custom database, enter the password and it loads, then you quit XCA and restarts it opens without the database (does not remember the last database used) like v2.5 used to and you have to manually re-load it from the File menu

Thank you.

chris2511 commented 7 months ago

Select "Set as default database" when the preferred database is open and it will be opened automatically next time.

SemoTech commented 7 months ago

Select "Set as default database" when the preferred database is open and it will be opened automatically next time.

Brilliant. Works great @chris2511 thank you.

I guess all that remains and needs fixing, that I know of, for v2.6.0 is the language issues.

Lotusshaney commented 7 months ago

Any ideas on this problem ?

DocCyblade commented 6 months ago

Was going to give this software a try and well it does not come up in English on MacOS. As the above have said. I think it may because English is not listed in the info.plist file?

I noticed the en_US was missing from the list. I hacked it (you should not do that, MacOS will find out and the signed hashes won't match it will not run the app. However if you do this quickly it works for the first run then app won't start by design) and added the missing option and it works. So looks like the app options need updated. Hope this helps!

plist file before changed Screenshot 2024-03-07 at 3 48 01 PM

When run you get this Screenshot 2024-03-07 at 3 48 25 PM

and

Screenshot 2024-03-07 at 3 49 39 PM

Updated the plist file (hacked it) Screenshot 2024-03-07 at 3 48 43 PM

Now you get English

Screenshot 2024-03-07 at 3 48 58 PM

Screenshot 2024-03-07 at 3 50 01 PM

Lotusshaney commented 6 months ago

Get @DocCyblade a beer, 100% works !, to get around the codesigning resign it in the dirty fashion sudo codesign --force --deep -s - /Applications/xca.app

It looks to be missing from the following file in the source, lang/CMakeLists.txt at line 5 or 6

list(APPEND XCA_QT_LANGUAGES de fr ja pl ru tr es it sk bg) list(APPEND XCA_LANGUAGES id hr nl pt_BR zh_CN fa ${XCA_QT_LANGUAGES})