1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-12 21:43:01 +00:00

Make lazy loading message be translateable

This commit is contained in:
Jermolene
2015-09-08 10:41:27 +01:00
parent f405a89b28
commit ecdae4ceff
3 changed files with 34 additions and 15 deletions

View File

@@ -22,7 +22,7 @@ function Language(options) {
}
/*
Return a single translateable string. The title is automatically prefixed with "$:/language/"
Return a wikified translateable string. The title is automatically prefixed with "$:/language/"
Options include:
variables: optional hashmap of variables to supply to the language wikification
*/
@@ -32,6 +32,14 @@ Language.prototype.getString = function(title,options) {
return this.wiki.renderTiddler("text/plain",title,{variables: options.variables});
};
/*
Return a raw, unwikified translateable string. The title is automatically prefixed with "$:/language/"
*/
Language.prototype.getRawString = function(title) {
title = "$:/language/" + title;
return this.wiki.getTiddlerText(title);
};
exports.Language = Language;
})();