Change language in a template

Hi

I loaded ‘documents_library’ from the template and wanted to change the language.
Under Settings I have deleted the Spanish languages out, German added to it and then made under language the missing translations.
Newly generated source code … project executed and still have above Portuguese and Spanish to choose from, but not German, which I have defined as the default.
What exactly am I doing wrong? In the project under Languages is only English and German.

Bye
Mansaylon

Is there really no chance to change the template to German?
Then there are ALL templates not to use.

Hi Mansaylon,
I just had a short look into that project.

Unfortunately the developer did hard code the selection of the language in the login application.

If you want to change the nice flags on the upper right corner, you’ll have to change the code:

        <div class="flag-lang">
            <a class="flags" href="../login/login.php?lang=en"><img src="{SC_LIB_PROJECT}documents-library/en_us.png"></a>
            <a class="flags" href="../login/login.php?lang=pt"><img src="{SC_LIB_PROJECT}documents-library/pt_br.png"></a>
            <a class="flags" href="../login/login.php?lang=es"><img src="{SC_LIB_PROJECT}documents-library/es_es.png"></a>
        </div>

which is located in the external library ‘documents-library’ > file: ‘index.html’.

Thus they are not using the normal language selection as in applications (type menu) of Scriptcase…

Hope this will give you the direction how to change the languages to German - which I would need too :wink:

Best regards from Munich.

Thank you. I’m trying an adaptation.
That is not a satisfactory solution.
Such templates are not efficient to use.

Is it true … in NO template can one switch the language?

Then the templates are really worth nothing.