31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-06-02 05:30:48 +00:00

Merge remote-tracking branch 'origin/master' into namespace

This commit is contained in:
Michael Babker 2014-10-17 03:09:27 -04:00
commit 63dac07c12
14 changed files with 67 additions and 74 deletions

View File

@ -131,8 +131,7 @@ class PullsModel extends \JModelDatabase
$search = $db->quote('%' . $db->escape($search, true) . '%');
$query->where(
'(' . $db->quoteName('a.title') . ' LIKE ' . $search . ') OR ' .
'(' . $db->quoteName('a.pull_id') . ' LIKE ' . $search . ') OR ' .
'(' . $db->quoteName('a.joomlacode_id') . ' LIKE ' . $search . ')'
'(' . $db->quoteName('a.pull_id') . ' LIKE ' . $search . ') '
);
}
@ -338,30 +337,6 @@ class PullsModel extends \JModelDatabase
$data->description = $pull->body;
$data->pull_url = $pull->html_url;
// Try to find a Joomlacode issue number
$matches = array();
preg_match('#\[\#([0-9]+)\]#', $pull->title, $matches);
if (isset($matches[1]))
{
$data->joomlacode_id = (int) $matches[1];
}
else
{
preg_match('#(http://joomlacode[-\w\./\?\S]+)#', $pull->body, $matches);
if (isset($matches[1]))
{
preg_match('#tracker_item_id=([0-9]+)#', $matches[1], $matches);
if (isset($matches[1]))
{
$data->joomlacode_id = (int) $matches[1];
}
}
}
try
{
$this->getDb()->insertObject('#__patchtester_pulls', $data, 'id');

View File

@ -84,9 +84,6 @@ else :
<?php echo \JText::_('JGLOBAL_TITLE'); ?>
</th>
<th class="nowrap center">I</th>
<th class="nowrap center">
<?php echo \JText::_('COM_PATCHTESTER_JOOMLACODE_ISSUE'); ?>
</th>
<th width="20%" class="nowrap center">
<?php echo \JText::_('JSTATUS'); ?>
</th>

View File

@ -24,23 +24,14 @@ foreach ($this->items as $i => $item) :
<?php echo $this->escape($item->title); ?>
</a>
</td>
<td>
<td class="center">
<?php if ($item->description) :
echo \JHtml::_('tooltip', $this->escape(($item->description)), 'Info');
echo '<a onclick="SqueezeBox.fromElement(this, {handler:\'iframe\', size: {x: 900, y: 600}, url:\'http://issues.joomla.org/tracker/joomla-cms/'.$item->pull_id.'\'})"><i class="icon-info" style="color:#000;cursor:pointer;"></i>';
else :
echo '&nbsp;';
endif;
?>
</td>
<td>
<?php if ($item->joomlacode_id) :
$title = ' title="Open link::' . \JText::_('COM_PATCHTESTER_OPEN_IN_JOOMLACODE') . '"';
echo '<a href="http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=';
echo $item->joomlacode_id . '"' . $title . ' class="modal hasTip" rel="{handler: \'iframe\', size: {x: 900, y: 500}}">';
echo '[#' . $item->joomlacode_id . ']</a>';
endif; ?>
</td>
<td class="center">
<?php if ($item->applied) : ?>
<span class="label label-success">

View File

@ -4,7 +4,6 @@ CREATE TABLE IF NOT EXISTS `#__patchtester_pulls` (
`title` varchar(100) NOT NULL,
`description` varchar(5000) NOT NULL DEFAULT '',
`pull_url` varchar(255) NOT NULL,
`joomlacode_id` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;

View File

@ -4,7 +4,6 @@ CREATE TABLE IF NOT EXISTS "#__patchtester_pulls" (
"title" character varying(100) NOT NULL,
"description" character varying(5000) DEFAULT '' NOT NULL,
"pull_url" character varying(255) NOT NULL,
"joomlacode_id" character varying(255) DEFAULT '' NOT NULL,
PRIMARY KEY ("id")
);

View File

@ -4,7 +4,6 @@ CREATE TABLE IF NOT EXISTS [#__patchtester_pulls] (
[title] [nvarchar](100) NOT NULL,
[description] [nvarchar](5000) NOT NULL DEFAULT '',
[pull_url] [nvarchar](255) NOT NULL,
[joomlacode_id] [nvarchar](255) NOT NULL DEFAULT '',
CONSTRAINT [PK_#__patchtester_pulls] PRIMARY KEY CLUSTERED
(
[id] ASC

View File

@ -1,4 +1,4 @@
; Joomla! Project
; Joomla! Project
; Copyright (C) 2011 - 2012 Ian MacLennan, Copyright (C) 2013 - 2014 Open Source Matters, Inc. All rights reserved.
; License GNU General Public License version 2 or later
; Note : All ini files need to be saved as UTF-8
@ -27,12 +27,10 @@ COM_PATCHTESTER_FIELD_REPO_LABEL="Github Repository"
COM_PATCHTESTER_FIELD_REPO_DESC="Name des Github Repositories von welchem Pull Requests beobachtet werden sollen."
COM_PATCHTESTER_FILE_DELETED_DOES_NOT_EXIST_S="Die zu löschende Datei existiert nicht: %s"
COM_PATCHTESTER_FILE_MODIFIED_DOES_NOT_EXIST_S="Die zu ändernde Datei existiert nicht: %s"
COM_PATCHTESTER_JOOMLACODE_ISSUE="Joomlacode Tracker"
COM_PATCHTESTER_PULL_ID="Pull ID"
COM_PATCHTESTER_NO_CREDENTIALS="Es wurden noch keine Benutzerdaten eingetragen, somit können höchstens 60 Anfragen pro Stunde an die Github API gestellt werden. Mit Benutzerdaten sind bis zu 5.000 Anfragen pro Stunde möglich."
COM_PATCHTESTER_NOT_APPLIED="Nicht angewendet"
COM_PATCHTESTER_OPEN_IN_GITHUB="In GitHub öffnen"
COM_PATCHTESTER_OPEN_IN_JOOMLACODE="In JoomlaCode öffnen"
COM_PATCHTESTER_PURGE_CACHE="Cache löschen"
COM_PATCHTESTER_PURGE_FAIL="Der Cache konnte nicht vollständig gelöscht werden, %s Dateien wurden nicht gelöscht."
COM_PATCHTESTER_PURGE_FAIL_1="Der Cache konnte nicht vollständig gelöscht werden, %s Datei wurde nicht gelöscht."

View File

@ -30,13 +30,11 @@ COM_PATCHTESTER_FIELD_REPO_DESC="Name of a repository on GitHub of which to moni
COM_PATCHTESTER_FILE_DELETED_DOES_NOT_EXIST_S="The file marked for deletion does not exist: %s"
COM_PATCHTESTER_FILE_MODIFIED_DOES_NOT_EXIST_S="The file marked for modification does not exist: %s"
COM_PATCHTESTER_FILTER_SEARCH_DESCRIPTION="Filter the list by title or ID."
COM_PATCHTESTER_JOOMLACODE_ISSUE="Joomlacode Issue"
COM_PATCHTESTER_PULL_ID="Pull ID"
COM_PATCHTESTER_NO_CREDENTIALS="No user credentials are saved, this will allow only 60 requests to the GitHub API per hour. Saving user credentials will allow 5,000 requests per hour."
COM_PATCHTESTER_NO_ITEMS="No data has been retrieved from GitHub, please click the 'Fetch Data' button in the toolbar to retrieve the open pull requests."
COM_PATCHTESTER_NOT_APPLIED="Not Applied"
COM_PATCHTESTER_OPEN_IN_GITHUB="Open in GitHub"
COM_PATCHTESTER_OPEN_IN_JOOMLACODE="Open in JoomlaCode"
COM_PATCHTESTER_REPO_IS_GONE="The patch could not be applied because the repository is missing"
COM_PATCHTESTER_REQUIREMENT_HTTPS="HTTPS wrappers must be enabled"
COM_PATCHTESTER_REQUIREMENT_OPENSSL="The OpenSSL extension must be installed and enabled in your php.ini"

View File

@ -1,4 +1,4 @@
; Joomla! Project
; Joomla! Project
; Copyright (C) 2011 - 2012 Ian MacLennan, Copyright (C) 2013 Open Source Matters, Inc. All rights reserved.
; License GNU General Public License version 2 or later
; Note : All ini files need to be saved as UTF-8
@ -11,35 +11,33 @@ COM_PATCHTESTER_APPLY_OK="Patch appliqué avec succès"
COM_PATCHTESTER_APPLY_PATCH="Appliquer le Patch"
COM_PATCHTESTER_COMPONENT_DESC="Valeurs de Configuration de Joomla! Patch Tester"
COM_PATCHTESTER_COMPONENT_LABEL="Joomla! Patch Tester"
COM_PATCHTESTER_CONFIGURATION="Réglages de Joomla! Patch Tester"
COM_PATCHTESTER_CONFIGURATION="Paramètres de Joomla! Patch Tester"
COM_PATCHTESTER_CONFLICT_S="Le Patch n'a pu être appliqué car il génère un conflit avec le Patch précédemment appliqué : %s"
COM_PATCHTESTER_FIELD_CACHE_DESC="L'activation de la mise en cache permettera d'enregistrer localement les données GitHub pour une durée spécifiée"
COM_PATCHTESTER_FIELD_CACHE_LABEL="Activer la mise en cache"
COM_PATCHTESTER_FIELD_CACHE_LIFETIME_DESC="La durée (en minutes) avant que le cache ne soit réinitialisé"
COM_PATCHTESTER_FIELD_CACHE_LIFETIME_LABEL="Durée de vie du Cache"
COM_PATCHTESTER_FIELD_GH_PASSWORD_LABEL="Mot de passe du Compte GitHub"
COM_PATCHTESTER_FIELD_GH_PASSWORD_DESC="Mot de passe entré dans le champ pour vous connecter à votre "_QQ_"Compte GitHub"_QQ_". Note : les comptes utilisant les doubles facteurs d'authentification ne fonctionneront pas avec ce composant."
COM_PATCHTESTER_FIELD_GH_PASSWORD_DESC="Mot de passe utilisé pour vous connecter à votre "_QQ_"Compte GitHub"_QQ_". Note : les comptes utilisant les doubles facteurs d'authentification ne fonctionneront pas avec ce composant."
COM_PATCHTESTER_FIELD_GH_USER_LABEL="Compte GitHub"
COM_PATCHTESTER_FIELD_GH_USER_DESC="Nom du compte GitHub nécessaire pour se connecter à l'API"
COM_PATCHTESTER_FIELD_ORG_LABEL="Nom d'Utilisateur GitHub"
COM_PATCHTESTER_FIELD_ORG_DESC="Nom du compte GitHub pour lequel les demandes de Pull seront effectuées"
COM_PATCHTESTER_FIELD_REPO_LABEL="Dépôt GitHub"
COM_PATCHTESTER_FIELD_REPO_DESC="Nom du dépôt GitHub pour lequel les demandes de Pull seront effectuées"
COM_PATCHTESTER_FIELD_REPO_DESC="Nom du répertoire de dépôt GitHub pour lequel les demandes de Pull seront effectuées"
COM_PATCHTESTER_FILE_DELETED_DOES_NOT_EXIST_S="Le fichier désigné pour la suppression n'existe pas : %s"
COM_PATCHTESTER_FILE_MODIFIED_DOES_NOT_EXIST_S="Le fichier désigné pour modification n'existe pas : %s"
COM_PATCHTESTER_JOOMLACODE_ISSUE="Référence JoomlaCode"
COM_PATCHTESTER_PULL_ID="ID de Pull"
COM_PATCHTESTER_NO_CREDENTIALS="Aucune information d'identification d'utilisateur n'est sauvegardée, ce qui autorise uniquement 60 requêtes par heure à l'API GitHub. La sauvegarde des informations d'identification utilisateur autorisera 5.000 requêtes par heure."
COM_PATCHTESTER_NOT_APPLIED="Non Appliqué"
COM_PATCHTESTER_OPEN_IN_GITHUB="Ouvrir dans GitHub"
COM_PATCHTESTER_OPEN_IN_JOOMLACODE="Ouvrir dans JoomlaCode"
COM_PATCHTESTER_PURGE_CACHE="Purger le Cache"
COM_PATCHTESTER_PURGE_FAIL="L'opération de nettoyage ne s'est pas déroulée avec succès, le fichier %s n'a pas été supprimé."
COM_PATCHTESTER_PURGE_FAIL_1="L'opération de nettoyage ne s'est pas déroulée avec succès, le fichier %s n'a pas été supprimé."
COM_PATCHTESTER_PURGE_NA="Aucun fichier en cache à supprimer."
COM_PATCHTESTER_PURGE_SUCCESS="L'opération de nettoyage s'est déroulée avec succès, le fichier %s a été supprimé."
COM_PATCHTESTER_PURGE_SUCCESS_1="L'opération de nettoyage s'est déroulée avec succès, le fichier %s a été supprimé."
COM_PATCHTESTER_REPO_IS_GONE="Le Patch n'a pas pu être appliqué car le dépôt est manquant"
COM_PATCHTESTER_REPO_IS_GONE="Le Patch n'a pas pu être appliqué car le répertoire de dépôt est manquant"
COM_PATCHTESTER_REVERT_OK="Patch retiré avec succès"
COM_PATCHTESTER_REVERT_PATCH="Retirer le Patch"
COM_PATCHTESTER_SEARCH_IN_PULL_ID="ID de Pull"

View File

@ -0,0 +1,46 @@
; Joomla! Project
; Copyright (C) 2011 - 2012 Ian MacLennan, Copyright (C) 2013 - 2014 Open Source Matters, Inc. All rights reserved.
; License GNU General Public License version 2 or later
; Note : All ini files need to be saved as UTF-8
COM_PATCHTESTER="Joomla! Patch Tester"
COM_PATCHTESTER_API_LIMIT_ACTION="De GitHub API limiet is overschreden voor deze bron, kan niet verbinden met GitHub om de verzochte actie uit te voeren. De limiet zal worden hersteld op %s"
COM_PATCHTESTER_API_LIMIT_LIST="De GitHub API limiet is overschreden voor deze bron, kan niet verbinden met GitHub om de bijgewerkte data op te halen. De limiet zal worden hersteld op %s"
COM_PATCHTESTER_APPLIED="Toegepast"
COM_PATCHTESTER_APPLY_OK="Patch is met succes toegepast"
COM_PATCHTESTER_APPLY_PATCH="Patch toepassen"
COM_PATCHTESTER_COMPONENT_DESC="Joomla! Patch Tester Configuratie Waarden"
COM_PATCHTESTER_COMPONENT_LABEL="Joomla! Patch Tester"
COM_PATCHTESTER_CONFIGURATION="Joomla! Patch Tester Instellingen"
COM_PATCHTESTER_CONFLICT_S="De patch kan niet worden toegepast omdat er een conflict is met de eerder toegepaste patch: %s"
COM_PATCHTESTER_ERROR_APPLIED_PATCHES="Kan geen data ophalen van GitHub als er patches zijn toegepast. Maak de patches ongedaan alvorens door te gaan."
COM_PATCHTESTER_ERROR_GITHUB_FETCH="Fout bij het ophalen van de pull request vanaf GitHub: %s"
COM_PATCHTESTER_ERROR_INSERT_DATABASE="Fout bij het opslaan van de pull request in de database: %s"
COM_PATCHTESTER_FETCH_SUCCESSFUL="Pull requests met succes opgehaald."
COM_PATCHTESTER_FIELD_GH_PASSWORD_LABEL="GitHub wachtwoord"
COM_PATCHTESTER_FIELD_GH_PASSWORD_DESC="Wachtwoord voor het account ingevoerd in het "_QQ_"GitHub Account"_QQ_" veld. Opgelet! Accounts die gebruik maken van Twee Factor Authenticatie werken niet met dit component."
COM_PATCHTESTER_FIELD_GH_TOKEN_DESC="Gebruik dit veld om de GitHub API Token in te vullen in plaats van een gebruikersnaam en wachtwoord. Opgelet! Dit is verplicht als voor je account Twee Factor Authenticatie is ingeschakeld."
COM_PATCHTESTER_FIELD_GH_TOKEN_LABEL="GitHub Token"
COM_PATCHTESTER_FIELD_GH_USER_LABEL="GitHub gebruikersnaam"
COM_PATCHTESTER_FIELD_GH_USER_DESC="De GitHub gebruikersnaam om mee aan te melden"
COM_PATCHTESTER_FIELD_ORG_LABEL="GitHub project eigenaar"
COM_PATCHTESTER_FIELD_ORG_DESC="De gebruikersnaam of organisatie op GitHub waar pull requests gemonitord worden"
COM_PATCHTESTER_FIELD_REPO_LABEL="GitHub project repository"
COM_PATCHTESTER_FIELD_REPO_DESC="Naam van de repository op GitHub waar pull requests gemonitord worden"
COM_PATCHTESTER_FILE_DELETED_DOES_NOT_EXIST_S="Het bestand wat gemarkeerd staat om te verwijderen bestaat niet: %s"
COM_PATCHTESTER_FILE_MODIFIED_DOES_NOT_EXIST_S="Het bestand wat gemarkeerd staat om te wijzigen bestaat niet: %s"
COM_PATCHTESTER_FILTER_SEARCH_DESCRIPTION="Filter de lijst op titel of ID."
COM_PATCHTESTER_PULL_ID="Pull ID"
COM_PATCHTESTER_NO_CREDENTIALS="Er zijn geen gebruiker gegevens opgeslagen, hierdoor kunnen er maar 60 verzoeken per uur naar GitHub worden verstuurd. Het opslaan van gebruiker gegevens verhoogd de limiet naar 5.000 verzoeken per uur."
COM_PATCHTESTER_NO_ITEMS="Er zijn nog geen gegevens opgehaald van GitHub, klik op de 'Gegevens ophalen' knop in de knoppenbalk om de openstaande pull requests op te halen."
COM_PATCHTESTER_NOT_APPLIED="Niet toegepast"
COM_PATCHTESTER_OPEN_IN_GITHUB="Open in GitHub"
COM_PATCHTESTER_REPO_IS_GONE="De patch kan niet worden toegepast omdat de repository kwijt is"
COM_PATCHTESTER_REQUIREMENT_HTTPS="HTTPS wrappers moeten aan staan"
COM_PATCHTESTER_REQUIREMENT_OPENSSL="De OpenSSL extensie moet geïnstalleerd en ingeschakeld zijn in de php.ini"
COM_PATCHTESTER_REQUIREMENTS_HEADING="Niet aan alle vereisten voldaan"
COM_PATCHTESTER_REQUIREMENTS_NOT_MET="Het systeem voldoet niet aan alle eisen om de Patch Tester extensie te kunnen draaien:"
COM_PATCHTESTER_REVERT_OK="Patch met succes ongedaan gemaakt"
COM_PATCHTESTER_REVERT_PATCH="Patch ongedaan maken"
COM_PATCHTESTER_TEST_THIS_PATCH="Test deze patch"
COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Gegevens ophalen"

View File

@ -0,0 +1,11 @@
; Joomla! Project
; Copyright (C) 2011 - 2012 Ian MacLennan, Copyright (C) 2013 - 2014 Open Source Matters, Inc. All rights reserved.
; License GNU General Public License version 2 or later
; Note : All ini files need to be saved as UTF-8
COM_PATCHTESTER="Joomla! Patch Tester"
COM_PATCHTESTER_COULD_NOT_INSTALL_OVERRIDES="Kan geen template overrides installeren voor deze templates: %s"
COM_PATCHTESTER_COULD_NOT_REMOVE_OVERRIDES="Kan de template overrides niet verwijderen voor deze templates: %s"
COM_PATCHTESTER_ERROR_INSTALL_JVERSION="De Joomla! Patch Tester vereist versie %s of nieuwer van Joomla!"
COM_PATCHTESTER_XML_DESCRIPTION="Extensie voor het beheer van pull request testen"

View File

@ -147,7 +147,7 @@ class Com_PatchtesterInstallerScript
if (is_dir($tmplRoot))
{
// If there's a failure in copying the overrides, log it to the error array
if (!JFolder::copy($source, $destination))
if (!JFolder::copy($source, $destination, '', true))
{
$errorTemplates[] = ucfirst($template);
}

View File

@ -47,9 +47,6 @@ $listDirn = $this->escape($this->state->get('list.direction'));
<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" />
</th>
<th class="title nowrap center">I</th>
<th class="title nowrap center">
<?php echo JText::_('COM_PATCHTESTER_JOOMLACODE_ISSUE'); ?>
</th>
<th width="20%" class="title nowrap center">
<?php echo JText::_('JSTATUS'); ?>
</th>

View File

@ -35,21 +35,6 @@ foreach ($this->items as $i => $item) :
endif;
?>
</td>
<td class="center">
<?php if ($item->joomlacode_issue) :
$title = ' title="Open link::' . JText::_('COM_PATCHTESTER_OPEN_IN_JOOMLACODE') . '"';
if (is_int($item->joomlacode_issue)) :
echo '<a href="http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=';
echo $item->joomlacode_issue . '"' . $title . ' class="modal hasTip" rel="{handler: \'iframe\', size: {x: 900, y: 500}}">';
echo '[#' . $item->joomlacode_issue . ']</a>';
else :
echo '<a href="' . $item->joomlacode_issue . '"' . $title;
echo ' class="modal hasTip" rel="{handler: \'iframe\', size: {x: 900, y: 500}}">';
echo '[#joomlacode]</a>';
endif;
endif; ?>
</td>
<td class="center">
<?php if ($patch && $patch->applied) : ?>
<span class="label label-success">