[chronojump] Fixed translations lost after initialize rdotnet
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed translations lost after initialize rdotnet
- Date: Sat, 2 Nov 2013 18:16:03 +0000 (UTC)
commit dd66831a5f29614e3e6deb8f8b6414abde0e36f9
Author: Xavier de Blas <xaviblas gmail com>
Date: Sat Nov 2 19:14:33 2013 +0100
Fixed translations lost after initialize rdotnet
src/chronojump.cs | 1 -
src/gui/encoder.cs | 4 ++++
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/chronojump.cs b/src/chronojump.cs
index d027d6e..40220b7 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -96,7 +96,6 @@ public class ChronoJump
}
-
Catalog.Init("chronojump",System.IO.Path.Combine(Util.GetPrefixDir(),"share/locale"));
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 1e70265..47058e8 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -1752,7 +1752,11 @@ public partial class ChronoJumpWindow
rengine = REngine.CreateInstance("RDotNet");
// From v1.5, REngine requires explicit initialization.
// You can set some parameters.
+
rengine.Initialize();
+ //Previous command, unfortunatelly localizes all GUI to english
+ //then call Catalog.Init again in order to see new windows localised
+ Catalog.Init("chronojump",System.IO.Path.Combine(Util.GetPrefixDir(),"share/locale"));
rengine.Evaluate("library(\"EMD\")");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]