Skip to content

Commit

Permalink
Version 0.1.0, not so much functionality, but framework is done
Browse files Browse the repository at this point in the history
  • Loading branch information
MaWoScha committed Feb 9, 2015
0 parents commit 1d60689
Show file tree
Hide file tree
Showing 18 changed files with 886 additions and 0 deletions.
35 changes: 35 additions & 0 deletions MagentoConnect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<h2>Deutsches Sprachpaket für Magento Commerce</h2>
<p>(Magento Community Modules - German (Germany) Language Pack)</p>
<p>(Paquete de idioma alemán para Magento Commerce)</p>

<h3>Wichtiger Hinweis zur Magento Version 1.9</h3>
<p>Magento Inc. hat mit der 1.9 ein eigenes, teilautomatisch übersetztes, Sprachpaket vorinstalliert. Wer das LocalePack_de_DE benutzen möchte, muss vorher den Ordner <strong>app/locale/de_DE</strong> löschen, damit dieses Sprachpaket installiert werden kann.</p>

<h4>Important note on Magento Version 1.9</h4>
<p>Magento Inc. has pre-installed with the 1.9 private, semi-automatically translated, language pack. Who wants to use the LocalePack_de_DE must first delete the <strong>app/locale/de_DE</strong> folder so that this language pack can be installed.</p>

<h4>Nota importante acerca Magento Versión 1.9</h4>
<p>Magento Inc. tiene con la versión 1.9 su propio, semi-automáticamente traducido, paquete de idiomas como preinstalado. El que quiere usar el LocalePack_de_DE, primero debe eliminar la carpeta <strong>app/locale/de_DE</strong> para que el paquete de idioma se puede instalar.</p>

<h3>Fehler gefunden? / Mistake found? / ¿Encontrado un problema?</h3>
<p>Fehler können auf GitHub gemeldet werden / Errors may be reported on GitHub / Los errores pueden ser reportados en GitHub
<a href="https://github.com/MaWoScha/German_LocalePack_de_DE/issues">https://github.com/MaWoScha/German_LocalePack_de_DE/issues</a></p>

<h3>Mitarbeit erwünscht / Cooperation wanted / Cooperación deseada</h3>
<p>Informationen zum Sprachpaket finden sich im dazugehörigen GitHub-Repository unter<br />
<a href="https://github.com/MaWoScha/German_LocalePack_de_DE">https://github.com/MaWoScha/German_LocalePack_de_DE</a></p>
<p>Bei Mitarbeit am Sprachpaket <strong>bitte PullRequests immer für den preview-Branch</strong> schicken. Danke :-)</p>

<p>Information about language package can be found in the corresponding GitHub repository<br />
<a href="https://github.com/MaWoScha/German_LocalePack_de_DE">https://github.com/MaWoScha/German_LocalePack_de_DE</a></p>
<p>For employees on this language pack <strong>please PullRequests always send for the preview-Branch</strong>. Thank you :-)</p>

<p>Información sobre el paquete de idioma se puede encontrar en el correspondiente repositorio GitHub bajo<br />
<a href="https://github.com/MaWoScha/German_LocalePack_de_DE">https://github.com/MaWoScha/German_LocalePack_de_DE</a></p>
<p>Para los colaboradores en este paquete de idioma, por favor, <strong>mandan PullRequests siempre al preview-Branch</strong>. Gracias :-)</p>


<h3>ChangeLog</h3>
<ul>
<li><strong>0.1.0:</strong> Basisversion, only a Framework.</li>
</ul>
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Deutsches Sprachpaket für Magento (CE)
(Magento Community Modules - German (Germany) Language Pack)<br />
(Módulo de Comunidad Magento - Paquete de idioma alemán)

Dieses Sprachpaket wird von MaWoScha verwaltet.<br />
This language package is managed by MaWoScha.<br />
Este paquete de idioma está gestionado por MaWoScha.


# Git-Verwaltung / Administration of Git / Gestión de Git

Dieses Git-Repository kann genutzt werden für:

* Reine Informationszwecke
* Entwicklung aktueller Versionen
* Behebung von Fehlern in bereits veröffentlichten Versionen
* Alternative Downloads (unabhängig von den offiziellen Quellen)
* Eigene Sprachversion basierend auf de_DE
* Melden von Fehlern und PullRequests
* Aktives Mitwirken am Sprachpaket

