mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Made a few more strings translatable.
This commit is contained in:
@@ -86,6 +86,7 @@
|
||||
pluginEditor.getElementById('globalPriority').label = l10n.translate("Global Priority").fetch();
|
||||
pluginEditor.getElementById('priorityValue').parentElement.previousElementSibling.textContent = l10n.translate("Priority Value").fetch();
|
||||
|
||||
pluginEditor.getElementById('tableTabs').querySelector('[data-for=main]').textContent = l10n.translate("Main").fetch();
|
||||
pluginEditor.getElementById('tableTabs').querySelector('[data-for=loadAfter]').textContent = l10n.translate("Load After").fetch();
|
||||
pluginEditor.getElementById('tableTabs').querySelector('[data-for=req]').textContent = l10n.translate("Requirements").fetch();
|
||||
pluginEditor.getElementById('tableTabs').querySelector('[data-for=inc]').textContent = l10n.translate("Incompatibilities").fetch();
|
||||
@@ -239,6 +240,7 @@
|
||||
document.getElementById('sidebarTabs').firstElementChild.textContent = l10n.translate("Plugins").fetch();
|
||||
document.getElementById('sidebarTabs').firstElementChild.nextElementSibling.textContent = l10n.translate("Filters").fetch();
|
||||
document.getElementById('searchBox').parentElement.label = l10n.translate("Press Enter or click outside the input to set the filter.").fetch();
|
||||
document.getElementById('searchBox').label = l10n.translate("Filter content...").fetch();
|
||||
|
||||
/* Filters */
|
||||
document.getElementById('hideVersionNumbers').label = l10n.translate("Hide version numbers").fetch();
|
||||
|
||||
@@ -343,7 +343,7 @@ function processCefError(err) {
|
||||
promise errors, not just CEF errors. */
|
||||
console.log(err.stack);
|
||||
closeProgressDialog();
|
||||
showMessageBox('Error', err.message);
|
||||
showMessageBox(l10n.jed.translate('Error').fetch(), err.message);
|
||||
}
|
||||
|
||||
function showElement(element) {
|
||||
@@ -380,7 +380,7 @@ function getConflictingPluginsFromFilter() {
|
||||
]
|
||||
});
|
||||
|
||||
showProgress('Checking if plugins have been loaded...');
|
||||
showProgress(l10n.jed.translate('Checking if plugins have been loaded...').fetch());
|
||||
|
||||
return loot.query(request).then(JSON.parse).then(function(result){
|
||||
if (result) {
|
||||
@@ -435,7 +435,7 @@ function changeGame(evt) {
|
||||
}
|
||||
|
||||
/* Send off a CEF query with the folder name of the new game. */
|
||||
showProgress('Loading game data...');
|
||||
showProgress(l10n.jed.translate('Loading game data...').fetch());
|
||||
var request = JSON.stringify({
|
||||
name: 'changeGame',
|
||||
args: [
|
||||
@@ -1071,7 +1071,7 @@ function initVars() {
|
||||
if (loot.version.length > pos + 1) {
|
||||
document.getElementById('LOOTBuild').textContent = loot.version.substring(pos + 1);
|
||||
} else {
|
||||
document.getElementById('LOOTBuild').textContent = 'unknown';
|
||||
document.getElementById('LOOTBuild').textContent = l10n.jed.translate('unknown').fetch();
|
||||
}
|
||||
|
||||
loot.version = loot.version.substring(0, pos);
|
||||
|
||||
Reference in New Issue
Block a user