pfalstad / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
1.65k stars 280 forks source link

Update russian language #17

Closed SEVA77 closed 2 years ago

pfalstad commented 2 years ago

I have updated the locale_ru.txt on my site. I will do a proper merge and update of my fork later. Спасибо!

SEVA77 commented 2 years ago

Pay attention to the problem in the main menu. You forgot to add LS() function.

By the way, try to change the width value by 100% for the menuItemWithShortcut.

    MenuItem menuItemWithShortcut(String icon, String text, String shortcut, MyCommand cmd) {
    final String edithtml="<div style=\"white-space:nowrap\"><div style=\"display:inline-block;width:100%;\"><i class=\"cirjsicon-";
    String nbsp = "&nbsp;";
    if (icon=="") nbsp="";
    String sn=edithtml + icon + "\"></i>" + nbsp + text + "</div>" + shortcut + "</div>";
    return new MenuItem(SafeHtmlUtils.fromTrustedString(sn), cmd);
    }
pfalstad commented 2 years ago

Yes I saw that. I'll fix it.

pfalstad commented 2 years ago

what are you saying about the width value?

SEVA77 commented 2 years ago

Width in 'div' block. Change 110px to 100%. This will move shortcuts to the right edge. image