forked from NG-SD-Plugins/PowerTools
Fix missing translation for Defaults button
This commit is contained in:
parent
ce5b0ed926
commit
5481587167
10 changed files with 29 additions and 4 deletions
2
backend/Cargo.lock
generated
2
backend/Cargo.lock
generated
|
@ -826,7 +826,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "powertools-rs"
|
name = "powertools-rs"
|
||||||
version = "1.1.0-beta4"
|
version = "1.1.0-beta5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"limits_core",
|
"limits_core",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "powertools-rs"
|
name = "powertools-rs"
|
||||||
version = "1.1.0-beta4"
|
version = "1.1.0-beta5"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["NGnius (Graham) <ngniusness@gmail.com>"]
|
authors = ["NGnius (Graham) <ngniusness@gmail.com>"]
|
||||||
description = "Backend (superuser) functionality for PowerTools"
|
description = "Backend (superuser) functionality for PowerTools"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
//! Rough Rust port of some BatCtrl functionality
|
//! Rough Rust port of some BatCtrl functionality
|
||||||
|
//! Original: /usr/share/jupiter_controller_fw_updater/RA_bootloader_updater/linux_host_tools/BatCtrl
|
||||||
//! I do not have access to the source code, so this is my own interpretation of what it does.
|
//! I do not have access to the source code, so this is my own interpretation of what it does.
|
||||||
//!
|
//!
|
||||||
//! But also Quanta is based in a place with some questionable copyright practices, so...
|
//! But also Quanta is based in a place with some questionable copyright practices, so...
|
||||||
|
@ -95,11 +96,20 @@ pub fn set(setting: Setting, mode: u8) -> Result<usize, Error> {
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum Setting {
|
pub enum Setting {
|
||||||
|
CycleCount = 0x32,
|
||||||
|
ControlBoard = 0x6C,
|
||||||
Charge = 0xA6,
|
Charge = 0xA6,
|
||||||
ChargeMode = 0x76,
|
ChargeMode = 0x76,
|
||||||
LEDStatus = 199,
|
LEDStatus = 199,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Copy, Clone, Debug)]
|
||||||
|
#[repr(u8)]
|
||||||
|
pub enum ControlBoard {
|
||||||
|
Enable = 0xAA,
|
||||||
|
Disable = 0xAB,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum ChargeMode {
|
pub enum ChargeMode {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "PowerTools",
|
"name": "PowerTools",
|
||||||
"version": "1.1.0-beta4",
|
"version": "1.1.0-beta5",
|
||||||
"description": "Power tweaks for power users",
|
"description": "Power tweaks for power users",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "shx rm -rf dist && rollup -c",
|
"build": "shx rm -rf dist && rollup -c",
|
||||||
|
|
|
@ -263,7 +263,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({}) => {
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Defaults
|
{tr("Defaults")}
|
||||||
</ButtonItem>
|
</ButtonItem>
|
||||||
</PanelSectionRow>
|
</PanelSectionRow>
|
||||||
</PanelSection>
|
</PanelSection>
|
||||||
|
|
Binary file not shown.
|
@ -39,6 +39,11 @@ msgstr "Guardar perfil y cargarlo la próxima vez"
|
||||||
msgid "Profile"
|
msgid "Profile"
|
||||||
msgstr "Perfil"
|
msgstr "Perfil"
|
||||||
|
|
||||||
|
#: index.tsx:266
|
||||||
|
# (Button to reset everything to system defaults)
|
||||||
|
msgid "Defaults"
|
||||||
|
msgstr "Valores predeterminados"
|
||||||
|
|
||||||
# -- components/battery.tsx --
|
# -- components/battery.tsx --
|
||||||
|
|
||||||
#: components/battery.tsx:42
|
#: components/battery.tsx:42
|
||||||
|
|
Binary file not shown.
|
@ -39,6 +39,11 @@ msgstr "Sauvegarder le profile et le charger la prochaine fois"
|
||||||
msgid "Profile"
|
msgid "Profile"
|
||||||
msgstr "Profile"
|
msgstr "Profile"
|
||||||
|
|
||||||
|
# (Button to reset everything to system defaults)
|
||||||
|
#: index.tsx:266
|
||||||
|
msgid "Defaults"
|
||||||
|
msgstr "Valeurs par défaut"
|
||||||
|
|
||||||
# -- components/battery.tsx --
|
# -- components/battery.tsx --
|
||||||
# (Battery section title)
|
# (Battery section title)
|
||||||
#: components/battery.tsx:42
|
#: components/battery.tsx:42
|
||||||
|
|
|
@ -37,6 +37,11 @@ msgstr ""
|
||||||
msgid "Profile"
|
msgid "Profile"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: index.tsx:266
|
||||||
|
# (Button to reset everything to system defaults)
|
||||||
|
msgid "Defaults"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
# -- components/battery.tsx --
|
# -- components/battery.tsx --
|
||||||
|
|
||||||
#: components/battery.tsx:42
|
#: components/battery.tsx:42
|
||||||
|
|
Loading…
Reference in a new issue