t2 error while uploading multiple files with other default language

Permalink 2 2 Browser Info Environment
When uploading multiple files with a default language other than en_US you will receive an error "Provided index 1 does not exist in plural array (0)" in the t2 method.

In file /concrete/views/dialogs/file/upload_complete.php on line 8:
<button data-action="choose-file" style="display: none" type="button" class="pull-right btn btn-success btn-xs"><?=t2('Choose file', 'Choose files', count($files))?></button>


I've fixed it with the following code:
<button data-action="choose-file" style="display: none" type="button" class="pull-right btn btn-success btn-xs"><?=count($files)>1?t('Choose files'):t('Choose file')?></button>


Status: New
DeWebmakers

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.2
Version Installed - 8.5.2
Database Version - 20190925072210

# Database Information
Version: 10.4.12-MariaDB
SQL Mode:

# concrete5 Packages
Basic Bootstrap 4 Theme (1.1), Block Designer (3.3.0), Block Designer Pro (3.0.1), Cookies Notice (1.3.4), ExchangeCore reCAPTCHA (1.1.1), Formidable (Full Version) (2.0.9), Image Optimizer (3.2.9), Instant Page Speed Magic (1.0.5), Remote Control (1.0.2)

# concrete5 Overrides
controllers/single_page/dashboard/reports.php, controllers/single_page/dashboard/system/permissions/files.php, controllers/single_page/dashboard/system/permissions, controllers/single_page/dashboard/system/seo.php, controllers/single_page/dashboard/system/optimization.php, controllers/single_page/dashboard/system, controllers/single_page/dashboard, controllers/single_page, elements/system_errors.php, elements/page_controls_header.php, elements/help/dialog/introduction.php, elements/help/dialog, elements/help, elements/page_controls_footer.php, single_pages/page_not_found.php, single_pages/page_forbidden.php, single_pages/login.php, single_pages/dashboard/system/permissions/files.php, single_pages/dashboard/system/permissions, single_pages/dashboard/system, single_pages/dashboard

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2

# Server API
fpm-fcgi

# PHP Version
7.2.27

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, intl, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 300
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 300
max_input_vars - 5000
memory_limit - 256M
post_max_size - 64M
upload_max_filesize - 64M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36