Subversion Repositories Scribus

Rev

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

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