Skip to content

Commit

Permalink
Version 0.1.0, Basisversion, only a Framework with empty csv files
Browse files Browse the repository at this point in the history
  • Loading branch information
MaWoScha committed Aug 15, 2019
0 parents commit 9ccefd6
Show file tree
Hide file tree
Showing 82 changed files with 974 additions and 0 deletions.
48 changes: 48 additions & 0 deletions MagentoConnect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<h2>Spanisches Sprachpaket für Magento Commerce - Kundenspezifische Version</h2>
<p>(Magento Community Modules - Portuguese (Custom) Language Pack)</p>
<p>(Pacote de Língua Portuguesa para Magento Commerce – Versão Personalizada)</p>

<h3>Aviso / Hint / Hinweis</h3>
<p>Qualquer pessoa que pretenda utilizar Português personalizada, você deve instalar o pacote de idioma <i>LocalePack_pt_ZZ</i>.</p>
<p>Cualquier persona que desee utilizar portugués personalizado, debe instalar el paquete de idioma <i>LocalePack_pt_ZZ</i>.</p>
<p>Anyone wishing to use custom Portuguese, should install the language pack <i>LocalePack_pt_ZZ</i>.</p>
<p>Wer kundenspezifisches Portugiesisch nutzen möchte, sollte das Sprachpaket <i>LocalePack_pt_ZZ</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_ZZ, você deve primeiro remover a pasta <strong>app/locale/pt_ZZ</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_ZZ, primero debe eliminar la carpeta <strong>app/locale/pt_ZZ</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_ZZ must first delete the <strong>app/locale/pt_ZZ</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_ZZ benutzen möchte, muss vorher den Ordner <strong>app/locale/pt_ZZ</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_ZZ/issues">https://github.com/MaWoScha/German_LocalePack_pt_ZZ/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_ZZ">https://github.com/MaWoScha/German_LocalePack_pt_ZZ</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_ZZ">https://github.com/MaWoScha/German_LocalePack_pt_ZZ</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_ZZ">https://github.com/MaWoScha/German_LocalePack_pt_ZZ</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_ZZ">https://github.com/MaWoScha/German_LocalePack_pt_ZZ</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 with empty csv files.</li>
</ul>
62 changes: 62 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Portugiesisches Sprachpaket für Magento (CE) - Kundenspezifische Version
(Magento Community Modules - Portuguese (Custom) Language Pack)<br />
(Pacote de Língua Portuguesa para Magento Commerce - Versão Personalizada)

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.

