mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
Implement localization all throughout ImHex
English only for now, additional languages will come in the future
This commit is contained in:
@@ -6,7 +6,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
ContentRegistry::Settings::add("Interface", "Color theme", 0, [](nlohmann::json &setting) {
|
||||
static int selection = setting;
|
||||
if (ImGui::Combo("##color_theme", &selection, "Dark\0Light\0Classic\0")) {
|
||||
if (ImGui::Combo("Color theme", &selection, "Dark\0Light\0Classic\0")) {
|
||||
setting = selection;
|
||||
return true;
|
||||
}
|
||||
@@ -37,7 +37,7 @@ namespace hex::plugin::builtin {
|
||||
}();
|
||||
|
||||
|
||||
if (ImGui::Combo("##language", &selection, languageNames.data(), languageNames.size())) {
|
||||
if (ImGui::Combo("Language", &selection, languageNames.data(), languageNames.size())) {
|
||||
|
||||
u16 index = 0;
|
||||
for (auto &[languageCode, languageName] : languages){
|
||||
|
||||
Reference in New Issue
Block a user