-
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 94cdeeb
Showing
18 changed files
with
821 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,48 @@ | ||
<h2>Brasilianisches Sprachpaket für Magento Commerce</h2> | ||
<p>(Magento Community Modules - Portuguese (Brasil) Language Pack)</p> | ||
<p>(Paquete de idioma portugués (Brasil) para Magento Commerce)</p> | ||
|
||
<h3>Aviso / Hint / Hinweis</h3> | ||
<p>Qualquer pessoa que pretenda utilizar Português do Brasil, você deve instalar o pacote de idioma <i>LocalePack_pt_BR</i>.</p> | ||
<p>Cualquier persona que desee utilizar portugués brasileño, debe instalar el paquete de idioma <i>LocalePack_pt_BR</i>.</p> | ||
<p>Anyone wishing to use Brazilian Portuguese, should install the language pack <i>LocalePack_pt_BR</i>.</p> | ||
<p>Wer brasilianisches Portugiesisch nutzen möchte, sollte das Sprachpaket <i>LocalePack_pt_BR</i> installieren.</p> | ||
|
||
<h3>Nota importante sobre Magento Versão 1.9 / Nota importante acerca Magento Versión 1.9 / Important note on Magento Version 1.9 / Wichtiger Hinweis zur Magento Version 1.9</h3> | ||
<p>Magento Inc. tem com sua própria versão 1.9, traduzido semi-automaticamente, pacote de idiomas pré-instalados. Quem quiser usar o LocalePack_pt_BR, você deve primeiro remover a pasta <strong>app/locale/pt_BR</strong> para o pacote de idiomas pode ser instalado.</p> | ||
<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_pt_BR, primero debe eliminar la carpeta <strong>app/locale/pt_BR</strong> para que el paquete de idioma se puede instalar.</p> | ||
<p>Magento Inc. has pre-installed with the 1.9 private, semi-automatically translated, language pack. Who wants to use the LocalePack_pt_BR must first delete the <strong>app/locale/pt_BR</strong> folder so that this language pack can be installed.</p> | ||
<p>Magento Inc. hat mit der 1.9 ein eigenes, teilautomatisch übersetztes, Sprachpaket vorinstalliert. Wer das LocalePack_pt_BR benutzen möchte, muss vorher den Ordner <strong>app/locale/pt_BR</strong> löschen, damit dieses Sprachpaket installiert werden kann.</p> | ||
|
||
<h3>Encontrado um problema? / ¿Encontrado un problema? / Mistake found? / Fehler gefunden?</h3> | ||
<p>Os erros podem ser relatados no GitHub / 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_pt_BR/issues">https://github.com/MaWoScha/German_LocalePack_pt_BR/issues</a></p> | ||
|
||
<h3>Cooperação desejado / Cooperación deseada / Cooperation wanted / Mitarbeit erwünscht</h3> | ||
<p>Informações sobre o pacote de idiomas pode ser encontrada no repositório GitHub sob correspondente<br /> | ||
<a href="https://github.com/MaWoScha/German_LocalePack_pt_BR">https://github.com/MaWoScha/German_LocalePack_pt_BR</a></p> | ||
<p>Para os empregados neste pacote de idiomas, por favor <strong>envie PullRequests sempre em preview-Branch</strong>. Obrigado :-)</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_pt_BR">https://github.com/MaWoScha/German_LocalePack_pt_BR</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_pt_BR">https://github.com/MaWoScha/German_LocalePack_pt_BR</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_pt_BR">https://github.com/MaWoScha/German_LocalePack_pt_BR</a></p> | ||
<p>Bei Mitarbeit am Sprachpaket <strong>bitte PullRequests immer für den preview-Branch</strong> schicken. Danke :-)</p> | ||
|
||
<h3>Mais informação / 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,39 @@ | ||
# Brasilianisches Sprachpaket für Magento (CE) | ||
(Magento Community Modules - Portuguese (Brazil) Language Pack)<br /> | ||
(Módulos de Magento Community - Paquete de idioma portugués) | ||
|
||
Este pacote de idioma é gerido por MaWoScha.<br /> | ||
Este paquete de idioma está gestionado por MaWoScha.<br /> | ||
This language package is managed by MaWoScha.<br /> | ||
Dieses Sprachpaket wird von MaWoScha verwaltet. | ||
|
||
|
||
# Git-Repository / 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 pt_PT | ||
* Melden von Fehlern und PullRequests | ||
* Aktives Mitwirken am Sprachpaket | ||
|
||
## Relatar problemas / 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 brasilianischen Magento Sprachpaket! | ||
|
||
MaWoScha |
38 changes: 38 additions & 0 deletions
38
app/code/community/German/LocalePackBr/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_LocalePackBr_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("localepackbr"); | ||
|
||
$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->__("Brazil"))."</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->__("Brazilian 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/LocalePackBr/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_LocalePackBr_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_LocalePackBr"; | ||
$helper = Mage::helper("localepackbr"); | ||
|
||
$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>.", | ||
"<a href='https://github.com/MaWoScha/German_LocaleFallback'>German LocaleFallback</a>", | ||
"pt_PT", | ||
$section_link )."</p>"; | ||
} else if (!array_key_exists("German_LocalePackPt", $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_pt_PT'>German LocalePackPt</a>", | ||
$section_link )."</p>"; | ||
} | ||
$html .= "<p style='margin-top:20pt;'>"; | ||
$html .= $helper->__("On the <a href='%s'>Magento Connect page of the Brazilian 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_LocalePackBr_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_LocalePackBr_Model_Observer { | ||
|
||
public function adminhtmlControllerActionPredispatchStart() { | ||
|
||
$helper = Mage::helper("localepackbr"); | ||
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_LocalePackBr/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'=>'localepackbr')); | ||
} | ||
} |
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_LocalePackBr> | ||
<version>0.1.0</version> | ||
<locale>pt_BR</locale> | ||
<title>Portuguese (Brazil) Language Pack</title> | ||
<link_git>https://github.com/MaWoScha/German_LocalePack_pt_BR</link_git> | ||
<link_mage>http://www.magentocommerce.com/magento-connect/magento-community-modules-portuguese-brazil-language-pack.html</link_mage> | ||
</German_LocalePackBr> | ||
</modules> | ||
|
||
<global> | ||
<models> | ||
<localepackbr> | ||
<class>German_LocalePackBr_Model</class> | ||
</localepackbr> | ||
</models> | ||
<helpers> | ||
<localepackbr> | ||
<class>German_LocalePackBr_Helper</class> | ||
</localepackbr> | ||
</helpers> | ||
<blocks> | ||
<localepackbr> | ||
<class>German_LocalePackBr_Block</class> | ||
</localepackbr> | ||
</blocks> | ||
<events> | ||
<adminhtml_controller_action_predispatch_start> | ||
<observers> | ||
<localepackbr> | ||
<class>localepackbr/observer</class> | ||
<method>adminhtmlControllerActionPredispatchStart</method> | ||
</localepackbr> | ||
</observers> | ||
</adminhtml_controller_action_predispatch_start> | ||
</events> | ||
</global> | ||
|
||
<default> | ||
<localepackbr> | ||
<notification> | ||
<url>https://github.com/MaWoScha/German_LocalePack_pt_BR</url> | ||
</notification> | ||
</localepackbr> | ||
<magesetup> | ||
<default_country>BR</default_country> | ||
</magesetup> | ||
</default> | ||
|
||
<adminhtml> | ||
<layout> | ||
<updates> | ||
<localepackbr> | ||
<files> | ||
<default>localepackbr.xml</default> | ||
</files> | ||
</localepackbr> | ||
</updates> | ||
</layout> | ||
<translate> | ||
<modules> | ||
<German_LocalePackBr> | ||
<files> | ||
<localepackbr>German_LocaleBr.csv</localepackbr> | ||
<default>German_LocalePt.csv</default> | ||
</files> | ||
</German_LocalePackBr> | ||
</modules> | ||
</translate> | ||
<acl> | ||
<resources> | ||
<all> | ||
<title>Allow Everything</title> | ||
</all> | ||
<admin> | ||
<children> | ||
<system> | ||
<children> | ||
<config> | ||
<children> <!-- | ||
<localepacks translate="title" module="localepackbr"> | ||
<title>Language Packs</title> | ||
<children> --> | ||
<localepackbr translate="title" module="localepackbr"> | ||
<title>Portuguese (Brazil) Language Pack</title> | ||
</localepackbr> <!-- | ||
</children> | ||
</localepacks> --> | ||
</children> | ||
</config> | ||
</children> | ||
</system> | ||
</children> | ||
</admin> | ||
</resources> | ||
</acl> | ||
</adminhtml> | ||
|
||
</config> |
Oops, something went wrong.