Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2019-04-16 10:47:55 +0300
committerChristian Kamm <mail@ckamm.de>2019-04-23 10:21:17 +0300
commitac19fab71aaee448a3f588ba01f06b2f5dca26b8 (patch)
treeb7d7f035bddc57731923b1d68140840e2ddfe81b /src/gui/guiutility.h
parent1e1340b4578c9af13a9ea2cd4fe1dfd21e7f0a6d (diff)
Vfs: Adjust and centralise action text #7143
Saying "Currently available locally" sounds more like an indicator than "Availably locally" does. Centralizing translations avoids consistency issues between shell context menus and sync folder context menu.
Diffstat (limited to 'src/gui/guiutility.h')
-rw-r--r--src/gui/guiutility.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/guiutility.h b/src/gui/guiutility.h
index 55f808ac2..b25ecc937 100644
--- a/src/gui/guiutility.h
+++ b/src/gui/guiutility.h
@@ -19,6 +19,8 @@
#include <QUrl>
#include <QWidget>
+#include "common/pinstate.h"
+
namespace OCC {
namespace Utility {
@@ -35,6 +37,18 @@ namespace Utility {
bool openEmailComposer(const QString &subject, const QString &body,
QWidget *errorWidgetParent);
+ /** Returns a translated string indicating the current availability.
+ *
+ * This will be used in context menus to describe the current state.
+ */
+ QString vfsCurrentAvailabilityText(VfsItemAvailability availability, bool forFolder);
+
+ /** Translated text for "making items always available locally" */
+ QString vfsPinActionText();
+
+ /** Translated text for "free up local space" (and unpinning the item) */
+ QString vfsFreeSpaceActionText();
+
} // namespace Utility
} // namespace OCC