diff --git a/boot/boot.js b/boot/boot.js index 9d838a0d6..02307f600 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1244,10 +1244,14 @@ Decrypt any tiddlers stored within the element with the ID "encryptedArea". The $tw.boot.decryptEncryptedTiddlers = function(callback) { var encryptedArea = document.getElementById("encryptedStoreArea"); if(encryptedArea) { - var encryptedText = encryptedArea.innerHTML; + var encryptedText = encryptedArea.innerHTML, + prompt = "Enter a password to decrypt this TiddlyWiki"; // Prompt for the password + if($tw.utils.hop($tw.boot,"encryptionPrompts")) { + prompt = $tw.boot.encryptionPrompts.decrypt; + } $tw.passwordPrompt.createPrompt({ - serviceName: "Enter a password to decrypt this TiddlyWiki", + serviceName: prompt, noUserName: true, submitText: "Decrypt", callback: function(data) { diff --git a/editions/dev/tiddlers/from tw5.com/How to customise the password prompt.tid b/editions/dev/tiddlers/from tw5.com/How to customise the password prompt.tid new file mode 100644 index 000000000..53eb35433 --- /dev/null +++ b/editions/dev/tiddlers/from tw5.com/How to customise the password prompt.tid @@ -0,0 +1,15 @@ +title: How to customise the password prompt +tags: howto +created: 20141006085526118 +modified: 20141006085526118 + +You can customise the text and appearance of the password prompt that is displayed when encrypted TiddlyWiki files are first opened. + +To do so, create a tiddler tagged {{$:/core/wiki/rawmarkup|$:/core/ui/TagTemplate}} containing: + +# A JavaScript ` +