* Véase también: [Internacionalización – Magento en varios idiomas](http://blog.siempro.co/?p=105&lang=es)
* See also: [Internationalization – Magento in several languages](http://blog.siempro.co/?p=105&lang=en)
* Siehe auch: [Internationalisierung – Magento in mehreren Sprachen](http://blog.siempro.co/?p=105&lang=de)


# Instruções de instalação / Instrucciones de instalación / Installation instructions / Installationshinweise

Você deve instalar o seguinte / Usted debe instalar el siguiente / You should install the following / Sie sollten Folgendes installieren:

* [German LocaleFallback](https://github.com/MaWoScha/German_LocaleFallback)
* [German LocalePack pt_ZZ](https://github.com/MaWoScha/German_LocalePack_pt_ZZ) (Preferred language / Lingua preferida)
* [German LocalePack pt_PT](https://github.com/MaWoScha/German_LocalePack_pt_PT) (Fallback language / Lingua secundária)
* [German LocalePack en_US](https://github.com/MaWoScha/German_LocalePack_en_US) (Contains ONLY e-mail templates, NO csv files are included)

Sair do backend uma vez, se ele não tem. Então definido nas configurações em "Opções de localidade" para os "Configurações regionais" "pt_ZZ". A extensão [German LocaleFallback](https://github.com/MaWoScha/German_LocaleFallback) agora permite também criar uma "segunda opção de idioma" "pt_PT". Em seguida, selecione a opção "eMail Template Say Hello (pt)", "eMail Template Contact (pt)" e "eMail Template Say Bye (pt)" blocos estáticos no gerenciador de CMS e ajustar de acordo com suas necessidades.

Salir del backend una vez, si no lo ha hecho. A continuación, establezca en la configuración en "Opciones de configuración regional" para la "Configuración regional" "pt_ZZ". La extensión [German LocaleFallback](https://github.com/MaWoScha/German_LocaleFallback) ahora le permite, configurar además una "Idioma segunda opción" "pt_PT". A continuación, active los bloques estáticos "eMail Template Say Hello (pt)", "eMail Template Contact (pt)" y "eMail Template Say Bye (pt)" en el gestor de CMS y ajustarlos de acuerdo a sus necesidades.

Logout from the backend once, if not already done. Then in the configuration under "Locale Options" set the "locale" as "pt_ZZ". The extension [German LocaleFallback](https://github.com/MaWoScha/German_LocaleFallback) now allows you, in addition set "Fallback language" as "pt_PT". Next, enable the static blocks "eMail Template Say Hello (pt)", "eMail Template Contact (pt)" and "eMail Template Say Bye (pt)" in the CMS-Manager and set them up according to your needs.

Melden Sie sich zunächst einmal aus dem Backend ab, falls nicht schon geschehen. Danach stellen Sie in der Konfiguration unter "Optionen für Lokalisierungen" für die "Sprachumgebung" "pt_ZZ" ein. Die Erweiterung [German LocaleFallback](https://github.com/MaWoScha/German_LocaleFallback) erlaubt Ihnen nun, zusätzlich als "Ausweichsprache" "pt_PT" festzulegen. Aktivieren Sie als nächstes in der CMS-Verwaltung die statischen Blöcke "eMail Template Say Hello (pt)", "eMail Template Contact (pt)" und "eMail Template Say Bye (pt)" und richten diese nach Ihren Bedürfnissen ein.

MaWoScha


# Avisos / Hints / Hinweise

Esta extensão é testada com Magento 1.6.2, 1.7.0, 1.8.1, 1.9.0 e 1.9.1. <br />
O pacote de idiomas é adequado para 1.6.x até 1.9.4.x

Enquanto os arquivos de idioma desta extensão estão vazias, este pacote de idioma (ainda) não faz nada.
Mas assim que você entra, a palavras e frases comuns específicos no Brasil, o que irá beneficiar da funcionalidade de "segunda opção de idioma".


Esta extensión se prueba con Magento 1.6.2, 1.7.0, 1.8.1, 1.9.0 y 1.9.1. <br />
El paquete de idioma es adecuado para Magento 1.6.x hasta 1.9.4.x

Mientras los archivos de idioma de esta extensión están vacías, este paquete de idioma (todavía) no hace nada.
Pero tan pronto como entras en alguna específica, común en las palabras y frases de en Brasil, que se beneficiarán de la funcionalidad de "Idioma segunda opción".


This extension is tested with Magento 1.6.2, 1.7.0, 1.8.1, 1.9.0 and 1.9.1. <br />
The language pack is suitable for Magento 1.6.x to 1.9.4.x

As long as the language files of this extension are empty, this language pack does nothing (yet).
But as soon as you enter some specific, in Brazil common words and phrases, you will benefit from the functionality of "Fallback language".


Diese Erweiterung ist mit Magento 1.6.2, 1.7.0, 1.8.1, 1.9.0 und 1.9.1 getestet. <br />
Das Sprachpaket ist für Magento 1.6.x bis 1.9.4.x

Solange die Sprachdateien dieser Erweiterung leer sind, tut dieses Sprachpaket (noch) nichts.
Sobald Sie aber einige spezielle, in Brasilien gebräuchliche Wörter und Phrasen eintragen, profitieren Sie von der Funktionalität der "Ausweichsprache".
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* @category German
* @package German_LocalePack
* @authors MaWoScha
* @developer MaWoScha
* @version 0.1.0
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class German_LocalePackPtZz_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("localepackptzz");

$html = $this->_getHeaderHtml($element);
$html .= "<h3 style='margin-top:20px; margin-bottom:10xp;'>".$helper->__("Specific market adjustment for")." ".$helper->__("custom stores")."</h3>";
$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->__("Portugal"))."</p>";
$html .= $this->_getFooterHtml($element);

return $html;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php
/**
* @category German
* @package German_LocalePack
* @authors MaWoScha
* @developer MaWoScha
* @version 0.1.0
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class German_LocalePackPtZz_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_LocalePackPtZz";
$helper = Mage::helper("localepackptzz");

$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:10pt;'>";
$html .= $helper->__("This is your individual language pack that is only managed and maintained by you.");
$html .= "<br />";
$html .= $helper->__('Adjust the file "%s" with your name and the link to your website.', "etc/config.xml");
$html .= "</p>";

$html .= "<p style='text-align:right;'>";
$html .= $helper->__("powered by");
$html .= " <a href='".(string)Mage::app()->getConfig()->getNode($nodepath.'/link')."' target='_blank'>".(string)Mage::app()->getConfig()->getNode($nodepath.'/author')."</a>";
$html .= "</p>";
$html .= $this->_getFooterHtml($element);

return $html;
}
}
12 changes: 12 additions & 0 deletions app/code/community/German/LocalePackPtZz/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
* @developer MaWoScha
* @version 0.1.0
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class German_LocalePackPtZz_Helper_Data extends Mage_Core_Helper_Abstract {

}
55 changes: 55 additions & 0 deletions app/code/community/German/LocalePackPtZz/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
* @developer MaWoScha
* @version 0.1.0
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class German_LocalePackPtZz_Model_Observer {

public function adminhtmlControllerActionPredispatchStart() {

$helper = Mage::helper("localepackptzz");
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_LocalePackPtZz/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'=>'localepackptzz'));
}
}
111 changes: 111 additions & 0 deletions app/code/community/German/LocalePackPtZz/etc/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0"?>
<!--
/**
* @category German
* @package German_LocalePack
* @authors MaWoScha
* @developer MaWoScha
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->
<config>
<modules>
<German_LocalePackPtZz>
<version>0.1.0</version>
<locale>pt_ZZ</locale>
<title>Portuguese (Custom) Language Pack</title>
<link_git>https://github.com/MaWoScha/German_LocalePack_pt_ZZ</link_git>
<link></link>
<author>Su nombre</author>
</German_LocalePackPtZz>
</modules>

<global>
<models>
<localepackptzz>
<class>German_LocalePackPtZz_Model</class>
</localepackptzz>
</models>
<helpers>
<localepackptzz>
<class>German_LocalePackPtZz_Helper</class>
</localepackptzz>
</helpers>
<blocks>
<localepackptzz>
<class>German_LocalePackPtZz_Block</class>
</localepackptzz>
</blocks>
<events>
<adminhtml_controller_action_predispatch_start>
<observers>
<localepackptzz>
<class>localepackptzz/observer</class>
<method>adminhtmlControllerActionPredispatchStart</method>
</localepackptzz>
</observers>
</adminhtml_controller_action_predispatch_start>
</events>
</global>

<default>
<localepackptzz>
<notification>
<url>https://github.com/MaWoScha/German_LocalePack_pt_ZZ</url>
</notification>
</localepackptzz>
<magesetup>
<default_country>PT</default_country>
</magesetup>
</default>

<adminhtml>
<layout>
<updates>
<localepackptzz>
<files>
<default>localepackpt.xml</default>
</files>
</localepackptzz>
</updates>
</layout>
<translate>
<modules>
<German_LocalePackPtZz>
<files>
<localepackptzz>German_LocalePtZz.csv</localepackptzz>
<default>German_LocalePt.csv</default>
</files>
</German_LocalePackPtZz>
</modules>
</translate>
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<system>
<children>
<config>
<children> <!--
<localepacks translate="title" module="localepackptzz">
<title>Language Packs</title>
<children> -->
<localepackptzz translate="title" module="localepackptzz">
<title>Portuguese (Custom) Language Pack</title>
</localepackptzz> <!--
</children>
</localepacks> -->
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</adminhtml>

</config>
Loading

0 comments on commit 9ccefd6

Please sign in to comment.