Skip to content

Commit 8b842af

Browse files
committed
Generate language bindings for Turkish ARB and add tr language support.
1 parent 6d7e409 commit 8b842af

File tree

7 files changed

+345
-4
lines changed

7 files changed

+345
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 1.4.1
22

3+
- Support for Turkish language (thank you @sipahi63).
34
- Fix lag issue on position slider when dragging position.
45
- Fix incorrect chapter being highlighted in chapter selector when timestamp not within a defined chapter.
56

lib/l10n/L.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,7 +2386,7 @@ class AnytimeLocalisationsDelegate extends LocalizationsDelegate<L> {
23862386
const AnytimeLocalisationsDelegate();
23872387

23882388
@override
2389-
bool isSupported(Locale locale) => ['en', 'es', 'de', 'gl', 'it', 'nl', 'ru', 'vi', 'zh_Hans'].contains(locale.languageCode);
2389+
bool isSupported(Locale locale) => ['en', 'es', 'de', 'gl', 'it', 'nl', 'ru', 'tr', 'vi', 'zh_Hans'].contains(locale.languageCode);
23902390

23912391
@override
23922392
Future<L> load(Locale locale) => L.load(locale, const {});
@@ -2409,7 +2409,7 @@ class EmbeddedLocalisationsDelegate extends LocalizationsDelegate<L> {
24092409
EmbeddedLocalisationsDelegate({@required this.messages = const {}});
24102410

24112411
@override
2412-
bool isSupported(Locale locale) => ['en', 'es', 'de', 'gl', 'it', 'nl', 'ru', 'vi', 'zh_Hans'].contains(locale.languageCode);
2412+
bool isSupported(Locale locale) => ['en', 'es', 'de', 'gl', 'it', 'nl', 'ru', 'tr', 'vi', 'zh_Hans'].contains(locale.languageCode);
24132413

24142414
@override
24152415
Future<L> load(Locale locale) => L.load(locale, messages);

lib/l10n/intl_tr.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"@@locale": "tr",
23
"app_title": "Anytime Podcast Oynatıcı",
34
"@app_title": {
45
"description": "Full title for the application",

lib/l10n/messages_all_locales.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import 'messages_it.dart' as messages_it;
2121
import 'messages_messages.dart' as messages_messages;
2222
import 'messages_nl.dart' as messages_nl;
2323
import 'messages_ru.dart' as messages_ru;
24+
import 'messages_tr.dart' as messages_tr;
2425
import 'messages_vi.dart' as messages_vi;
2526
import 'messages_zh_Hans.dart' as messages_zh_hans;
2627

@@ -34,6 +35,7 @@ Map<String, LibraryLoader> _deferredLibraries = {
3435
'messages': () => Future.value(null),
3536
'nl': () => Future.value(null),
3637
'ru': () => Future.value(null),
38+
'tr': () => Future.value(null),
3739
'vi': () => Future.value(null),
3840
'zh_Hans': () => Future.value(null),
3941
};
@@ -56,6 +58,8 @@ MessageLookupByLibrary? _findExact(String localeName) {
5658
return messages_nl.messages;
5759
case 'ru':
5860
return messages_ru.messages;
61+
case 'tr':
62+
return messages_tr.messages;
5963
case 'vi':
6064
return messages_vi.messages;
6165
case 'zh_Hans':

lib/l10n/messages_tr.dart

Lines changed: 299 additions & 0 deletions
Large diffs are not rendered by default.

lib/l10n/messages_vi.dart

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ class MessageLookup extends MessageLookupByLibrary {
4545

4646
static m11(weeks) => "${weeks}t trước";
4747

48+
static m12(episodes) => "${Intl.plural(episodes, one: '1 tập mới', other: '${episodes} tập mới')}";
49+
50+
static m13(episodes) => "${Intl.plural(episodes, one: '1 tập chưa nghe', other: '${episodes} tập chưa nghe')}";
51+
4852
static m14(minutes) => "${minutes} phút";
4953

5054
static m15(minutes) => "${minutes} phút";
@@ -61,6 +65,8 @@ class MessageLookup extends MessageLookupByLibrary {
6165
static Map<String, dynamic> _notInlinedMessages(_) => {
6266
'about_label': MessageLookupByLibrary.simpleMessage('Giới thiệu'),
6367
'add_rss_feed_option': MessageLookupByLibrary.simpleMessage('Thêm nguồn RSS'),
68+
'alert_sync_title_body': MessageLookupByLibrary.simpleMessage('Anytime đang cập nhật thư viện podcast của bạn'),
69+
'alert_sync_title_label': MessageLookupByLibrary.simpleMessage('Cập nhật Thư viện'),
6470
'app_title': MessageLookupByLibrary.simpleMessage('Anytime Podcast Player'),
6571
'app_title_short': MessageLookupByLibrary.simpleMessage('Anytime Player'),
6672
'audio_effect_trim_silence_label': MessageLookupByLibrary.simpleMessage('Cắt bỏ khoảng lặng'),
@@ -83,7 +89,7 @@ class MessageLookup extends MessageLookupByLibrary {
8389
'delete_label': MessageLookupByLibrary.simpleMessage('Xóa'),
8490
'discover': MessageLookupByLibrary.simpleMessage('Khám phá'),
8591
'discovery_categories_itunes': MessageLookupByLibrary.simpleMessage('Tất cả,Nghệ thuật,Kinh doanh,Hài kịch,Giáo dục,Viễn tưởng,Chính phủ,Sức khỏe & Thể chất,Lịch sử,Trẻ em & Gia đình,Giải trí,Âm nhạc,Tin tức,Tôn giáo & Tâm linh,Khoa học,Xã hội & Văn hóa,Thể thao,TV & Phim ảnh,Công nghệ,Tội phạm có thật'),
86-
'discovery_categories_pindex': MessageLookupByLibrary.simpleMessage('Tất cả,Bàn luận sau chương trình,Alternative,Động vật,Hoạt hình,Nghệ thuật,Thiên văn học,Ô tô,Hàng không,Bóng chày,Bóng rổ,Sắc đẹp,Sách,Phật giáo,Kinh doanh,Sự nghiệp,Hóa học,Thiên chúa giáo,Khí hậu,Hài kịch,Bình luận,Khóa học,Thủ công,Cricket,Tiền điện tử,Văn hóa,Hàng ngày,Thiết kế,Phim tài liệu,Kịch,Trái đất,Giáo dục,Giải trí,Khởi nghiệp,Gia đình,Kỳ ảo,Thời trang,Viễn tưởng,Phim,Thể chất,Ẩm thực,Bóng đá,Trò chơi,Làm vườn,Golf,Chính phủ,Sức khỏe,Ấn độ giáo,Lịch sử,Sở thích,Khúc côn cầu,Nhà cửa,Hướng dẫn,Ứng biến,Phỏng vấn,Đầu tư,Hồi giáo,Nhật ký,Do thái giáo,Trẻ em,Ngôn ngữ,Học tập,Giải trí,Cuộc sống,Quản lý,Manga,Tiếp thị,Toán học,Y học,Tinh thần,Âm nhạc,Tự nhiên,Thiên nhiên,Tin tức,Phi lợi nhuận,Dinh dưỡng,Làm cha mẹ,Biểu diễn,Cá nhân,Thú cưng,Triết học,Vật lý,Địa điểm,Chính trị,Mối quan hệ,Tôn giáo,Đánh giá,Nhập vai,Bóng bầu dục,Chạy bộ,Khoa học,Phát triển bản thân,Tình dục,Bóng đá,Xã hội,Xã hội,Tâm linh,Thể thao,Hài độc thoại,Câu chuyện,Bơi lội,TV, επιτραπέζιο,Công nghệ,Quần vợt,Du lịch,Tội phạm có thật,Trò chơi điện tử,Hình ảnh,Bóng chuyền,Thời tiết,Hoang dã,Đấu vật'),
92+
'discovery_categories_pindex': MessageLookupByLibrary.simpleMessage('Tất cả,Bàn luận sau chương trình,Alternative,Động vật,Hoạt hình,Nghệ thuật,Thiên văn học,Ô tô,Hàng không,Bóng chày,Bóng rổ,Sắc đẹp,Sách,Phật giáo,Kinh doanh,Sự nghiệp,Hóa học,Thiên chúa giáo,Khí hậu,Hài kịch,Bình luận,Khóa học,Thủ công,Cricket,Tiền điện tử,Văn hóa,Hàng ngày,Thiết kế,Phim tài liệu,Kịch,Trái đất,Giáo dục,Giải trí,Khởi nghiệp,Gia đình,Kỳ ảo,Thời trang,Viễn tưởng,Phim,Thể chất,Ẩm thực,Bóng đá,Trò chơi,Làm vườn,Golf,Chính phủ,Sức khỏe,Ấn độ giáo,Lịch sử,Sở thích,Khúc côn cầu,Nhà cửa,Hướng dẫn,Ứng biến,Phỏng vấn,Đầu tư,Hồi giáo,Nhật ký,Do thái giáo,Trẻ em,Ngôn ngữ,Học tập,Giải trí,Cuộc sống,Quản lý,Manga,Tiếp thị,Toán học,Y học,Tinh thần,Âm nhạc,Tự nhiên,Thiên nhiên,Tin tức,Phi lợi nhuận,Dinh dưỡng,Làm cha mẹ,Biểu diễn,Cá nhân,Thú cưng,Triết học,Vật lý,Địa điểm,Chính trị,Mối quan hệ,Tôn giáo,Đánh giá,Nhập vai,Bóng bầu dục,Chạy bộ,Khoa học,Phát triển bản thân,Tình dục,Bóng đá,Xã hội,Xã hội,Tâm linh,Thể thao,Hài độc thoại,Câu chuyện,Bơi lội,TV, Trò chơi trên bàn,Công nghệ,Quần vợt,Du lịch,Tội phạm có thật,Trò chơi điện tử,Hình ảnh,Bóng chuyền,Thời tiết,Hoang dã,Đấu vật'),
8793
'download_episode_button_label': MessageLookupByLibrary.simpleMessage('Tải tập'),
8894
'downloads': MessageLookupByLibrary.simpleMessage('Tải về'),
8995
'empty_queue_message': MessageLookupByLibrary.simpleMessage('Hàng chờ của bạn đang trống'),
@@ -125,8 +131,22 @@ class MessageLookup extends MessageLookupByLibrary {
125131
'label_megabytes': MessageLookupByLibrary.simpleMessage('megabyte'),
126132
'label_megabytes_abbr': MessageLookupByLibrary.simpleMessage('MB'),
127133
'label_opml_importing': MessageLookupByLibrary.simpleMessage('Đang nhập'),
134+
'label_podcast_actions': MessageLookupByLibrary.simpleMessage('Hành động Podcast'),
128135
'layout_label': MessageLookupByLibrary.simpleMessage('Bố cục'),
136+
'layout_selector_compact_grid_view': MessageLookupByLibrary.simpleMessage('Xem dạng lưới thu gọn'),
137+
'layout_selector_grid_view': MessageLookupByLibrary.simpleMessage('Xem dạng lưới'),
138+
'layout_selector_highlight_new_episodes': MessageLookupByLibrary.simpleMessage('Làm nổi bật tập mới'),
139+
'layout_selector_list_view': MessageLookupByLibrary.simpleMessage('Xem dạng danh sách'),
140+
'layout_selector_sort_by': MessageLookupByLibrary.simpleMessage('Sắp xếp theo'),
141+
'layout_selector_sort_by_alphabetical': MessageLookupByLibrary.simpleMessage('Bảng chữ cái'),
142+
'layout_selector_sort_by_followed': MessageLookupByLibrary.simpleMessage('Đã theo dõi'),
143+
'layout_selector_sort_by_unplayed': MessageLookupByLibrary.simpleMessage('Chưa nghe'),
144+
'layout_selector_unplayed_episodes': MessageLookupByLibrary.simpleMessage('Hiển thị số lượng chưa nghe'),
129145
'library': MessageLookupByLibrary.simpleMessage('Thư viện'),
146+
'library_sort_alphabetical_label': MessageLookupByLibrary.simpleMessage('Theo bảng chữ cái'),
147+
'library_sort_date_followed_label': MessageLookupByLibrary.simpleMessage('Ngày theo dõi'),
148+
'library_sort_latest_episodes_label': MessageLookupByLibrary.simpleMessage('Tập mới nhất'),
149+
'library_sort_unplayed_count_label': MessageLookupByLibrary.simpleMessage('Số tập chưa nghe'),
130150
'mark_episodes_not_played_label': MessageLookupByLibrary.simpleMessage('Đánh dấu tất cả chưa nghe'),
131151
'mark_episodes_played_label': MessageLookupByLibrary.simpleMessage('Đánh dấu tất cả đã nghe'),
132152
'mark_played_label': MessageLookupByLibrary.simpleMessage('Đánh dấu đã nghe'),
@@ -153,6 +173,10 @@ class MessageLookup extends MessageLookupByLibrary {
153173
'play_button_label': MessageLookupByLibrary.simpleMessage('Phát tập'),
154174
'play_download_button_label': MessageLookupByLibrary.simpleMessage('Phát tập đã tải về'),
155175
'playback_speed_label': MessageLookupByLibrary.simpleMessage('Tốc độ phát'),
176+
'podcast_context_play_latest_episode_label': MessageLookupByLibrary.simpleMessage('Phát tập mới nhất'),
177+
'podcast_context_play_next_episode_label': MessageLookupByLibrary.simpleMessage('Phát tập chưa nghe tiếp theo'),
178+
'podcast_context_queue_latest_episode_label': MessageLookupByLibrary.simpleMessage('Thêm tập mới nhất vào hàng chờ'),
179+
'podcast_context_queue_next_episode_label': MessageLookupByLibrary.simpleMessage('Thêm tập chưa nghe tiếp theo vào hàng chờ'),
156180
'podcast_funding_dialog_header': MessageLookupByLibrary.simpleMessage('Ủng hộ Podcast'),
157181
'podcast_options_overflow_menu_semantic_label': MessageLookupByLibrary.simpleMessage('Menu tùy chọn'),
158182
'queue_add_label': MessageLookupByLibrary.simpleMessage('Thêm'),
@@ -180,9 +204,11 @@ class MessageLookup extends MessageLookupByLibrary {
180204
'semantic_chapter_link_label': MessageLookupByLibrary.simpleMessage('Liên kết web của chương'),
181205
'semantic_current_chapter_label': MessageLookupByLibrary.simpleMessage('Chương hiện tại'),
182206
'semantic_current_value_label': MessageLookupByLibrary.simpleMessage('Giá trị hiện tại'),
207+
'semantic_new_episodes_count': m12,
183208
'semantic_playing_options_collapse_label': MessageLookupByLibrary.simpleMessage('Đóng thanh trượt tùy chọn phát'),
184209
'semantic_playing_options_expand_label': MessageLookupByLibrary.simpleMessage('Mở thanh trượt tùy chọn phát'),
185210
'semantic_podcast_artwork_label': MessageLookupByLibrary.simpleMessage('Ảnh bìa podcast'),
211+
'semantic_unplayed_episodes_count': m13,
186212
'semantics_add_to_queue': MessageLookupByLibrary.simpleMessage('Thêm tập vào hàng chờ'),
187213
'semantics_collapse_podcast_description': MessageLookupByLibrary.simpleMessage('Thu gọn mô tả podcast'),
188214
'semantics_decrease_playback_speed': MessageLookupByLibrary.simpleMessage('Giảm tốc độ phát'),
@@ -213,6 +239,10 @@ class MessageLookup extends MessageLookupByLibrary {
213239
'settings_auto_update_episodes_always': MessageLookupByLibrary.simpleMessage('Luôn luôn'),
214240
'settings_auto_update_episodes_heading': MessageLookupByLibrary.simpleMessage('Tải lại các tập trên màn hình chi tiết sau'),
215241
'settings_auto_update_episodes_never': MessageLookupByLibrary.simpleMessage('Không bao giờ'),
242+
'settings_background_refresh_mobile_data_option': MessageLookupByLibrary.simpleMessage('Làm mới khi dùng dữ liệu di động'),
243+
'settings_background_refresh_mobile_data_option_subtitle': MessageLookupByLibrary.simpleMessage('Cho phép thư viện được làm mới khi đang sử dụng mạng di động'),
244+
'settings_background_refresh_option': MessageLookupByLibrary.simpleMessage('Làm mới trong nền'),
245+
'settings_background_refresh_option_subtitle': MessageLookupByLibrary.simpleMessage('Cập nhật các tập khi màn hình tắt. Việc này sẽ tốn pin hơn.'),
216246
'settings_continuous_play_option': MessageLookupByLibrary.simpleMessage('Phát liên tục'),
217247
'settings_continuous_play_subtitle': MessageLookupByLibrary.simpleMessage('Tự động phát tập tiếp theo trong podcast nếu hàng chờ trống'),
218248
'settings_data_divider_label': MessageLookupByLibrary.simpleMessage('DỮ LIỆU'),
@@ -226,8 +256,12 @@ class MessageLookup extends MessageLookupByLibrary {
226256
'settings_import_opml': MessageLookupByLibrary.simpleMessage('Nhập OPML'),
227257
'settings_label': MessageLookupByLibrary.simpleMessage('Cài đặt'),
228258
'settings_mark_deleted_played_label': MessageLookupByLibrary.simpleMessage('Đánh dấu các tập đã xóa là đã nghe'),
259+
'settings_notification_divider_label': MessageLookupByLibrary.simpleMessage('THÔNG BÁO'),
229260
'settings_personalisation_divider_label': MessageLookupByLibrary.simpleMessage('CÁ NHÂN HÓA'),
230261
'settings_playback_divider_label': MessageLookupByLibrary.simpleMessage('PHÁT'),
262+
'settings_podcast_management_divider_label': MessageLookupByLibrary.simpleMessage('QUẢN LÝ PODCAST'),
263+
'settings_refresh_notification_option': MessageLookupByLibrary.simpleMessage('Thông báo khi làm mới'),
264+
'settings_refresh_notification_option_subtitle': MessageLookupByLibrary.simpleMessage('Hiển thị biểu tượng thông báo khi đang cập nhật các tập'),
231265
'settings_theme': MessageLookupByLibrary.simpleMessage('Giao diện'),
232266
'settings_theme_heading': MessageLookupByLibrary.simpleMessage('Chọn Giao diện'),
233267
'settings_theme_value_auto': MessageLookupByLibrary.simpleMessage('Theo hệ thống'),
@@ -255,6 +289,7 @@ class MessageLookup extends MessageLookupByLibrary {
255289
'unsubscribe_button_label': MessageLookupByLibrary.simpleMessage('Bỏ theo dõi'),
256290
'unsubscribe_label': MessageLookupByLibrary.simpleMessage('Bỏ theo dõi'),
257291
'unsubscribe_message': MessageLookupByLibrary.simpleMessage('Bỏ theo dõi sẽ xóa tất cả các tập đã tải về của podcast này.'),
258-
'up_next_queue_label': MessageLookupByLibrary.simpleMessage('Tiếp theo')
292+
'up_next_queue_label': MessageLookupByLibrary.simpleMessage('Tiếp theo'),
293+
'update_library_option': MessageLookupByLibrary.simpleMessage('Làm mới thư viện')
259294
};
260295
}

lib/ui/anytime_podcast_app.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ class AnytimePodcastAppState extends State<AnytimePodcastApp> {
230230
Locale('it', ''),
231231
Locale('nl', ''),
232232
Locale('ru', ''),
233+
Locale('tr', ''),
233234
Locale('vi', ''),
234235
Locale('zh_Hans', ''),
235236
],

0 commit comments

Comments
 (0)