Skip to content

Commit

Permalink
Fix to the failures in the programming mode
Browse files Browse the repository at this point in the history
  • Loading branch information
marigostra committed Jun 19, 2022
1 parent 2b1febf commit cd63bd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ru-programming.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
General Public License for more details.
*/

Luwrain.addHook("luwrain.i18n.ru.speakable.programming.pre", (text)=>{
Luwrain.addHook("luwrain.i18n.ru.speakable.programming", (text)=>{
var res = "";
//Checking the first letter to understand what language must be the default
var rusLang = true;
Expand Down Expand Up @@ -43,7 +43,7 @@ Luwrain.addHook("luwrain.i18n.ru.speakable.programming.pre", (text)=>{
res += ch;
continue;
}
const value = rusLang?Luwrain.i18n.langs.ru.getSpecialNameOfChar(ch):Luwrain.i18n.langs.en.getSpecialNameOfChar(ch);
const value = rusLang?Luwrain.i18n().langs.ru.getSpecialNameOfChar(ch):Luwrain.i18n().langs.en.getSpecialNameOfChar(ch);
if (!!value && value.trim().length > 0)
res += (' ' + value + ' '); else
res += ch;
Expand Down

0 comments on commit cd63bd6

Please sign in to comment.