Ich erstelle ein neues Modul für Prestashop. Ich bin mit dem PrestaShop Guide und wenn ich versuche, dies zu setzen:
class MiModulo extends Module{
public function __construct(){
$this->name = "mimodulo";
$this->tab = "front_office_features";
$this->version = "1.0.0";
$this->author = "Ivan Javier Barranco Gavilan";
$this->need_instance = 0;
$this->ps_versions_compliancy = array("min" => "1.6", "max" => _PS_VERSION_);
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l("Mi Modulo");
$this->description = $this->l("Descripcion del modulo");
$this->confirmUninstall = $this->l("¿Esta seguro de que desea desinstalar el modulo?");
if(!Configuration::get("mimodulo"))
$this->warning = $this->l("Sin nombre proporcionado");
}
}
:: l(), nach ihm prestashop ist eine Funktion, die Textzeichenfolgen übersetzt, aber wo nicht, sollten sie diese Übersetzungen einführen.
$ this-> l() gibt immer eine leere Zeichenkette zurück.
Ich habe eine Installation von Prestashop in Spanisch. Wie soll ich die Übersetzungen richtig machen? Vielen Dank!
was ':: l()'? Wir brauchen mehr Informationen bitte. – DevDonkey
oki, ich gehe, um meine Frage zu aktualisieren –