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/it/admin.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'app/i18n/it/admin.php') diff --git a/app/i18n/it/admin.php b/app/i18n/it/admin.php index 7ed60d8dd..2a19d6b30 100644 --- a/app/i18n/it/admin.php +++ b/app/i18n/it/admin.php @@ -83,9 +83,9 @@ return array( 'ok' => 'PDO e altri driver supportati (pdo_mysql, pdo_sqlite, pdo_pgsql).', ), 'php' => array( + '_' => 'Installazione PHP', 'nok' => 'Versione PHP %s FreshRSS richiede almeno la versione %s.', 'ok' => 'Versione PHP %s, compatibile con FreshRSS.', - '_' => 'Installazione PHP', ), 'tables' => array( 'nok' => 'Rilevate tabelle mancanti nel database.', @@ -116,8 +116,8 @@ return array( 'name' => 'Name', // TODO - Translation 'no_configure_view' => 'Questa estensioni non può essere configurata.', 'system' => array( - 'no_rights' => 'Estensione di sistema (non hai i permessi su questo tipo)', '_' => 'Estensioni di sistema', + 'no_rights' => 'Estensione di sistema (non hai i permessi su questo tipo)', ), 'title' => 'Estensioni', 'update' => 'Update available', // TODO - Translation @@ -125,6 +125,7 @@ return array( 'version' => 'Version', // TODO - Translation ), 'stats' => array( + '_' => 'Statistiche', 'all_feeds' => 'Tutti i feeds', 'category' => 'Categoria', 'entry_count' => 'Articoli', @@ -154,9 +155,9 @@ return array( 'status_unread' => 'Non letti', 'title' => 'Statistiche', 'top_feed' => 'I migliori 10 feeds', - '_' => 'Statistiche', ), 'system' => array( + '_' => 'Configurazione di sistema', 'auto-update-url' => 'Auto-update server URL', // TODO - Translation 'cookie-duration' => array( 'help' => 'in seconds', // TODO - Translation @@ -170,21 +171,20 @@ return array( 'help' => '0 significa che non esiste limite sui profili', 'number' => 'Numero massimo di profili', ), - '_' => 'Configurazione di sistema', ), 'update' => array( + '_' => 'Aggiornamento sistema', 'apply' => 'Applica', 'check' => 'Controlla la presenza di nuovi aggiornamenti', 'current_version' => 'FreshRSS versione %s.', 'last' => 'Ultima verifica: %s', 'none' => 'Nessun aggiornamento da applicare', 'title' => 'Aggiorna sistema', - '_' => 'Aggiornamento sistema', ), 'user' => array( 'admin' => 'Administrator', // TODO - Translation - 'articles_and_size' => '%s articoli (%s)', 'article_count' => 'Articles', // TODO - Translation + 'articles_and_size' => '%s articoli (%s)', 'back_to_manage' => '← Return to user list', // TODO - Translation 'create' => 'Crea nuovo utente', 'database_size' => 'Database size', // TODO - Translation @@ -202,8 +202,8 @@ return array( 'selected' => 'Selected user', // TODO - Translation 'title' => 'Gestione utenti', 'update_users' => 'Update user', // TODO - Translation + 'user_list' => 'Lista utenti', 'username' => 'Nome utente', 'users' => 'Utenti', - 'user_list' => 'Lista utenti', ), ); -- cgit v1.2.3