-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 0.1.0, not so much functionality, but framework is done
- Loading branch information
0 parents
commit fa9d32e
Showing
16 changed files
with
732 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<h2>Spanisches Sprachpaket für Magento Commerce</h2> | ||
<p>(Magento Community Modules - Spanish (Colombia) Language Pack)</p> | ||
<p>(Paquete de idioma español para Magento Commerce)</p> | ||
|
||
<h3>Aviso / Hint / Hinweis</h3> | ||
<p>Magento viene en su configuración básica con Español de Castilla. Cualquier persona que desee utilizar Español columbiano, debe instalar el paquete de idioma <i>LocalePack_es_CO</i>.</p> | ||
<p>Magento comes in its basic configuration with Spanish from Spain. Anyone wishing to use Columbian Spanish, should install the language pack <i>LocalePack_es_CO</i>.</p> | ||
<p>Magento kommt in der Grundausstattung mit Spanisch aus Spanien daher. Wer kolumbianisches Spanisch nutzen möchte, sollte das Sprachpaket <i>LocalePack_es_CO</i> installieren.</p> | ||
|
||
<h3>¿Encontrado un problema? / Mistake found? / Fehler gefunden?</h3> | ||
<p>Los errores pueden ser reportados en GitHub / Errors may be reported on GitHub / Fehler können auf GitHub gemeldet werden | ||
<a href="https://github.com/MaWoScha/German_LocalePack_es_CO/issues">https://github.com/MaWoScha/German_LocalePack_es_CO/issues</a></p> | ||
|
||
<h3>Cooperación deseada / Cooperation wanted / Mitarbeit erwünscht</h3> | ||
<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_es_CO">https://github.com/MaWoScha/German_LocalePack_es_CO</a></p> | ||
<p>Para los colaboradores en este paquete de idioma, por favor, <strong>mandan PullRequests siempre al preview-Branch</strong>. Gracias :-)</p> | ||
|
||
<p>Information about language package can be found in the corresponding GitHub repository<br /> | ||
<a href="https://github.com/MaWoScha/German_LocalePack_es_CO">https://github.com/MaWoScha/German_LocalePack_es_CO</a></p> | ||
<p>For employees on this language pack <strong>please PullRequests always send for the preview-Branch</strong>. Thank you :-)</p> | ||
|
||
<p>Informationen zum Sprachpaket finden sich im dazugehörigen GitHub-Repository unter<br /> | ||
<a href="https://github.com/MaWoScha/German_LocalePack_es_CO">https://github.com/MaWoScha/German_LocalePack_es_CO</a></p> | ||
<p>Bei Mitarbeit am Sprachpaket <strong>bitte PullRequests immer für den preview-Branch</strong> schicken. Danke :-)</p> | ||
|
||
<h3>Más información / More Information / Mehr Hinweise</h3> | ||
<ul> | ||
<li><a href="http://blog.siempro.co/?p=105&lang=es">Internacionalización – Magento en varios idiomas</a></li> | ||
<li><a href="http://blog.siempro.co/?p=105&lang=en">Internationalization – Magento in several languages</a></li> | ||
<li><a href="http://blog.siempro.co/?p=105&lang=de">Internationalisierung – Magento in mehreren Sprachen</a></li> | ||
</ul> | ||
|
||
|
||
<h3>ChangeLog</h3> | ||
<ul> | ||
<li><strong>0.1.0:</strong> Basisversion, only a Framework.</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Spanisches Sprachpaket für Magento (CE) | ||
(Magento Community Modules - Spanish (Colombia) Language Pack)<br /> | ||
(Módulos de Magento Community - Paquete de idioma española) | ||
|
||
Este paquete de idioma está gestionado por MaWoScha.<br /> | ||
This language package is managed by MaWoScha.<br /> | ||
Dieses Sprachpaket wird von MaWoScha verwaltet. | ||
|
||
|
||
# Gestión de Git / Git-Verwaltung | ||
|
||
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 es_ES | ||
* Melden von Fehlern und PullRequests | ||
* Aktives Mitwirken am Sprachpaket | ||
|
||
## Cómo informar de problemas / Reporting bugs / Melden von Fehlern | ||
|
||
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 | ||
|
||
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 spanischen (Sprachvariante Kolumbien) Magento Sprachpaket! | ||
|
||
MaWoScha |
38 changes: 38 additions & 0 deletions
38
app/code/community/German/LocalePackCo/Block/System/Config/Form/Fieldset/Extensions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?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_LocalePackCo_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("localepackco"); | ||
|
||
$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->__("Colombia"))."</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->__("Colombian and Latin American stores")."</h3>"; | ||
$html .= "<dl>"; | ||
$html .= "<dt>".$helper->__("Currently not available")."</dt>"; | ||
$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; | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
app/code/community/German/LocalePackCo/Block/System/Config/Form/Fieldset/Instructions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?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_LocalePackCo_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_LocalePackCo"; | ||
$helper = Mage::helper("localepackco"); | ||
|
||
$modules = Mage::getConfig()->getNode('modules')->children(); | ||
$section_link = Mage::helper('adminhtml')->getUrl('adminhtml/system_config/edit', array('section'=>'general')); | ||
|
||
$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>"; | ||
if (!array_key_exists("German_LocaleFallback", $modules)) { | ||
$html .= "<p>".$helper->__("Note: Install the extension %s, so you can use %s as a <a href='%s'>fallback language</a>.", | ||
"es_ES", | ||
"<a href='https://github.com/MaWoScha/German_LocaleFallback'>German LocaleFallback</a>", | ||
$section_link )."</p>"; | ||
} else if (!array_key_exists("German_LocalePackEs", $modules)) { | ||
$html .= "<p>".$helper->__("Note: Install the language package %s to use it as a <a href='%s'>fallback language</a>.", | ||
"<a href='https://github.com/MaWoScha/German_LocalePack_es_ES'>German LocalePackEs</a>", | ||
$section_link )."</p>"; | ||
} | ||
$html .= "<p style='margin-top:20pt;'>"; | ||
$html .= $helper->__("On the <a href='%s'>Magento Connect page of the Spanish 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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_LocalePackCo_Helper_Data extends Mage_Core_Helper_Abstract { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_LocalePackCo_Model_Observer { | ||
|
||
public function adminhtmlControllerActionPredispatchStart() { | ||
|
||
$helper = Mage::helper("localepackco"); | ||
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_LocalePackCo/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'=>'localepackco')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
/** | ||
* @category German | ||
* @package German_LocalePack | ||
* @authors MaWoScha <mawoscha@siempro.co, http://www.siempro.co/> | ||
* @developer MaWoScha <mawoscha@siempro.co, http://www.siempro.co/> | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
--> | ||
<config> | ||
<modules> | ||
<German_LocalePackCo> | ||
<version>0.1.0</version> | ||
<locale>es_CO</locale> | ||
<title>Spanish (Colombia) Language Pack</title> | ||
<link_git>https://github.com/MaWoScha/German_LocalePack_es_CO</link_git> | ||
<link_mage></link_mage> | ||
</German_LocalePackCo> | ||
</modules> | ||
|
||
<global> | ||
<models> | ||
<localepackco> | ||
<class>German_LocalePackCo_Model</class> | ||
</localepackco> | ||
</models> | ||
<helpers> | ||
<localepackco> | ||
<class>German_LocalePackCo_Helper</class> | ||
</localepackco> | ||
</helpers> | ||
<blocks> | ||
<localepackco> | ||
<class>German_LocalePackCo_Block</class> | ||
</localepackco> | ||
</blocks> | ||
<events> | ||
<adminhtml_controller_action_predispatch_start> | ||
<observers> | ||
<localepackco> | ||
<class>localepackco/observer</class> | ||
<method>adminhtmlControllerActionPredispatchStart</method> | ||
</localepackco> | ||
</observers> | ||
</adminhtml_controller_action_predispatch_start> | ||
</events> | ||
</global> | ||
|
||
<default> | ||
<localepackco> | ||
<notification> | ||
<url>https://github.com/MaWoScha/German_LocalePack_es_CO</url> | ||
</notification> | ||
</localepackco> | ||
<magesetup> | ||
<default_country>CO</default_country> | ||
</magesetup> | ||
</default> | ||
|
||
<adminhtml> | ||
<layout> | ||
<updates> | ||
<localepackco> | ||
<files> | ||
<default>localepackco.xml</default> | ||
</files> | ||
</localepackco> | ||
</updates> | ||
</layout> | ||
<translate> | ||
<modules> | ||
<German_LocalePackCo> | ||
<files> | ||
<localepackco>German_LocaleCo.csv</localepackco> | ||
<default>German_LocaleEs.csv</default> | ||
</files> | ||
</German_LocalePackCo> | ||
</modules> | ||
</translate> | ||
<acl> | ||
<resources> | ||
<all> | ||
<title>Allow Everything</title> | ||
</all> | ||
<admin> | ||
<children> | ||
<system> | ||
<children> | ||
<config> | ||
<children> <!-- | ||
<localepacks translate="title" module="localepackco"> | ||
<title>Language Packs</title> | ||
<children> --> | ||
<localepackco translate="title" module="localepackco"> | ||
<title>Spanish (Colombia) Language Pack</title> | ||
</localepackco> <!-- | ||
</children> | ||
</localepacks> --> | ||
</children> | ||
</config> | ||
</children> | ||
</system> | ||
</children> | ||
</admin> | ||
</resources> | ||
</acl> | ||
</adminhtml> | ||
|
||
</config> |
Oops, something went wrong.