## Melden von Fehlern / Reporting bugs / Cómo informar de problemas

Wir freuen uns, wenn dieses Repository aktiv dazu genutzt, wird Fehler zu melden (Issue) und zu beheben (PullRequest im _preview_-Branch).

Oben dann einfach auf "Issues" klicken -> "New Issue", um ein Anliegen zu übermitteln. Bestehende Anliegen hingegen können auch ohne GitHub-Account eingesehen werden, inklusive deren Bearbeitungsstand.

_Beachten Sie dazu bitte:_ Wenn hier in den Versionen Veränderungen eingepflegt werden, dann entsprechen diese nicht mehr dem Stand des Sprachpakets, welches Sie über Magento Connect installieren können. Es ist leider nicht möglich dort veröffentlichte Releases nachträglich zu bearbeiten. :-)

_Hinweis:_ PullRequests sind bitte immer im Preview-Branch zu senden.

## Aktives Mitwirken am Sprachpaket / Participate actively in Language Pack / Participar activamente en el paquete de idioma

Lust am Sprachpaket mitzuwirken und einen (zumindest kostenlosen) Github- und/oder Crowdin.net-Account? Dann einfach MaWoScha kontaktieren und wir stimmen eine eventuelle Zusammenarbeit ab.

Viel Spaß mit dem deutschen Magento Sprachpaket! / Enjoy the German Language Pack! / ¡Disfrute el paquete de idioma alemán!

