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

lokalize

  • sources
  • kde-4.14
  • kdesdk
  • lokalize
  • src
  • project
kde-i18n-lists.h
Go to the documentation of this file.
1 /* ****************************************************************************
2  This file is part of Lokalize
3 
4  Copyright (C) 2007-2008 by Nick Shaforostoff <shafff@ukr.net>
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License as
8  published by the Free Software Foundation; either version 2 of
9  the License or (at your option) version 3 or any later version
10  accepted by the membership of KDE e.V. (or its successor approved
11  by the membership of KDE e.V.), which shall act as a proxy
12  defined in Section 14 of version 3 of the license.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program. If not, see <http://www.gnu.org/licenses/>.
21 
22 **************************************************************************** */
23 
24 #ifndef LISTS_H
25 #define LISTS_H
26 
27 #include <QString>
28 #include <klocale.h>
29 #include <kglobal.h>
30 
31 static inline QString getMailingList()
32 {
33  QString lang(KGlobal::locale()->language());
34  if(lang.startsWith("ca"))
35  return "kde-i18n-ca@kde.org";
36  if(lang.startsWith("de"))
37  return "kde-i18n-de@kde.org";
38  if(lang.startsWith("hu"))
39  return "kde-l10n-hu@kde.org";
40  if(lang.startsWith("tr"))
41  return "kde-l10n-tr@kde.org";
42  if(lang.startsWith("it"))
43  return "kde-i18n-it@kde.org";
44  if(lang.startsWith("lt"))
45  return "kde-i18n-lt@kde.org";
46  if(lang.startsWith("nb"))
47  return "i18n-nb@lister.ping.uio.no";
48  if(lang.startsWith("nn"))
49  return "i18n-nn@lister.ping.uio.no";
50  if(lang.startsWith("pt_BR"))
51  return "kde-i18n-pt_BR@kde.org";
52  if(lang.startsWith("ru"))
53  return "kde-russian@lists.kde.ru";
54  if(lang.startsWith("se"))
55  return "i18n-sme@lister.ping.uio.no";
56  if(lang.startsWith("sl"))
57  return "lugos-slo@lugos.si";
58 
59  return "kde-i18n-doc@kde.org";
60 }
61 
62 #endif
getMailingList
static QString getMailingList()
Definition: kde-i18n-lists.h:31
QString::startsWith
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
QString
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

lokalize

Skip menu "lokalize"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

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