-
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 41f02d3
Showing
19 changed files
with
850 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,26 @@ | ||
<h2>Indonesisches Sprachpaket für Magento Commerce</h2> | ||
<p>(Magento Community Modules - Indonesian (Indonesia) Language Pack)</p> | ||
<p>(Paquete de idioma indonesio para Magento Commerce)</p> | ||
|
||
<h3>Mistake found? / Fehler gefunden? / ¿Encontrado un problema?</h3> | ||
<p>Errors may be reported on GitHub / Fehler können auf GitHub gemeldet werden / Los errores pueden ser reportados en GitHub | ||
<a href="https://github.com/MaWoScha/German_LocalePack_id_ID/issues">https://github.com/MaWoScha/German_LocalePack_id_ID/issues</a></p> | ||
|
||
<h3>Cooperation wanted / Mitarbeit erwünscht / Cooperación deseada</h3> | ||
<p>Information about language package can be found in the corresponding GitHub repository<br /> | ||
<a href="https://github.com/MaWoScha/German_LocalePack_id_ID">https://github.com/MaWoScha/German_LocalePack_id_ID</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_id_ID">https://github.com/MaWoScha/German_LocalePack_id_ID</a></p> | ||
<p>Bei Mitarbeit am Sprachpaket <strong>bitte PullRequests immer für den preview-Branch</strong> schicken. Danke :-)</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_id_ID">https://github.com/MaWoScha/German_LocalePack_id_ID</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> |
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 @@ | ||
# Indonesisches Sprachpaket für Magento (CE) | ||
(Magento Community Modules - Indonesian (Indonesia) Language Pack)<br /> | ||
(Módulo de Comunidad Magento - Paquete de idioma indonesio) | ||
|
||
This language package is managed by MaWoScha.<br /> | ||
Dieses Sprachpaket wird von MaWoScha verwaltet.<br /> | ||
Este paquete de idioma está gestionado por MaWoScha. | ||
|
||
|
||
# Administration of Git / Git-Verwaltung / 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 id_ID | ||
* Melden von Fehlern und PullRequests | ||
* Aktives Mitwirken am Sprachpaket | ||
|
||
## Reporting bugs / Melden von Fehlern / 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. | ||
|
||
## Participate actively in Language Pack / Aktives Mitwirken am Sprachpaket / 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. | ||
|
||
Enjoy the Indonesian Language Pack! / Viel Spaß mit dem indonesischen Magento Sprachpaket! / Disfrute el paquete de idioma indonesio | ||
|
||
MaWoScha |
39 changes: 39 additions & 0 deletions
39
app/code/community/German/LocalePackId/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,39 @@ | ||
<?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_LocalePackId_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("localepackid"); | ||
|
||
$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->__("Indonesia"))."</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->__("Indonesian stores")."</h3>"; | ||
$html .= "<dl>"; | ||
$html .= "<dt>".$helper->__("Currently not available")."</dt>"; | ||
# $html .= "<dd>".$helper->__("Preconfigured for the Indonesian 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; | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
app/code/community/German/LocalePackId/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,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_LocalePackId_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_LocalePackId"; | ||
$helper = Mage::helper("localepackid"); | ||
|
||
$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 Indonesian 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; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...community/German/LocalePackId/Block/System/Config/Form/Fieldset/Magentoconnectmanager.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,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_LocalePackId_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("localepackid"); | ||
|
||
$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; | ||
} | ||
} |
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/> | ||
* @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_LocalePackId_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/> | ||
* @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_LocalePackId_Model_Observer { | ||
|
||
public function adminhtmlControllerActionPredispatchStart() { | ||
|
||
$helper = Mage::helper("localepackid"); | ||
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_LocalePackId/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'=>'localepackid')); | ||
} | ||
} |
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,101 @@ | ||
<?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_LocalePackId> | ||
<version>0.1.0</version> | ||
<locale>id_ID</locale> | ||
<title>Indonesian (Indonesia) Language Pack</title> | ||
<link_git>https://github.com/MaWoScha/German_LocalePack_id_ID</link_git> | ||
<link_mage>http://www.magentocommerce.com/magento-connect/indonesian-language-pack.html</link_mage> | ||
<mage_key>http://connect20.magentocommerce.com/community/Indonesia_Locale</mage_key> | ||
</German_LocalePackId> | ||
</modules> | ||
|
||
<global> | ||
<models> | ||
<localepackid> | ||
<class>German_LocalePackId_Model</class> | ||
</localepackid> | ||
</models> | ||
<helpers> | ||
<localepackid> | ||
<class>German_LocalePackId_Helper</class> | ||
</localepackid> | ||
</helpers> | ||
<blocks> | ||
<localepackid> | ||
<class>German_LocalePackId_Block</class> | ||
</localepackid> | ||
</blocks> | ||
<events> | ||
<adminhtml_controller_action_predispatch_start> | ||
<observers> | ||
<localepackid> | ||
<class>localepackid/observer</class> | ||
<method>adminhtmlControllerActionPredispatchStart</method> | ||
</localepackid> | ||
</observers> | ||
</adminhtml_controller_action_predispatch_start> | ||
</events> | ||
</global> | ||
|
||
<default> | ||
<localepackid> | ||
<notification> | ||
<url>https://github.com/MaWoScha/German_LocalePack_id_ID</url> | ||
</notification> | ||
</localepackid> | ||
<magesetup> | ||
<default_country>ID</default_country> | ||
</magesetup> | ||
</default> | ||
|
||
<adminhtml> | ||
<translate> | ||
<modules> | ||
<German_LocalePackId> | ||
<files> | ||
<default>German_LocaleId.csv</default> | ||
</files> | ||
</German_LocalePackId> | ||
</modules> | ||
</translate> | ||
<acl> | ||
<resources> | ||
<all> | ||
<title>Allow Everything</title> | ||
</all> | ||
<admin> | ||
<children> | ||
<system> | ||
<children> | ||
<config> | ||
<children> <!-- | ||
<localepacks translate="title" module="localepackid"> | ||
<title>Language Packs</title> | ||
<children> --> | ||
<localepackid translate="title" module="localepackid"> | ||
<title>Indonesian (Indonesia) Language Pack</title> | ||
</localepackid> <!-- | ||
</children> | ||
</localepacks> --> | ||
</children> | ||
</config> | ||
</children> | ||
</system> | ||
</children> | ||
</admin> | ||
</resources> | ||
</acl> | ||
</adminhtml> | ||
|
||
</config> |
Oops, something went wrong.