Subversion Repositories Scribus

Rev

Rev 4026 | Rev 4538 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4430 cbradney 1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
2953 cbradney 7
/***************************************************************************
8
        begin                : Aug 2005
9
        copyright            : (C) 2005 by Craig Bradney       
10
        email                : cbradney@zip.com.au
11
***************************************************************************/
12
 
13
/***************************************************************************
14
*                                                                         *
4026 craig 15
*   ScMW program is free software; you can redistribute it and/or modify  *
2953 cbradney 16
*   it under the terms of the GNU General Public License as published by  *
17
*   the Free Software Foundation; either version 2 of the License, or     *
18
*   (at your option) any later version.                                   *
19
*                                                                         *
20
***************************************************************************/
21
 
22
#ifndef COMMONSTRINGS_H
23
#define COMMONSTRINGS_H
24
 
25
#include <qobject.h>
26
#include <qstring.h>
2969 craig 27
#include "scribusapi.h"
2953 cbradney 28
 
29
/*
30
 * A simple common strings class to reduce the string count and ease
31
 * the translation process a little.
32
 *  - Contains untranslated and translated versions of the strings to
33
 *    help with reduction of future reliance of translated strings in
34
 *    "real" code
35
 *  - Currently stores GUI strings such as &OK and its translated
36
 *    version, but not the string without the &.
37
 *  - BE CAREFUL with context. Simple strings should be stored here
38
 *    that are obviously a verb or a noun, and if multiple contexts
39
 *    don't have different translations relating to verb/noun/gender
40
 *    in some languages. This is the reason basic words have been
41
 *    done initially.
42
 */
43
 
2969 craig 44
class SCRIBUS_API CommonStrings : public QObject
2953 cbradney 45
{
46
        Q_OBJECT
47
public:
3367 cbradney 48
        CommonStrings();
2953 cbradney 49
        static void languageChange();
50
        static QString _Apply;
51
        static QString tr_Apply;
52
        static QString _Cancel;
53
        static QString tr_Cancel;
54
        static QString None;
55
        static QString trNone;
56
        static QString _OK;
57
        static QString tr_OK;
58
        static QString _Save;
3510 cbradney 59
        static QString tr_Save;
60
        static QString Warning;
61
        static QString trWarning;
2953 cbradney 62
};
63
 
64
#endif