Avogadro
1.1.0
|
Internationalization of element names. More...
#include <avogadro/elementtranslator.h>
Static Public Member Functions | |
static QString | name (int element) |
Internationalization of element names.
This class provides for translation of element names: e.g., tr("Carbon") To use the global translator:
#include <avogadro/elementtranslator.h> ... Avogadro::elementTranslator.name(6); // Return "carbon" in English
QString Avogadro::ElementTranslator::name | ( | int | element | ) | [static] |
Translate element names.
element | The atomic number of the element to be translated |
References QObject::tr().