Rev 8439 | 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); |
6396 | cbradney | 75 | /** |
76 | * \brief Return the untranslated Page Set Location string if given the translated one |
||
77 | * @param trString translated string |
||
78 | * @return "untranslated" string |
||
79 | */ |
||
80 | static const QString& translatePenStyleName(Qt::PenStyle ps); |
||
2953 | cbradney | 81 | static void languageChange(); |
82 | static QString _Apply; |
||
83 | static QString tr_Apply; |
||
84 | static QString _Cancel; |
||
85 | static QString tr_Cancel; |
||
86 | static QString None; |
||
8439 | cbradney | 87 | static QString tr_None; |
88 | static QString tr_NoneColor; |
||
2953 | cbradney | 89 | static QString _OK; |
90 | static QString tr_OK; |
||
91 | static QString _Save; |
||
3510 | cbradney | 92 | static QString tr_Save; |
93 | static QString Warning; |
||
94 | static QString trWarning; |
||
6548 | subik | 95 | //! \brief Translated "Yes" |
96 | static QString trYes; |
||
97 | //! \brief Translated "No" |
||
98 | static QString trNo; |
||
99 | //! \brief Translated "Yes" with key accelerator "&Yes" |
||
100 | static QString trYesKey; |
||
101 | //! \brief Translated "No" with key accelerator "&No" |
||
102 | static QString trNoKey; |
||
4729 | subik | 103 | |
4555 | cbradney | 104 | //Page Size |
105 | static QString customPageSize; |
||
106 | static QString trCustomPageSize; |
||
4729 | subik | 107 | |
4538 | cbradney | 108 | //Page Sets |
109 | static QString pageSet1; |
||
110 | static QString pageSet2; |
||
111 | static QString pageSet3; |
||
112 | static QString pageSet4; |
||
113 | static QString trPageSet1; |
||
114 | static QString trPageSet2; |
||
115 | static QString trPageSet3; |
||
116 | static QString trPageSet4; |
||
117 | static QString pageLocLeft; |
||
118 | static QString pageLocMiddle; |
||
119 | static QString pageLocMiddleLeft; |
||
120 | static QString pageLocMiddleRight; |
||
121 | static QString pageLocRight; |
||
122 | static QString trPageLocLeft; |
||
123 | static QString trPageLocMiddle; |
||
124 | static QString trPageLocMiddleLeft; |
||
125 | static QString trPageLocMiddleRight; |
||
126 | static QString trPageLocRight; |
||
5364 | cbradney | 127 | |
6715 | cbradney | 128 | //Master Page Default Names |
129 | static QString masterPageNormal; |
||
130 | static QString trMasterPageNormal; |
||
131 | static QString masterPageNormalLeft; |
||
132 | static QString trMasterPageNormalLeft; |
||
133 | static QString masterPageNormalMiddle; |
||
134 | static QString trMasterPageNormalMiddle; |
||
135 | static QString masterPageNormalRight; |
||
136 | static QString trMasterPageNormalRight; |
||
137 | |||
6396 | cbradney | 138 | //Pen Styles |
139 | static QString trPenStyle_SolidLine; |
||
140 | static QString trPenStyle_DashedLine; |
||
141 | static QString trPenStyle_DottedLine; |
||
142 | static QString trPenStyle_DashDotLine; |
||
143 | static QString trPenStyle_DashDotDotLine; |
||
144 | |||
5364 | cbradney | 145 | //Days and Months |
5540 | mrdocs | 146 | static QString monday; |
147 | static QString tuesday; |
||
148 | static QString wednesday; |
||
149 | static QString thursday; |
||
150 | static QString friday; |
||
151 | static QString saturday; |
||
152 | static QString sunday; |
||
153 | |||
154 | static QString january; |
||
155 | static QString february; |
||
156 | static QString march; |
||
157 | static QString april; |
||
158 | static QString may; |
||
159 | static QString june; |
||
160 | static QString july; |
||
161 | static QString august; |
||
162 | static QString september; |
||
163 | static QString october; |
||
164 | static QString november; |
||
165 | static QString december; |
||
7167 | cbradney | 166 | |
167 | //Color Blindness |
||
168 | static QString trVisionNormal; |
||
169 | static QString trVisionProtanopia; |
||
170 | static QString trVisionDeuteranopia; |
||
171 | static QString trVisionTritanopia; |
||
172 | static QString trVisionFullColorBlind; |
||
173 | |||
7305 | cbradney | 174 | //Tab Fill Custom |
175 | static QString trCustomTabFill; |
||
176 | |||
8054 | cbradney | 177 | //Paragraph Style Optical Margins |
178 | static QString trOpticalMarginsNone; |
||
179 | static QString trOpticalMarginsLeftProtruding; |
||
180 | static QString trOpticalMarginsRightProtruding; |
||
181 | static QString trOpticalMarginsLeftHangPunct; |
||
182 | static QString trOpticalMarginsRightHangPunct; |
||
183 | static QString trOpticalMarginsDefault; |
||
184 | |||
185 | //Paragraph Style Word Tracking |
||
186 | static QString trMinWordTracking; |
||
8865 | avox | 187 | static QString trNormWordTracking; |
8054 | cbradney | 188 | |
189 | //Paragraph Style Glyph Extension |
||
190 | static QString trMinGlyphExtension; |
||
191 | static QString trMaxGlyphExtension; |
||
2953 | cbradney | 192 | }; |
193 | |||
194 | #endif |