Fixing translation issue of library names

snap7
Joan Guillén i Pelegay 2021-12-10 11:58:28 +01:00
rodzic 57fec07ee3
commit 130d1a7582
2 zmienionych plików z 9 dodań i 5 usunięć

Wyświetl plik

@ -8970,7 +8970,8 @@ LibraryImportDialogMorph.prototype.installLibrariesList = function () {
element => element.name, element => element.name,
null, null,
() => this.importLibrary(), () => this.importLibrary(),
'~' // separator '~', // separator
false // verbatim
); );
this.fixListFieldItemColors(); this.fixListFieldItemColors();

Wyświetl plik

@ -10764,7 +10764,7 @@ ListMorph.prototype = new ScrollFrameMorph();
ListMorph.prototype.constructor = ListMorph; ListMorph.prototype.constructor = ListMorph;
ListMorph.uber = ScrollFrameMorph.prototype; ListMorph.uber = ScrollFrameMorph.prototype;
function ListMorph(elements, labelGetter, format, onDoubleClick, separator) { function ListMorph(elements, labelGetter, format, onDoubleClick, separator, verbatim) {
/* /*
passing a format is optional. If the format parameter is specified passing a format is optional. If the format parameter is specified
it has to be of the following pattern: it has to be of the following pattern:
@ -10798,7 +10798,8 @@ function ListMorph(elements, labelGetter, format, onDoubleClick, separator) {
}, },
format || [], format || [],
onDoubleClick, // optional callback onDoubleClick, // optional callback
separator // string indicating a horizontal line between items separator, // string indicating a horizontal line between items
verbatim
); );
} }
@ -10807,7 +10808,8 @@ ListMorph.prototype.init = function (
labelGetter, labelGetter,
format, format,
onDoubleClick, onDoubleClick,
separator separator,
verbatim
) { ) {
ListMorph.uber.init.call(this); ListMorph.uber.init.call(this);
@ -10824,6 +10826,7 @@ ListMorph.prototype.init = function (
this.action = null; this.action = null;
this.doubleClickAction = onDoubleClick || null; this.doubleClickAction = onDoubleClick || null;
this.separator = separator || ''; this.separator = separator || '';
this.verbatim = typeof verbatim === 'undefined' ? true : verbatim;
this.acceptsDrops = false; this.acceptsDrops = false;
this.buildListContents(); this.buildListContents();
}; };
@ -10871,7 +10874,7 @@ ListMorph.prototype.buildListContents = function () {
italic, italic,
this.doubleClickAction, this.doubleClickAction,
null, // shortcut null, // shortcut
true // verbatim - don't translate this.verbatim // don't translate
); );
} }
}); });