mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-21 16:58:44 +00:00
Add localisable strings for error (#2447)
* Add localisable strings for error * Update tiddler Transclusion Basic Usage in fr-FR
This commit is contained in:
@@ -45,7 +45,7 @@ exports.httpRequest = function(options) {
|
||||
return;
|
||||
}
|
||||
// Something went wrong
|
||||
options.callback($tw.language.getString("Syncer/XMLHttpRequestError") + ": " + this.status);
|
||||
options.callback($tw.language.getString("Error/XMLHttpRequest") + ": " + this.status);
|
||||
}
|
||||
};
|
||||
// Make the request
|
||||
|
||||
@@ -28,7 +28,7 @@ exports.repackPlugin = function(title,additionalTiddlers,excludeTiddlers) {
|
||||
try {
|
||||
jsonPluginTiddler = JSON.parse(pluginTiddler.fields.text);
|
||||
} catch(e) {
|
||||
throw "Cannot parse plugin tiddler " + title + "\nError: " + e;
|
||||
throw "Cannot parse plugin tiddler " + title + "\n" + $tw.language.getString("Error/Caption") + ": " + e;
|
||||
}
|
||||
// Get the list of tiddlers
|
||||
var tiddlers = Object.keys(jsonPluginTiddler.tiddlers);
|
||||
|
||||
Reference in New Issue
Block a user