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:
@@ -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;
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user