Merge remote-tracking branch 'upstream/master' into yoda-dock-magnification
# Conflicts: # Cargo.lock # Cargo.toml # cosmic-app-list/src/app.rs # cosmic-applet-audio/src/lib.rs # cosmic-applet-input-sources/Cargo.toml # cosmic-applet-input-sources/src/lib.rs # cosmic-applet-status-area/src/components/app.rs # cosmic-panel-button/src/lib.rs
This commit is contained in:
commit
673547dc52
119 changed files with 2247 additions and 1190 deletions
|
|
@ -0,0 +1,14 @@
|
|||
power-settings = Strøm- og Batteriindstillinger...
|
||||
hours = t
|
||||
until-empty = indtil tom
|
||||
battery-desc = Reduceret strømforbrug og ydeevne.
|
||||
max-charge = Forøg dit batteris levetid, ved at angive en maksimal opladningsværdi på 80%
|
||||
balanced = Balanceret
|
||||
battery = Batteri
|
||||
seconds = s
|
||||
dgpu-running = Diskret GPU er aktiv og kan reducere batterilevetiden
|
||||
performance = Høj Ydeevne
|
||||
performance-desc = Høj ydeevne og strømforbrug.
|
||||
minutes = m
|
||||
balanced-desc = Standard ydeevne og batteriforbrug.
|
||||
dgpu-applications = Applikationer som bruger { $gpu_name } diskret GPU
|
||||
|
|
@ -9,6 +9,6 @@ seconds = s
|
|||
minutes = m
|
||||
hours = h
|
||||
until-empty = bis leer
|
||||
power-settings = Energie- und Akkueinstellungen...
|
||||
power-settings = Energie- und Akkueinstellungen ...
|
||||
dgpu-running = Dedizierte GPU ist aktiv und kann die Akkulaufzeit reduzieren
|
||||
dgpu-applications = Anwendungen, welche die dedizierte GPU { $gpu_name } nutzen
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
power-settings = Power & Battery settings...
|
||||
hours = h
|
||||
until-empty = until empty
|
||||
battery-desc = Reduced power usage and performance.
|
||||
max-charge = Increase the lifespan of your battery by setting a maximum charge value of 80%
|
||||
balanced = Balanced
|
||||
battery = Battery
|
||||
seconds = s
|
||||
dgpu-running = Discrete GPU is active and can reduce battery life
|
||||
performance = High Performance
|
||||
performance-desc = High performance and power usage.
|
||||
minutes = m
|
||||
balanced-desc = Standard performance and battery usage.
|
||||
dgpu-applications = Applications using { $gpu_name } discrete GPU
|
||||
14
cosmic-applet-battery/i18n/gl/cosmic_applet_battery.ftl
Normal file
14
cosmic-applet-battery/i18n/gl/cosmic_applet_battery.ftl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
battery = Batería
|
||||
battery-desc = Reduce o consumo de enerxía e o rendemento.
|
||||
balanced = Balanceado
|
||||
balanced-desc = Rendemento e consumo de batería estándar.
|
||||
performance = Alto rendemento
|
||||
performance-desc = Alto rendemento e maior consumo de enerxía.
|
||||
max-charge = Aumenta a vida útil da batería limitando a carga máxima ao 80 %
|
||||
seconds = s
|
||||
minutes = m
|
||||
hours = h
|
||||
until-empty = ata baleirar
|
||||
power-settings = Axustes de enexía e batería...
|
||||
dgpu-running = A GPU dedicada está activa e pode reducir a duración da batería
|
||||
dgpu-applications = Aplicacións que están a usar a GPU dedicada { $gpu_name }
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
battery = Risparmio energetico
|
||||
battery-desc = Consumi minimi, performance ridotta.
|
||||
balanced = Bilanciato
|
||||
balanced-desc = Consumi bilanciati, performance dinamica.
|
||||
performance = Performance
|
||||
performance-desc = Consumi alti, performance massima.
|
||||
max-charge = Migliora la durata di vita della batteria caricandola fino all'80%
|
||||
battery = Batteria
|
||||
battery-desc = Prestazioni e consumo energetico ridotti.
|
||||
balanced = Equilibrato
|
||||
balanced-desc = Prestazioni e consumo energetico normali.
|
||||
performance = Prestazioni elevate
|
||||
performance-desc = Prestazioni elevate e consumo energetico.
|
||||
max-charge = Aumenta la durata della batteria impostando un valore massimo di carica dell’80%
|
||||
seconds = s
|
||||
minutes = m
|
||||
hours = h
|
||||
until-empty = fino alla scarica
|
||||
until-empty = finché non è vuoto
|
||||
power-settings = Impostazioni energetiche...
|
||||
dgpu-running = La GPU discreta è attiva e può ridurre la durata della batteria
|
||||
dgpu-applications = Applicazioni che stanno usando la GPU discreta { $gpu_name }
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ battery = Betarî
|
|||
seconds = ç
|
||||
minutes = x
|
||||
hours = d
|
||||
until-empty = Heya vala dibe
|
||||
until-empty = heya vala dibe
|
||||
power-settings = Sazkariyên hêz û betariyê...
|
||||
battery-desc = Bikaranîna hêzê kêmkirî û performans.
|
||||
balanced = Hevseng
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
battery = Bateria
|
||||
battery = Economia de energia
|
||||
battery-desc = Uso reduzido de energia e desempenho limitado.
|
||||
balanced = Balanceado
|
||||
balanced-desc = Desempenho padrão e uso de bateria moderado.
|
||||
performance = Alto Desempenho
|
||||
performance = Alto desempenho
|
||||
performance-desc = Máximo desempenho e alto uso de energia.
|
||||
max-charge = Aumente a vida útil da sua bateria definindo um valor máximo de carga de 80%
|
||||
seconds = s
|
||||
minutes = m
|
||||
hours = h
|
||||
until-empty = até esvaziar
|
||||
until-empty = até ficar descarregada
|
||||
power-settings = Configurações de energia e bateria...
|
||||
dgpu-running = GPU discreta está ativa e pode reduzir a vida útil da bateria
|
||||
dgpu-applications = Aplicativos usando GPU discreta { $gpu_name }
|
||||
dgpu-running = A GPU dedicada está ativa e pode reduzir a vida útil da bateria
|
||||
dgpu-applications = Aplicativos usando a GPU dedicada { $gpu_name }
|
||||
|
|
|
|||
0
cosmic-applet-battery/i18n/sat/cosmic_applet_battery.ftl
Normal file
0
cosmic-applet-battery/i18n/sat/cosmic_applet_battery.ftl
Normal file
|
|
@ -6,9 +6,9 @@ performance = 高效能
|
|||
performance-desc = 高效能與高耗電量。
|
||||
max-charge = 將電池充電上限設定為 80%,以延長電池使用壽命
|
||||
seconds = 秒
|
||||
minutes = 分
|
||||
hours = 時
|
||||
minutes = 分鍾
|
||||
hours = 小時
|
||||
until-empty = 直到電量耗盡
|
||||
power-settings = 電源與電池設定…
|
||||
dgpu-running = 獨立顯示卡已啟用,可能會縮短電池續航力
|
||||
dgpu-applications = 使用 { $gpu_name } 獨立顯示卡的應用程式
|
||||
dgpu-applications = 使用獨立顯示卡 { $gpu_name } 的應用程式
|
||||
|
|
|
|||
|
|
@ -366,23 +366,31 @@ impl cosmic::Application for CosmicBatteryApplet {
|
|||
let _ = tx.send(KeyboardBacklightRequest::Get);
|
||||
}
|
||||
|
||||
let new_id = window::Id::unique();
|
||||
self.popup.replace(new_id);
|
||||
|
||||
let popup_settings = self.core.applet.get_popup_settings(
|
||||
self.core.main_window_id().unwrap(),
|
||||
new_id,
|
||||
Some((1, 1)),
|
||||
None,
|
||||
None,
|
||||
);
|
||||
if let Some(tx) = self.power_profile_sender.as_ref() {
|
||||
let _ = tx.send(PowerProfileRequest::Get);
|
||||
}
|
||||
if let Some(tx) = self.update_trigger.as_ref() {
|
||||
let _ = tx.send(());
|
||||
}
|
||||
let mut tasks = vec![get_popup(popup_settings)];
|
||||
let mut tasks = vec![cosmic::surface::surface_task(
|
||||
cosmic::surface::action::app_popup(
|
||||
|_| Default::default(),
|
||||
|app: &mut Self| {
|
||||
let new_id = window::Id::unique();
|
||||
app.popup.replace(new_id);
|
||||
|
||||
let popup_settings = app.core.applet.get_popup_settings(
|
||||
app.core.main_window_id().unwrap(),
|
||||
new_id,
|
||||
Some((1, 1)),
|
||||
None,
|
||||
None,
|
||||
);
|
||||
popup_settings
|
||||
},
|
||||
None,
|
||||
),
|
||||
)];
|
||||
if let Some(tx) = &self.settings_daemon_sender {
|
||||
let _ = tx.send(settings_daemon::Request::GetDisplayBrightness);
|
||||
let _ = tx.send(settings_daemon::Request::GetMaxDisplayBrightness);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue