i18n: more zh_CN, fix: crashes when connecting with no COM port, feat: remove View suffix for view menu (#305)

* fix: crashes when connecting with no COM port

* feat: remove `View` suffix for view menu

* i18n: add more to Chinese(Simplified)

* Revert "Merge branch 'master' of github.com:xtexChooser/ImHex"

This reverts commit 8afcfe8f9d, reversing
changes made to 7651ad6661.
This commit is contained in:
xtex
2021-09-22 03:30:52 +08:00
committed by GitHub
parent c051f5d3e7
commit eb779c5986
5 changed files with 16 additions and 10 deletions

View File

@@ -337,7 +337,7 @@ namespace hex {
if (ImGui::BeginMenu("hex.menu.view"_lang)) {
for (auto &view : ContentRegistry::Views::getEntries()) {
if (view->hasViewMenuItemEntry())
ImGui::MenuItem((LangEntry(view->getUnlocalizedName()) + " " + "hex.menu.view"_lang).c_str(), "", &view->getWindowOpenState());
ImGui::MenuItem(LangEntry(view->getUnlocalizedName()), "", &view->getWindowOpenState());
}
ImGui::EndMenu();
}