Changeset 1802 in josm
- Timestamp:
- 2009-07-17T20:53:35+02:00 (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CONTRIBUTION
r1570 r1802 1 JOSM was originally designed and coded by Immanuel Scholz 2 <imi@eigenheimstrasse.de>, and is now maintained by the 3 OpenStreetMap community. 1 JOSM was originally designed and coded by Immanuel Scholz, 2 and is now maintained by the OpenStreetMap community. 3 4 The current JOSM maintainer is Dirk Stöcker. 5 6 Major code contributions from (in alphabetical order): 7 8 David Earl 9 Gabriel Ebner 10 Ulf Lamping 11 Raphael Mack 12 Frederik Ramm 13 Dirk Stöcker 14 Stefan Breunig 15 Karl Guggisberg 16 17 Many minor contributions and patches by others; see SVN history 18 at http://josm.openstreetmap.de/svn/ for details. Use 19 "josm-dev AT openstreetmap.org" to contact still active authors. 20 21 Copyright rests with the contributors. 4 22 5 23 The jpeg metadata extraction code is from Drew Noakes … … 13 31 Pingel (http://xnap-commons.sourceforge.net/gettext-commons/). 14 32 The jar file is licensed under LGPL. 33 34 The Bzip2 code is from Keiron Liddle (Apache project) and licensed 35 with Apache license version 2.0. -
trunk/LICENSE
r1570 r1802 3 3 4 4 JOSM, and all its integral parts, are released under the GNU General 5 Public License. 6 7 Earlier contributions to JOSM did not specifiy a version of that license, 8 but the license included in the distribution was version 2. 9 10 All contributions made on or after 15 April 2008 are explicitly "GPL 11 v2 or later". 12 13 This is valid for all files released in the JOSM subversion tree, even 14 if they do not carry their own copyright or license information. 15 16 According to the current JOSM maintainer, it is safe to assume that all 17 previous contributions are also "GPL v2 or later", but an effort will 18 be made to contact the past contributors to have full clarity. 5 Public License v2 or later. 19 6 20 7 The GPL v3 is accessible here: … … 24 11 http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 25 12 13 When compiled with Bzip2 support code included the whole software is licensed 14 GPL v3 or later. 15 16 17 26 18 Note: This is not valid for JOSM plugins. These are not considered 27 19 an integral part of JOSM and may be under any license. 28 29 30 Copyright and Contributors31 ==========================32 33 JOSM was written by Immanuel Scholz <imi AT eigenheimstrasse.de>.34 35 Major code contributions from (in alphabetical order):36 37 David Earl <david AT frankieandshadow.com>38 Gabriel Ebner <ge AT gabrielebner.at>39 Ulf Lamping <ulf.lamping AT web.de>40 Raphael Mack <ramack AT raphael-mack.de>41 Frederik Ramm <frederik AT remote.org>42 Dirk Stöcker <openstreetmap AT dstoecker.de>43 44 Please add your name liberally if you think you have made a major45 contribution (or add names of others who have).46 47 Many minor contributions and patches by others; see SVN history48 at http://josm.openstreetmap.de/svn/ for details.49 50 The current JOSM maintainer is Dirk Stöcker.51 52 Copyright rests with the contributors.53 -
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r1755 r1802 127 127 JTextArea readme = loadFile(Main.class.getResource("/README"), false); 128 128 JTextArea contribution = loadFile(Main.class.getResource("/CONTRIBUTION"), false); 129 JTextArea license = loadFile(Main.class.getResource("/LICENSE"), false); 129 130 130 131 JPanel info = new JPanel(new GridBagLayout()); … … 148 149 about.addTab(tr("Revision"), createScrollPane(revision)); 149 150 about.addTab(tr("Contribution"), createScrollPane(contribution)); 151 about.addTab(tr("License"), createScrollPane(license)); 150 152 about.addTab(tr("Plugins"), new JScrollPane(PluginHandler.getInfoPanel())); 151 153 -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r1677 r1802 3 3 package org.openstreetmap.josm.gui; 4 4 5 import static org.openstreetmap.josm.tools.I18n.i18n;6 5 import static org.openstreetmap.josm.tools.I18n.tr; 7 6 … … 15 14 import java.util.LinkedList; 16 15 import java.util.List; 17 import java.util.Locale;18 16 import java.util.Map; 19 import java.util.MissingResourceException;20 17 21 18 import javax.swing.JFrame; … … 25 22 import org.openstreetmap.josm.tools.BugReportExceptionHandler; 26 23 import org.openstreetmap.josm.tools.ImageProvider; 27 import org. xnap.commons.i18n.I18nFactory;24 import org.openstreetmap.josm.tools.I18n; 28 25 29 26 /** … … 63 60 */ 64 61 public static void main(final String[] argArray) { 65 /* try initial language settings, may be changed later again */ 66 try { i18n = I18nFactory.getI18n(MainApplication.class); } 67 catch (MissingResourceException ex) { Locale.setDefault(Locale.ENGLISH);} 62 I18n.init(); 68 63 69 64 Thread.setDefaultUncaughtExceptionHandler(new BugReportExceptionHandler()); … … 92 87 Main.pref.init(args.containsKey("reset-preferences")); 93 88 94 String localeName = null; // The locale to use95 96 89 // Check if passed as parameter 97 90 if (args.containsKey("language")) 98 localeName = (String)(args.get("language").toArray()[0]); 99 100 if (localeName == null) 101 localeName = Main.pref.get("language", null); 102 103 if (localeName != null) { 104 Locale l; 105 Locale d = Locale.getDefault(); 106 if (localeName.equals("he")) localeName = "iw_IL"; 107 int i = localeName.indexOf('_'); 108 if (i > 0) { 109 l = new Locale(localeName.substring(0, i), localeName.substring(i + 1)); 110 } else { 111 l = new Locale(localeName); 112 } 113 try { 114 Locale.setDefault(l); 115 i18n = I18nFactory.getI18n(MainApplication.class); 116 } catch (MissingResourceException ex) { 117 if (!l.getLanguage().equals("en")) { 118 System.out.println(tr("Unable to find translation for the locale {0}. Reverting to {1}.", 119 l.getDisplayName(), d.getDisplayName())); 120 Locale.setDefault(d); 121 } else { 122 i18n = null; 123 } 124 } 125 } 91 I18n.set((String)(args.get("language").toArray()[0])); 92 else 93 I18n.set(Main.pref.get("language", null)); 126 94 127 95 if (argList.contains("--help") || argList.contains("-?") || argList.contains("-h")) { -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r1583 r1802 7 7 import java.util.Locale; 8 8 import java.util.LinkedList; 9 import java.util.MissingResourceException; 9 10 import java.util.Vector; 11 import org.openstreetmap.josm.gui.MainApplication; 12 import org.xnap.commons.i18n.I18nFactory; 10 13 11 14 /** … … 89 92 return l; 90 93 } 94 95 public static void init() 96 { 97 /* try initial language settings, may be changed later again */ 98 try { i18n = I18nFactory.getI18n(MainApplication.class); } 99 catch (MissingResourceException ex) { Locale.setDefault(Locale.ENGLISH);} 100 } 101 102 public static void set(String localeName) 103 { 104 if (localeName != null) { 105 Locale l; 106 Locale d = Locale.getDefault(); 107 if (localeName.equals("he")) localeName = "iw_IL"; 108 int i = localeName.indexOf('_'); 109 if (i > 0) { 110 l = new Locale(localeName.substring(0, i), localeName.substring(i + 1)); 111 } else { 112 l = new Locale(localeName); 113 } 114 try { 115 Locale.setDefault(l); 116 i18n = I18nFactory.getI18n(MainApplication.class); 117 } catch (MissingResourceException ex) { 118 if (!l.getLanguage().equals("en")) { 119 System.out.println(tr("Unable to find translation for the locale {0}. Reverting to {1}.", 120 l.getDisplayName(), d.getDisplayName())); 121 Locale.setDefault(d); 122 } else { 123 i18n = null; 124 } 125 } 126 } 127 } 91 128 }
Note:
See TracChangeset
for help on using the changeset viewer.