more localized strings

This commit is contained in:
me 2024-10-10 10:52:16 +00:00
parent 95a8159a33
commit 91efae05e8

View file

@ -50,7 +50,7 @@ public class Wavelet.Setup : Adw.NavigationPage {
this.server_url.set_sensitive (false); this.server_url.set_sensitive (false);
this.username.set_sensitive (false); this.username.set_sensitive (false);
this.password.set_sensitive (false); this.password.set_sensitive (false);
this.status.set_subtitle ("Connecting..."); this.status.set_subtitle (_("Connecting..."));
this.validate.set_sensitive (false); this.validate.set_sensitive (false);
string new_token, new_salt; string new_token, new_salt;
@ -69,7 +69,7 @@ public class Wavelet.Setup : Adw.NavigationPage {
api.ping.begin ((obj, res) => { api.ping.begin ((obj, res) => {
try { try {
api.ping.end (res); api.ping.end (res);
this.status.set_subtitle ("Connected"); this.status.set_subtitle (_("Connected"));
this.token = new_token; this.token = new_token;
this.salt = new_salt; this.salt = new_salt;
this.save (); this.save ();
@ -77,7 +77,7 @@ public class Wavelet.Setup : Adw.NavigationPage {
this.connected (api); this.connected (api);
} catch (Error e) { } catch (Error e) {
this.status.set_subtitle(@"Ping failed: $(e.message)"); this.status.set_subtitle(@"$(_("Ping failed")): $(e.message)");
this.validate.set_sensitive (true); this.validate.set_sensitive (true);
} }