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:
parent
4d2f02ac45
commit
d8cdee1cce
@ -156,7 +156,6 @@ void DataPaths::initCurrentProfile(const QString &profilePath)
|
|||||||
|
|
||||||
void DataPaths::initAssetsIn(const QString &path)
|
void DataPaths::initAssetsIn(const QString &path)
|
||||||
{
|
{
|
||||||
m_paths[Translations].append(path + QLatin1String("/locale"));
|
|
||||||
m_paths[Themes].append(path + QLatin1String("/themes"));
|
m_paths[Themes].append(path + QLatin1String("/themes"));
|
||||||
m_paths[Plugins].append(path + QLatin1String("/plugins"));
|
m_paths[Plugins].append(path + QLatin1String("/plugins"));
|
||||||
}
|
}
|
||||||
|
@ -28,17 +28,16 @@ class FALKON_EXPORT DataPaths
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum Path {
|
enum Path {
|
||||||
AppData = 0, // /usr/share/falkon or . or ../Resources
|
AppData = 0,
|
||||||
Translations = 1, // $AppData/locale
|
Themes,
|
||||||
Themes = 2, // $AppData/themes
|
Plugins,
|
||||||
Plugins = 3, // $AppData/plugins
|
Config,
|
||||||
Config = 4, // $XDG_CONFIG_HOME/falkon or %LOCALAPPDATA%/falkon or $AppData/data (portable)
|
Profiles,
|
||||||
Profiles = 5, // $Config/profiles
|
CurrentProfile,
|
||||||
CurrentProfile = 6, // $Profiles/current_profile
|
Temp,
|
||||||
Temp = 7, // $Config/tmp
|
Cache,
|
||||||
Cache = 8, // $XDG_CACHE_HOME/falkon or $CurrentProfile/cache
|
Sessions,
|
||||||
Sessions = 9, // $CurrentProfile/sessions
|
LastPath
|
||||||
LastPath = 10
|
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit DataPaths();
|
explicit DataPaths();
|
||||||
|
@ -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("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("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("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("Extensions"), allPaths(DataPaths::Plugins)));
|
||||||
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Translations"), allPaths(DataPaths::Translations)));
|
|
||||||
|
|
||||||
#ifdef QT_DEBUG
|
#ifdef QT_DEBUG
|
||||||
QString debugBuild = tr("<b>Enabled</b>");
|
QString debugBuild = tr("<b>Enabled</b>");
|
||||||
|
Loading…
Reference in New Issue
Block a user