diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml
index f9127a83..5599619c 100644
--- a/res/values-ru/strings.xml
+++ b/res/values-ru/strings.xml
@@ -266,4 +266,11 @@ e ^ i = 0.5403 + 0.84147i\n
6. Экран настроек: содержит список настроек приложения. На экран можно попасть нажав кнопку Настройки в меню.
+ Арифметическая ошибка: {0}
+ Слишком сложное выражение
+ Вычисление выражения занимает слишком много времени - проверьте выражение
+ Вычисление было отменено
+ Для функции {0} не определены параметры
+ В выражении найден Бесконечный цикл - проверьте выражение
+
diff --git a/res/values/strings.xml b/res/values/strings.xml
index b5c123d4..4385074d 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -269,26 +269,11 @@ Check the \'Round result\' preference in application settings - it should be tur
- Arithmetic error occurred: {0}
- Too complex expression
- Too long execution time - check the expression
- Evaluation was cancelled
- No parameters are specified for function: {0}
- Infinite loop is detected in expression
-
- Premature end of processing
- There is no operator with name: {0}
- Operator name is not valid: {0}
- Postfix function with name {0} doesn\'\'t exist
- Constant name must start with character
- Cannot be implicit function - usual function or operator with same name is defined: {0}
- Digit is expected
- Invalid number: {0}
- First letter of number must be digit
- Expected characters are {0} or {1}
- Expected characters are {0}
- Expected character is {0}
- Function name is not valid: {0}
- Expected number of parameters differs from actual {0}
+ Arithmetic error occurred: {0}
+ Too complex expression
+ Too long execution time - check the expression
+ Evaluation was cancelled
+ No parameters are specified for function: {0}
+ Infinite loop is detected in expression
diff --git a/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java b/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java
index 22f10133..536f969a 100644
--- a/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java
+++ b/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java
@@ -19,7 +19,6 @@ import android.text.method.LinkMovementMethod;
import android.util.Log;
import android.util.TypedValue;
import android.view.*;
-import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import jscl.AngleUnit;
@@ -27,7 +26,6 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.solovyev.android.calculator.math.MathType;
import org.solovyev.android.calculator.model.CalculatorEngine;
-import org.solovyev.android.msg.AndroidMessageRegistry;
import org.solovyev.android.view.FontSizeAdjuster;
import org.solovyev.android.view.prefs.ResourceCache;
import org.solovyev.android.view.widgets.*;
@@ -36,11 +34,7 @@ import org.solovyev.common.utils.Announcer;
import org.solovyev.common.utils.Point2d;
import org.solovyev.common.utils.history.HistoryAction;
-import java.lang.reflect.Field;
-import java.lang.reflect.Modifier;
import java.text.DecimalFormatSymbols;
-import java.util.ArrayList;
-import java.util.List;
import java.util.Locale;
import java.util.Map;
@@ -500,14 +494,11 @@ public class CalculatorActivity extends Activity implements FontSizeAdjuster, Sh
}
calculatorModel = CalculatorModel.instance.init(this, preferences, CalculatorEngine.instance);
- AndroidMessageRegistry.instance.init(this);
}
@Override
protected void onDestroy() {
super.onDestroy();
-
- AndroidMessageRegistry.instance.finish();
}
@Override
diff --git a/src/main/java/org/solovyev/android/calculator/model/ParseException.java b/src/main/java/org/solovyev/android/calculator/model/ParseException.java
index b39fdb3a..340fa9da 100644
--- a/src/main/java/org/solovyev/android/calculator/model/ParseException.java
+++ b/src/main/java/org/solovyev/android/calculator/model/ParseException.java
@@ -6,30 +6,25 @@
package org.solovyev.android.calculator.model;
-import android.content.Context;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
-import org.solovyev.android.view.prefs.ResourceCache;
+import org.solovyev.android.msg.AndroidMessage;
import org.solovyev.common.exceptions.SersoException;
-import org.solovyev.common.utils.CollectionsUtils;
+import org.solovyev.common.msg.Message;
+import org.solovyev.common.msg.MessageType;
-import java.text.MessageFormat;
-import java.util.Arrays;
-import java.util.Collections;
import java.util.List;
+import java.util.Locale;
/**
* User: serso
* Date: 10/6/11
* Time: 9:25 PM
*/
-public class ParseException extends SersoException {
+public class ParseException extends SersoException implements Message {
@NotNull
- private final String messageId;
-
- @NotNull
- private final List