You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[2.1.6.5. Translate with parameter:](#2165-translate-with-parameter)
29
29
-[2.2. Translator<T>.](#22-translatort)
30
30
-[2.3. Translation.](#23-translation)
31
+
-[2.3.1 GetOrCreate.](#231-getorcreate)
32
+
-[2.4. StaticTranslation.](#24-statictranslation)
31
33
-[3. ErrorHandling.](#3-errorhandling)
32
34
-[3.1. Global setting](#31-global-setting)
33
35
-[3.2. ErrorFormats](#32-errorformats)
@@ -47,7 +49,7 @@
47
49
48
50
The library has a `StaticExtension` markupextension that is used when translating.
49
51
The reason for naming it `StaticExtension` and not `TranslateExtension` is that Resharper provides intellisense when named `StaticExtension`
50
-
Binding the text like below updates the text when `Translator.EffectiveCulture`changes enabling runtime selection of language.
52
+
Binding the text like below updates the text when `Translator.CurrentCulture`changes enabling runtime selection of language.
51
53
52
54
The markupextension has ErrorHandling = ErrorHandling.ReturnErrorInfoPreserveNeutral as default, it encodes errors in the result, see [ErrorFormats](#3-errorhandling))
53
55
## 1.1. Bind a localized string.
@@ -63,7 +65,7 @@ The markupextension has ErrorHandling = ErrorHandling.ReturnErrorInfoPreserveNeu
63
65
...
64
66
```
65
67
66
-
The above will show SomeResource in the `Translator.EffectiveCulture` and update when culture changes.
68
+
The above will show SomeResource in the `Translator.CurrentCulture` and update when culture changes.
67
69
68
70
## 1.2. Errorhandling.
69
71
By setting the attached property `ErrorHandling.Mode` we override how translation errors are handled by the `StaticExtension` for the child elements.
@@ -78,21 +80,21 @@ When null the `StaticExtension` uses ReturnErrorInfoPreserveNeutral
78
80
...
79
81
```
80
82
81
-
## 1.3. EffectiveCulture.
82
-
A markupextension for accessing `Translator.EffectiveCulture` from xaml. Retruns a binding that updates when EffectiveCulture changes.
83
+
## 1.3. CurrentCulture.
84
+
A markupextension for accessing `Translator.CurrentCulture` from xaml. Retruns a binding that updates when CurrentCulture changes.
Animplementationof `ITranslation` thatneverupdatesthe `Translated`propertyandreturnsthevalueof `Translated` when calling `Translate()`on it with any paramaters.
0 commit comments