From 165ae48b8d4f3c8d8ea8f4b090398e712e3f765e Mon Sep 17 00:00:00 2001 From: Marko Živković Date: Wed, 4 Mar 2015 02:14:13 +0000 Subject: Introduce default language. Use correct language/logo language everywhere git-svn-id: https://svn.code.sf.net/p/xlogo4schools/svn/trunk@37 3b0d7934-f7ef-4143-9606-b51f2e2281fd --- logo/src/xlogo/gui/Traduc.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'logo/src/xlogo/gui/Traduc.java') diff --git a/logo/src/xlogo/gui/Traduc.java b/logo/src/xlogo/gui/Traduc.java index 7fa1b3c..7e8ca97 100644 --- a/logo/src/xlogo/gui/Traduc.java +++ b/logo/src/xlogo/gui/Traduc.java @@ -41,6 +41,7 @@ import xlogo.storage.WSManager; import xlogo.storage.workspace.Language; import xlogo.storage.workspace.WorkspaceConfig; import xlogo.utils.Utils; +import xlogo.AppSettings; import xlogo.Logo; /** * Title : XLogo @@ -87,7 +88,7 @@ public class Traduc extends JFrame implements ActionListener { public Traduc(){ WorkspaceConfig wc = WSManager.getWorkspaceConfig(); Font font = wc.getFont(); - Language lang = wc.getLanguage(); + Language lang = AppSettings.getInstance().getLanguage(); setTitle(Logo.messages.getString("menu.tools.translate")); setIconImage(Toolkit.getDefaultToolkit().createImage(Utils.class.getResource("icone.png"))); -- cgit v1.2.3