Skip to content

Commit

Permalink
lang: Hooked up Brazilian Portuguese translation to the interface
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jun 3, 2022
1 parent 2d7fdc0 commit 6929ffb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/builtin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ add_library(${PROJECT_NAME} SHARED
source/lang/it_IT.cpp
source/lang/zh_CN.cpp
source/lang/ja_JP.cpp
source/lang/pt_BR.cpp
)

# Add additional include directories here #
Expand Down
2 changes: 1 addition & 1 deletion plugins/builtin/source/lang/pt_BR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace hex::plugin::builtin {

void registerLanguagePtBR() {
ContentRegistry::Language::registerLanguage("Portuguese (PT-BR)", "pt-BR");
ContentRegistry::Language::registerLanguage("Portuguese (Brazilian)", "pt-BR");
LangEntry::setFallbackLanguage("pt-BR");

ContentRegistry::Language::addLocalizations("pt-BR", {
Expand Down
2 changes: 2 additions & 0 deletions plugins/builtin/source/plugin_builtin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace hex::plugin::builtin {
void registerLanguageItIT();
void registerLanguageJaJP();
void registerLanguageZhCN();
void registerLanguagePtBR();

}

Expand All @@ -40,6 +41,7 @@ IMHEX_PLUGIN_SETUP("Built-in", "WerWolv", "Default ImHex functionality") {
registerLanguageItIT();
registerLanguageJaJP();
registerLanguageZhCN();
registerLanguagePtBR();

registerEventHandlers();
registerDataVisualizers();
Expand Down
1 change: 1 addition & 0 deletions plugins/windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ if (WIN32)
source/lang/en_US.cpp
source/lang/de_DE.cpp
source/lang/zh_CN.cpp
source/lang/pt_BR.cpp

source/content/ui_items.cpp
source/content/settings_entries.cpp
Expand Down
2 changes: 2 additions & 0 deletions plugins/windows/source/plugin_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace hex::plugin::windows {
void registerLanguageEnUS();
void registerLanguageDeDE();
void registerLanguageZhCN();
void registerLanguagePtBR();

void addFooterItems();
void addTitleBarButtons();
Expand Down Expand Up @@ -56,6 +57,7 @@ IMHEX_PLUGIN_SETUP("Windows", "WerWolv", "Windows-only features") {
registerLanguageEnUS();
registerLanguageDeDE();
registerLanguageZhCN();
registerLanguagePtBR();

hex::ContentRegistry::Views::add<ViewTTYConsole>();

Expand Down

0 comments on commit 6929ffb

Please sign in to comment.