po: update Russion translation and have all strings translated

* update Russian translation

* Fixed translation display in GUI

* fix checks / Fixed translation display in GUI
This commit is contained in:
MistificaT0r 2024-04-21 18:36:39 +03:00 committed by GitHub
parent 2adeb2672a
commit 4225fce8d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 13 additions and 8 deletions

View File

@ -24,7 +24,7 @@
# USB ids of Logitech wireless receivers. # USB ids of Logitech wireless receivers.
# Only receivers supporting the HID++ protocol can go in here. # Only receivers supporting the HID++ protocol can go in here.
from .i18n import _ from solaar.i18n import _
# max_devices is only used for receivers that do not support reading from _R.receiver_info offset 0x03, default to 1 # max_devices is only used for receivers that do not support reading from _R.receiver_info offset 0x03, default to 1
# may_unpair is only used for receivers that do not support reading from _R.receiver_info offset 0x03, default to False # may_unpair is only used for receivers that do not support reading from _R.receiver_info offset 0x03, default to False

View File

@ -25,7 +25,7 @@ from typing import Union
import yaml as _yaml import yaml as _yaml
from .i18n import _ from solaar.i18n import _
def is_string(d): def is_string(d):

View File

@ -26,6 +26,8 @@ from typing import Optional
import yaml as _yaml import yaml as _yaml
from solaar.i18n import _
from . import exceptions from . import exceptions
from . import hidpp10_constants as _hidpp10_constants from . import hidpp10_constants as _hidpp10_constants
from . import special_keys from . import special_keys
@ -45,7 +47,6 @@ from .hidpp20_constants import ERROR
from .hidpp20_constants import FEATURE from .hidpp20_constants import FEATURE
from .hidpp20_constants import FIRMWARE_KIND from .hidpp20_constants import FIRMWARE_KIND
from .hidpp20_constants import GESTURE from .hidpp20_constants import GESTURE
from .i18n import _
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@ -22,6 +22,8 @@ import threading as _threading
from struct import unpack as _unpack from struct import unpack as _unpack
from solaar.i18n import _
from . import diversion as _diversion from . import diversion as _diversion
from . import hidpp10 from . import hidpp10
from . import hidpp10_constants as _hidpp10_constants from . import hidpp10_constants as _hidpp10_constants
@ -32,7 +34,6 @@ from .base import DJ_MESSAGE_ID as _DJ_MESSAGE_ID
from .common import ALERT as _ALERT from .common import ALERT as _ALERT
from .common import Battery as _Battery from .common import Battery as _Battery
from .common import strhex as _strhex from .common import strhex as _strhex
from .i18n import _
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@ -24,14 +24,15 @@ from typing import Optional
import hidapi as _hid import hidapi as _hid
from solaar.i18n import _
from solaar.i18n import ngettext
from . import base as _base from . import base as _base
from . import exceptions from . import exceptions
from . import hidpp10 from . import hidpp10
from . import hidpp10_constants from . import hidpp10_constants
from .common import ALERT from .common import ALERT
from .device import Device from .device import Device
from .i18n import _
from .i18n import ngettext
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@ -20,12 +20,13 @@ import math
from struct import unpack as _unpack from struct import unpack as _unpack
from time import sleep as _sleep from time import sleep as _sleep
from solaar.i18n import _
from . import hidpp20_constants as _hidpp20_constants from . import hidpp20_constants as _hidpp20_constants
from .common import NamedInt as _NamedInt from .common import NamedInt as _NamedInt
from .common import NamedInts as _NamedInts from .common import NamedInts as _NamedInts
from .common import bytes2int as _bytes2int from .common import bytes2int as _bytes2int
from .common import int2bytes as _int2bytes from .common import int2bytes as _int2bytes
from .i18n import _
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@ -23,6 +23,8 @@ from struct import unpack as _unpack
from time import time as _time from time import time as _time
from traceback import format_exc as _format_exc from traceback import format_exc as _format_exc
from solaar.i18n import _
from . import descriptors as _descriptors from . import descriptors as _descriptors
from . import hidpp10_constants as _hidpp10_constants from . import hidpp10_constants as _hidpp10_constants
from . import hidpp20 from . import hidpp20
@ -35,7 +37,6 @@ from .common import NamedInts as _NamedInts
from .common import bytes2int as _bytes2int from .common import bytes2int as _bytes2int
from .common import int2bytes as _int2bytes from .common import int2bytes as _int2bytes
from .diversion import process_notification as _process_notification from .diversion import process_notification as _process_notification
from .i18n import _
from .settings import KIND as _KIND from .settings import KIND as _KIND
from .settings import ActionSettingRW as _ActionSettingRW from .settings import ActionSettingRW as _ActionSettingRW
from .settings import BitFieldSetting as _BitFieldSetting from .settings import BitFieldSetting as _BitFieldSetting