Add bilingual support (English/Greek) with live language switching#25
Conversation
Implemented i18n infrastructure using Qt Linguist pipeline (tr(), .ts/.qm files). Language can be switched at runtime via a status bar dropdown and is persisted across sessions using QSettings. Key changes: - Decoupled university/department display labels from logic keys using Qt::UserRole so that translation never affects resource paths or control flow comparisons - Replaced English prefix matching on status messages with a dedicated status_update signal, removing the dependency on untranslated string content - Wrapped all user-facing strings in tr() using .arg() for proper sentence structure in both languages - Added qt_add_translations to CMake with LinguistTools, fixed stale resources.qrc path (resources/ -> include/resources/) - Added applyTranslator() helper for clean QTranslator install/remove - Added retranslate() and changeEvent() for live UI refresh on language switch - Greek translations provided for all UI strings, university and department names
This shows up, I suggest you take a look at your CMake or run the command as instructed by |
|
Το σφάλμα δεν είναι στο CMake. Το sudo apt install build-essential cmake qt6-base-dev qt6-tools-dev qt6-tools-dev-tools policykit-1 |
|
You should go ahead and add that in the build.yml so we can get the |
|
For arch? |
|
Έχω προσθέσει το qt6-tools-dev στο build.yml και διόρθωσα και το path του icon. |
|
Για Arch, το qt6-tools που αναφέρεται ήδη στο README περιλαμβάνει τα απαραίτητα, οπότε δεν χρειάζεται αλλαγή εκεί. |
|
Είσαι σίγουρος ότι το path του icon ήταν λανθασμένο; |
|
Για επόμενα pull requests να ξέρεις οτι θα ηταν καλύτερο να χωρίζονται τα fixes, αλλα αυτη τη φορα δεν πειράζει, εκτιμάμαι πολυ την συμμετοχή σου |
|
Έγινε κατά λάθος. Βασίστηκα στο output του find που έδειξε ./include/resources/resources.qrc και υπέθεσα ότι ήταν ήδη εκεί. |
|
Αμα μπορείς ναι |
|
Έγινε, το resources επέστρεψε στη ρίζα του project. |
|
Seems fine, hope it doesn't crash the CI pipeline |
michadasis
left a comment
There was a problem hiding this comment.
build.yml remains unchanges with only a minor dependency addition, code seems to be working, looks pretty okay to me
Added Greek translation support using Qt Linguist (tr(), .ts/.qm).
Language switcher in the status bar, choice saved across sessions via QSettings.
Key changes:
Fixes #16