1 (edited by De-Backer 2020-09-02 21:01:12)

Topic: let's make the info of an element more free.

now the info is fixed.
see:

/**
    @brief ElementsProperties::translatedInfo
    Return the translated information key given by info
    If info don't match, return an empty string
    @param info the key to be translated
    @return
*/

QString QETApp::elementTranslatedInfoKey(const QString &info)
{
    if (info == "formula") return tr("Formule du label");
    else if (info == "label") return tr("Label");
    else if (info == "plant") return tr("Installation");
    else if (info == "location") return tr("Localisation");
 
    else if (info == "comment") return tr("Commentaire");
    else if (info == "function") return tr("Fonction");
    else if (info == "auxiliary1") return tr("Bloc auxiliaire 1");
    else if (info == "auxiliary2") return tr("Bloc auxiliaire 2");
 
    else if (info == "description") return tr("Description textuelle");
    else if (info == "designation") return tr("Numéro d'article");
    else if (info == "manufacturer") return tr("Fabricant");
    else if (info == "manufacturer_reference") return tr("Numéro de commande");
    else if (info == "machine_manufacturer_reference") return tr("Numéro interne");
    else if (info == "supplier") return tr("Fournisseur");
    else if (info == "quantity") return tr("Quantité");
    else if (info == "unity") return tr("Unité");
 
    else return QString();
}

by having these adjusted by the user, there are many more possibilities.

Joshua, Martin, Laurent
How do you stand on this?

Post's attachments

Screenshot_20200902_210051.png, 64.12 kb, 640 x 1527
Screenshot_20200902_210051.png 64.12 kb, 256 downloads since 2020-09-02 

Re: let's make the info of an element more free.

like this

Post's attachments

Screenshot_20200902_210152.png, 37.27 kb, 891 x 714
Screenshot_20200902_210152.png 37.27 kb, 249 downloads since 2020-09-02 

Re: let's make the info of an element more free.

for translated we can add a translate file, and if it's not in the file just don't translate

Re: let's make the info of an element more free.

https://de-backer.github.io/qelectrotec … 149f03a14f
https://de-backer.github.io/qelectrotech-source-mirror/html/d7/df8/class_q_e_t_app_a08cfc89ca24a11bf90e50a149f03a14f_icgraph.png