helloSystem / Menu

Global menu bar written in Qt
43 stars 14 forks source link

Rename "Datei" menu to "Ablage" in German #75

Closed probonopd closed 2 years ago

probonopd commented 2 years ago

Guess what we want...

Are there similar differences in other languages?

probonopd commented 2 years ago
    void updateActionLabel(QAction *action, const QVariant &value) {
        QString text = swapMnemonicChar(value.toString(), '_', '&');
        // probono: https://github.com/helloSystem/Menu/issues/75
        if(text.replace("&", "") == "Datei"){
            text = "Ablage";
        }
        action->setText(text);
    }
probonopd commented 2 years ago

It works :)

image