MaWoScha
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
/**
* @category German
* @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
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class German_LocalePackDe_Block_System_Config_Form_Fieldset_Extensions
extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
{
public function render(Varien_Data_Form_Element_Abstract $element)
{
$helper = Mage::helper("localepackde");

$html = $this->_getHeaderHtml($element);
$html .= "<p>".$helper->__("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.",
$helper->__("Germany"))."</p>";
$html .= "<hr style='margin-top:15px; margin-bottom:5px;' />";
$html .= "<h3 style='margin-top:20px; margin-bottom:10xp;'>".$helper->__("Specific market adjustment for")." ".$helper->__("German and European stores")."</h3>";
$html .= "<dl>";
$html .= "<dt><b>FireGento: Mage Setup</b> - <a href='http://www.magentocommerce.com/magento-connect/catalog/product/view/id/20763/' target='_blank'>Mage Setup</a> ".$helper->__("on")." Magento Connect</dt>";
$html .= "<dd>".$helper->__("Extension Key for the")." Connect Manager: <span style='color:#EA7601; font-style:italic;'>http://connect20.magentocommerce.com/community/FireGento_MageSetup</span></dd>";
$html .= "<dt><b>FireGento: German Setup</b> - <a href='http://www.magentocommerce.com/magento-connect/german-setup-6623.html' target='_blank'>German Setup</a> ".$helper->__("on")." Magento Connect</dt>";
$html .= "<dd>".$helper->__("Extension Key for the")." Connect Manager: <span style='color:#EA7601; font-style:italic;'>http://connect20.magentocommerce.com/community/FireGento_GermanSetup</span></dd>";
$html .= "<dt><b>Magento DE: German Store</b> - <a href='https://github.com/integer-net/GermanStoreConfig' target='_blank'>Configuration for Magento CE</a></dt>";
$html .= "<dd>".$helper->__("Preconfigured for the German market")."</dd>";
$html .= "<dt><b>nr-apps</b> - <a href='http://de.nr-apps.com/store/magento-de.html' target='_blank'>Magento DE</a></dt>";
$html .= "<dd>".$helper->__("Preconfigured for the German market")."</dd>";
$html .= "</dl>";
$html .= "<h3 style='margin-top:20px; margin-bottom:10xp;'>".$helper->__("Common payment methods")."</h3>";
$html .= "<dl>";
$html .= "<dt><b>".$helper->__("Debit / direct debit")."</b> - <a href='http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2606/' target='_blank'>DebitPayment</a> ".$helper->__("on")." Magento Connect</dt>";
$html .= "<dd>".$helper->__("Extension Key for the")." Connect Manager: <span style='color:#EA7601; font-style:italic;'>http://connect20.magentocommerce.com/community/DebitPayment</span></dd>";
$html .= "<dt><b>".$helper->__("Cash On Delivery")."</b> - <a href='http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2360/' target='_blank'>CashOnDelivery</a> ".$helper->__("on")." Magento Connect</dt>";
$html .= "<dd>".$helper->__("Extension Key for the")." Connect Manager: <span style='color:#EA7601; font-style:italic;'>http://connect20.magentocommerce.com/community/CashOnDelivery</span></dd>";
$html .= "<dt><b>".$helper->__("Payment in advance")."</b> - <a href='http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2298/' target='_blank'>BankPayment</a> ".$helper->__("on")." Magento Connect</dt>";
$html .= "<dd>".$helper->__("Extension Key for the")." Connect Manager: <span style='color:#EA7601; font-style:italic;'>http://connect20.magentocommerce.com/community/BankPayment</span></dd>";
$html .= "</dl>";
$html .= $this->_getFooterHtml($element);

return $html;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php
/**
* @category German
* @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
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class German_LocalePackDe_Block_System_Config_Form_Fieldset_Instructions
extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
{
public function render(Varien_Data_Form_Element_Abstract $element)
{
$nodepath = "modules/German_LocalePackDe";
$helper = Mage::helper("localepackde");

$html = $this->_getHeaderHtml($element);
$html .= "<p style='font-weight:bold;'>";
$html .= $helper->__("The %s language pack in version %s has been successfully installed.",
(string)Mage::app()->getConfig()->getNode($nodepath.'/locale'),
(string)Mage::app()->getConfig()->getNode($nodepath.'/version') );
$html .= "</p>";
$html .= "<p style='margin-top:20pt;'>";
$html .= $helper->__("On the <a href='%s'>Magento Connect page of the German language pack</a>, you can find more information on the latest versions.",
(string)Mage::app()->getConfig()->getNode($nodepath.'/link_mage') );
$html .= "</p>";
$html .= "<p style='margin-top:20pt;'>";
$html .= $helper->__("For those interested there is a <a href='%s'>GitHub repository</a>. It is provided for the following purposes:",
(string)Mage::app()->getConfig()->getNode($nodepath.'/link_git') );
$html .= "</p>";

$html .= "<ul style='list-style-position: outside; list-style-type: disc; margin-left:18px;'>";
$html .= "<li>".$helper->__("Development of current language pack versions")."</li>";
$html .= "<li>".$helper->__("Report an error / send in patches, also happy for both published releases")."</li>";
$html .= "<li>".$helper->__("Alternative Downloads (regardless of official sources)")."</li>";
$html .= "<li>".$helper->__("Copy / forks for their own purposes")."</li>";
$html .= "<li>".$helper->__("Active participation in the language pack")."</li>";
$html .= "<li>".$helper->__("View Preview versions & test")."</li>";
$html .= '</ul>';

$html .= "<p style='margin-top:20pt;'>";
$html .= $helper->__("Note for detailed information, the README file on the GitHub page.");
$html .= "</p>";
$html .= "<p style='font-weight:bold;'>";
$html .= $helper->__("In order to ensure the translation Magento coverage, please see the information in the lower paragraphs!");
$html .= "</p>";
$html .= "<p style='text-align:right;'>";
$html .= $helper->__("powered by")." <a href='http://blog.siempro.co/' target='_blank'>MaWoScha</a>";
$html .= "</p>";
$html .= $this->_getFooterHtml($element);

return $html;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* @category German
* @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
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class German_LocalePackDe_Block_System_Config_Form_Fieldset_Magentoconnectmanager
extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
{
public function render(Varien_Data_Form_Element_Abstract $element)
{
$helper = Mage::helper("localepackde");

$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 .= $this->_getFooterHtml($element);

return $html;
}
}
12 changes: 12 additions & 0 deletions app/code/community/German/LocalePackDe/Helper/Data.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/**
* @category German
* @package German_LocalePack
* @authors MaWoScha <mawoscha@siempro.co, http://www.siempro.co/>, Rico Neitzel <rico@buro71a.de, http://www.buro71a.de/>
* @developer MaWoScha <mawoscha@siempro.co, http://www.siempro.co/>, Rico Neitzel <rico@buro71a.de, http://www.buro71a.de/>
* @version 0.1.0
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class German_LocalePackDe_Helper_Data extends Mage_Core_Helper_Abstract {

}
55 changes: 55 additions & 0 deletions app/code/community/German/LocalePackDe/Model/Observer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php
/**
* @category German
* @package German_LocalePack
* @authors MaWoScha <mawoscha@siempro.co, http://www.siempro.co/>, Rico Neitzel <rico@buro71a.de, http://www.buro71a.de/>
* @developer MaWoScha <mawoscha@siempro.co, http://www.siempro.co/>, Rico Neitzel <rico@buro71a.de, http://www.buro71a.de/>
* @version 0.1.0
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class German_LocalePackDe_Model_Observer {

public function adminhtmlControllerActionPredispatchStart() {

$helper = Mage::helper("localepackde");
if ($this->localeMatchesMagento() && Mage::getSingleton('admin/session')->isLoggedIn()) {
Mage::getSingleton('core/session')->addNotice($helper->__('Attention: Your Locale Pack doesn\'t match your Magento Version. <a href="'.$this->getManageUrl().'">Get more information here.</a>'));
}
}

/**
* Version number of current locale
*
* @return string
*/
public function getVersionNumber() {

return (string)Mage::app()->getConfig()->getNode('modules/German_LocalePackDe/version');
}

