2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13 package org.scilab.modules.helptools;
15 import java.util.HashMap;
19 * Class to handle a template localization
20 * @author Calixte DENIZET
22 public final class TemplateLocalization {
24 private static final Map<String, Map<String, String>> map = new HashMap<String, Map<String, String>>();
27 Map<String, String> report_an_issue = new HashMap<String, String>();
28 report_an_issue.put("fr_FR", "Reporter un bug");
29 report_an_issue.put("pt_BR", "Reportero a bugo");
30 report_an_issue.put("es_ES", "Raportare el bugo");
32 map.put("Report an issue", report_an_issue);
35 public static final String getLocalized(final String language, final String str) {
36 if (language.equals("en_US")) {
40 Map<String, String> m = map.get(str);
45 String s = m.get(language);