1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

DataPaths: Remove Translations path

This commit is contained in:
David Rosca 2018-02-26 22:03:58 +01:00
parent 4d2f02ac45
commit d8cdee1cce
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
3 changed files with 11 additions and 14 deletions

View File

@ -156,7 +156,6 @@ void DataPaths::initCurrentProfile(const QString &profilePath)
void DataPaths::initAssetsIn(const QString &path)
{
m_paths[Translations].append(path + QLatin1String("/locale"));
m_paths[Themes].append(path + QLatin1String("/themes"));
m_paths[Plugins].append(path + QLatin1String("/plugins"));
}

View File

@ -28,17 +28,16 @@ class FALKON_EXPORT DataPaths
{
public:
enum Path {
AppData = 0, // /usr/share/falkon or . or ../Resources
Translations = 1, // $AppData/locale
Themes = 2, // $AppData/themes
Plugins = 3, // $AppData/plugins
Config = 4, // $XDG_CONFIG_HOME/falkon or %LOCALAPPDATA%/falkon or $AppData/data (portable)
Profiles = 5, // $Config/profiles
CurrentProfile = 6, // $Profiles/current_profile
Temp = 7, // $Config/tmp
Cache = 8, // $XDG_CACHE_HOME/falkon or $CurrentProfile/cache
Sessions = 9, // $CurrentProfile/sessions
LastPath = 10
AppData = 0,
Themes,
Plugins,
Config,
Profiles,
CurrentProfile,
Temp,
Cache,
Sessions,
LastPath
};
explicit DataPaths();

View File

@ -326,8 +326,7 @@ QString FalkonSchemeReply::configPage()
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Saved session"), SessionManager::defaultSessionPath()) +
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Data"), allPaths(DataPaths::AppData)) +
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Themes"), allPaths(DataPaths::Themes)) +
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Extensions"), allPaths(DataPaths::Plugins)) +
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Translations"), allPaths(DataPaths::Translations)));
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Extensions"), allPaths(DataPaths::Plugins)));
#ifdef QT_DEBUG
QString debugBuild = tr("<b>Enabled</b>");