Rev 2969 | Go to most recent revision | Details | 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> |
||
21 | |||
22 | /* |
||
23 | * A simple common strings class to reduce the string count and ease |
||
24 | * the translation process a little. |
||
25 | * - Contains untranslated and translated versions of the strings to |
||
26 | * help with reduction of future reliance of translated strings in |
||
27 | * "real" code |
||
28 | * - Currently stores GUI strings such as &OK and its translated |
||
29 | * version, but not the string without the &. |
||
30 | * - BE CAREFUL with context. Simple strings should be stored here |
||
31 | * that are obviously a verb or a noun, and if multiple contexts |
||
32 | * don't have different translations relating to verb/noun/gender |
||
33 | * in some languages. This is the reason basic words have been |
||
34 | * done initially. |
||
35 | */ |
||
36 | |||
37 | class CommonStrings : public QObject |
||
38 | { |
||
39 | Q_OBJECT |
||
40 | public: |
||
41 | static void languageChange(); |
||
42 | static QString _Apply; |
||
43 | static QString tr_Apply; |
||
44 | static QString _Cancel; |
||
45 | static QString tr_Cancel; |
||
46 | static QString None; |
||
47 | static QString trNone; |
||
48 | static QString _OK; |
||
49 | static QString tr_OK; |
||
50 | static QString _Save; |
||
51 | static QString tr_Save; |
||
52 | }; |
||
53 | |||
54 | #endif |