From b6f4276c6cc2e5a53f0a4afb1536960427fa995e Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Mon, 6 Oct 2025 15:09:01 -0400 Subject: Change regional language codes (#8065) * Change regional language codes According to `ISO-639-1` and `ISO-3166-1 alpha-2` recommendations, regional languages must be written with the language code in lowercase and the region in uppercase. For instance, we should have `en-US` instead of `en-us`. Folders have been updated to reflect those recommendations and regional language codes have been updated in the translation files. * Update README files * Fix configuration for typos * Revert language order in documentation * Remove unnecessary code * Change language configuration getter * Fix phpstan error * Fix typo * Add types * escape regex * Move language logic to avoid magic or deprecated methods * Minor fix on regex --- app/i18n/en-US/index.php | 110 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 app/i18n/en-US/index.php (limited to 'app/i18n/en-US/index.php') diff --git a/app/i18n/en-US/index.php b/app/i18n/en-US/index.php new file mode 100644 index 000000000..7a019bce0 --- /dev/null +++ b/app/i18n/en-US/index.php @@ -0,0 +1,110 @@ + array( + '_' => 'About', // IGNORE + 'agpl3' => 'AGPL 3', // IGNORE + 'bug_reports' => array( + 'environment_information' => array( + '_' => 'System information', // IGNORE + 'browser' => 'Browser', // IGNORE + 'database' => 'Database', // IGNORE + 'server_software' => 'Server software', // IGNORE + 'version_curl' => 'cURL version', // IGNORE + 'version_frss' => 'FreshRSS version', // IGNORE + 'version_php' => 'PHP version', // IGNORE + ), + ), + 'bugs_reports' => 'Bug reports', // IGNORE + 'documentation' => 'Documentation', // IGNORE + 'freshrss_description' => 'FreshRSS is a self-hostable RSS aggregator and reader. It allows you to read and follow several news websites at a glance without the need to browse from one website to another. FreshRSS is lightweight, configurable, and easy to use.', // IGNORE + 'github' => 'on GitHub', // IGNORE + 'license' => 'License', // IGNORE + 'project_website' => 'Project website', // IGNORE + 'title' => 'About', // IGNORE + 'version' => 'Version', // IGNORE + ), + 'feed' => array( + 'empty' => 'There are no articles to show.', // IGNORE + 'received' => array( + 'before_yesterday' => 'Received before yesterday', // IGNORE + 'today' => 'Received today', // IGNORE + 'yesterday' => 'Received yesterday', // IGNORE + ), + 'rss_of' => 'RSS feed of %s', // IGNORE + 'title' => 'Main stream', // IGNORE + 'title_fav' => 'Favorites', + 'title_global' => 'Global view', // IGNORE + ), + 'log' => array( + '_' => 'Logs', // IGNORE + 'clear' => 'Clear the logs', // IGNORE + 'empty' => 'Log file is empty', // IGNORE + 'title' => 'Logs', // IGNORE + ), + 'menu' => array( + 'about' => 'About FreshRSS', // IGNORE + 'before_one_day' => 'Older than one day', // IGNORE + 'before_one_week' => 'Older than one week', // IGNORE + 'bookmark_query' => 'Bookmark current query', // IGNORE + 'favorites' => 'Favorites (%s)', + 'global_view' => 'Global view', // IGNORE + 'important' => 'Important feeds', // IGNORE + 'main_stream' => 'Main stream', // IGNORE + 'mark_all_read' => 'Mark all as read', // IGNORE + 'mark_cat_read' => 'Mark category as read', // IGNORE + 'mark_feed_read' => 'Mark feed as read', // IGNORE + 'mark_selection_unread' => 'Mark selection as unread', // IGNORE + 'mylabels' => 'My labels', // IGNORE + 'newer_first' => 'Newer first', // IGNORE + 'non-starred' => 'Show non-favorites', + 'normal_view' => 'Normal view', // IGNORE + 'older_first' => 'Oldest first', // IGNORE + 'queries' => 'User queries', // IGNORE + 'read' => 'Show read', // IGNORE + 'reader_view' => 'Reading view', // IGNORE + 'rss_view' => 'RSS feed', // IGNORE + 'search_short' => 'Search', // IGNORE + 'sort' => array( + '_' => 'Sorting criteria', // IGNORE + 'c' => array( + 'name_asc' => 'Category, feed titles A→Z', // IGNORE + 'name_desc' => 'Category, feed titles Z→A', // IGNORE + ), + 'date_asc' => 'Publication date 1→9', // IGNORE + 'date_desc' => 'Publication date 9→1', // IGNORE + 'f' => array( + 'name_asc' => 'Feed title A→Z', // IGNORE + 'name_desc' => 'Feed title Z→A', // IGNORE + ), + 'id_asc' => 'Freshly received last', // IGNORE + 'id_desc' => 'Freshly received first', // IGNORE + 'link_asc' => 'Link A→Z', // IGNORE + 'link_desc' => 'Link Z→A', // IGNORE + 'rand' => 'Random order', // IGNORE + 'title_asc' => 'Title A→Z', // IGNORE + 'title_desc' => 'Title Z→A', // IGNORE + ), + 'starred' => 'Show favorites', + 'stats' => 'Statistics', // IGNORE + 'subscription' => 'Subscription management', // IGNORE + 'unread' => 'Show unread', // IGNORE + ), + 'share' => 'Share', // IGNORE + 'tag' => array( + 'related' => 'Article tags', // IGNORE + ), + 'tos' => array( + 'title' => 'Terms of Service', // IGNORE + ), +); -- cgit v1.2.3