Skip to content

Commit

Permalink
Version 0.2.0, added: Translated Magento Connect Downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
MaWoScha committed Feb 10, 2015
1 parent 1d60689 commit f56d69d
Show file tree
Hide file tree
Showing 43 changed files with 2,753 additions and 4 deletions.
1 change: 1 addition & 0 deletions MagentoConnect.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ <h3>Mitarbeit erwünscht / Cooperation wanted / Cooperación deseada</h3>
<h3>ChangeLog</h3>
<ul>
<li><strong>0.1.0:</strong> Basisversion, only a Framework.</li>
<li><strong>0.2.0:</strong> Added: Translated Magento Connect Downloader</li>
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package German_LocalePack
* @authors MaWoScha <mawoscha@siempro.co, http://www.siempro.co/>
* @developer MaWoScha <mawoscha@siempro.co, http://www.siempro.co/>
* @version 0.1.0
* @version 0.2.0
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class German_LocalePackDe_Block_System_Config_Form_Fieldset_Magentoconnectmanager
Expand All @@ -16,7 +16,23 @@ public function render(Varien_Data_Form_Element_Abstract $element)

$html = $this->_getHeaderHtml($element);
$html .= "<p style='font-weight:bold;'>".$helper->__("To install the translation for the Magento Connect Manager, proceed as follows:")."</p>";
$html .= "<p>".$helper->__("Currently not available")."</p>";
$html .= "<ol style='list-style-position: outside; list-style-type: decimal; margin-left:18px;'>";
$html .= "<li>".$helper->__('In your Magento root directory in the subfolder "%s" rename the folder "%s" into "%s".',
"/downloader",
"template",
"template_original" );
$html .= "</li>";
$html .= "<li>".$helper->__("The directory");
$html .= "<ul style='list-style-position: outside; list-style-type: disc; margin-left:18px;'>";
$html .= '<li>"template_de" '.$helper->__("or").'</li>';
$html .= '<li>"'.$helper->__("from").' Magento 1.5.x "template_de_1.5" '.$helper->__("or").'</li>';
$html .= '<li>"'.$helper->__("from").' Magento 1.7.x "template_de_1.7"</li></ul>';
$html .= $helper->__('rename into "template"').'.</li>';
$html .= "</ol>";
$html .= "<p>".$helper->__("The Magento Connect Manager should be changed to German now.")."</p>";
$html .= "<p><strong style='font-weight: bold; color:red; margin-top:20pt;'>";
$html .= $helper->__("Please note:")."</strong> ".$helper->__('If Magento is updated, in particular the module "Mage_Downloader", the settings of the Connect Manager will be overwritten!')."<br />";
$html .= $helper->__('The same applies to the TinyMCE editor. Run in the case a "Reinstall" the language pack and repeat the described steps.')."</p>";
$html .= $this->_getFooterHtml($element);

