-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better installation errors #2 #6002
Conversation
Corrected: Concat operator must be followed by one space
Hi, Please use a language string rather than hardcoding strings so that they are translatable. Also as this will change language strings it will have to wait until after 3.4 release (as we are currently in a language freeze) |
Is it not possible that this could be committed as a special case with the hardcoded strings NOW and then updated to use jtext later? |
Imho it's not urgent enough to make a special exception for that. |
Suggest to use: Could be changed later if required |
@sovainfo Changed to match your suggestion Ready to go? |
Removed the space before the comma to make travis happy, sorry. Made a PR against yours. What about the other JText::_ calls? |
Removed space before comma
@sovainfo Merged into my patch, thanks! |
Hi Guys, how to test this ? thx This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6002. |
From what I understand you need to install an extension when having not enough file permissions in the components (or some folder that's needed as described in the link in the description) to move files into the directory. Before the patch you'll just see a message "Copy file failed" and after you'll see a message stating what the to and from directory are. |
Thanks, - tested successfully - just the translations are missing This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6002. |
RTC based on testing. Thanks This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6002. |
@@ -140,7 +140,7 @@ public static function copy($src, $dest, $path = null, $use_streams = false) | |||
{ | |||
if (!@ copy($src, $dest)) | |||
{ | |||
JLog::add(JText::_('JLIB_FILESYSTEM_ERROR_COPY_FAILED'), JLog::WARNING, 'jerror'); | |||
JLog::add(JText::_('JLIB_FILESYSTEM_ERROR_COPY_FAILED' . ' : %s => %s', $src, $dest), JLog::WARNING, 'jerror'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not using JText::sprintf
so it won't work as expected.
Still requires a fix. |
Moving back to Pending based on @phproberto's commet. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6002. |
@davdebcom created pr to add sprintf to line 143 |
Adding sprintf, sorry
This does not work! : the constant is not translated. the code should be:
Evidently, as the variables and the hardcoding of If we want to also solve this we could do it this way:
|
PR wrong, setting back to pending until corrected. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6002. |
Added PR fixing translation and ltr by changing the messages in the language files. |
@sovainfo |
Changed my PR according to instructions from @infograf768. @davdebcom needs to accept my PR if he agrees. |
Tip found at https://www.rsjoomla.com/support/view-article/1012-troubleshooting-extension-installation-errors.html
Example of what patch does: