Commit Graph

5 Commits

Author SHA1 Message Date
77268dbf57 Convert all remaining hardcoded text to LUS_LOC
Some checks failed
generate-builds / generate-soh-otr (push) Has been cancelled
generate-builds / build-macos (push) Has been cancelled
generate-builds / build-linux (push) Has been cancelled
generate-builds / build-windows (push) Has been cancelled
- Replace 5 hardcoded text strings with LUS_LOC() calls:
  * ResolutionEditor.cpp: 'Click to resolve' -> BUTTON_CLICK_TO_RESOLVE
  * ResolutionEditor.cpp: ' ' (space) -> TEXT_SPACE
  * SohMenuNetwork.cpp: ':' (colon) -> TEXT_COLON (2 instances)
  * UIWidgets.cpp: '+' (plus) -> TEXT_PLUS
- Add new translation keys to both en_US.json and es_ES.json:
  * BUTTON_CLICK_TO_RESOLVE: 'Click to resolve' / 'Haz clic para resolver'
  * TEXT_SPACE: ' ' / ' '
  * TEXT_COLON: ':' / ':'
  * TEXT_PLUS: '+' / '+'
- All hardcoded UI text now uses localization system
- Compilation successful with only minor format warnings

This completes the immediate task of eliminating hardcoded text strings.
2026-03-28 16:32:42 -06:00
efdf8733cb Fix translation keys and remove duplicates
Some checks failed
generate-builds / generate-soh-otr (push) Has been cancelled
generate-builds / build-macos (push) Has been cancelled
generate-builds / build-linux (push) Has been cancelled
generate-builds / build-windows (push) Has been cancelled
- Add missing BUTTON_CLEAR and BUTTON_DEBUG keys to en_US.json
- Add missing BUTTON_CLEAR and BUTTON_DEBUG keys to es_ES.json
- Remove duplicate TEXT_PRESS_ANY_BUTTONNOR_MOVE keys from both files
- Ensure all LUS_LOC keys have proper translations in both languages
- All 6 main translation keys now present in both language files
2026-03-28 16:20:09 -06:00
469553e481 Implement localization system with LUS_LOC macro
Some checks failed
generate-builds / generate-soh-otr (push) Has been cancelled
generate-builds / build-macos (push) Has been cancelled
generate-builds / build-linux (push) Has been cancelled
generate-builds / build-windows (push) Has been cancelled
- Add Localization.h/cpp with singleton pattern for translation management
- Add translation keys to en_US.json and es_ES.json for UI elements
- Update C++ files to use LUS_LOC() macro instead of hardcoded strings:
  * InputEditorWindow.cpp - Button and input mapping texts
  * ConsoleWindow.cpp - Clear button functionality
  * GfxDebuggerWindow.cpp - Debug and texture loading texts
- Initialize language loading in OTRGlobals.cpp based on settings
- Support both English (en_US) and Spanish (es_ES) languages
- All translations loaded from JSON files, no hardcoded text in C++

This implements the requested translation system following the existing pattern
used throughout the codebase.
2026-03-28 16:01:42 -06:00
11582a8a34 Feat: Implement localization for menu headers, sidebars, tooltips, and language selector, and fix compilation errors in Menu.cpp
Some checks failed
generate-builds / generate-soh-otr (push) Has been cancelled
generate-builds / build-macos (push) Has been cancelled
generate-builds / build-linux (push) Has been cancelled
generate-builds / build-windows (push) Has been cancelled
2026-03-28 03:36:16 -06:00
365612432e Initial commit: Proyecto completo de Shipwright-develop
Some checks failed
generate-builds / generate-soh-otr (push) Has been cancelled
generate-builds / build-macos (push) Has been cancelled
generate-builds / build-linux (push) Has been cancelled
generate-builds / build-windows (push) Has been cancelled
2026-03-28 00:22:57 -06:00