mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-23 03:19:00 +00:00
Remove some hardcoded English
This commit is contained in:
parent
ebae3ab593
commit
a56f449eb5
@ -101,7 +101,7 @@ class DisplayController extends \JControllerBase
|
||||
if (!class_exists($viewClass))
|
||||
{
|
||||
throw new \RuntimeException(
|
||||
sprintf('The view class for the %1$s view in the %2$s was not found.', $view, $format), 500
|
||||
sprintf('The view class for the %1$s view in the %2$s format was not found.', $view, $format), 500
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -224,7 +224,11 @@ class PullModel extends \JModelBase
|
||||
if (!\JFile::copy(\JPath::clean(JPATH_ROOT . '/' . $file->old), JPATH_COMPONENT . '/backups/' . md5($file->old) . '.txt'))
|
||||
{
|
||||
throw new \RuntimeException(
|
||||
sprintf('Can not copy file %s to %s', JPATH_ROOT . '/' . $file->old, JPATH_COMPONENT . '/backups/' . md5($file->old) . '.txt')
|
||||
\JText::sprintf(
|
||||
'COM_PATCHTESTER_ERROR_CANNOT_COPY_FILE',
|
||||
JPATH_ROOT . '/' . $file->old,
|
||||
JPATH_COMPONENT . '/backups/' . md5($file->old) . '.txt'
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -235,7 +239,7 @@ class PullModel extends \JModelBase
|
||||
case 'added':
|
||||
if (!\JFile::write(\JPath::clean(JPATH_ROOT . '/' . $file->new), $file->body))
|
||||
{
|
||||
throw new \RuntimeException(sprintf('Can not write the file: %s', JPATH_ROOT . '/' . $file->new));
|
||||
throw new \RuntimeException(\JText::sprintf('COM_PATCHTESTER_ERROR_CANNOT_WRITE_FILE', JPATH_ROOT . '/' . $file->new));
|
||||
}
|
||||
|
||||
break;
|
||||
@ -243,7 +247,7 @@ class PullModel extends \JModelBase
|
||||
case 'deleted':
|
||||
if (!\JFile::delete(\JPath::clean(JPATH_ROOT . '/' . $file->old)))
|
||||
{
|
||||
throw new \RuntimeException(sprintf('Can not delete the file: %s', JPATH_ROOT . '/' . $file->old));
|
||||
throw new \RuntimeException(\JText::sprintf('COM_PATCHTESTER_ERROR_CANNOT_DELETE_FILE', JPATH_ROOT . '/' . $file->old));
|
||||
}
|
||||
|
||||
break;
|
||||
@ -292,7 +296,7 @@ class PullModel extends \JModelBase
|
||||
|
||||
if (!$files)
|
||||
{
|
||||
throw new \RuntimeException(sprintf(\JText::_('%s - Error retrieving table data (%s)'), __METHOD__, htmlentities($table->data)));
|
||||
throw new \RuntimeException(\JText::sprintf('COM_PATCHTESTER_ERROR_READING_DATABASE_TABLE', __METHOD__, htmlentities($table->data)));
|
||||
}
|
||||
|
||||
jimport('joomla.filesystem.file');
|
||||
@ -306,8 +310,8 @@ class PullModel extends \JModelBase
|
||||
if (!\JFile::copy(JPATH_COMPONENT . '/backups/' . md5($file->old) . '.txt', JPATH_ROOT . '/' . $file->old))
|
||||
{
|
||||
throw new \RuntimeException(
|
||||
sprintf(
|
||||
\JText::_('Can not copy file %s to %s'),
|
||||
\JText::sprintf(
|
||||
'COM_PATCHTESTER_ERROR_CANNOT_COPY_FILE',
|
||||
JPATH_COMPONENT . '/backups/' . md5($file->old) . '.txt',
|
||||
JPATH_ROOT . '/' . $file->old
|
||||
)
|
||||
@ -316,7 +320,9 @@ class PullModel extends \JModelBase
|
||||
|
||||
if (!\JFile::delete(JPATH_COMPONENT . '/backups/' . md5($file->old) . '.txt'))
|
||||
{
|
||||
throw new \RuntimeException(sprintf(\JText::_('Can not delete the file: %s'), JPATH_COMPONENT . '/backups/' . md5($file->old) . '.txt'));
|
||||
throw new \RuntimeException(
|
||||
\JText::sprintf('COM_PATCHTESTER_ERROR_CANNOT_DELETE_FILE', JPATH_COMPONENT . '/backups/' . md5($file->old) . '.txt')
|
||||
);
|
||||
}
|
||||
|
||||
break;
|
||||
@ -324,7 +330,9 @@ class PullModel extends \JModelBase
|
||||
case 'added':
|
||||
if (!\JFile::delete(\JPath::clean(JPATH_ROOT . '/' . $file->new)))
|
||||
{
|
||||
throw new \RuntimeException(sprintf(\JText::_('Can not delete the file: %s'), JPATH_ROOT . '/' . $file->new));
|
||||
throw new \RuntimeException(
|
||||
\JText::sprintf('COM_PATCHTESTER_ERROR_CANNOT_DELETE_FILE', JPATH_ROOT . '/' . $file->new)
|
||||
);
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -15,8 +15,12 @@ COM_PATCHTESTER_CONFIGURATION="Joomla! Patch Tester Settings"
|
||||
COM_PATCHTESTER_CONFLICT_S="The patch could not be applied because it conflicts with a previously applied patch: %s"
|
||||
COM_PATCHTESTER_COULD_NOT_CONNECT_TO_GITHUB="Could not connect to GitHub with the following error: %s"
|
||||
COM_PATCHTESTER_ERROR_APPLIED_PATCHES="Cannot fetch data from GitHub while there are applied patches. Please revert those patches before continuing."
|
||||
COM_PATCHTESTER_ERROR_CANNOT_COPY_FILE="Cannot copy source file %1$s to destination %2$s"
|
||||
COM_PATCHTESTER_ERROR_CANNOT_DELETE_FILE="Cannot delete file %s"
|
||||
COM_PATCHTESTER_ERROR_CANNOT_WRITE_FILE="Cannot write file %s"
|
||||
COM_PATCHTESTER_ERROR_GITHUB_FETCH="Error retrieving pull requests from GitHub: %s"
|
||||
COM_PATCHTESTER_ERROR_INSERT_DATABASE="Error inserting pull request data into the database: %s"
|
||||
COM_PATCHTESTER_ERROR_READING_DATABASE_TABLE="%1$s - Error retrieving table data (%2$s)"
|
||||
COM_PATCHTESTER_FETCH_AN_ERROR_HAS_OCCURRED="An error has occurred while fetching the data from GitHub."
|
||||
COM_PATCHTESTER_FETCH_COMPLETE_CLOSE_WINDOW="All data has been retrieved. Please close this modal window to refresh the page."
|
||||
COM_PATCHTESTER_FETCH_INITIALIZING="Preparing to fetch GitHub data"
|
||||
|
Loading…
Reference in New Issue
Block a user