Added to string resources: "Sending..." and "<file> saving..."

pull/18/head
Olga Miller 2023-12-18 12:25:36 +01:00
rodzic e7424cac3e
commit f758fdcc40
4 zmienionych plików z 12 dodań i 2 usunięć

Wyświetl plik

@ -66,7 +66,8 @@ class Encoder {
mode = mQueue.remove(0); mode = mQueue.remove(0);
} }
mode.init(); mode.init();
mProgressBar.begin(mode.getProcessCount(), "Sending..."); mProgressBar.begin(mode.getProcessCount(),
mMessenger.getString(R.string.progressbar_message_sending));
while (mode.process()) { while (mode.process()) {
mProgressBar.step(); mProgressBar.step();
@ -122,7 +123,8 @@ class Encoder {
@Override @Override
public void run() { public void run() {
mode.init(); mode.init();
mProgressBar2.begin(mode.getProcessCount(), context.getFileName() + " saving..."); mProgressBar2.begin(mode.getProcessCount(),
mMessenger.getString(R.string.progressbar_message_saving_to_file, context.getFileName()));
while (mode.process()) { while (mode.process()) {
mProgressBar2.step(); mProgressBar2.step();

Wyświetl plik

@ -36,4 +36,8 @@ class MainActivityMessenger {
} }
}); });
} }
public String getString(int resId, Object... formatArgs) {
return mMainActivity.getString(resId, formatArgs);
}
} }

Wyświetl plik

@ -19,6 +19,8 @@
<string name="load_img_err_txt_unsupported">不受支持的内容</string> <string name="load_img_err_txt_unsupported">不受支持的内容</string>
<string name="message_prev_img_not_loaded">先前所使用的图像未能被加载</string> <string name="message_prev_img_not_loaded">先前所使用的图像未能被加载</string>
<string name="message_no_camera">这个设备没有摄像头</string> <string name="message_no_camera">这个设备没有摄像头</string>
<string name="progressbar_message_sending">发送…</string>
<string name="progressbar_message_saving_to_file">%1$s 保存…</string>
<string name="another_activity_resolve_err">未能解析另一个活动</string> <string name="another_activity_resolve_err">未能解析另一个活动</string>
<string name="another_activity_start_err">另一个活动未能被启动</string> <string name="another_activity_start_err">另一个活动未能被启动</string>
<string name="btn_send_email">发送邮件</string> <string name="btn_send_email">发送邮件</string>

Wyświetl plik

@ -47,6 +47,8 @@
<string name="load_img_err_txt_unsupported">Unsupported content.</string> <string name="load_img_err_txt_unsupported">Unsupported content.</string>
<string name="message_prev_img_not_loaded">Previous image could not be loaded.</string> <string name="message_prev_img_not_loaded">Previous image could not be loaded.</string>
<string name="message_no_camera">Device has no camera.</string> <string name="message_no_camera">Device has no camera.</string>
<string name="progressbar_message_sending">Sending…</string>
<string name="progressbar_message_saving_to_file">%1$s saving…</string>
<string name="another_activity_resolve_err">Another activity could not be resolved.</string> <string name="another_activity_resolve_err">Another activity could not be resolved.</string>
<string name="another_activity_start_err">Another activity could not be started.</string> <string name="another_activity_start_err">Another activity could not be started.</string>
<string name="btn_send_email">Send Email</string> <string name="btn_send_email">Send Email</string>