[PR #26] [CLOSED] Move hardcoded strings to strings.xml for localizations #240

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

📋 Pull Request Information

Original PR: https://github.com/kavishdevar/librepods/pull/26
Author: @kavishdevar
Created: 1/8/2025
Status: Closed

Base: mainHead: translations


📝 Commits (1)

  • 80d7403 Move hardcoded strings to strings.xml for localizations

📊 Changes

18 files changed (+160 additions, -47 deletions)

View changed files

📝 android/app/build.gradle.kts (+18 -1)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/AccessibilitySettings.kt (+5 -3)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/AdaptiveStrengthSlider.kt (+5 -3)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/AudioSettings.kt (+6 -4)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/BatteryView.kt (+4 -3)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/ConversationalAwarenessSwitch.kt (+5 -3)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/IndependentToggle.kt (+2 -1)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/NavigationButton.kt (+4 -2)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/NoiseControlSettings.kt (+6 -5)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/PersonalizedVolumeSwitch.kt (+5 -3)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/PressAndHoldSettings.kt (+7 -6)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/SinglePodANCSwitch.kt (+5 -3)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/ToneVolumeSlider.kt (+2 -1)
📝 android/app/src/main/java/me/kavishdevar/aln/composables/VolumeControlSwitch.kt (+5 -3)
📝 android/app/src/main/java/me/kavishdevar/aln/screens/AirPodsSettingsScreen.kt (+4 -3)
📝 android/app/src/main/res/values/strings.xml (+31 -1)
📝 android/build.gradle.kts (+34 -2)
crowdin.yml (+12 -0)

📄 Description

Move all hardcoded strings and descriptions to strings.xml and implement Crowdin for localization.

  • Replace hardcoded strings in AccessibilitySettings.kt with references to strings.xml.
  • Replace hardcoded strings in AdaptiveStrengthSlider.kt with references to strings.xml.
  • Replace hardcoded strings and descriptions in AudioSettings.kt with references to strings.xml.
  • Replace hardcoded strings in BatteryView.kt with references to strings.xml.
  • Replace hardcoded strings in ConversationalAwarenessSwitch.kt with references to strings.xml.
  • Replace hardcoded strings in NavigationButton.kt with references to strings.xml.
  • Replace hardcoded strings in NoiseControlSettings.kt with references to strings.xml.
  • Replace hardcoded strings in PersonalizedVolumeSwitch.kt with references to strings.xml.
  • Replace hardcoded strings in PressAndHoldSettings.kt with references to strings.xml.
  • Replace hardcoded strings in SinglePodANCSwitch.kt with references to strings.xml.
  • Replace hardcoded strings in ToneVolumeSlider.kt with references to strings.xml.
  • Add new strings and descriptions to strings.xml.
  • Add crowdin.yml configuration file for Crowdin integration.
  • Modify build.gradle.kts and app/build.gradle.kts to include Crowdin plugin and tasks for uploading and downloading translations.

For more details, open the Copilot Workspace session.


🔄 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/26 **Author:** [@kavishdevar](https://github.com/kavishdevar) **Created:** 1/8/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `translations` --- ### 📝 Commits (1) - [`80d7403`](https://github.com/kavishdevar/librepods/commit/80d740362fbb0151ea218d73f56382c43edd0b81) Move hardcoded strings to strings.xml for localizations ### 📊 Changes **18 files changed** (+160 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `android/app/build.gradle.kts` (+18 -1) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/AccessibilitySettings.kt` (+5 -3) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/AdaptiveStrengthSlider.kt` (+5 -3) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/AudioSettings.kt` (+6 -4) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/BatteryView.kt` (+4 -3) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/ConversationalAwarenessSwitch.kt` (+5 -3) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/IndependentToggle.kt` (+2 -1) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/NavigationButton.kt` (+4 -2) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/NoiseControlSettings.kt` (+6 -5) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/PersonalizedVolumeSwitch.kt` (+5 -3) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/PressAndHoldSettings.kt` (+7 -6) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/SinglePodANCSwitch.kt` (+5 -3) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/ToneVolumeSlider.kt` (+2 -1) 📝 `android/app/src/main/java/me/kavishdevar/aln/composables/VolumeControlSwitch.kt` (+5 -3) 📝 `android/app/src/main/java/me/kavishdevar/aln/screens/AirPodsSettingsScreen.kt` (+4 -3) 📝 `android/app/src/main/res/values/strings.xml` (+31 -1) 📝 `android/build.gradle.kts` (+34 -2) ➕ `crowdin.yml` (+12 -0) </details> ### 📄 Description Move all hardcoded strings and descriptions to `strings.xml` and implement Crowdin for localization. * Replace hardcoded strings in `AccessibilitySettings.kt` with references to `strings.xml`. * Replace hardcoded strings in `AdaptiveStrengthSlider.kt` with references to `strings.xml`. * Replace hardcoded strings and descriptions in `AudioSettings.kt` with references to `strings.xml`. * Replace hardcoded strings in `BatteryView.kt` with references to `strings.xml`. * Replace hardcoded strings in `ConversationalAwarenessSwitch.kt` with references to `strings.xml`. * Replace hardcoded strings in `NavigationButton.kt` with references to `strings.xml`. * Replace hardcoded strings in `NoiseControlSettings.kt` with references to `strings.xml`. * Replace hardcoded strings in `PersonalizedVolumeSwitch.kt` with references to `strings.xml`. * Replace hardcoded strings in `PressAndHoldSettings.kt` with references to `strings.xml`. * Replace hardcoded strings in `SinglePodANCSwitch.kt` with references to `strings.xml`. * Replace hardcoded strings in `ToneVolumeSlider.kt` with references to `strings.xml`. * Add new strings and descriptions to `strings.xml`. * Add `crowdin.yml` configuration file for Crowdin integration. * Modify `build.gradle.kts` and `app/build.gradle.kts` to include Crowdin plugin and tasks for uploading and downloading translations. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/kavishdevar/aln/pull/26?shareId=dd20b571-8c2d-4bab-b05e-c276019542f0). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 12:04:45 +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#240
No description provided.