#ifndef TRANSLATABLEAPP_H
#define TRANSLATABLEAPP_H
#include <QApplication>

/*!
 * \brief The TranslatableApp class.
 */
class TranslatableApp : public QApplication
{
public:

    /*!
     * \brief TranslatableApp constructor.
     * \param argc
     * \param argv
     */
    TranslatableApp(int & argc ,char** argv);

    /*!
     * \brief createTranslators Loads the translations of the app-
     * \param languages List with the acronym of the languages.
     */
    void createTranslators(QStringList languages);

    /*!
     * \brief swithLanguage Changes the current app language.
     * \param languaje Language to translate the app.
     */
    void swithLanguage(QString languaje);

private:

    /*!
     * \brief translators Map with all of app languages.
     */
    QMap<QString, QTranslator*> translators;

    /*!
     * \brief currentLanguaje Language of the app.
     */
    QTranslator *currentLanguaje;
};

#endif // TRANSLATABLEAPP_H
