mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 23:03:50 +00:00
Make draft title translatable
This commit is contained in:
parent
49a33ae467
commit
7aec0e122b
3
core/language/en-GB/DraftAuthor.tid
Normal file
3
core/language/en-GB/DraftAuthor.tid
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
title: $:/language/DraftAuthor
|
||||||
|
|
||||||
|
by $1$
|
3
core/language/en-GB/DraftNumber.tid
Normal file
3
core/language/en-GB/DraftNumber.tid
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
title: $:/language/DraftNumber
|
||||||
|
|
||||||
|
$1$
|
@ -15,6 +15,8 @@ ConfirmAction: Do you wish to proceed?
|
|||||||
Count: count
|
Count: count
|
||||||
DefaultNewTiddlerTitle: New Tiddler
|
DefaultNewTiddlerTitle: New Tiddler
|
||||||
Diffs/CountMessage: <<diff-count>> differences
|
Diffs/CountMessage: <<diff-count>> differences
|
||||||
|
|
||||||
|
DraftTitle: Draft $1$of '$2$'$3$
|
||||||
DropMessage: Drop now (or use the 'Escape' key to cancel)
|
DropMessage: Drop now (or use the 'Escape' key to cancel)
|
||||||
Encryption/Cancel: Cancel
|
Encryption/Cancel: Cancel
|
||||||
Encryption/ConfirmClearPassword: Do you wish to clear the password? This will remove the encryption applied when saving this wiki
|
Encryption/ConfirmClearPassword: Do you wish to clear the password? This will remove the encryption applied when saving this wiki
|
||||||
|
@ -1701,9 +1701,12 @@ exports.generateDraftTitle = function(title) {
|
|||||||
var c = 0,
|
var c = 0,
|
||||||
draftTitle,
|
draftTitle,
|
||||||
username = this.getTiddlerText("$:/status/UserName"),
|
username = this.getTiddlerText("$:/status/UserName"),
|
||||||
attribution = username ? " by " + username : "";
|
draftBaseTitle = $tw.language.getRawString("DraftTitle"),
|
||||||
|
draftAuthor = $tw.language.getRawString("DraftAuthor"),
|
||||||
|
draftNumber = $tw.language.getRawString("DraftNumber"),
|
||||||
|
attribution = username ? draftAuthor.replace("$1$",username) : "";
|
||||||
do {
|
do {
|
||||||
draftTitle = "Draft " + (c ? (c + 1) + " " : "") + "of '" + title + "'" + attribution;
|
draftTitle = draftBaseTitle.replace("$1$", (c ? draftNumber.replace(draftNumber, "$1$") : "")).replace("$2$", title).replace("$3$",attribution);
|
||||||
c++;
|
c++;
|
||||||
} while(this.tiddlerExists(draftTitle));
|
} while(this.tiddlerExists(draftTitle));
|
||||||
return draftTitle;
|
return draftTitle;
|
||||||
|
@ -15,6 +15,9 @@ ConfirmAction: 是否要继续?
|
|||||||
Count: 计数
|
Count: 计数
|
||||||
DefaultNewTiddlerTitle: 新条目
|
DefaultNewTiddlerTitle: 新条目
|
||||||
Diffs/CountMessage: <<diff-count>> 个差异
|
Diffs/CountMessage: <<diff-count>> 个差异
|
||||||
|
DraftAuthor: $1$撰写的
|
||||||
|
DraftNumber: $1$
|
||||||
|
DraftTitle: $3$“$2$”的草稿$1$
|
||||||
DropMessage: 现在放下(或按 ESC 键取消)
|
DropMessage: 现在放下(或按 ESC 键取消)
|
||||||
Encryption/Cancel: 取消
|
Encryption/Cancel: 取消
|
||||||
Encryption/ConfirmClearPassword: 您要清除密码吗?当保存此维基时,这将删除已套用的加密
|
Encryption/ConfirmClearPassword: 您要清除密码吗?当保存此维基时,这将删除已套用的加密
|
||||||
|
Loading…
x
Reference in New Issue
Block a user