![]() |
Sayonara Player
|
#include <Language.h>
Public Types | |
enum | Term { About =0, Action, Actions, Activate, Active, Add, AddArtist, AddTab, Album, AlbumArtist, AlbumArtists, Albums, All, Append, Application, Apply, Artist, Artists, Ascending, Automatic, Bitrate, Bookmarks, Broadcast, By, Cancel, CannotFindLame, Comment, Continue, Covers, Clear, ClearSelection, Close, CloseOthers, CloseTab, CreateDirectory, Created, CreateNewLibrary, DarkMode, Date, Days, DaysShort, Default, Delete, Descending, Directory, Directories, Disc, Duration, DurationShort, DynamicPlayback, Edit, EmptyInput, EnterName, EnterNewName, EnterUrl, Entries, Entry, Error, Fast, File, Filename, Files, Filesize, Filetype, Filter, First, Font, Fonts, Fulltext, GaplessPlayback, GB, Genre, Genres, Hide, Hours, HoursShort, ImportDir, ImportFiles, Inactive, Info, InvalidChars, KB, Key_Find, Key_Delete, Key_Escape, Key_Control, Key_Alt, Key_Shift, Key_Backspace, Key_Tab, Library, LibraryPath, LibraryView, Listen, LiveSearch, Loading, LoadingArg, Logger, LogLevel, Lyrics, MB, Menu, Minimize, Minutes, MinutesShort, Missing, Modified, Months, MoveDown, MoveUp, MuteOn, MuteOff, Name, New, NextPage, NextTrack, No, NoAlbums, NumTracks, OK, On, Open, OpenDir, OpenFile, Or, Overwrite, Pause, Play, PlayingTime, PlayInNewTab, Playlist, Playlists, PlayNext, PlayPause, Plugin, Podcasts, Preferences, PreviousPage, PreviousTrack, PurchaseUrl, Quit, Radio, RadioStation, Rating, Really, Refresh, ReloadLibrary, Remove, Rename, Repeat1, RepeatAll, Replace, Reset, Retry, ReverseOrder, Sampler, Save, SaveAs, SaveToFile, ScanForFiles, SearchNoun, SearchVerb, SearchNext, SearchPrev, Second, Seconds, SecondsShort, SeekForward, SeekBackward, Show, ShowAlbumArtists, ShowCovers, ShowLibrary, Shuffle, Shutdown, SimilarArtists, SortBy, Stop, Streams, StreamUrl, Success, Th, Third, Title, Track, TrackOn, TrackNo, Tracks, Tree, Undo, UnknownAlbum, UnknownArtist, UnknownTitle, UnknownGenre, UnknownYear, UnknownPlaceholder, Various, VariousAlbums, VariousArtists, VariousTracks, Version, VolumeDown, VolumeUp, Warning, Weeks, Year, Years, Yes, Zoom, NUMBER_OF_LANGUAGE_KEYS } |
An enum for the most common translation files. use with Lang::get() | |
enum | TermNr { NrDirectories =0, NrFiles, NrPlaylists, NrTracks, NrTracksFound, NUMBER_OF_LANGUAGE_PARAM_KEYS } |
Static Public Member Functions | |
static LanguageString | get (Lang::Term term, bool *ok=nullptr) |
Fetch translation by enum. More... | |
static LanguageString | getWithNumber (Lang::TermNr term, int param, bool *ok=nullptr) |
static QString | convertOldLanguage (const QString &oldLang) |
Converts two letter into four letter. More... | |
static QMap< QString, QLocale > | availableLanguages () |
Returns all languages located in user path and all languages in sayonara path. More... | |
static QString | twoLetter (const QString &languageName) |
Returns the two letter representation of a language. More... | |
static QString | fourLetter (const QString &languageName) |
Returns the four letter representation of a language. More... | |
The Lang class.
|
static |
Returns all languages located in user path and all languages in sayonara path.
|
static |
Converts two letter into four letter.
two | letter language filename |
|
static |
Returns the four letter representation of a language.
language_name | e.g. ...lang_DE_de.qm. |
|
static |
Fetch translation by enum.
enum | term describing the source word |
ok | optional pointer for return value |
|
static |
Returns the two letter representation of a language.
language_name | e.g. ...lang_DE_de.qm. |