/**
* Check if Magento Version Number is the beginning of Locale Version Number
*
* @return bool
*/
public function localeMatchesMagento() {

$magento = Mage::getVersion();
$locale = $this->getVersionNumber();

if (strpos($magento, $locale) !== false) {
return true;
}

return false;
}

/**
* Get URL of AdminPanel LocalePack section
*
* @return string
*/
public function getManageUrl() {
return Mage::helper("adminhtml")->getUrl('adminhtml/system_config/edit', array('section'=>'localepackde'));
}
}
101 changes: 101 additions & 0 deletions app/code/community/German/LocalePackDe/etc/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?xml version="1.0"?>
<!--
/**
* @category German
* @package German_LocalePack
* @authors MaWoScha <mawoscha@siempro.co, http://www.siempro.co/>, Rico Neitzel <rico@buro71a.de, http://www.buro71a.de/>
* @developer MaWoScha <mawoscha@siempro.co, http://www.siempro.co/>, Rico Neitzel <rico@buro71a.de, http://www.buro71a.de/>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->
<config>
<modules>
<German_LocalePackDe>
<version>0.1.0</version>
<locale>de_DE</locale>
<title>German (Germany) Language Pack</title>
<link_git>https://github.com/riconeitzel/German_LocalePack_de_DE</link_git>
<link_mage>http://www.magentocommerce.com/magento-connect/locale-mage-community-de-de.html</link_mage>
<mage_key>http://connect20.magentocommerce.com/community/Locale_Mage_community_de_DE</mage_key>
</German_LocalePackDe>
</modules>

<global>
<models>
<localepackde>
<class>German_LocalePackDe_Model</class>
</localepackde>
</models>
<helpers>
<localepackde>
<class>German_LocalePackDe_Helper</class>
</localepackde>
</helpers>
<blocks>
<localepackde>
<class>German_LocalePackDe_Block</class>
</localepackde>
</blocks>
<events>
<adminhtml_controller_action_predispatch_start>
<observers>
<localepackde>
<class>localepackde/observer</class>
<method>adminhtmlControllerActionPredispatchStart</method>
</localepackde>
</observers>
</adminhtml_controller_action_predispatch_start>
</events>
</global>

<default>
<localepackde>
<notification>
<url>https://github.com/riconeitzel/German_LocalePack_de_DE</url>
</notification>
</localepackde>
<magesetup>
<default_country>DE</default_country>
</magesetup>
</default>

<adminhtml>
<translate>
<modules>
<German_LocalePackDe>
<files>
<default>German_LocaleDe.csv</default>
</files>
</German_LocalePackDe>
</modules>
</translate>
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<system>
<children>
<config>
<children> <!--
<localepacks translate="title" module="localepackde">
<title>Language Packs</title>
<children> -->
<localepackde translate="title" module="localepackde">
<title>German (Germany) Language Pack</title>
</localepackde> <!--
</children>
</localepacks> -->
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</adminhtml>

</config>
Loading

0 comments on commit 1d60689

Please sign in to comment.