33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-25 11:40:00 +00:00

Merge remote-tracking branch 'upstream/master'

This commit is contained in:
eaxs 2012-07-06 06:27:41 +02:00
commit 622ddc7115
15 changed files with 216 additions and 73 deletions

View File

@ -28,6 +28,7 @@ class jedcheckerControllerUploads extends JController
*/
public function upload()
{
JRequest::checkToken() or die( 'Invalid Token' );
$appl = JFactory::getApplication();
$file = JRequest::getVar('extension', '', 'files', 'array');
if ($file['tmp_name']) {
@ -71,6 +72,7 @@ class jedcheckerControllerUploads extends JController
*/
public function unzip()
{
JRequest::checkToken() or die( 'Invalid Token' );
$appl = JFactory::getApplication();
// if folder doesn't exist - create it!
if(!JFolder::exists($this->pathUnzipped)) {
@ -122,7 +124,7 @@ class jedcheckerControllerUploads extends JController
$this->unzipAll($unzip);
}
}
} else {
} else if (!$iterator->isDot()) {
$this->unzipAll($file->getPathname());
}

View File

@ -10,6 +10,7 @@
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<description><![CDATA[Jedchecker will check your extension files and will let you know in advance if there are any possible problems with your extension for submitting to the JED]]>
</description>
<scriptfile>script.php</scriptfile>
<administration>
<menu>COM_@@COMPONENTNAMEUPPERCASE@@</menu>
<files folder="administrator/components/com_@@COMPONENTNAME@@">

View File

@ -13,8 +13,9 @@ class jedcheckerRulesHtmlindexes {
public $folders = array();
public $indexes = array();
public function check($startFolder){
$this->findHtml($startFolder);
public function check($startFolder)
{
$this->findHtml($startFolder, 1);
/**
* let us "merge" the 2 arrays
@ -23,7 +24,7 @@ class jedcheckerRulesHtmlindexes {
$indexes = array_replace($this->folders, $this->indexes);
echo '<span class="rule">'.JText::_('COM_JEDCHECKER_RULE_SE1') . '</span><br />';
if(count($indexes)) {
if(count($indexes) && in_array(false, $indexes)) {
foreach($indexes as $key => $index) {
if(!$index) {
echo $key . '<br />';
@ -42,30 +43,58 @@ class jedcheckerRulesHtmlindexes {
* + it also saves all folders names in the folders array (folder_name => false)
* @param $start
*/
public function findHtml($start) {
$iterator = new RecursiveDirectoryIterator($start);
public function findHtml($start, $root = 0)
{
// there should be a better way to find out if the main directory has an index.html file...
if(file_exists($start.'/index.html')) {
$this->folders[$start] = true;
} else {
$this->folders[$start] = false;
}
// array of system folders (regex)
// will match paths ending with these folders
$system_folders = array(
'administrator',
'components',
'language',
'language/.*',
'media',
'modules',
'plugins',
'plugins/content',
'plugins/editors',
'plugins/editors-xtd',
'plugins/finder',
'plugins/search',
'plugins/system',
'plugins/user'
);
foreach($iterator as $file){
if($file->isFile()) {
if($file->getFileName() == 'index.html') {
// fill an array with the tables that contain an index.html file
$this->indexes[$file->getPath()] = true;
$iterator = new DirectoryIterator($start);
foreach ($iterator as $file) {
if ($file->isFile()) {
continue;
}
$path = $file->getPathname();
// set the path to the root start path only for first time
if ($root && $file->getFileName() == '.') {
$path = $start;
} else if ($file->isDot()) {
continue;
}
$this->folders[$path] = true;
// only check index.html in non-system folders
if (!preg_match('#/('.implode('|', $system_folders).')$#i', str_replace('\\', '/', $path))) {
if (!file_exists($path.'/index.html')) {
$this->folders[$path] = false;
}
} else {
//let us save all folders in an array
$this->folders[$file->getPathname()] = false;
$this->findHtml($file->getPathname());
// set parent to true too
$this->folders[dirname($path)] = true;
}
// search in subfolders if not same as start
if ($path != $start) {
$this->findHtml($path);
}
}
}
}

View File

@ -68,33 +68,43 @@ class jedcheckerRulesJexec
{
$content = (array) file($file);
$defines = array(
'_JEXEC',
'JPATH_PLATFORM',
'JPATH_BASE',
'AKEEBAENGINE',
'WF_EDITOR'
);
foreach($content AS $line)
{
$pos_2 = strpos($line, '_JEXEC');
foreach ($defines AS $define)
{
// Search for "defined"
$pos_1 = stripos($line, 'defined');
// Skip the line if "defined" is not found
if ($pos_1 === false) {
continue;
}
// Skip the line if _JEXEC is not found
if($pos_2 === false) {
// Alternatively search for JPATH_PLATFORM
$pos_2 = strpos($line, 'JPATH_PLATFORM');
// Search for "die".
// "or" may not be present depending on syntax
$pos_3 = stripos($line, 'die');
// Skip the line if "die" is not found
if ($pos_3 === false) {
continue;
}
// Nothing found, skip the line
// Search for the define
$pos_2 = strpos($line, $define);
// Skip the line if the define is not found
if($pos_2 === false) continue;
}
// Search for "defined" and "die". "or" may not be present
// depending on syntax
$pos_1 = stripos($line, 'defined');
$pos_3 = stripos($line, 'die');
// Both words must be present
if($pos_1 === false || $pos_3 === false) {
continue;
}
// Check the position of the words
if($pos_2 > $pos_1 && $pos_3 > $pos_2) {
unset($content);
return true;
// Check the position of the words
if($pos_2 > $pos_1 && $pos_3 > $pos_2) {
unset($content);
return true;
}
}
}

View File

@ -7,4 +7,33 @@
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die('Restricted access');
class com_jedcheckerInstallerScript
{
protected $extension = 'com_jedchecker';
function preflight( $type, $parent ) {
$this->parent = $parent;
if (version_compare(PHP_VERSION, '5.3.6', '<')) {
$this->loadLanguage();
Jerror::raiseWarning(null, JText::sprintf('COM_JEDCHECKER_PHP_VERSION_INCOMPATIBLE', PHP_VERSION, '5.3.6'));
return false;
}
}
public function loadLanguage()
{
$extension = $this->extension;
$jlang =& JFactory::getLanguage();
$path = $this->parent->getParent()->getPath('source') . '/administrator';
$jlang->load($extension, $path, 'en-GB', true);
$jlang->load($extension, $path, $jlang->getDefault(), true);
$jlang->load($extension, $path, null, true);
$jlang->load($extension . '.sys', $path, 'en-GB', true);
$jlang->load($extension . '.sys', $path, $jlang->getDefault(), true);
$jlang->load($extension . '.sys', $path, null, true);
}
}

View File

@ -61,6 +61,9 @@ JHtml::script('media/com_jedchecker/js/police.js');
<p><?php echo JText::_('COM_JEDCHECKER_PEOPLE_THAT_HAVE_HELPED_WITH_THE_DEVELOPMENT'); ?></p>
<ul>
<li>Tobias Kuhn (<a href="http://projectfork.net" target="_blank">projectfork</a>)</li>
<li>Peter van Westen (<a href="http://www.nonumber.nl" target="_blank">NoNumber</a>)</li>
<li>Alain Rivest (<a href="http://aldra.ca" target="_blank">Aldra.ca</a>)</li>
<li>OpenTranslators (<a href="http://opentranslators.org" target="_blank">opentranslators.org</a>)</li>
</ul>
</div>
</div>
@ -79,27 +82,6 @@ JHtml::script('media/com_jedchecker/js/police.js');
<span class="rule"><?php echo JText::_('COM_JEDCHECKER_RULE_SE1'); ?></span><br />
<?php echo JText::_('COM_JEDCHECKER_RULE_SE1_DESC'); ?>
</p>
<p>
<?php echo JText::_('COM_JEDCHECKER_RULE_SE1_MORE_INFO_INTERPRETING'); ?> <br />
<?php echo JText::_('COM_JEDCHECKER_RULE_SE1_MORE_INFO_INTERPRETING1'); ?><br />
<i>administrator/components/your_component</i> <br/>
<i>components/your_component</i> <br/>
<?php echo JText::_('COM_JEDCHECKER_RULE_SE1_MORE_INFO_INTERPRETING2'); ?><br />
<i>administrator</i><br/>
<i>administrator/components</i><br/>
<i>administrator/components/your_component</i><br/>
<i>components/</i><br/>
<i>components/your_component</i><br/>
<?php echo JText::_('COM_JEDCHECKER_RULE_SE1_MORE_INFO_INTERPRETING3'); ?><br />
<i>administrator/components/your_component</i><br/>
<i>components/your_component</i><br/>
<?php echo JText::_('COM_JEDCHECKER_RULE_SE1_MORE_INFO_INTERPRETING4'); ?>
</p>
</li>
<li>
<p>

View File

@ -0,0 +1,22 @@
; Language files have to start with semicolon (;) otherwise we have problems with transifex
COM_JEDCHECKER_UPLOAD_WAS_SUCCESSFUL="Upload lykkedes"
COM_JEDCHECKER_UNZIP_SUCCESS="Udpakning lykkedes! Du kan nu fortsætte ved at klikke på check knappen!"
COM_JEDCHECKER_UNZIP_FAILED="Udpakning mislykkedes"
COM_JEDCHECKER_CONGRATS="Tillykke! Hvis du anvender denne komponent så har du sikkert udviklet en Joomla!® udvidelse! Nu kommer den "_QQ_"besværlige"_QQ_" del - at få den listet i Joomla Extension Directory (JED). JED har strenge krav til de udvidelser som bliver listet der. Disse krav kan findes <a href='%s' target='_blank'>her</a>. I øjeblikket testes udvidelser manuelt for kode problemer. Denne komponent er et forsøg på at simplificere dit og JED redaktørernes liv ved automatisk at tjekke koden for almindelige fejl i udvidelser."
COM_JEDCHECKER_CODE_STANDARDS="Vores mål er dog ikke kun at teste udvidelserne for almindelige kodefejl, der forhindrer det i at blive listet i JED. Vores mål er, at også have check for kodestandarder som <a href='%s' target='_blank'>JPlatform har</a>. Dette vil sikre, at joomla udviklere er klar over JPlatform kodestandarder og dette kunne hæve overliggeren for kvalitet endnu højere i vores joomla community! Til dette har vi brug for din hjælp! Tag et kig på <a href='%s' target='_blank'>github projektsiden</a>. Fork komponenten! Tilføj din kodekontrol og send os dine pull anmodninger!"
COM_JEDCHECKER_HOW_TO_USE="Hvordan kan du så bruge denne komponent???"
COM_JEDCHECKER_STEP1="Upload din komponent/programudvidelse/modul zip-fil ved hjælp af upload formularen nedenfor"
COM_JEDCHECKER_STEP2="Klik på udpak"
COM_JEDCHECKER_STEP3="Klik på check og gennemgå resultaterne"
COM_JEDCHECKER_WALL_OF_HONOR="Bidragsydere"
COM_JEDCHECKER_PEOPLE_THAT_HAVE_HELPED_WITH_THE_DEVELOPMENT="Folk, der har hjulpet med udviklingen af denne komponent"
COM_JEDCHECKER_HOW_TO_INTERPRET_RESULTS="Hvordan fortolkes resultaterne?"
COM_JEDCHECKER_RULE_SE1="Regel:SE1 - Udvidelse mangler index.html fil i alle mapper"
COM_JEDCHECKER_RULE_SE1_DESC="Hvis du ønsker din udvidelse listet på JED, bør du sikre dig, at alle dine udvidelse mapper indeholder en index.html fil. - Udviklere bryder sig overhovedet ikke om denne regel - det udfylder din pakke med index.html filer, som forsinker installationsprocessen osv. Men index.html filer giver beskyttelse for dårligt konfigurerede webhosts (man kunne indvende, om vi skulle forsøge at gøre noget for dem), men så længe joomla CMS leveres med disse filer vil JED kræve at udvidelser også har dem."
COM_JEDCHECKER_RULE_PH2="Regel PH2 - PHP filer mangler JEXEC sikkerhed"
COM_JEDCHECKER_RULE_PH2_DESC="Alle PHP filer i din udvidelse skal have en defined('_JEXEC') or die(); sætning i begyndelsen af hver fil. Dette sikrer, at filen ikke kan åbnes uden for joomla installationen og på denne måde øges sikkerheden for dit websted."
; COM_JEDCHECKER_RULE_PH3="Rule PH3 - License tag missing or incorrect in XML install file"
; COM_JEDCHECKER_RULE_PH3_DESC="An install file should include the license information in a license-tag. The license must be GPL or GPL compatible."
COM_JEDCHECKER_EVERYTHING_SEEMS_TO_BE_FINE_WITH_THAT_RULE="Tillykke! Alt synes at være fint med denne regel!"
COM_JEDCHECKER_DEVELOPED_BY="JEDchecker er primært udviklet af <a href='%s'>compojoom.com</a>"
; COM_JEDCHECKER_PHP_VERSION_INCOMPATIBLE="JEDchecker is incompatible with the PHP version that you run on this site: %s. You would need at least PHP Version %s. Aborting installation"

View File

@ -0,0 +1,2 @@
; Language files have to start with semicolon (;) otherwise we have problems with transifex
COM_JEDCHECKER="JEDchecker"

View File

@ -13,16 +13,10 @@ COM_JEDCHECKER_PEOPLE_THAT_HAVE_HELPED_WITH_THE_DEVELOPMENT="People that have he
COM_JEDCHECKER_HOW_TO_INTERPRET_RESULTS="How to interpret the results?"
COM_JEDCHECKER_RULE_SE1="Rule SE1 - Extension is missing index.html file in all folders"
COM_JEDCHECKER_RULE_SE1_DESC="If you want your extension to be listed on the JED, then you should make sure that all your extension folders contain an index.html file. - Developers don't like this rule at all - it fills your package with index.html files, which in terms slows down the installation process etc. But index.html files provide protection for badly configured hosts (one could argue if we need to try to do anything for those), but as long the joomla CMS comes with those files the JED is going to require that extensions also have those."
COM_JEDCHECKER_RULE_SE1_MORE_INFO_INTERPRETING="The JEDchecker checks every single folder in your package for the presence of index.html files,but this doesn't mean that all folders need to have an index.html file. For example - language folders don't need to have an index.html file, because the joomla CMS has index.html files in those locations.If your package has the following structure:"
COM_JEDCHECKER_RULE_SE1_MORE_INFO_INTERPRETING1="Properly reading the JEDchecker results for SE1:"
COM_JEDCHECKER_RULE_SE1_MORE_INFO_INTERPRETING2="If the JEDchecker tells you that you have missing index.html in the following folders:"
COM_JEDCHECKER_RULE_SE1_MORE_INFO_INTERPRETING3="You actually need to worry only about"
COM_JEDCHECKER_RULE_SE1_MORE_INFO_INTERPRETING4="as those 2 folders won't have the index.html files when your component gets installed"
COM_JEDCHECKER_RULE_PH2="Rule PH2 - PHP Files missing JEXEC security"
COM_JEDCHECKER_RULE_PH2_DESC="All the PHP files in your extension needs to have a defined('_JEXEC') or die(); statement in the beginning of each file. This ensures that the file cannot be opened outside of the joomla installation and this way increases the security of your site."
COM_JEDCHECKER_RULE_PH3="Rule PH3 - License tag missing or incorrect in XML install file"
COM_JEDCHECKER_RULE_PH3_DESC="An install file should include the license information in a license-tag. The license must be GPL or GPL compatible."
COM_JEDCHECKER_EVERYTHING_SEEMS_TO_BE_FINE_WITH_THAT_RULE="Congrats! Everything seems to be fine with that rule!"
COM_JEDCHECKER_DEVELOPED_BY="JEDchecker is primary developed by <a href='%s'>compojoom.com</a>"
COM_JEDCHECKER_PHP_VERSION_INCOMPATIBLE="JEDchecker is incompatible with the PHP version that you run on this site: %s. You would need at least PHP Version %s. Aborting installation"

View File

@ -0,0 +1,22 @@
; Language files have to start with semicolon (;) otherwise we have problems with transifex
COM_JEDCHECKER_UPLOAD_WAS_SUCCESSFUL="Upload completato"
COM_JEDCHECKER_UNZIP_SUCCESS="Decompressione completata! Adesso vai avanti e premi il pulsante Controlla!"
COM_JEDCHECKER_UNZIP_FAILED="Decompressione fallita"
COM_JEDCHECKER_CONGRATS="Congratulazioni! Se usi questo componente, molto probabilmente hai sviluppato un'estensione per Joomla!®. Adesso arriva la parte "_QQ_"dura"_QQ_" - pubblicarla nella Joomla Extension Directory (JED). La JED ha dei requisiti severi per le estensioni che vengono pubblicate. Questi requisiti possono esssere trovati <a href='%s' target='_blank'>qui</a>. Attualmente le estensioni sono testate manualmente per verificare problemi di codice. Questo componente è un tentativo per semplificare la vita degli editori della JED, controllando automaticamente gli errori più comuni nel codice delle estensioni."
COM_JEDCHECKER_CODE_STANDARDS="Ad ogni modo il nostro obiettivo non è solo quello di testare le estensioni contro gli errori comuni nel codice che impediscono la pubblicazione nella JED. Il nostro obiettivo è anche quello di avere dei controlli standard del codice come quelli che la <a href='%s' target='_blank'>JPlatform ha</a>. Ciò assicurerà che gli sviluppatori di estensioni per Joomla saranno attenti agli standard di programmazione di JPlatform e ciò potrà elevare la barra della qualità nella nostra comunità di Joomla sempre più in alto! Per questo abbiamo bisogno di te! Dai un'occhiata alla <a href='%s' target='_blank'>pagina del progetto su github</a>. Fai un fork del componente! Aggiungi i tuoi controlli del codice ed inviaci le tue richieste di pull!"
COM_JEDCHECKER_HOW_TO_USE="Come usare questo componente?"
COM_JEDCHECKER_STEP1="Carica il file zip del tuo componente/plugin/modulo utilizzando il modulo di upload sotto"
COM_JEDCHECKER_STEP2="Premi su Decomprimi"
COM_JEDCHECKER_STEP3="Premi su Controlla e rivedi i risultati"
COM_JEDCHECKER_WALL_OF_HONOR="Muro d'onore"
COM_JEDCHECKER_PEOPLE_THAT_HAVE_HELPED_WITH_THE_DEVELOPMENT="Persone che hanno contribuito allo sviluppo di questo componente"
COM_JEDCHECKER_HOW_TO_INTERPRET_RESULTS="Come interpretare i risultati?"
COM_JEDCHECKER_RULE_SE1="Regola:SE1 - L'estensione non dispone dei file index.html in tutte le cartelle"
COM_JEDCHECKER_RULE_SE1_DESC="Se vuoi che la tua estensione sia pubblicata nella JED, devi assicurarti che tutte le cartelle della tua estensione contengano un file index.html. - Gli sviluppatori non amano questa regola - dicendo che riempiendo il tuo pacchetto con i file index.html, si rallenta il processo d'installazione ecc. Ma i file index.html forniscono protezione per gli host configurati male (ci si potrebbe chiedere se si possa fare qualcosa per quelli), ma finché il CMS Joomla viene fornito con questi file, JED richiede che anche le estensioni li abbiano."
COM_JEDCHECKER_RULE_PH2="Regola PH2 - I file PHP non presentano la protezione JEXEC"
COM_JEDCHECKER_RULE_PH2_DESC="Tutti i file PHP nella tua estensioni devono avere definito uno statement ('_JEXEC') or die(); all'inizio di ogni file. Ciò assicura che il file non possa essere aperto all'esterno di un'installazione di Joomla ed in questo modo aumenta la sicurezza del tuo sito."
; COM_JEDCHECKER_RULE_PH3="Rule PH3 - License tag missing or incorrect in XML install file"
; COM_JEDCHECKER_RULE_PH3_DESC="An install file should include the license information in a license-tag. The license must be GPL or GPL compatible."
COM_JEDCHECKER_EVERYTHING_SEEMS_TO_BE_FINE_WITH_THAT_RULE="Congratulazioni! Sembra essere tutto ok con questa regola!"
COM_JEDCHECKER_DEVELOPED_BY="JEDchecker è sviluppato principalmente da <a href='%s'>compojoom.com</a>"
; COM_JEDCHECKER_PHP_VERSION_INCOMPATIBLE="JEDchecker is incompatible with the PHP version that you run on this site: %s. You would need at least PHP Version %s. Aborting installation"

View File

@ -0,0 +1,2 @@
; Language files have to start with semicolon (;) otherwise we have problems with transifex
COM_JEDCHECKER="JEDchecker"

View File

@ -0,0 +1,22 @@
; Language files have to start with semicolon (;) otherwise we have problems with transifex
COM_JEDCHECKER_UPLOAD_WAS_SUCCESSFUL="Upload bem sucedido"
COM_JEDCHECKER_UNZIP_SUCCESS="Descompactação bem sucedida! Vá adiante e clique no botão Checar!"
COM_JEDCHECKER_UNZIP_FAILED="A descompactação falhou"
; COM_JEDCHECKER_CONGRATS="Congratulations! If you use this component then you've most probably developed a Joomla!® extension! Now comes the "_QQ_"hard"_QQ_" part - getting it listed in the Joomla Extension Directory (JED). The JED has strict requirements to the extensions that get listed there. Those requirements can be found <a href='%s' target='_blank'>here</a>. Currently extensions are being manually tested for code problems. This component is an attempt to simplify your and the JED editors life's by automatically checking the code for common errors in extensions."
; COM_JEDCHECKER_CODE_STANDARDS="However our goal is not only to test the extensions against common code errors that prevent it from getting listed in the JED. Our goal is to also have code standards checks such as the <a href='%s' target='_blank'>JPlatform has</a>. This would ensure that joomla extension developers are aware of the JPlatform coding standards and this could raise the quality bar in our Joomla community even higher! For this we will need you! Have a look at the <a href='%s' target='_blank'>github project page</a>. Fork the component! Add your code checks and send us your pull requests!"
COM_JEDCHECKER_HOW_TO_USE="Como usar este componente???"
COM_JEDCHECKER_STEP1="Envie seu arquivo zip component/plugin/module utilizando o formulário de envio abaixo"
COM_JEDCHECKER_STEP2="Clique em descompactar"
COM_JEDCHECKER_STEP3="Clique em checar e veja os resultados"
COM_JEDCHECKER_WALL_OF_HONOR="Parede de honra"
COM_JEDCHECKER_PEOPLE_THAT_HAVE_HELPED_WITH_THE_DEVELOPMENT="Pessoas que contribuíram com o desenvolvimento deste componente"
COM_JEDCHECKER_HOW_TO_INTERPRET_RESULTS="Como interpretar os resultados?"
COM_JEDCHECKER_RULE_SE1="Regra:SE1 - Extensão sem o arquivo index.html em todas as pastas"
; COM_JEDCHECKER_RULE_SE1_DESC="If you want your extension to be listed on the JED, then you should make sure that all your extension folders contain an index.html file. - Developers don't like this rule at all - it fills your package with index.html files, which in terms slows down the installation process etc. But index.html files provide protection for badly configured hosts (one could argue if we need to try to do anything for those), but as long the joomla CMS comes with those files the JED is going to require that extensions also have those."
COM_JEDCHECKER_RULE_PH2="Regra PH2 - arquivos PHP sem segurança JEXEC"
COM_JEDCHECKER_RULE_PH2_DESC="Todos os arquivos PHP de sua extensão precisam ter uma afirmativa defined('_JEXEC') or die(); no início de cada arquivo. Isso assegura que o arquivo não possa ser aberto fora da instalação joomla e assim aumenta a segurança de seu site."
; COM_JEDCHECKER_RULE_PH3="Rule PH3 - License tag missing or incorrect in XML install file"
; COM_JEDCHECKER_RULE_PH3_DESC="An install file should include the license information in a license-tag. The license must be GPL or GPL compatible."
COM_JEDCHECKER_EVERYTHING_SEEMS_TO_BE_FINE_WITH_THAT_RULE="Parabéns! Tudo aparenta estar bem com essa regra!"
COM_JEDCHECKER_DEVELOPED_BY="JEDchecker é principalmente desenvolvido por <a href='%s'>compojoom.com</a>"
; COM_JEDCHECKER_PHP_VERSION_INCOMPATIBLE="JEDchecker is incompatible with the PHP version that you run on this site: %s. You would need at least PHP Version %s. Aborting installation"

View File

@ -0,0 +1,2 @@
; Language files have to start with semicolon (;) otherwise we have problems with transifex
COM_JEDCHECKER="JEDchecker"

View File

@ -0,0 +1,22 @@
; Language files have to start with semicolon (;) otherwise we have problems with transifex
COM_JEDCHECKER_UPLOAD_WAS_SUCCESSFUL="Carregamento bem sucedido"
COM_JEDCHECKER_UNZIP_SUCCESS="Descompactação bem sucedida! Continue e clique no botão Verificar!"
COM_JEDCHECKER_UNZIP_FAILED="A descompactação falhou"
; COM_JEDCHECKER_CONGRATS="Congratulations! If you use this component then you've most probably developed a Joomla!® extension! Now comes the "_QQ_"hard"_QQ_" part - getting it listed in the Joomla Extension Directory (JED). The JED has strict requirements to the extensions that get listed there. Those requirements can be found <a href='%s' target='_blank'>here</a>. Currently extensions are being manually tested for code problems. This component is an attempt to simplify your and the JED editors life's by automatically checking the code for common errors in extensions."
; COM_JEDCHECKER_CODE_STANDARDS="However our goal is not only to test the extensions against common code errors that prevent it from getting listed in the JED. Our goal is to also have code standards checks such as the <a href='%s' target='_blank'>JPlatform has</a>. This would ensure that joomla extension developers are aware of the JPlatform coding standards and this could raise the quality bar in our Joomla community even higher! For this we will need you! Have a look at the <a href='%s' target='_blank'>github project page</a>. Fork the component! Add your code checks and send us your pull requests!"
COM_JEDCHECKER_HOW_TO_USE="Como usar este componente?"
; COM_JEDCHECKER_STEP1="Upload your component/plugin/module zip file by using the upload form below"
COM_JEDCHECKER_STEP2="Clique em descompactar"
COM_JEDCHECKER_STEP3="Clique para rever os resultados"
COM_JEDCHECKER_WALL_OF_HONOR="Quadro de honra"
; COM_JEDCHECKER_PEOPLE_THAT_HAVE_HELPED_WITH_THE_DEVELOPMENT="People that have helped with the development of this component"
COM_JEDCHECKER_HOW_TO_INTERPRET_RESULTS="Como interpretar os resultados"
COM_JEDCHECKER_RULE_SE1="Regra:SE1 - Necessário incluir um ficheiro index.html em todas as pastas da extensão"
; COM_JEDCHECKER_RULE_SE1_DESC="If you want your extension to be listed on the JED, then you should make sure that all your extension folders contain an index.html file. - Developers don't like this rule at all - it fills your package with index.html files, which in terms slows down the installation process etc. But index.html files provide protection for badly configured hosts (one could argue if we need to try to do anything for those), but as long the joomla CMS comes with those files the JED is going to require that extensions also have those."
COM_JEDCHECKER_RULE_PH2="Regra PH2 - É necessário a verificação de segurança JEXEC em todos os ficheiros PHP"
; COM_JEDCHECKER_RULE_PH2_DESC="All the PHP files in your extension needs to have a defined('_JEXEC') or die(); statement in the beginning of each file. This ensures that the file cannot be opened outside of the joomla installation and this way increases the security of your site."
; COM_JEDCHECKER_RULE_PH3="Rule PH3 - License tag missing or incorrect in XML install file"
; COM_JEDCHECKER_RULE_PH3_DESC="An install file should include the license information in a license-tag. The license must be GPL or GPL compatible."
COM_JEDCHECKER_EVERYTHING_SEEMS_TO_BE_FINE_WITH_THAT_RULE="Parabéns! Parece estar tudo correto relativamente a esta regra"
COM_JEDCHECKER_DEVELOPED_BY="JEDchecker +e desenvolvido por <a href='%s'>compojoom.com</a>"
; COM_JEDCHECKER_PHP_VERSION_INCOMPATIBLE="JEDchecker is incompatible with the PHP version that you run on this site: %s. You would need at least PHP Version %s. Aborting installation"

View File

@ -0,0 +1,2 @@
; Language files have to start with semicolon (;) otherwise we have problems with transifex
COM_JEDCHECKER="JEDchecker"