Miscellaneous translatable strings improvements and fixes (#159)

* Make PPC threads/texture cache info window columns untranslatable
* Make several window titles translatable
* Make About window text translatable
* Fix <profile name> placeholder not being recognized as translatable
* Miscellaneous improvements to GUI strings
* Add a few missing entries to gitignore
* Adjust Italian translation of Linux files
This commit is contained in:
Francesco Saltori 2022-09-03 22:55:58 +02:00 committed by GitHub
parent 1a1de370e4
commit d22901be1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 79 additions and 78 deletions

View file

@ -35,9 +35,6 @@
bool g_inputConfigWindowHasFocus = false;
// _("<profile name>")
const wxString kDefaultProfileName = "<profile name>";
using wxTypeData = wxCustomData<EmulatedController::Type>;
using wxControllerData = wxCustomData<ControllerPtr>;
@ -149,7 +146,7 @@ wxWindow* InputSettings2::initialize_page(size_t index)
{
// profile
sizer->Add(new wxStaticText(page, wxID_ANY, _("Profile"), wxDefaultPosition, wxDefaultSize, 0), wxGBPosition(0, 0), wxDefaultSpan, wxALIGN_CENTER_VERTICAL | wxALL, 5);
auto* profiles = new wxComboBox(page, wxID_ANY, _(kDefaultProfileName));
auto* profiles = new wxComboBox(page, wxID_ANY, kDefaultProfileName);
sizer->Add(profiles, wxGBPosition(0, 1), wxDefaultSpan, wxALIGN_CENTER_VERTICAL | wxALL | wxEXPAND, 5);
if (emulated_controller && emulated_controller->has_profile_name())
@ -678,7 +675,7 @@ void InputSettings2::on_profile_delete(wxCommandEvent& event)
const fs::path path = ActiveSettings::GetPath(fmt::format("controllerProfiles/{}.xml", selection));
fs::remove(path);
profile_names->ChangeValue(_(kDefaultProfileName));
profile_names->ChangeValue(kDefaultProfileName);
text->SetLabelText(_("profile deleted"));
text->SetForegroundColour(wxTheColourDatabase->Find("SUCCESS"));