From 8487fa6248d1d5dac81640de9c55c1eab9f324b3 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Fri, 15 May 2020 17:31:21 +0200 Subject: Reformat i18n correctly (#2976) * Ignore i18n gen.dir key * Add a makefile target to update an i18n key * Mark some i18n keys to ignore * Reformat i18n files correctly * Make i18n keys sort case-sensitive Calling `make i18n-format` was always inverting 4 lines: - gen.date.dec with gen.date.Dec - and gen.date.nov with gen.date.Nov I don't know why these particular lines and not the others, but it appeared the sort function was case insensitive due to the `SORT_FLAG_CASE` flag passed to the `ksort` function. Removing this flag makes the calls to the formatter idempotent and more reliable. Unfortunately it moves a lot of lines since the `_` character is considered differently. * Check i18n files are correctly formatted on Travis --- app/i18n/tr/feedback.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'app/i18n/tr/feedback.php') diff --git a/app/i18n/tr/feedback.php b/app/i18n/tr/feedback.php index 13b99ae3c..c0c71d65a 100644 --- a/app/i18n/tr/feedback.php +++ b/app/i18n/tr/feedback.php @@ -44,9 +44,9 @@ return array( 'ko' => '%s aktifleştirilemiyor. Detaylar için FreshRSS log kayıtlarını kontrol edin.', 'ok' => '%s aktif', ), + 'no_access' => '%s de yetkiniz yok', 'not_enabled' => '%s henüz aktif değil', 'not_found' => '%s bulunmamaktadır', - 'no_access' => '%s de yetkiniz yok', ), 'import_export' => array( 'export_no_zip_extension' => 'ZIP eklentisi mevcut sunucunuzda yer almıyor. Lütfen başka dosya formatında dışarı aktarmayı deneyin.', @@ -72,10 +72,10 @@ return array( 'emptied' => 'Kategori boşaltıldı', 'error' => 'Kategori güncellenemedi', 'name_exists' => 'Kategori ismi zaten bulunmakta.', - 'not_delete_default' => 'Öntanımlı kategoriyi silemezsiniz!', - 'not_exist' => 'Kategori bulunmamakta!', 'no_id' => 'Kategori id sinden emin olmalısınız.', 'no_name' => 'Kategori ismi boş olamaz.', + 'not_delete_default' => 'Öntanımlı kategoriyi silemezsiniz!', + 'not_exist' => 'Kategori bulunmamakta!', 'over_max' => 'Kategori limitini aştınız (%d)', 'updated' => 'Karegori güncellendi.', ), @@ -89,17 +89,17 @@ return array( 'error' => 'Akış güncellenemiyor', 'internal_problem' => 'RSS akışı eklenemiyor. Detaylar için FreshRSS log kayıtlarını kontrol edin.', 'invalid_url' => 'URL %s geçersiz', - 'not_added' => '%s eklenemedi', - 'not_found' => 'Feed cannot be found', // TODO - Translation - 'no_refresh' => 'Yenilenecek akış yok…', 'n_actualized' => '%d akışları güncellendi', 'n_entries_deleted' => '%d makaleleri silindi', + 'no_refresh' => 'Yenilenecek akış yok…', + 'not_added' => '%s eklenemedi', + 'not_found' => 'Feed cannot be found', // TODO - Translation 'over_max' => 'Akış limitini aştınız (%d)', 'reloaded' => '%s has been reloaded', // TODO - Translation 'selector_preview' => array( 'http_error' => 'Failed to load website content.', // TODO - Translation - 'no_entries' => 'There is no entries in your feed. You need at least one entry to create a preview.', // TODO - Translation - 'no_feed' => 'Internal error (no feed to entry).', // TODO - Translation + 'no_entries' => 'There are no articles in this feed. You need at least one article to create a preview.', // TODO - Translation + 'no_feed' => 'Internal error (feed can’t be found).', // TODO - Translation 'no_result' => 'The selector didn\'t match anything. As a fallback the original feed text will be displayed instead.', // TODO - Translation 'selector_empty' => 'The selector is empty. You need to define one to create a preview.', // TODO - Translation ), @@ -117,16 +117,16 @@ return array( ), 'user' => array( 'created' => array( - 'error' => '%s kullanıcısı oluşturulamadı', '_' => '%s kullanıcısı oluşturuldu', + 'error' => '%s kullanıcısı oluşturulamadı', ), 'deleted' => array( - 'error' => '%s kullanıcısı silinemedi', '_' => '%s kullanıcısı silindi', + 'error' => '%s kullanıcısı silinemedi', ), 'updated' => array( - 'error' => 'User %s has not been updated', // TODO - Translation '_' => 'User %s has been updated', // TODO - Translation + 'error' => 'User %s has not been updated', // TODO - Translation ), ), ); -- cgit v1.2.3