Skip to content

How to correctly format language settings in an extension file? #898

Discussion options

You must be logged in to vote

What I can see at first glance is that your extension system and language settings are missing the correct formatting. Usually all extensions are using the format ExtensionsnameSetting: value. Assuming your extension has the name Maillink, a correctly formated extension or language setting would look like:

    // Handle initialisation
    public function onLoad($yellow) {
        $this->yellow = $yellow;
        $this->yellow->system->setDefault("MaillinkAddress", "Insert your desired email address or remove this string");
        $this->yellow->language->setDefaults(array(
            "Language: it",
            "MaillinkLinktext: Lasciatemi un messaggio",
            "Language: de",
   …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@pftnhr
Comment options

Answer selected by pftnhr
Comment options

You must be logged in to vote
1 reply
@pftnhr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants