i18n: English/German from Switch system language

- Add I18n module: German when system language is DE, else English (ENUS/ENGB
  or any other language).
- Translate UI strings (tabs, settings, about, file browser, notifications,
  OC row titles, toggles Ein/Aus).
- Keep toggle/frequency/voltage list rows without subtitle descriptions
  like before.

Uses setGetSystemLanguage + setMakeLanguage; call I18n::init before
Application::init.

Made-with: Cursor
This commit is contained in:
Niklas Friesen
2026-03-30 20:09:38 +02:00
parent b5ba2d71df
commit b5296d6686
9 changed files with 361 additions and 47 deletions

View File

@@ -17,11 +17,14 @@
#include "main_frame.h"
#include "logo.h"
#include "app_config.h"
#include "i18n.h"
int main(int argc, char* argv[])
{
I18n::init();
// Init the app
if (!brls::Application::init("SWR INI Tool"))
if (!brls::Application::init(I18n::appTitle()))
{
brls::Logger::error("Unable to init Borealis application");
return EXIT_FAILURE;