return $html;
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/German/LocalePackDe/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<config>
<modules>
<German_LocalePackDe>
<version>0.1.0</version>
<version>0.2.0</version>
<locale>de_DE</locale>
<title>German (Germany) Language Pack</title>
<link_git>https://github.com/riconeitzel/German_LocalePack_de_DE</link_git>
Expand Down
11 changes: 11 additions & 0 deletions app/locale/de_DE/German_LocaleDe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@
"In order to ensure the translation Magento coverage, please see the information in the lower paragraphs!","Um Magento flächendeckend übersetzen zu können, beachten Sie bitte auch die Infos in den unteren Bereichen!"
"powered by","bereitgestellt von"
"and","und"
"Translate Magento Connect Manager","Magento Connect Manager übersetzen"
"To install the translation for the Magento Connect Manager, proceed as follows:","Um die Übersetzung für den Magento Connect Manager zu installieren, gehen Sie bitte wie folgt vor:"
"In your Magento root directory in the subfolder ""%s"" rename the folder ""%s"" into ""%s"".","In Ihrem Magento-Hauptverzeichnis im Unterordner ""%s"" den Ordner ""%s"" umbenennen in ""%s""."
"The directory","Das Verzeichnis"
"or","bzw."
"from","von"
"rename into ""template""","in ""template"" umbenennen"
"The Magento Connect Manager should be changed to German now.","Der Magento Connect Manager sollte jetzt auf <span style='color:red'>deutsch</span> umgestellt sein."
"Please note:","Bitte beachten:"
"If Magento is updated, in particular the module ""Mage_Downloader"", the settings of the Connect Manager will be overwritten!","Wenn Magento aktualisiert wird, insbesondere das Modul ""Mage_Downloader"", werden die Einstellungen des Connect Managers überschrieben!"
"The same applies to the TinyMCE editor. Run in the case a ""Reinstall"" the language pack and repeat the described steps.","Gleiches gilt auch für den TinyMCE-Editor. Führen Sie in dem Fall ein ""Reinstall"" des Sprachpakets durch und wiederholen die geschilderten Schritte."
"Using your own translations","Eigene Übersetzungen nutzen"
"Recommended extensions","Empfohlene Erweiterungen"
"The installed language pack only provides translations of in Magento existing texts. If you want to prepare your Magento store on the legal requirements in %s or expand common payment methods, we recommend to install the following additional extensions.","Das installierte Sprachpaket liefert lediglich Übersetzungen der in Magento vorhandenen Texte. Wenn Sie Ihren Magento Shop auf die rechtlichen Anforderungen in %s vorbereiten oder um verbreitete Zahlungsarten erweitern möchten, dann empfehlen wir Ihnen zusätzlich folgende Erweiterungen zu installieren."
Expand Down
11 changes: 11 additions & 0 deletions app/locale/en_US/German_LocaleDe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@
"In order to ensure the translation Magento coverage, please see the information in the lower paragraphs!","In order to ensure the translation Magento coverage, please see the information in the lower paragraphs!"
"powered by","powered by"
"and","and"
"Translate Magento Connect Manager","Translate Magento Connect Manager"
"To install the translation for the Magento Connect Manager, proceed as follows:","To install the translation for the Magento Connect Manager, proceed as follows:"
"In your Magento root directory in the subfolder ""%s"" rename the folder ""%s"" into ""%s"".","In your Magento root directory in the subfolder ""%s"" rename the folder ""%s"" into ""%s""."
"The directory","The directory"
"or","or"
"from","from"
"rename into ""template""","rename into ""template"""
"The Magento Connect Manager should be changed to German now.","The Magento Connect Manager should be changed to <span style='color:red'>German</span> now."
"Please note:","Please note:"
"If Magento is updated, in particular the module ""Mage_Downloader"", the settings of the Connect Manager will be overwritten!","If Magento is updated, in particular the module ""Mage_Downloader"", the settings of the Connect Manager will be overwritten!"
"The same applies to the TinyMCE editor. Run in the case a ""Reinstall"" the language pack and repeat the described steps.","The same applies to the TinyMCE editor. Run in the case a ""Reinstall"" the language pack and repeat the described steps."
"Using your own translations","Using your own translations"
"Recommended extensions","Recommended extensions"
"The installed language pack only provides translations of in Magento existing texts. If you want to prepare your Magento store on the legal requirements in %s or expand common payment methods, we recommend to install the following additional extensions.","The installed language pack only provides translations of in Magento existing texts. If you want to prepare your Magento store on the legal requirements in %s or expand common payment methods, we recommend to install the following additional extensions."
Expand Down
11 changes: 11 additions & 0 deletions app/locale/es_ES/German_LocaleDe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@
"In order to ensure the translation Magento coverage, please see the information in the lower paragraphs!","Con el fin de asegurar la cobertura de traducción Magento, por favor consulte la información de los párrafos más abajo!"
"powered by","proporcionado por"
"and","y"
"Translate Magento Connect Manager","Traducir Gestor Magento Connect"
"To install the translation for the Magento Connect Manager, proceed as follows:","Para instalar la traducción para el Administrador de Magento Connect, haga lo siguiente:"
"In your Magento root directory in the subfolder ""%s"" rename the folder ""%s"" into ""%s"".","En el directorio raíz de Magento en la subcarpeta ""%s"" renombra la carpeta ""%s"" en ""%s""."
"The directory","El directorio"
"or","o"
"from","de"
"rename into ""template""","renombrar a ""template"""
"The Magento Connect Manager should be changed to German now.","El Magento Connect Manager se debe estar encendido al <span style='color:red'>Alemán</span> ahora."
"Please note:","Tenga en cuenta:"
"If Magento is updated, in particular the module ""Mage_Downloader"", the settings of the Connect Manager will be overwritten!","Si se actualiza Magento, en particular, el módulo ""Mage_Downloader"", se sobrescribirá la configuración del Connect Manager!"
"The same applies to the TinyMCE editor. Run in the case a ""Reinstall"" the language pack and repeat the described steps.","Lo mismo se aplica al editor TinyMCE. Ejecutar en el caso de un ""Reinstall"" del paquete de idioma y repetir los pasos descritos."
"Using your own translations","Usando sus propias traducciones"
"Recommended extensions","Extensiones recomendadas"
"The installed language pack only provides translations of in Magento existing texts. If you want to prepare your Magento store on the legal requirements in %s or expand common payment methods, we recommend to install the following additional extensions.","El paquete de idioma instalado sólo ofrece traducciones de los textos existentes en Magento. Si desea preparar su tienda Magento en los requisitos legales en %s o ampliar los métodos de pago comunes, entonces le recomendamos que instale las siguientes extensiones adicionales."
Expand Down
11 changes: 11 additions & 0 deletions app/locale/fr_FR/German_LocaleDe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@
"In order to ensure the translation Magento coverage, please see the information in the lower paragraphs!","Afin d'assurer la couverture de la traduction Magento, s'il vous plaît voir les informations dans les paragraphes plus bas!"
"powered by","alimenté par"
"and","et"
"Translate Magento Connect Manager","Traduire Magento Connect Manager"
"To install the translation for the Magento Connect Manager, proceed as follows:","Pour installer la traduction pour le gestionnaire de Magento Connect, procédez comme suit:"
"In your Magento root directory in the subfolder ""%s"" rename the folder ""%s"" into ""%s"".","Dans votre répertoire racine de Magento dans le sous-répertoire ""%s"" renommer le répertoire ""%s"" en ""%s""."
"The directory","Le répertoire"
"or","ou"
"from","de"
"rename into ""template""","renommer en ""template"""
"The Magento Connect Manager should be changed to German now.","La Magento Connect Manager doit maintenant être changé en <span style='color:red'>allemand</span>."
"Please note:","Notez s'il vous plaît:"
"If Magento is updated, in particular the module ""Mage_Downloader"", the settings of the Connect Manager will be overwritten!","If Magento is updated, in particular the module ""Mage_Downloader"", the settings of the Connect Manager will be overwritten!"
"The same applies to the TinyMCE editor. Run in the case a ""Reinstall"" the language pack and repeat the described steps.","The same applies to the TinyMCE editor. Run in the case a ""Reinstall"" the language pack and repeat the described steps."
"Using your own translations","Utilisation de vos propres traductions"
"Recommended extensions","Extensions recommandées"
"The installed language pack only provides translations of in Magento existing texts. If you want to prepare your Magento store on the legal requirements in %s or expand common payment methods, we recommend to install the following additional extensions.","Le pack de langue installée seulement fournit des traductions de textes existants dans Magento. Si vous voulez préparer votre boutique Magento sur les exigences juridiques en %s ou développer des modes de paiement, nous vous recommandons d'installer les extensions suivantes."
Expand Down
11 changes: 11 additions & 0 deletions app/locale/pt_PT/German_LocaleDe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@
"In order to ensure the translation Magento coverage, please see the information in the lower paragraphs!","A fim de garantir a cobertura de tradução Magento, por favor, consulte as informações abaixo de parágrafos!"
"powered by","distribuído por"
"and","e"
"Translate Magento Connect Manager","Traduzir Gestão Magento Connect"
"To install the translation for the Magento Connect Manager, proceed as follows:","Para instalar a tradução para Magento Connect Manager, faça o seguinte:"
"In your Magento root directory in the subfolder ""%s"" rename the folder ""%s"" into ""%s"".","No diretório raiz do Magento na subdiretório ""%s"" renomeie diretório ""%s"" no ""%s""."
"The directory","O diretório"
"or","ou"
"from","de"
"rename into ""template""","renomear uma ""template"""
"The Magento Connect Manager should be changed to German now.","O Magento Connect Manager deve ser alterado para <span style='color:red'>Alemán</span> agora."
"Please note:","Observe:"
"If Magento is updated, in particular the module ""Mage_Downloader"", the settings of the Connect Manager will be overwritten!","Si se actualiza Magento, en particular, el módulo ""Mage_Downloader"", se sobrescribirá la configuración del Connect Manager!"
"The same applies to the TinyMCE editor. Run in the case a ""Reinstall"" the language pack and repeat the described steps.","Lo mismo se aplica al editor TinyMCE. Ejecutar en el caso de un ""Reinstall"" del paquete de idioma y repetir los pasos descritos."
"Using your own translations","Usando suas próprias traduções"
"Recommended extensions","Extensões recomendadas"
"The installed language pack only provides translations of in Magento existing texts. If you want to prepare your Magento store on the legal requirements in %s or expand common payment methods, we recommend to install the following additional extensions.","O pacote de idiomas instalados apenas fornece traduções de textos existentes no Magento. Se você quiser preparar sua loja Magento sobre os requisitos legais na %s ou expandir os métodos de pagamento comuns, então nós recomendamos que você instale as seguintes extensões adicionais."
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"map": [
["./app/code/community/German/LocalePackDe", "./app/code/community/German/LocalePackDe"],
["./app/etc/modules/German_LocalePackDe.xml", "./app/etc/modules/German_LocalePackDe.xml"],
["./downloader/template_de_1.5", "./downloader/template_de_1.5"],
["./downloader/template_de_1.7", "./downloader/template_de_1.7"],
["./app/locale/de_DE/German_LocaleDe.csv", "./app/locale/de_DE/German_LocaleDe.csv"],
["./app/locale/en_US/German_LocaleDe.csv", "./app/locale/en_US/German_LocaleDe.csv"],
["./app/locale/es_ES/German_LocaleDe.csv", "./app/locale/es_ES/German_LocaleDe.csv"],
Expand Down
121 changes: 121 additions & 0 deletions downloader/template_de_1.5/connect/iframe.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category design
* @package default
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
<a name="connect_iframe"></a>

<div id="connect_iframe_container" style="display:none;">
<input id="connect_iframe_scroll" type="checkbox" checked="checked"/> <label for="connect_iframe_scroll">Auto-Scrollen der Konsolen-Inhalte</label><br/>
<iframe id="connect_iframe" name="connect_iframe" src="<?php echo $this->url('empty') ?>" style="width:100%; height:300px;" frameborder="no"></iframe>
</div>

<script type="text/javascript">
function disableInputs(flag)
{
top.$$('input, select, button').each(function(el){
if (el.id!='connect_iframe_scroll') el.disabled = flag;
});
if (flag) {
window.onbeforeunload = confirmExit;
} else {
window.onbeforeunload = null;
}
}

function confirmExit()
{
return "Ein Connect-Prozess läuft gerade.\nWenn Sie das Fenster schließen oder zu einer anderen Seite bewegen, wird die Installation abgebrochen.";
}

function onSubmit(formObj)
{
if(formObj)formObj.action = addParamToUrl(formObj.action, 'maintenance', (top.$('maintenance').checked === true ? '1' : '0'));
top.$('connect_iframe_success').style.display = 'none';
top.$('connect_iframe_failure').style.display = 'none';
top.$('connect_iframe_container').style.display = '';
top.location.href = '#connect_iframe';
return true;
}

function onSuccess()
{
var div = top.$('connect_iframe_success');
if (div) {
top.location.href = top.location.href.replace(/#.*$/, '')+'#connect_iframe_result';
div.style.display = '';
}
}

function onFailure()
{
var div = top.$('connect_iframe_failure');
if (div) {
top.location.href = top.location.href.replace(/#.*$/, '')+'#connect_iframe_result';
div.style.display = '';
}
}

function checkForUpdateClick()
{
url = addParamToUrl(location.href, 'maintenance', (top.$('maintenance').checked === true ? '1' : '0'));
url = addParamToUrl(url, 'updates', 'yes');
location.href = url;
}

function addParamToUrl(url, param, value)
{
var anchor = null, params = {};
var anchorPos = url.search(/#/);
if (anchorPos != -1) {
anchor = url.substr(anchorPos + 1);
url = url.substr(0, anchorPos);
}
getPos = url.search(/\?/);
if (getPos != -1) {
url.substr(getPos + 1).split('&').each(function(pv){
if (pv != 'loggedin') {
pv = pv.split('=');
params[pv[0]] = pv[1];
}
});
url = url.substr(0, getPos);
}

params[param] = value;

if (params) {
url += '?';
for (k in params) {
url += k + '=' + params[k] + '&';
}
url = url.substr(0, url.length - 1);
}
if (anchor) {
url = url + '#' + anchor;
}

return url;
}
</script>
Loading

0 comments on commit f56d69d

Please sign in to comment.