• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

Analitza

  • sources
  • kde-4.14
  • kdeedu
  • analitza
  • analitza
localize.h
Go to the documentation of this file.
1 /*************************************************************************************
2  * Copyright (C) 2011 by Aleix Pol <aleixpol@kde.org> *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License *
6  * as published by the Free Software Foundation; either version 2 *
7  * of the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with this program; if not, write to the Free Software *
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
17  *************************************************************************************/
18 
19 #ifndef LOCALIZE_H
20 #define LOCALIZE_H
21 
26 // #define NO_KDECORE 1 //Just for testing!
27 
28 #ifndef NO_KDECORE
29 # include <klocalizedstring.h>
30 #else
31 
32 #include <QString>
33 
34 QString i18n(const char* a);
35 template <typename T> QString i18n(const char* a, const T& x1) { return QString(a).arg(x1); }
36 template <typename T, typename U> QString i18n(const char* a, const T& x1, const U& x2) { return QString(a).arg(x1).arg(x2); }
37 QString i18nc(const char*, const char* a);
38 template <typename T> QString i18nc(const char*, const char* a, const T& x1) { return QString(a).arg(x1); }
39 template <typename T, typename U> QString i18nc(const char*, const char* a, const T& x1, const U& x2) { return QString(a).arg(x1).arg(x2); }
40 
41 QString i18np(const char* singular, const char* plural, int x1);
42 template <typename T> QString i18np(const char* singular, const char* plural, int x1, const T& x2)
43 { return x1==1 ? QString(singular).arg(x1).arg(x2) : QString(plural).arg(x1).arg(x2); }
44 
45 #endif
46 
47 #endif
48 
49 struct stat;
QString
QString::arg
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Analitza

Skip menu "Analitza"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal