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/admin.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'app/i18n/tr/admin.php') diff --git a/app/i18n/tr/admin.php b/app/i18n/tr/admin.php index 72b7661aa..9a2f72f4c 100644 --- a/app/i18n/tr/admin.php +++ b/app/i18n/tr/admin.php @@ -83,9 +83,9 @@ return array( 'ok' => 'PDO sorunsuz (pdo_mysql, pdo_sqlite, pdo_pgsql).', ), 'php' => array( + '_' => 'PHP kurulumu', 'nok' => 'PHP versiyonunuz %s fakat FreshRSS için gerekli olan en düşük sürüm %s.', 'ok' => 'PHP versiyonunuz %s, FreshRSS ile tam uyumlu.', - '_' => 'PHP kurulumu', ), 'tables' => array( 'nok' => 'Veritabanında bir veya daha fazla tablo eksik.', @@ -116,8 +116,8 @@ return array( 'name' => 'Name', // TODO - Translation 'no_configure_view' => 'Bu eklenti yapılandırılamaz.', 'system' => array( - 'no_rights' => 'Sistem eklentileri (düzenleme hakkınız yok)', '_' => 'Sistem eklentileri', + 'no_rights' => 'Sistem eklentileri (düzenleme hakkınız yok)', ), 'title' => 'Eklentiler', 'update' => 'Update available', // TODO - Translation @@ -125,6 +125,7 @@ return array( 'version' => 'Version', // TODO - Translation ), 'stats' => array( + '_' => 'İstatistikler', 'all_feeds' => 'Tüm akış', 'category' => 'Kategori', 'entry_count' => 'Makale sayısı', @@ -154,9 +155,9 @@ return array( 'status_unread' => 'Okunmamış', 'title' => 'İstatistikler', 'top_feed' => 'İlk 10 akış', - '_' => 'İstatistikler', ), 'system' => array( + '_' => 'Sistem yapılandırması', 'auto-update-url' => 'Otomatik güncelleme sunucu URL', 'cookie-duration' => array( 'help' => 'in seconds', // TODO - Translation @@ -170,21 +171,20 @@ return array( 'help' => '0 sınır yok anlamındadır', 'number' => 'En fazla hesap sayısı', ), - '_' => 'Sistem yapılandırması', ), 'update' => array( + '_' => 'Sistem güncelleme', 'apply' => 'Uygula', 'check' => 'Güncelleme kontrolü', 'current_version' => 'Mevcut FreshRSS sürümünüz %s.', 'last' => 'Son kontrol: %s', 'none' => 'Yeni güncelleme yok', 'title' => 'Sistem güncelleme', - '_' => 'Sistem güncelleme', ), 'user' => array( 'admin' => 'Administrator', // TODO - Translation - 'articles_and_size' => '%s makale (%s)', 'article_count' => 'Articles', // TODO - Translation + 'articles_and_size' => '%s makale (%s)', 'back_to_manage' => '← Return to user list', // TODO - Translation 'create' => 'Yeni kullanıcı oluştur', 'database_size' => 'Database size', // TODO - Translation @@ -202,8 +202,8 @@ return array( 'selected' => 'Selected user', // TODO - Translation 'title' => 'Kullanıcıları yönet', 'update_users' => 'Update user', // TODO - Translation + 'user_list' => 'Kullanıcı listesi', 'username' => 'Kullanıcı adı', 'users' => 'Kullanıcılar', - 'user_list' => 'Kullanıcı listesi', ), ); -- cgit v1.2.3