You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
896 B
34 lines
896 B
/* |
|
SPDX-FileCopyrightText: 2014 John Layt <john@layt.net> |
|
SPDX-FileCopyrightText: 2018 Eike Hein <hein@kde.org> |
|
SPDX-FileCopyrightText: 2019 Kevin Ottens <kevin.ottens@enioka.com> |
|
SPDX-FileCopyrightText: 2021 Han Young <hanyoung@protonmail.com> |
|
SPDX-License-Identifier: LGPL-2.0-or-later |
|
*/ |
|
#include "config-workspace.h" |
|
|
|
#include "localegenerator.h" |
|
|
|
#include "localegeneratorbase.h" |
|
|
|
#include "localegeneratorgeneratedglibc.h" |
|
|
|
#ifdef OS_UBUNTU |
|
#include "localegeneratorubuntu.h" |
|
#elif GLIBC_LOCALE |
|
#include "localegeneratorglibc.h" |
|
#endif |
|
|
|
LocaleGeneratorBase *LocaleGenerator::getGenerator() |
|
{ |
|
#ifdef OS_UBUNTU |
|
static LocaleGeneratorUbuntu singleton; |
|
#elif GLIBC_LOCALE |
|
static LocaleGeneratorGlibc singleton; |
|
#elif LOCALE_GENERATED |
|
static LocaleGeneratorGeneratedGlibc singleton; |
|
#else |
|
static LocaleGeneratorBase singleton; |
|
#endif |
|
return &singleton; |
|
}
|
|
|