diff options
Diffstat (limited to 'src/libcalamares/locale/LabelModel.cpp')
-rw-r--r-- | src/libcalamares/locale/LabelModel.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcalamares/locale/LabelModel.cpp b/src/libcalamares/locale/LabelModel.cpp index 90475cb0e..ac931620d 100644 --- a/src/libcalamares/locale/LabelModel.cpp +++ b/src/libcalamares/locale/LabelModel.cpp @@ -18,6 +18,8 @@ #include "LabelModel.h" +#include "CalamaresVersion.h" // For the list of translations + namespace CalamaresUtils::Locale { @@ -104,4 +106,10 @@ LabelModel::find( const QLocale& locale ) const } ); } +LabelModel* const availableTranslations() +{ + static LabelModel model( QString( CALAMARES_TRANSLATION_LANGUAGES ).split( ';') ); + return &model; +} + } // namespace |