Fix missing translation for Defaults button

This commit is contained in:
NGnius (Graham) 2023-01-29 11:09:42 -05:00
parent ce5b0ed926
commit 5481587167
10 changed files with 29 additions and 4 deletions

2
backend/Cargo.lock generated
View file

@ -826,7 +826,7 @@ dependencies = [
[[package]]
name = "powertools-rs"
version = "1.1.0-beta4"
version = "1.1.0-beta5"
dependencies = [
"async-trait",
"limits_core",

View file

@ -1,6 +1,6 @@
[package]
name = "powertools-rs"
version = "1.1.0-beta4"
version = "1.1.0-beta5"
edition = "2021"
authors = ["NGnius (Graham) <ngniusness@gmail.com>"]
description = "Backend (superuser) functionality for PowerTools"

View file

@ -1,4 +1,5 @@
//! 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.
//!
//! 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)]
#[repr(u8)]
pub enum Setting {
CycleCount = 0x32,
ControlBoard = 0x6C,
Charge = 0xA6,
ChargeMode = 0x76,
LEDStatus = 199,
}
#[derive(Copy, Clone, Debug)]
#[repr(u8)]
pub enum ControlBoard {
Enable = 0xAA,
Disable = 0xAB,
}
#[derive(Copy, Clone, Debug)]
#[repr(u8)]
pub enum ChargeMode {

View file

@ -1,6 +1,6 @@
{
"name": "PowerTools",
"version": "1.1.0-beta4",
"version": "1.1.0-beta5",
"description": "Power tweaks for power users",
"scripts": {
"build": "shx rm -rf dist && rollup -c",

View file

@ -263,7 +263,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({}) => {
);
}}
>
Defaults
{tr("Defaults")}
</ButtonItem>
</PanelSectionRow>
</PanelSection>

Binary file not shown.

View file

@ -39,6 +39,11 @@ msgstr "Guardar perfil y cargarlo la próxima vez"
msgid "Profile"
msgstr "Perfil"
#: index.tsx:266
# (Button to reset everything to system defaults)
msgid "Defaults"
msgstr "Valores predeterminados"
# -- components/battery.tsx --
#: components/battery.tsx:42

Binary file not shown.

View file

@ -39,6 +39,11 @@ msgstr "Sauvegarder le profile et le charger la prochaine fois"
msgid "Profile"
msgstr "Profile"
# (Button to reset everything to system defaults)
#: index.tsx:266
msgid "Defaults"
msgstr "Valeurs par défaut"
# -- components/battery.tsx --
# (Battery section title)
#: components/battery.tsx:42

View file

@ -37,6 +37,11 @@ msgstr ""
msgid "Profile"
msgstr ""
#: index.tsx:266
# (Button to reset everything to system defaults)
msgid "Defaults"
msgstr ""
# -- components/battery.tsx --
#: components/battery.tsx:42