From 25777b147fa4ed2f915150aec503ad1e094e6043 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 19 Aug 2014 13:07:57 +0100 Subject: [PATCH] Make dropzone text translateable Also make the text sticky for browsers that support it, ensuring that it is always visible even after scrolling --- core/language/en-GB/Misc.multids | 1 + themes/tiddlywiki/vanilla/base.tid | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/language/en-GB/Misc.multids b/core/language/en-GB/Misc.multids index 58f07beff..ad8f3543c 100644 --- a/core/language/en-GB/Misc.multids +++ b/core/language/en-GB/Misc.multids @@ -8,6 +8,7 @@ ConfirmCancelTiddler: Do you wish to discard changes to the tiddler "<$text text ConfirmDeleteTiddler: Do you wish to delete the tiddler "<$text text=<>/>"? ConfirmOverwriteTiddler: Do you wish to overwrite the tiddler "<$text text=<<title>>/>"? ConfirmEditShadowTiddler: You are about to edit a ShadowTiddler. Any changes will override the default system making future upgrades non-trivial. Are you sure you want to edit "<$text text=<<title>>/>"? +DropMessage: Drop here (or click escape to cancel) InvalidFieldName: Illegal characters in field name "<$text text=<<fieldName>>/>". Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`) MissingTiddler/Hint: Missing tiddler "<$text text=<<currentTiddler>>/>" - click {{$:/core/images/edit-button}} to create RecentChanges/DateFormat: DDth MMM YYYY diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 3e0dbf575..7a1175d9e 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -226,12 +226,17 @@ a.tw-tiddlylink-external:hover { z-index: 10000; display: block; position: absolute; + position: -webkit-sticky; + position: -moz-sticky; + position: -o-sticky; + position: -ms-sticky; + position: sticky; top: 0; left: 0; right: 0; background: <<colour dropzone-background>>; text-align: center; - content: "Drop here"; + content: "<<lingo DropMessage>>"; } /*