JoomlaPolska / jezyk-J4

Język polski dla Joomla 4
GNU General Public License v2.0
3 stars 5 forks source link

[5.0] Added missing "items" text to the Joomla update view #361

Closed joomlapl-bot closed 7 months ago

joomlapl-bot commented 1 year ago

PR w związku ze zmianą oryginału https://github.com/joomla/joomla-cms/pull/40742 Poniżej zmiany w oryginale:

Click to expand the diff! ```diff diff --git a/administrator/components/com_joomlaupdate/tmpl/update/default.php b/administrator/components/com_joomlaupdate/tmpl/update/default.php index 0375bd95a1da6..8300323bb5f9b 100644 --- a/administrator/components/com_joomlaupdate/tmpl/update/default.php +++ b/administrator/components/com_joomlaupdate/tmpl/update/default.php @@ -30,6 +30,7 @@ Text::script('COM_JOOMLAUPDATE_ERRORMODAL_BODY_INVALIDLOGIN'); Text::script('COM_JOOMLAUPDATE_UPDATING_FAIL'); Text::script('COM_JOOMLAUPDATE_UPDATING_COMPLETE'); +Text::script('COM_JOOMLAUPDATE_VIEW_UPDATE_ITEMS'); Text::script('JLIB_SIZE_BYTES'); Text::script('JLIB_SIZE_KB'); Text::script('JLIB_SIZE_MB'); diff --git a/administrator/language/en-GB/com_joomlaupdate.ini b/administrator/language/en-GB/com_joomlaupdate.ini index a2173af176938..c157789388775 100644 --- a/administrator/language/en-GB/com_joomlaupdate.ini +++ b/administrator/language/en-GB/com_joomlaupdate.ini @@ -165,6 +165,7 @@ COM_JOOMLAUPDATE_VIEW_UPDATE_BYTESEXTRACTED="Bytes extracted" COM_JOOMLAUPDATE_VIEW_UPDATE_BYTESREAD="Bytes read" COM_JOOMLAUPDATE_VIEW_UPDATE_CHECKSUM_WRONG="File Checksum Failed" COM_JOOMLAUPDATE_VIEW_UPDATE_DOWNLOADFAILED="Download of update package failed." +COM_JOOMLAUPDATE_VIEW_UPDATE_ITEMS="items" COM_JOOMLAUPDATE_VIEW_UPDATE_FILESEXTRACTED="Files extracted" COM_JOOMLAUPDATE_VIEW_UPDATE_FINALISE_CONFIRM_AND_CONTINUE="Confirm & Continue" COM_JOOMLAUPDATE_VIEW_UPDATE_FINALISE_HEAD="Joomla Update is finishing and cleaning up" diff --git a/build/media_source/com_joomlaupdate/js/admin-update-default.es6.js b/build/media_source/com_joomlaupdate/js/admin-update-default.es6.js index ebf02cb9a9e47..85bcc7149cba1 100644 --- a/build/media_source/com_joomlaupdate/js/admin-update-default.es6.js +++ b/build/media_source/com_joomlaupdate/js/admin-update-default.es6.js @@ -61,7 +61,7 @@ Joomla.Update = window.Joomla.Update || { document.getElementById('extbytesin').innerText = Joomla.Update.formatBytes(Joomla.Update.stat_inbytes); document.getElementById('extbytesout').innerText = Joomla.Update.formatBytes(Joomla.Update.stat_outbytes); - document.getElementById('extfiles').innerText = Joomla.Update.stat_files; + document.getElementById('extfiles').innerText = Joomla.Update.formatFiles(Joomla.Update.stat_files); const postData = new FormData(); postData.append('task', 'startExtract'); @@ -121,7 +121,7 @@ Joomla.Update = window.Joomla.Update || { document.getElementById('extbytesin').innerText = Joomla.Update.formatBytes(Joomla.Update.stat_inbytes); document.getElementById('extbytesout').innerText = Joomla.Update.formatBytes(Joomla.Update.stat_outbytes); - document.getElementById('extfiles').innerText = Joomla.Update.stat_files; + document.getElementById('extfiles').innerText = Joomla.Update.formatFiles(Joomla.Update.stat_files); // Are we done extracting? if (data.done) { @@ -203,6 +203,7 @@ Joomla.Update = window.Joomla.Update || { return `${parseFloat((bytes / (k ** i)).toFixed(dm))} ${sizes[i]}`; }, + formatFiles: (files) => `${files} ${Joomla.Text._('COM_JOOMLAUPDATE_VIEW_UPDATE_ITEMS')}`, resumeButtonHandler: (e) => { e.preventDefault(); ```