Avogadro  1.1.0
Static Public Member Functions
Avogadro::ElementTranslator Class Reference

Internationalization of element names. More...

#include <avogadro/elementtranslator.h>

Inheritance diagram for Avogadro::ElementTranslator:
Inheritance graph
[legend]

List of all members.

Static Public Member Functions

static QString name (int element)

Detailed Description

Internationalization of element names.

Author:
Geoff Hutchison

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

Member Function Documentation

QString Avogadro::ElementTranslator::name ( int  element) [static]

Translate element names.

Parameters:
elementThe atomic number of the element to be translated
Returns:
a QString with the appropriate translation for the current locale

References QObject::tr().


The documentation for this class was generated from the following files: