[PR #361] [MERGED] linux(i18n): add Turkish translations #379

Closed
opened 2026-03-02 12:40:56 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/kavishdevar/librepods/pull/361
Author: @muminkoykiran
Created: 12/8/2025
Status: Merged
Merged: 12/10/2025
Merged by: @kavishdevar

Base: mainHead: android-linux-i18n-add-turkish-translations


📝 Commits (2)

  • 3538106 linux(i18n): add Turkish translations
  • b63886f fix: allocate QTranslator on heap to ensure lifetime

📊 Changes

5 files changed (+217 additions, -28 deletions)

View changed files

📝 linux/CMakeLists.txt (+16 -1)
📝 linux/Main.qml (+18 -18)
📝 linux/main.cpp (+23 -0)
linux/translations/librepods_tr.ts (+151 -0)
📝 linux/trayiconmanager.cpp (+9 -9)

📄 Description

Summary

  • Add Qt Linguist translation infrastructure for Linux app
  • Wrap UI strings with qsTr() in QML files
  • Wrap menu strings with tr() in C++ files
  • Add automatic locale detection via QTranslator
  • Create Turkish translation file (librepods_tr.ts)

Changes

  • CMakeLists.txt: Added Qt LinguistTools and translation build configuration
  • main.cpp: Added QTranslator loader for automatic system locale detection
  • Main.qml: Wrapped all user-facing strings with qsTr()
  • trayiconmanager.cpp: Wrapped tray menu strings with tr()
  • translations/librepods_tr.ts: Turkish translations for all UI elements

Translations include

  • Connection status (Connected/Disconnected)
  • Noise control modes (Off, Noise Cancellation, Transparency, Adaptive)
  • Settings page labels and options
  • Tray menu items
  • System notifications

Note

This also sets up the i18n infrastructure for future translations in other languages.

Summary by CodeRabbit

  • New Features

    • Added localization support and included a Turkish translation so the UI can display in Turkish.
    • App now detects the system language at startup and loads available translations automatically.
  • Chores

    • Translation files are built and installed with the application so translated resources are deployed alongside the app.

✏️ Tip: You can customize this high-level summary in your review settings.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/kavishdevar/librepods/pull/361 **Author:** [@muminkoykiran](https://github.com/muminkoykiran) **Created:** 12/8/2025 **Status:** ✅ Merged **Merged:** 12/10/2025 **Merged by:** [@kavishdevar](https://github.com/kavishdevar) **Base:** `main` ← **Head:** `android-linux-i18n-add-turkish-translations` --- ### 📝 Commits (2) - [`3538106`](https://github.com/kavishdevar/librepods/commit/35381062e00f29affc149fed3e73eb70451bcaef) linux(i18n): add Turkish translations - [`b63886f`](https://github.com/kavishdevar/librepods/commit/b63886f4e94c2f9372e91ea7177001a9b088bc58) fix: allocate QTranslator on heap to ensure lifetime ### 📊 Changes **5 files changed** (+217 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `linux/CMakeLists.txt` (+16 -1) 📝 `linux/Main.qml` (+18 -18) 📝 `linux/main.cpp` (+23 -0) ➕ `linux/translations/librepods_tr.ts` (+151 -0) 📝 `linux/trayiconmanager.cpp` (+9 -9) </details> ### 📄 Description ## Summary - Add Qt Linguist translation infrastructure for Linux app - Wrap UI strings with `qsTr()` in QML files - Wrap menu strings with `tr()` in C++ files - Add automatic locale detection via `QTranslator` - Create Turkish translation file (`librepods_tr.ts`) ## Changes - `CMakeLists.txt`: Added Qt LinguistTools and translation build configuration - `main.cpp`: Added QTranslator loader for automatic system locale detection - `Main.qml`: Wrapped all user-facing strings with `qsTr()` - `trayiconmanager.cpp`: Wrapped tray menu strings with `tr()` - `translations/librepods_tr.ts`: Turkish translations for all UI elements ## Translations include - Connection status (Connected/Disconnected) - Noise control modes (Off, Noise Cancellation, Transparency, Adaptive) - Settings page labels and options - Tray menu items - System notifications ## Note This also sets up the i18n infrastructure for future translations in other languages. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added localization support and included a Turkish translation so the UI can display in Turkish. * App now detects the system language at startup and loads available translations automatically. * **Chores** * Translation files are built and installed with the application so translated resources are deployed alongside the app. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 12:40:56 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librepods#379
No description provided.