maniacx / Battery-Health-Charging

GNU General Public License v3.0
157 stars 14 forks source link

Translation Update #47

Open maniacx opened 1 year ago

maniacx commented 1 year ago

Tranalation Updates

maniacx commented 1 year ago

Few more string added. Please assist. @Valeria @ViBE-HU @Vistaus
@sabriunal @viksok @dalz

maniacx commented 6 months ago

@Valeria @ViBE-HU @Vistaus @sabriunal @viksok @dalz @ludrol

Hello everybody. Thank you for the contribution in translation. I think I may have covered support for most laptops and features available, probably finalize with the extension. Some common translation have been updated by me using a script for translation that is already existing in repos like gnome-shell, libadwaita and some other project. Some complex translation are still missing. I would appreciate if you can contribute once again translation.

Some explanation to the complex strings for context

Settings Apple Laptops

This is for charging LED / light on apple laptop When button enabled: Indicator light glows green when charger on hold. (battery level reaches charging threshold). Indicator light glows amber while charging. When button disabled (system default behavior): Indicator light glows green only when battery is fully charged (battery level 100%) Indicator light glows amber when charger on hold. (battery level reaches charging threshold). Indicator light glows amber while charging. Below are string for title of switch that enables this settings

msgid "Change the behavior of charging indicator light"

device-apple

Dell Laptops

Some dell laptop when using library Dell command configure require bios password to change bios configuration and charging threshold / mode. Below are string displayed in settings

# Title of group of settings that as related to bios password required by Dell command configure 
msgid "Bios Authentication"

# Title for switch dell command center requires Bios password to change charging threshold
msgid "Requires Bios password validation to change mode/threshold"
# Description of switch informing to enable switch if Dell command configure required bios password to change settings
msgid "Enable if Dell command configure uses Bios (system) password to change mode/threshold"

#Title for Gtk Entry box informing to enter bios password
msgid "Enter Bios Password"

# Small description Note provided on the Gtk entry box informing that this password will store in gnome keyring
msgid "Note: Bios password will be stored in Gnome Keyring"

# Notification informing the password needs to be correct to change charging threshold
msgid "Apply correct Bios Password to set threshold."

device-dell noti-dell-bios

Thinkpad Laptop

These are settings enabled a force discharge feature in Thinkpad laptop. In normal case when laptop battery level is higher than charging threshold it will disconnect, the charger from the battery and power the laptop and the battery will discharge slowly (floating charge) until the battery level reaches the charging threshold level and may take days to discharging to charging threshold level. Enabling "Force discharge" will disconnect the charger from the battery and laptop, forcing the laptop to discharge faster (few minutes or hours) and when the battery level reaches charging threshold the charger connects and powers the laptop whilst still disconnected to the battery. This feature is provided by enable force discharge in settings

#A title for switch to enable force discharge button feature. Enabling this will add a button named "Force discharge" in quick settings to turn Force Discharge ON or OFF
msgid "Enable force discharge battery feature (Experimental)"

#Small description for the above GTK button
msgid "Enable option to force discharge battery when battery level higher than current threshold"

# A button in quick settings to turn ON/OFF force discharge
msgid "Force Discharge"

thinkpad-settings force-discharge

Thank you all

ghost commented 6 months ago

Tranalation > Translation

ViBE-HU commented 6 months ago

@maniacx i'm done with both builds.

maniacx commented 6 months ago

Great, Thanks @sabriunal @ViBE-HU

Vistaus commented 6 months ago

@maniacx Done! 🙂

maniacx commented 6 months ago

Hello @sabriunal I use the below command to generate pot file.

xgettext \
    --add-comments="TRANSLATORS:" \
    --from-code=UTF-8 \
    --copyright-holder="maniacx@github.com" \
    --package-name="Battery Health Charging" \
    --output="po/Battery-Health-Charging.pot" \
    lib/*.js \
    preferences/*.js \
    ui/*.ui

However it get the following 7 warning, and after test it seem the warning shows up for each ui files

xgettext: warning: a fallback ITS rule file '/usr/share/gettext-0.22/its/gtkbuilder.its' is used; it may not be in sync with the upstream

Although nothing serious as all, as al strings in UI get added to pot file, i was just curious , how i can I fix this warning. Do you have any idea about this?

ghost commented 6 months ago

I have no idea.

https://github.com/autotools-mirror/gettext/blob/master/gettext-tools/src/xgettext.c#L941C6-L954C26

maniacx commented 3 months ago

Gnome 46. Translation. I think only one string.

@Valeria @ViBE-HU @Vistaus @yakushabb @viksok @dalz @ludrol

Screenshot from 2024-03-31 19-29-27

ViBE-HU commented 3 months ago

@maniacx does this only shows up when the limit changed or it also shows up when changing the charging mode?

maniacx commented 3 months ago

It shows while Changing mode and limit as well. It will show when custom limits are changed or change to adaptive or express mode. Same text for both