Subversion Repositories Scribus

Rev

Rev 2953 | Rev 3367 | 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
*                                                                         *
9
*   ScApp program is free software; you can redistribute it and/or modify  *
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:
42
        static void languageChange();
43
        static QString _Apply;
44
        static QString tr_Apply;
45
        static QString _Cancel;
46
        static QString tr_Cancel;
47
        static QString None;
48
        static QString trNone;
49
        static QString _OK;
50
        static QString tr_OK;
51
        static QString _Save;
52
        static QString tr_Save;
53
};
54
 
55
#endif