Sayonara Player
Language.h
1 /* Language.h */
2 
3 /* Copyright (C) 2011-2017 Lucio Carreras
4  *
5  * This file is part of sayonara player
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16 
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef LANGUAGE_H
22 #define LANGUAGE_H
23 
24 #include <QObject>
25 
26 class LanguageString : public QString
27 {
28 public:
29  LanguageString(const QString& str);
30  LanguageString toFirstUpper() const;
31  LanguageString space() const;
32  LanguageString question() const;
33  LanguageString triplePt() const;
34 };
35 
36 class Lang :
37  public QObject
38 {
39  Q_OBJECT
40 
41 public:
42  enum Term
43  {
44  About=0,
45  Action,
46  Actions,
47  Activate,
48  Active,
49  AddTab,
50  Album,
51  AlbumArtists,
52  Albums,
53  All,
54  Append,
55  Apply,
56  Artist,
57  Artists,
58  Bitrate,
59  Bookmarks,
60  Broadcast,
61  By,
62  Cancel,
63  CannotFindLame,
64  Continue,
65  Covers,
66  Clear,
67  Close,
68  CloseOthers,
69  CloseTab,
70  Days,
71  DaysShort,
72  Default,
73  Delete,
74  Directory,
75  Directories,
76  Duration,
77  DurationShort,
78  DynamicPlayback,
79  Edit,
80  EnterName,
81  EnterUrl,
82  Entries,
83  Entry,
84  Error,
85  Fast,
86  File,
87  Files,
88  Filesize,
89  First,
90  Font,
91  Fonts,
92  GaplessPlayback,
93  Genre,
94  Genres,
95  Hours,
96  HoursShort,
97  ImportDir,
98  ImportFiles,
99  Inactive,
100  Info,
101  Library,
102  LibraryPath,
103  Listen,
104  Logger,
105  Lyrics,
106  Menu,
107  Minutes,
108  MinutesShort,
109  Months,
110  MuteOn,
111  MuteOff,
112  New,
113  NextTrack,
114  No,
115  None,
116  NumTracks,
117  On,
118  Open,
119  OpenDir,
120  OpenFile,
121  Overwrite,
122  Pause,
123  Play,
124  PlayPause,
125  PlayingTime,
126  Playlist,
127  Playlists,
128  PlayNext,
129  PreviousTrack,
130  Radio,
131  Retry,
132  Rating,
133  Really,
134  ReloadLibrary,
135  Reset,
136  Refresh,
137  Remove,
138  Rename,
139  Repeat1,
140  RepeatAll,
141  Sampler,
142  Save,
143  SaveAs,
144  Search,
145  SearchNext,
146  Second,
147  Seconds,
148  SecondsShort,
149  SeekForward,
150  SeekBackward,
151  Show,
152  ShowAlbumArtists,
153  Shuffle,
154  Shutdown,
156  Stop,
157  StreamUrl,
158  Success,
159  Th,
160  Third,
161  Title,
162  Track,
163  TrackOn,
164  TrackNo,
165  Tracks,
166  Tree,
167  Undo,
168  Various,
169  VariousAlbums,
170  VariousArtists,
171  VariousTracks,
172  Version,
173  VolumeDown,
174  VolumeUp,
175  Warning,
176  Weeks,
177  Year,
178  Years,
179  Yes,
180  Zoom,
181  NUMBER_OF_LANGUAGE_KEYS
182  };
183 
184 public:
185  Lang();
186  ~Lang();
187 
188  static LanguageString get(Lang::Term term, bool* ok=nullptr);
189 };
190 
191 #endif // LANGUAGE_H
The Logger class.
Definition: Logger.h:54
Definition: Language.h:26
Definition: Language.h:36
Definition: SimilarArtists.h:29
Definition: Genre.h:29
The Album class.
Definition: Album.h:38
Definition: DatabaseAlbums.h:29
The Artist class.
Definition: Artist.h:33
The Bookmarks logic class.
Definition: Bookmarks.h:37
Definition: PlaylistFwd.h:47