mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
localize user-facing text into string resources
Move every exposed UI string into res/values/strings.xml (+ plurals) and read it via stringResource/pluralStringResource or getString, with 27 locale files carried over from the Flutter app's Weblate translations. Only strings whose English is unchanged reuse an old translation; reworded ones get fresh keys. Persisted download failures become a DownloadError enum mapped to string resources (stored by name, unknown legacy values degrade to Failed), the per-app locale config is generated by AGP, and StringResourcesTest guards locale keys and placeholders.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="actions_star">مميز</string>
|
||||
<string name="actions_unstar">ازل التمييز</string>
|
||||
<string name="navigation_tabs_library">المكتبة</string>
|
||||
<string name="navigation_tabs_settings">الإعدادات</string>
|
||||
<string name="resources_filter_genre">حسب النوع</string>
|
||||
<string name="resources_filter_starred">موسوم</string>
|
||||
<string name="resources_sort_by_artist">حسب الفنان/ة</string>
|
||||
<string name="resources_sort_by_frequently_played">مشغل كثيرا</string>
|
||||
<string name="resources_sort_by_name">حسب الاسم</string>
|
||||
<string name="resources_sort_by_recently_played">شغل حديثا</string>
|
||||
<string name="resources_sort_by_year">حسب السنة</string>
|
||||
<string name="search_input_placeholder">بحث</string>
|
||||
<string name="settings_about_actions_licenses">الرخص</string>
|
||||
<string name="settings_about_name">حول</string>
|
||||
<string name="settings_network_name">الشبكة</string>
|
||||
<string name="settings_network_values_kbps">%1$s كيلو بايت في الثانية</string>
|
||||
<string name="settings_network_values_unlimited_kbps">غير محدود</string>
|
||||
<string name="settings_servers_actions_test_connection">أخبر الأتصال</string>
|
||||
<string name="settings_servers_fields_password">كلمة المرور</string>
|
||||
<string name="settings_servers_fields_username">إسم المستخدم</string>
|
||||
<string name="navigation_tabs_home">الرئيسية</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user