Extracted hard coded text in toast meassages to be translatable, and minor improvements to Polish translation by Jacek
This commit is contained in:
@@ -930,7 +930,7 @@ public class LogManager {
|
||||
public void accept(JSONObject eventObj) {
|
||||
if (eventObj == null) {
|
||||
Log.e(TAG, "createEventCallback() - eventObj is null - failed to create event");
|
||||
mUtil.showToast("Error Creating Remote Event");
|
||||
mUtil.showToast(mContext.getString(R.string.error_creating_remote_event_msg));
|
||||
} else {
|
||||
Log.v(TAG, "createEventCallback() - eventObj=" + eventObj.toString());
|
||||
Date eventDate;
|
||||
@@ -980,7 +980,7 @@ public class LogManager {
|
||||
});
|
||||
} else {
|
||||
Log.e(TAG, "createEventCallback() - Error - event date is null - not doing anything");
|
||||
mUtil.showToast("Error uploading event - date is null");
|
||||
mUtil.showToast(mContext.getString(R.string.error_uploading_event_msg));
|
||||
finishUpload();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -679,7 +679,7 @@ public class SdServer extends Service implements SdDataReceiver {
|
||||
Log.v(TAG, "SMS Alarm already sent - not re-sending");
|
||||
}
|
||||
} else {
|
||||
mUtil.showToast("mSMSAlarm is false - not sending");
|
||||
mUtil.showToast(getString(R.string.msmsalarm_false_msg));
|
||||
Log.v(TAG, "mSMSAlarm is false - not sending");
|
||||
}
|
||||
|
||||
@@ -709,7 +709,7 @@ public class SdServer extends Service implements SdDataReceiver {
|
||||
sendSMSAlarm();
|
||||
mSMSTime = tnow;
|
||||
} else {
|
||||
mUtil.showToast("SMS Alarm already sent - not re-sending");
|
||||
mUtil.showToast(getString(R.string.sms_alarm_already_sent_msg));
|
||||
Log.v(TAG, "SMS Alarm already sent - not re-sending");
|
||||
}
|
||||
} else {
|
||||
@@ -743,7 +743,7 @@ public class SdServer extends Service implements SdDataReceiver {
|
||||
sendSMSAlarm();
|
||||
mSMSTime = tnow;
|
||||
} else {
|
||||
mUtil.showToast("SMS Alarm already sent - not re-sending");
|
||||
mUtil.showToast(getString(R.string.sms_alarm_already_sent_msg));
|
||||
Log.v(TAG, "SMS Alarm already sent - not re-sending");
|
||||
}
|
||||
} else {
|
||||
@@ -1313,7 +1313,7 @@ public class SdServer extends Service implements SdDataReceiver {
|
||||
}
|
||||
} else {
|
||||
Log.e(TAG,"SmsTimer.onFinish - mLocationFinder is null - this should not happen!");
|
||||
mUtil.showToast("SmsTimer.onFinish - mLocationFinder is null - this should not happen! - Please report this issue!");
|
||||
mUtil.showToast(getString(R.string.mLocationFinder_is_null_msg));
|
||||
}
|
||||
Log.i(TAG, "SmsTimer.onFinish() - Sending to " + mSMSNumbers.length + " Numbers");
|
||||
mUtil.writeToSysLogFile("SdServer.SmsTimer.onFinish()");
|
||||
|
||||
Reference in New Issue
Block a user