QtPdWidgets  2.3.1
Translator.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * Copyright (C) 2009 Florian Pose <fp@igh-essen.com>
4  *
5  * This file is part of the QtPdWidgets library.
6  *
7  * The QtPdWidgets library is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation, either version 3 of the License,
10  * or (at your option) any later version.
11  *
12  * The QtPdWidgets library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with the QtPdWidgets Library. If not, see
19  * <http://www.gnu.org/licenses/>.
20  *
21  ****************************************************************************/
22 
23 #ifndef PD_TRANSLATION_H
24 #define PD_TRANSLATION_H
25 
26 #include <QString>
27 #include <QLocale>
28 
29 class QTranslator;
30 
31 namespace Pd {
32 
38  Q_DECL_EXPORT bool loadTranslation(
39  QTranslator& translator,
40  const QLocale &locale = QLocale()
41  );
42 
43 } // namespace Pd
44 
45 #endif
Definition: Bar.h:36
Q_DECL_EXPORT bool loadTranslation(QTranslator &translator, const QLocale &locale=QLocale())
Load a translation for the given locale.
Definition: Translator.cpp:39