Subversion Repositories Scribus

Rev

Rev 4729 | Rev 5540 | 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
4546 subik 9
        copyright            : (C) 2005 by Craig Bradney
2953 cbradney 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
 
4546 subik 29
/*! \brief A simple common strings class to reduce the string count and ease
30
 the translation process a little.
31
 - Contains untranslated and translated versions of the strings to
32
   help with reduction of future reliance of translated strings in
33
   "real" code
34
 - Currently stores GUI strings such as &OK and its translated
35
   version, but not the string without the &.
36
 - BE CAREFUL with context. Simple strings should be stored here
37
   that are obviously a verb or a noun, and if multiple contexts
38
   don't have different translations relating to verb/noun/gender
39
   in some languages. This is the reason basic words have been
40
   done initially.
2953 cbradney 41
 
4546 subik 42
 trNone = tr("None") was removed because it's problematic in
43
   East European langiages.
44
*/
2969 craig 45
class SCRIBUS_API CommonStrings : public QObject
2953 cbradney 46
{
47
        Q_OBJECT
48
public:
3367 cbradney 49
        CommonStrings();
4729 subik 50
 
4538 cbradney 51
        /**
4645 subik 52
         * \brief Return the translated Page Set string if given the "untranslated" one
53
         * @param untrString "untranslated" string
4538 cbradney 54
         * @return translated string
55
         */
4645 subik 56
        static const QString& translatePageSetString(const QString &untrString);
4538 cbradney 57
        /**
4645 subik 58
         * \brief Return the translated Page Set Location string if given the "untranslated" one
59
         * @param untrString "untranslated" string
4538 cbradney 60
         * @return translated string
61
         */
4645 subik 62
        static const QString& translatePageSetLocString(const QString &untrString);
4538 cbradney 63
        /**
4645 subik 64
         * \brief Return the untranslated Page Set string if given the translated one
65
         * @param trString translated string
4538 cbradney 66
         * @return "untranslated" string
67
         */
4645 subik 68
        static const QString& untranslatePageSetString(const QString &trString);
4538 cbradney 69
        /**
4645 subik 70
         * \brief Return the untranslated Page Set Location string if given the translated one
71
         * @param trString translated string
4538 cbradney 72
         * @return "untranslated" string
73
         */
4645 subik 74
        static const QString& untranslatePageSetLocString(const QString &trString);
2953 cbradney 75
        static void languageChange();
76
        static QString _Apply;
77
        static QString tr_Apply;
78
        static QString _Cancel;
79
        static QString tr_Cancel;
80
        static QString None;
4729 subik 81
        static QString NoneColor;
2953 cbradney 82
        static QString _OK;
83
        static QString tr_OK;
84
        static QString _Save;
3510 cbradney 85
        static QString tr_Save;
86
        static QString Warning;
87
        static QString trWarning;
4729 subik 88
 
4555 cbradney 89
        //Page Size
90
        static QString customPageSize;
91
        static QString trCustomPageSize;
4729 subik 92
 
4538 cbradney 93
        //Page Sets
94
        static QString pageSet1;
95
        static QString pageSet2;
96
        static QString pageSet3;
97
        static QString pageSet4;
98
        static QString trPageSet1;
99
        static QString trPageSet2;
100
        static QString trPageSet3;
101
        static QString trPageSet4;
102
        static QString pageLocLeft;
103
        static QString pageLocMiddle;
104
        static QString pageLocMiddleLeft;
105
        static QString pageLocMiddleRight;
106
        static QString pageLocRight;
107
        static QString trPageLocLeft;
108
        static QString trPageLocMiddle;
109
        static QString trPageLocMiddleLeft;
110
        static QString trPageLocMiddleRight;
111
        static QString trPageLocRight;
5364 cbradney 112
 
113
        //Days and Months
114
        static QString monday, tuesday, wednesday, thursday, friday, saturday, sunday;
115
        static QString january, february, march, april, may, june, july, august, september, october, november, december;
2953 cbradney 116
};
117
 
118
#endif