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:
austinried
2026-10-04 00:30:07 +00:00
parent 88cd3764bf
commit 24757bda3f
74 changed files with 2206 additions and 361 deletions
+24
View File
@@ -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$skbps</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>