Index: /applications/editors/josm/plugins/namemanager/.classpath
===================================================================
--- /applications/editors/josm/plugins/namemanager/.classpath	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/.classpath	(revision 25571)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="src" path="resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/JOSM"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>
Index: /applications/editors/josm/plugins/namemanager/.project
===================================================================
--- /applications/editors/josm/plugins/namemanager/.project	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/.project	(revision 25571)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>namemanager</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>
Index: /applications/editors/josm/plugins/namemanager/LICENSE
===================================================================
--- /applications/editors/josm/plugins/namemanager/LICENSE	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/LICENSE	(revision 25571)
@@ -0,0 +1,345 @@
+		    GNU GENERAL PUBLIC LICENSE
+		       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+	51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+			    Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+
+		    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+			    NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+		     END OF TERMS AND CONDITIONS
+
+
+	    How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year  name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Library General
+Public License instead of this License.
Index: /applications/editors/josm/plugins/namemanager/README
===================================================================
--- /applications/editors/josm/plugins/namemanager/README	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/README	(revision 25571)
@@ -0,0 +1,4 @@
+README 
+======
+
+Readme for my plugin 
Index: /applications/editors/josm/plugins/namemanager/README.template
===================================================================
--- /applications/editors/josm/plugins/namemanager/README.template	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/README.template	(revision 25571)
@@ -0,0 +1,75 @@
+README 
+======
+
+This is a template project structure for a JOSM plugin.
+
+Layout
+======
++--- src                                source of your plugin
+  |- images                             images your plugin needs
+  |- resources                          resources your plugin needs
+
+  LICENSE                               license file 
+  README                                README for your plugin
+  
+  README.template                       this file 
+  
+  
+Build
+=====  
+A JOSM plugin is built as a single jar. We use ant to build.
+
+See build.xml in this directory and update the plugin specific properties in the
+configuration section.
+  
+
+Maintaining versions
+====================
+There are two versions maintained with each plugin:
+   1) the main version
+      You have to manually set the plugins main version in the build script.
+      Set the property plugin.main.version in build.xml accordingly. 
+
+   2) the build version
+      The build version is unique for every build of the plugin. It is equal
+      to the SVN revision of your plugin directory. 
+
+ Both the main version and the build version are included in properties of the plugins
+ manifest:
+    Plugin-Version      the build version
+    Plugin-Mainversion  the main version
+
+ JOSM automatically detects whether a plugin needs to be upgraded. It compares the build
+ version of the currently installed plugin jar with the build version of the plugin jar in 
+ the SVN. The main version is irrelevant for this process.  
+ 
+ Making your plugin available to JOSM users
+ ===========================================
+ When a plugin jar is checked into SVN a script updates the plugins list on the JOSM wiki:
+   http://josm.openstreetmap.de/wiki/Plugins
+ JOSM retrieves the list of available plugins and their build versions from this list.
+
+            commit      publish               read
+                       meta data              meta data 
+      Build  ==>  SVN  =======>  JOSM Wiki   <======= JOSM 
+                   ^ 
+                   ==================================
+                            fetch current plugin jar 
+ 
+ Note that you have to manually publish (commit) your plugin jar. There is no nightly build
+ in place. Everything else (pulishing meta data, updating plugins in the client) is then handled 
+ by automatic processes. 
+
+See also
+========
+* Developing Plugins 
+  http://josm.openstreetmap.de/wiki/DevelopingPlugins
+  
+* List of JOSM Plugins
+  http://josm.openstreetmap.de/wiki/Plugins
+  
+  
+ 
+     
+
+ 
Index: /applications/editors/josm/plugins/namemanager/bin/administrative-levels.xml
===================================================================
--- /applications/editors/josm/plugins/namemanager/bin/administrative-levels.xml	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/bin/administrative-levels.xml	(revision 25571)
@@ -0,0 +1,893 @@
+﻿<administrative-levels>
+    <country name="Poland">
+        <level1>Wojewodztwo</level1>
+        <level2>Powiat</level2>
+        <level3>Gmina</level3>
+        <level4>Miasto</level4>
+        <level5>Dzielnica</level5>
+    </country>
+    <country name="Abkhazia">
+        <level1>raion</level1>
+        <level2>town</level2>
+        <level3>settlement</level3>
+    </country>
+    <country name="Afghanistan">
+        <level1>Welayat</level1>
+        <level2>District</level2>
+        <level3>Township</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Albania">
+        <level1>Qark</level1>
+        <level2>Rreth</level2>
+        <level3>Komune</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Algeria">
+        <level1>Wilaya</level1>
+        <level2>Daïra</level2>
+        <level3>Baladiyah</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Andorra">
+        <level1>Parròquia</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Angola">
+        <level1>Provincia</level1>
+        <level2>Municipio</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Armenia">
+        <level1>Marz</level1>
+        <level2>Hamayank</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Australia">
+        <level1>State</level1>
+        <level2>Local Government Area</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Austria">
+        <level1>Bundesland</level1>
+        <level2>Bezirk</level2>
+        <level3>Gemeinde</level3>
+        <level4>Ort</level4>
+        <level5>Ortsteil</level5>
+        <level6>Ortsteil-Abschnitt</level6>
+    </country>
+    <country name="Azerbaijan">
+        <level1>Rayon</level1>
+        <level2>seher</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Bahamas">
+        <level1>Island</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Bahrain">
+        <level1>Municipality</level1>
+        <level2>Area/Section</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Bangladesh">
+        <level1>Bighag</level1>
+        <level2>Zila</level2>
+        <level3>Upazila</level3>
+    </country>
+    <country name="Barbados">
+        <level1>Parish</level1>
+    </country>
+    <country name="Belarus">
+        <level1>Voblast</level1>
+        <level2>Rayon</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Belgium">
+        <level1>Gewest</level1>
+        <level2>Provincie</level2>
+        <level3>Gemeente</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Belize">
+        <level1>District</level1>
+        <level2>Constituency</level2>
+    </country>
+    <country name="Benin">
+        <level1>Department</level1>
+        <level2>Commune</level2>
+    </country>
+    <country name="Bermuda">
+        <level1>Parish</level1>
+        <level2>Municipality</level2>
+    </country>
+    <country name="Bhutan">
+        <level1>Dzongdey</level1>
+        <level2>Dzonghag</level2>
+        <level3>Gewog</level3>
+    </country>
+    <country name="Bolivia">
+        <level1>Department</level1>
+        <level2>Provincia</level2>
+        <level3>Municipio</level3>
+        <level4>Canton</level4>
+    </country>
+    <country name="Bosnia/Herzegovina">
+        <level1>Region</level1>
+        <level2>Kanton</level2>
+        <level3>Opstine</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Botswana">
+        <level1>Region</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Brazil">
+        <level1>Região</level1>
+        <level2>Estado</level2>
+        <level3>Munícipio</level3>
+    </country>
+    <country name="Brunei">
+        <level1>Daerah</level1>
+        <level2>Mukim</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Bulgaria">
+        <level1>Oblast</level1>
+        <level2>Obshtina</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Burkina Faso">
+        <level1>Region</level1>
+        <level2>Province</level2>
+        <level3>Department</level3>
+    </country>
+    <country name="Cameroon">
+        <level1>Region</level1>
+        <level2>Department</level2>
+        <level3>Arrondissement</level3>
+        <level4>District</level4>
+    </country>
+    <country name="Cape Verde">
+        <level1>Municipality</level1>
+        <level2>Parish</level2>
+    </country>
+    <country name="Canada">
+        <level1>Province</level1>
+        <level2>Country/District/Region</level2>
+        <level3>Municipality</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Chile">
+        <level1>Región</level1>
+        <level2>Provincia</level2>
+        <level3>Comuna</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="China">
+        <level1>Province/Municipality</level1>
+        <level2>Prefecture/City</level2>
+        <level3>County/District</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Colombia">
+        <level1>Departments/Capital District</level1>
+        <level2>Municipality</level2>
+        <level3>Corregimiento</level3>
+    </country>
+    <country name="Costa Rica">
+        <level1>Province</level1>
+        <level2>Canton</level2>
+        <level3>District</level3>
+    </country>
+    <country name="Côte d'Ivoire">
+        <level1>Region</level1>
+        <level2>Departement</level2>
+    </country>
+    <country name="Croatia">
+        <level1>Zupanije</level1>
+        <level2>Grad</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Cuba">
+        <level1>Province</level1>
+        <level2>Municipality</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Cyprus">
+        <level1>District</level1>
+        <level2>Municipality</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Czech Republic">
+        <level1>Kraj</level1>
+        <level2>Okres</level2>
+        <level3>Obec</level3>
+    </country>
+    <country name="Denmark">
+        <level1>Region</level1>
+        <level2>Kommune</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Dominica">
+        <level1>Parish</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Dominican Republic">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Municipio</level3>
+    </country>
+    <country name="East Timor">
+        <level1>Districts</level1>
+        <level2>Subdistrics</level2>
+        <level3>Sucos</level3>
+    </country>
+    <country name="Ecuador">
+        <level1>Province</level1>
+        <level2>Canton</level2>
+        <level3>Parish</level3>
+    </country>
+    <country name="Egypt">
+        <level1>Mahafaza</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="England">
+        <level1>County</level1>
+        <level2>Township</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Estonia">
+        <level1>Makoond</level1>
+        <level2>Omavalitsus</level2>
+        <level3>District</level3>
+    </country>
+    <country name="Ethopia">
+        <level1>County</level1>
+        <level2>Zones</level2>
+        <level3>Woredas</level3>
+        <level4>Kebele</level4>
+    </country>
+    <country name="Faroe Islands">
+        <level1>Municipality</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Fijj">
+        <level1>Division</level1>
+        <level2>Province</level2>
+    </country>
+    <country name="Finland">
+        <level1>Lääni</level1>
+        <level2>Maakunta</level2>
+        <level3>Kunta</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="French Guiana">
+        <level1>Arrondissement</level1>
+        <level2>Canton</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="France">
+        <level1>Région</level1>
+        <level2>Département</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="Gabon">
+        <level1>Arrondissement</level1>
+        <level2>Canton</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="Germany">
+        <level1>Bundesland</level1>
+        <level2>Kreis</level2>
+        <level3>Gemeinde</level3>
+        <level4>Stadt</level4>
+        <level5>Stadtteil</level5>
+        <level6>Stadteil Abschnitt</level6>
+    </country>
+    <country name="Ghana">
+        <level1>Region</level1>
+        <level2>District</level2>
+    </country>
+    <country name="Gibraltar">
+        <level1>City</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Greece">
+        <level1>Periferia</level1>
+        <level2>Nomi</level2>
+        <level3>Dimotika</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Guadeloupe-France">
+        <level1>Région</level1>
+        <level2>Département</level2>
+        <level3>Commune</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Guatemala">
+        <level1>Départemento</level1>
+        <level2>Municipio</level2>
+    </country>
+    <country name="Guinea Equatorial">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Guyane-France">
+        <level1>Région</level1>
+        <level2>Département</level2>
+        <level3>Commune</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Haiti">
+        <level1>Departments</level1>
+        <level2>arrondissements</level2>
+        <level3>communes</level3>
+    </country>
+    <country name="Hondurras">
+        <level1>Departments</level1>
+        <level2>municipalities</level2>
+        <level3>aldeas</level3>
+    </country>
+    <country name="Hong Kong-China">
+        <level1>Province</level1>
+        <level2>Municipality</level2>
+        <level3>District</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Hungary">
+        <level1>Megye</level1>
+        <level2>Település</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Iceland">
+        <level1>Region</level1>
+        <level2>Constituencies</level2>
+        <level3>Counties</level3>
+        <level4>Municipality</level4>
+    </country>
+    <country name="India">
+        <level1>State/Territory</level1>
+        <level2>District</level2>
+        <level3>Subistrict</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Indonesia">
+        <level1>Provinsi</level1>
+        <level2>Kabupaten</level2>
+        <level3>Kecamatan</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Iran">
+        <level1>ostan</level1>
+        <level2>sharestan</level2>
+        <level3>bakhsh</level3>
+    </country>
+    <country name="Iraq">
+        <level1>muhafadhah</level1>
+        <level2>qadhas</level2>
+    </country>
+    <country name="Ireland">
+        <level1>PostCounty</level1>
+        <level2>Post Town</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Israel">
+        <level1>mechoz</level1>
+        <level2>nafa</level2>
+        <level3>Sub-district</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Italy">
+        <level1>Regione</level1>
+        <level2>Provincia</level2>
+        <level3>Comune</level3>
+    </country>
+    <country name="Jamaica">
+        <level1>Parish</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Japan">
+        <level1>Pefecture</level1>
+        <level2>City</level2>
+        <level3>Town</level3>
+        <level4>Village</level4>
+    </country>
+    <country name="Jordan">
+        <level1>Governorate</level1>
+        <level2>Nahia</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Kazakhstan">
+        <level1>oblıstar</level1>
+        <level2>awandar</level2>
+    </country>
+    <country name="Kenya">
+        <level1>mkoa</level1>
+        <level2>wilaya</level2>
+        <level3>taarafa</level3>
+        <level4>mtaa mdogo</level4>
+    </country>
+    <country name="Kiribati">
+        <level1>islands</level1>
+    </country>
+    <country name="Korea North">
+        <level1>Do/Chikhalsi</level1>
+        <level2>Kun</level2>
+        <level3>Up</level3>
+    </country>
+    <country name="Korea South">
+        <level1>Do/gwangyeoksi/teukbyeolsi</level1>
+        <level2>Si/Gun</level2>
+        <level3>Gu/Eup</level3>
+    </country>
+    <country name="Kuwait">
+        <level1>Governate</level1>
+        <level2>Neighborhood</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Kyrgyzstan">
+        <level1>oblast</level1>
+        <level2>raion</level2>
+        <level3>aiyl okmotus</level3>
+    </country>
+    <country name="Laos">
+        <level1>Na Kone Luang Vientiane</level1>
+        <level2>qwang</level2>
+        <level3>muang</level3>
+        <level4>baan</level4>
+    </country>
+    <country name="Latvia">
+        <level1>Rajons</level1>
+        <level2>Novads</level2>
+        <level3>Pagasts</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Lebanon">
+        <level1>Mohafazah</level1>
+        <level2>Qadaa</level2>
+        <level3>Municipality</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Lesotho">
+        <level1>District</level1>
+        <level2>Council</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Liechtenstein">
+        <level1>Wahlkreis</level1>
+        <level2>Gemeinde</level2>
+        <level3>Ortschaft</level3>
+    </country>
+    <country name="Lithuania">
+        <level1>Apskritis</level1>
+        <level2>Savivaldybe</level2>
+        <level3>Seniunija</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Luxembourg">
+        <level1>District</level1>
+        <level2>Canton</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="Macedonia">
+        <level1>Opcina</level1>
+        <level2>Opstina</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Madagascar">
+        <level1>faritany mizakatena</level1>
+        <level2>faritra</level2>
+    </country>
+    <country name="Macau China">
+        <level1>Provincia</level1>
+        <level2>Distrito</level2>
+        <level3>Concelhos</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Malawie">
+        <level1>Region</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Malaysia">
+        <level1>State</level1>
+        <level2>District</level2>
+        <level3>Mukim</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Maldives">
+        <level1>atoll</level1>
+    </country>
+    <country name="Mali">
+        <level1>Region</level1>
+        <level2>cercles</level2>
+        <level3>arrondissements</level3>
+    </country>
+    <country name="Mauritania">
+        <level1>wilaya</level1>
+        <level2>Nouakchott</level2>
+        <level3>moughataa</level3>
+    </country>
+    <country name="Mauritius">
+        <level1>district</level1>
+        <level2>depencies</level2>
+    </country>
+    <country name="Mexico">
+        <level1>Estado</level1>
+        <level2>Municipios</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Mongolia">
+        <level1>Aimags</level1>
+        <level2>Khot</level2>
+        <level3>Sums</level3>
+    </country>
+    <country name="Monaco">
+        <level1>Quartier</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Montenegro">
+        <level1>Region</level1>
+        <level2>Okrug</level2>
+        <level3>Opstine</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Morroco">
+        <level1>Region</level1>
+        <level2>Province</level2>
+        <level3>Commune</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Mozambique">
+        <level1>Provincia</level1>
+        <level2>Distrito</level2>
+        <level3>Posto</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Namibia">
+        <level1>District</level1>
+        <level2>Constituency</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Nauru">
+        <level1>island</level1>
+    </country>
+    <country name="Nepal">
+        <level1>region</level1>
+        <level2>zone</level2>
+        <level3>district</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Netherlands,the">
+        <level1>provincie</level1>
+        <level2>gemeente</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="New Zealand">
+        <level1>Region</level1>
+        <level2>District</level2>
+        <level3>City/Town</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Nicaragua">
+        <level1>departmento</level1>
+        <level2>municipio</level2>
+    </country>
+    <country name="Niger">
+        <level1>Region</level1>
+        <level2>Department</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="Nigeria">
+        <level1>Federal Capital Territory</level1>
+        <level2>State</level2>
+        <level3>Local Goverment Area</level3>
+    </country>
+    <country name="Northern Ireland">
+        <level1>Countie</level1>
+        <level2>Posttown</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Norway">
+        <level1>Fylke</level1>
+        <level2>Kommune</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Oman">
+        <level1>Governate</level1>
+        <level2>Wilayats</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Pakistan">
+        <level1>Province/Federal Territory/Autonomous State/Territory
+        </level1>
+        <level2>Zillah/Takula</level2>
+        <level3>Tehsil</level3>
+    </country>
+    <country name="Palau">
+        <level1>state</level1>
+    </country>
+    <country name="Palestine">
+        <level1>District</level1>
+        <level2>Commune</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Panama">
+        <level1>Provincia/Comarca indigena</level1>
+        <level2>Corregimiento</level2>
+    </country>
+    <country name="Papua New Guinea">
+        <level1>Region</level1>
+        <level2>Province</level2>
+        <level3>District</level3>
+    </country>
+    <country name="Paraguay">
+        <level1>departmiento</level1>
+        <level2>distritio</level2>
+        <level3>municipio</level3>
+    </country>
+    <country name="Portugal">
+        <level1>Distrito</level1>
+        <level2>concelho</level2>
+        <level3>freguesia</level3>
+    </country>
+    <country name="Romania">
+        <level1>judet/Bucuresti</level1>
+        <level2>comuna</level2>
+    </country>
+    <country name="Russia">
+        <level1>Okrug</level1>
+        <level2>Sub'ekt</level2>
+        <level3>Rayon</level3>
+    </country>
+    <country name="Rwanda">
+        <level1>intara</level1>
+        <level2>akarere</level2>
+    </country>
+    <country name="Federation of Saint Kitts and Nevis ">
+        <level1>parish</level1>
+    </country>
+    <country name="Saint Luca">
+        <level1>Quarter</level1>
+    </country>
+    <country name="Saint Vincent and the Grenadines ">
+        <level1>parish</level1>
+    </country>
+    <country name="Samoa">
+        <level1>itumalo</level1>
+    </country>
+    <country name="San Marino">
+        <level1>castelli</level1>
+    </country>
+    <country name="São Tomé and Príncipe ">
+        <level1>province</level1>
+        <level2>district</level2>
+    </country>
+    <country name="Saudi Arabia">
+        <level1>mintaqah</level1>
+        <level2>governorates</level2>
+        <level3>settlement</level3>
+    </country>
+    <country name="Scotland">
+        <level1>county</level1>
+        <level2>township</level2>
+        <level3>settlement</level3>
+    </country>
+    <country name="Senegal">
+        <level1>Region</level1>
+        <level2>Department</level2>
+        <level3>Arrondissement</level3>
+    </country>
+    <country name="Serbia">
+        <level1>Okrug/Kosovo</level1>
+        <level2>grad</level2>
+        <level3>opstine</level3>
+    </country>
+    <country name="Seychelles">
+        <level1>district</level1>
+    </country>
+    <country name="Sierra Leone">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Chiefdom</level3>
+    </country>
+    <country name="Singapore">
+        <level1>County</level1>
+        <level2>City</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Slovak Republic">
+        <level1>Kray</level1>
+        <level2>Okres</level2>
+        <level3>Obec</level3>
+    </country>
+    <country name="Slovenia">
+        <level1>Upravna Enota</level1>
+        <level2>Obcina</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Solomon Islands">
+        <level1>district</level1>
+    </country>
+    <country name="Somalia">
+        <level1>gobol</level1>
+        <level2>district</level2>
+    </country>
+    <country name="South Africa">
+        <level1>Province</level1>
+        <level2>District Municipality</level2>
+        <level3>Local Municipality</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Spain">
+        <level1>Autonomia</level1>
+        <level2>Provincia</level2>
+        <level3>Municipio</level3>
+        <level4>Barrio</level4>
+    </country>
+    <country name="Sri Lanka">
+        <level1>Province</level1>
+        <level2>District</level2>
+    </country>
+    <country name="Sudan">
+        <level1>wilayah</level1>
+        <level2>District</level2>
+        <level3>county</level3>
+    </country>
+    <country name="Suriname">
+        <level1>District</level1>
+        <level2>Resort</level2>
+    </country>
+    <country name="Swaziland">
+        <level1>District</level1>
+        <level2>tinkhundla</level2>
+    </country>
+    <country name="Sweden">
+        <level1>län</level1>
+        <level2>Kommun</level2>
+        <level3>församlingar</level3>
+    </country>
+    <country name="Switzerland">
+        <level1>Kanton</level1>
+        <level2>Bezirk</level2>
+        <level3>Gemeinde</level3>
+        <level4>Stadtteil</level4>
+    </country>
+    <country name="Syria">
+        <level1>muhafazat</level1>
+        <level2>mintaqah</level2>
+        <level3>nahiya</level3>
+    </country>
+    <country name="Tajikistan">
+        <level1>viloyat</level1>
+        <level2>raion</level2>
+        <level3>jamoats</level3>
+        <level4>qyshloqs</level4>
+    </country>
+    <country name="Tanzania">
+        <level1>mkoa</level1>
+        <level2>wilaya</level2>
+        <level3>county</level3>
+    </country>
+    <country name="Taiwan">
+        <level1>County</level1>
+        <level2>City</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Thailand">
+        <level1>changwat</level1>
+        <level2>tambon</level2>
+        <level3>amphoe</level3>
+    </country>
+    <country name="Togo">
+        <level1>province</level1>
+        <level2>prefectur</level2>
+        <level3>commune</level3>
+    </country>
+    <country name="Tonga">
+        <level1>Division</level1>
+        <level2>island</level2>
+    </country>
+    <country name="Trinidad and Tobago">
+        <level1>Regional Cooperation</level1>
+        <level2>Municipality</level2>
+    </country>
+    <country name="Tunesia">
+        <level1>governorate</level1>
+        <level2>mutamadiyat</level2>
+        <level3>shaykhats</level3>
+        <level4>imadats</level4>
+    </country>
+    <country name="Turkey">
+        <level1>böge</level1>
+        <level2>il</level2>
+        <level3>ilce</level3>
+        <level4>mahalle</level4>
+    </country>
+    <country name="Turkmenistan">
+        <level1>welayat</level1>
+        <level2>etrap</level2>
+        <level3>county</level3>
+        <level4>city</level4>
+    </country>
+    <country name="Tuvalu">
+        <level1>District</level1>
+        <level2>Island</level2>
+    </country>
+    <country name="Uganda">
+        <level1>district</level1>
+        <level2>county</level2>
+        <level3>city</level3>
+        <level4>town</level4>
+    </country>
+    <country name="Ukraine">
+        <level1>oblast</level1>
+        <level2>avtonomna respublika</level2>
+        <level3>raion</level3>
+        <level4>settlement</level4>
+    </country>
+    <country name="UAE">
+        <level1>Emirate</level1>
+        <level2>City</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="USA">
+        <level1>state</level1>
+        <level2>county</level2>
+        <level3>city/township</level3>
+    </country>
+    <country name="Urugay">
+        <level1>Departamento</level1>
+        <level2>Municipio</level2>
+    </country>
+    <country name="Uzbekistan">
+        <level1>viloyat</level1>
+        <level2>resubliblika</level2>
+        <level3>shahar</level3>
+        <level4>tuman</level4>
+    </country>
+    <country name="Vanatu">
+        <level1>province</level1>
+    </country>
+    <country name="Vatikan City">
+        <level1>Vatikan City</level1>
+    </country>
+    <country name="Venezuela">
+        <level1>estado</level1>
+        <level2>distrito capital</level2>
+        <level3>municipio</level3>
+        <level4>parroquia</level4>
+    </country>
+    <country name="Vietnam">
+        <level1>tinh</level1>
+        <level2>thành phố trực thuộc trung ương</level2>
+        <level3>thị xã/huyện</level3>
+        <level4>thị trấn/xã</level4>
+        <level5>quận</level5>
+    </country>
+    <country name="Wales">
+        <level1>County</level1>
+        <level2>Township</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Yemen">
+        <level1>muhafazah</level1>
+        <level2>muderiah</level2>
+        <level3>settlement</level3>
+    </country>
+    <country name="Zambia">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Zimbabwe">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Municipality</level3>
+    </country>
+</administrative-levels>
Index: /applications/editors/josm/plugins/namemanager/build.xml
===================================================================
--- /applications/editors/josm/plugins/namemanager/build.xml	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/build.xml	(revision 25571)
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="namemanager" default="dist" basedir=".">
+	<property name="plugin.main.version" value="3966" />
+	<property name="josm" location="../JOSM/dist/josm-custom.jar" />
+	<property name="plugin.dist.dir" value="../JOSM/dist" />
+	<property name="plugin.build.dir" value="build" />
+	<property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar" />
+	<property name="ant.build.javac.target" value="1.5" />
+	<target name="init">
+		<mkdir dir="${plugin.build.dir}" />
+	</target>
+	<target name="compile" depends="init">
+		<echo message="compiling sources for  ${plugin.jar} ... " />
+		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+			<compilerarg value="-Xlint:deprecation" />
+			<compilerarg value="-Xlint:unchecked" />
+		</javac>
+	</target>
+	<target name="dist" depends="compile,revision">
+		<echo message="creating ${plugin.jar.name} ... " />
+		<copy todir="${plugin.build.dir}/resources">
+			<fileset dir="resources" />
+		</copy>
+		<copy todir="${plugin.build.dir}/images">
+			<fileset dir="images" />
+		</copy>
+		<copy todir="${plugin.build.dir}">
+			<fileset dir=".">
+				<include name="README" />
+				<include name="LICENSE" />
+			</fileset>
+		</copy>
+		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+			<manifest>
+				<attribute name="Author" value="Rafal Jachowicz: rjachow@gmail.com" />
+				<attribute name="Main-Class" value="org.openstreetmap.josm.plugins.namemanager.NameManagerMain" />
+				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.namemanager.NameManagerPlugin" />
+				<attribute name="Plugin-Date" value="${version.entry.commit.date}" />
+				<attribute name="Plugin-Description" value="Allows to attribute tags to all objects in any selected area at once" />
+				<attribute name="pl_Plugin-Description" value="Pozwala na dodawanie, edycję i usuwanie tagów znajdujących się we wskazanym obszarze na raz" />
+				<attribute name="Plugin-Mainversion" value="3966" />
+				<attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
+			</manifest>
+		</jar>
+	</target>
+	<target name="revision">
+
+		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+			<env key="LANG" value="C" />
+			<arg value="info" />
+			<arg value="--xml" />
+			<arg value="." />
+		</exec>
+		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true" />
+		<delete file="REVISION" />
+	</target>
+	<target name="clean">
+		<delete dir="${plugin.build.dir}" />
+		<delete file="${plugin.jar}" />
+	</target>
+	<target name="install" depends="dist">
+		<property environment="env" />
+		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+			<and>
+				<os family="windows" />
+			</and>
+		</condition>
+		<copy file="${plugin.jar}" todir="${josm.plugins.dir}" />
+	</target>
+	<target name="core-info">
+		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+			<env key="LANG" value="C" />
+			<arg value="info" />
+			<arg value="--xml" />
+			<arg value="../../core" />
+		</exec>
+		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true" />
+		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+		<delete file="core.info.xml" />
+	</target>
+	<target name="commit-current">
+		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+			<env key="LANG" value="C" />
+			<arg value="commit" />
+			<arg value="-m '${commit.message}'" />
+			<arg value="." />
+		</exec>
+	</target>
+	<target name="update-current">
+		<echo>Updating plugin source ...</echo>
+		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+			<env key="LANG" value="C" />
+			<arg value="up" />
+			<arg value="." />
+		</exec>
+		<echo>Updating ${plugin.jar} ...</echo>
+		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+			<env key="LANG" value="C" />
+			<arg value="up" />
+			<arg value="../dist/${plugin.jar}" />
+		</exec>
+	</target>
+	<target name="commit-dist">
+		<echo>
+	***** Properties of published ${plugin.jar} *****
+	Commit message    : '${commit.message}'					
+	Plugin-Mainversion: ${plugin.main.version}
+	JOSM build version: ${coreversion.info.entry.revision}
+	Plugin-Version    : ${version.entry.commit.revision}
+	***** / Properties of published ${plugin.jar} *****					
+						
+	Now commiting ${plugin.jar} ...
+	</echo>
+		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+			<env key="LANG" value="C" />
+			<arg value="-m '${commit.message}'" />
+			<arg value="commit" />
+			<arg value="${plugin.jar}" />
+		</exec>
+	</target>
+	<target name="ensure-svn-present">
+		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+			<env key="LANG" value="C" />
+			<arg value="--version" />
+		</exec>
+		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+			<condition>
+				<not>
+					<isset property="svn.exit.code" />
+				</not>
+			</condition>
+		</fail>
+		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+			<condition>
+				<isfailure code="${svn.exit.code}" />
+			</condition>
+		</fail>
+	</target>
+
+	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+	</target>
+</project>
Index: /applications/editors/josm/plugins/namemanager/build/LICENSE
===================================================================
--- /applications/editors/josm/plugins/namemanager/build/LICENSE	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/build/LICENSE	(revision 25571)
@@ -0,0 +1,345 @@
+		    GNU GENERAL PUBLIC LICENSE
+		       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+	51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+			    Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+
+		    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+			    NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+		     END OF TERMS AND CONDITIONS
+
+
+	    How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year  name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Library General
+Public License instead of this License.
Index: /applications/editors/josm/plugins/namemanager/build/README
===================================================================
--- /applications/editors/josm/plugins/namemanager/build/README	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/build/README	(revision 25571)
@@ -0,0 +1,4 @@
+README 
+======
+
+Readme for your plugin 
Index: /applications/editors/josm/plugins/namemanager/build/resources/administrative-levels.xml
===================================================================
--- /applications/editors/josm/plugins/namemanager/build/resources/administrative-levels.xml	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/build/resources/administrative-levels.xml	(revision 25571)
@@ -0,0 +1,893 @@
+﻿<administrative-levels>
+    <country name="Poland">
+        <level1>Wojewodztwo</level1>
+        <level2>Powiat</level2>
+        <level3>Gmina</level3>
+        <level4>Miasto</level4>
+        <level5>Dzielnica</level5>
+    </country>
+    <country name="Abkhazia">
+        <level1>raion</level1>
+        <level2>town</level2>
+        <level3>settlement</level3>
+    </country>
+    <country name="Afghanistan">
+        <level1>Welayat</level1>
+        <level2>District</level2>
+        <level3>Township</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Albania">
+        <level1>Qark</level1>
+        <level2>Rreth</level2>
+        <level3>Komune</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Algeria">
+        <level1>Wilaya</level1>
+        <level2>Daïra</level2>
+        <level3>Baladiyah</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Andorra">
+        <level1>Parròquia</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Angola">
+        <level1>Provincia</level1>
+        <level2>Municipio</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Armenia">
+        <level1>Marz</level1>
+        <level2>Hamayank</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Australia">
+        <level1>State</level1>
+        <level2>Local Government Area</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Austria">
+        <level1>Bundesland</level1>
+        <level2>Bezirk</level2>
+        <level3>Gemeinde</level3>
+        <level4>Ort</level4>
+        <level5>Ortsteil</level5>
+        <level6>Ortsteil-Abschnitt</level6>
+    </country>
+    <country name="Azerbaijan">
+        <level1>Rayon</level1>
+        <level2>seher</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Bahamas">
+        <level1>Island</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Bahrain">
+        <level1>Municipality</level1>
+        <level2>Area/Section</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Bangladesh">
+        <level1>Bighag</level1>
+        <level2>Zila</level2>
+        <level3>Upazila</level3>
+    </country>
+    <country name="Barbados">
+        <level1>Parish</level1>
+    </country>
+    <country name="Belarus">
+        <level1>Voblast</level1>
+        <level2>Rayon</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Belgium">
+        <level1>Gewest</level1>
+        <level2>Provincie</level2>
+        <level3>Gemeente</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Belize">
+        <level1>District</level1>
+        <level2>Constituency</level2>
+    </country>
+    <country name="Benin">
+        <level1>Department</level1>
+        <level2>Commune</level2>
+    </country>
+    <country name="Bermuda">
+        <level1>Parish</level1>
+        <level2>Municipality</level2>
+    </country>
+    <country name="Bhutan">
+        <level1>Dzongdey</level1>
+        <level2>Dzonghag</level2>
+        <level3>Gewog</level3>
+    </country>
+    <country name="Bolivia">
+        <level1>Department</level1>
+        <level2>Provincia</level2>
+        <level3>Municipio</level3>
+        <level4>Canton</level4>
+    </country>
+    <country name="Bosnia/Herzegovina">
+        <level1>Region</level1>
+        <level2>Kanton</level2>
+        <level3>Opstine</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Botswana">
+        <level1>Region</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Brazil">
+        <level1>Região</level1>
+        <level2>Estado</level2>
+        <level3>Munícipio</level3>
+    </country>
+    <country name="Brunei">
+        <level1>Daerah</level1>
+        <level2>Mukim</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Bulgaria">
+        <level1>Oblast</level1>
+        <level2>Obshtina</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Burkina Faso">
+        <level1>Region</level1>
+        <level2>Province</level2>
+        <level3>Department</level3>
+    </country>
+    <country name="Cameroon">
+        <level1>Region</level1>
+        <level2>Department</level2>
+        <level3>Arrondissement</level3>
+        <level4>District</level4>
+    </country>
+    <country name="Cape Verde">
+        <level1>Municipality</level1>
+        <level2>Parish</level2>
+    </country>
+    <country name="Canada">
+        <level1>Province</level1>
+        <level2>Country/District/Region</level2>
+        <level3>Municipality</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Chile">
+        <level1>Región</level1>
+        <level2>Provincia</level2>
+        <level3>Comuna</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="China">
+        <level1>Province/Municipality</level1>
+        <level2>Prefecture/City</level2>
+        <level3>County/District</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Colombia">
+        <level1>Departments/Capital District</level1>
+        <level2>Municipality</level2>
+        <level3>Corregimiento</level3>
+    </country>
+    <country name="Costa Rica">
+        <level1>Province</level1>
+        <level2>Canton</level2>
+        <level3>District</level3>
+    </country>
+    <country name="Côte d'Ivoire">
+        <level1>Region</level1>
+        <level2>Departement</level2>
+    </country>
+    <country name="Croatia">
+        <level1>Zupanije</level1>
+        <level2>Grad</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Cuba">
+        <level1>Province</level1>
+        <level2>Municipality</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Cyprus">
+        <level1>District</level1>
+        <level2>Municipality</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Czech Republic">
+        <level1>Kraj</level1>
+        <level2>Okres</level2>
+        <level3>Obec</level3>
+    </country>
+    <country name="Denmark">
+        <level1>Region</level1>
+        <level2>Kommune</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Dominica">
+        <level1>Parish</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Dominican Republic">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Municipio</level3>
+    </country>
+    <country name="East Timor">
+        <level1>Districts</level1>
+        <level2>Subdistrics</level2>
+        <level3>Sucos</level3>
+    </country>
+    <country name="Ecuador">
+        <level1>Province</level1>
+        <level2>Canton</level2>
+        <level3>Parish</level3>
+    </country>
+    <country name="Egypt">
+        <level1>Mahafaza</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="England">
+        <level1>County</level1>
+        <level2>Township</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Estonia">
+        <level1>Makoond</level1>
+        <level2>Omavalitsus</level2>
+        <level3>District</level3>
+    </country>
+    <country name="Ethopia">
+        <level1>County</level1>
+        <level2>Zones</level2>
+        <level3>Woredas</level3>
+        <level4>Kebele</level4>
+    </country>
+    <country name="Faroe Islands">
+        <level1>Municipality</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Fijj">
+        <level1>Division</level1>
+        <level2>Province</level2>
+    </country>
+    <country name="Finland">
+        <level1>Lääni</level1>
+        <level2>Maakunta</level2>
+        <level3>Kunta</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="French Guiana">
+        <level1>Arrondissement</level1>
+        <level2>Canton</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="France">
+        <level1>Région</level1>
+        <level2>Département</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="Gabon">
+        <level1>Arrondissement</level1>
+        <level2>Canton</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="Germany">
+        <level1>Bundesland</level1>
+        <level2>Kreis</level2>
+        <level3>Gemeinde</level3>
+        <level4>Stadt</level4>
+        <level5>Stadtteil</level5>
+        <level6>Stadteil Abschnitt</level6>
+    </country>
+    <country name="Ghana">
+        <level1>Region</level1>
+        <level2>District</level2>
+    </country>
+    <country name="Gibraltar">
+        <level1>City</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Greece">
+        <level1>Periferia</level1>
+        <level2>Nomi</level2>
+        <level3>Dimotika</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Guadeloupe-France">
+        <level1>Région</level1>
+        <level2>Département</level2>
+        <level3>Commune</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Guatemala">
+        <level1>Départemento</level1>
+        <level2>Municipio</level2>
+    </country>
+    <country name="Guinea Equatorial">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Guyane-France">
+        <level1>Région</level1>
+        <level2>Département</level2>
+        <level3>Commune</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Haiti">
+        <level1>Departments</level1>
+        <level2>arrondissements</level2>
+        <level3>communes</level3>
+    </country>
+    <country name="Hondurras">
+        <level1>Departments</level1>
+        <level2>municipalities</level2>
+        <level3>aldeas</level3>
+    </country>
+    <country name="Hong Kong-China">
+        <level1>Province</level1>
+        <level2>Municipality</level2>
+        <level3>District</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Hungary">
+        <level1>Megye</level1>
+        <level2>Település</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Iceland">
+        <level1>Region</level1>
+        <level2>Constituencies</level2>
+        <level3>Counties</level3>
+        <level4>Municipality</level4>
+    </country>
+    <country name="India">
+        <level1>State/Territory</level1>
+        <level2>District</level2>
+        <level3>Subistrict</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Indonesia">
+        <level1>Provinsi</level1>
+        <level2>Kabupaten</level2>
+        <level3>Kecamatan</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Iran">
+        <level1>ostan</level1>
+        <level2>sharestan</level2>
+        <level3>bakhsh</level3>
+    </country>
+    <country name="Iraq">
+        <level1>muhafadhah</level1>
+        <level2>qadhas</level2>
+    </country>
+    <country name="Ireland">
+        <level1>PostCounty</level1>
+        <level2>Post Town</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Israel">
+        <level1>mechoz</level1>
+        <level2>nafa</level2>
+        <level3>Sub-district</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Italy">
+        <level1>Regione</level1>
+        <level2>Provincia</level2>
+        <level3>Comune</level3>
+    </country>
+    <country name="Jamaica">
+        <level1>Parish</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Japan">
+        <level1>Pefecture</level1>
+        <level2>City</level2>
+        <level3>Town</level3>
+        <level4>Village</level4>
+    </country>
+    <country name="Jordan">
+        <level1>Governorate</level1>
+        <level2>Nahia</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Kazakhstan">
+        <level1>oblıstar</level1>
+        <level2>awandar</level2>
+    </country>
+    <country name="Kenya">
+        <level1>mkoa</level1>
+        <level2>wilaya</level2>
+        <level3>taarafa</level3>
+        <level4>mtaa mdogo</level4>
+    </country>
+    <country name="Kiribati">
+        <level1>islands</level1>
+    </country>
+    <country name="Korea North">
+        <level1>Do/Chikhalsi</level1>
+        <level2>Kun</level2>
+        <level3>Up</level3>
+    </country>
+    <country name="Korea South">
+        <level1>Do/gwangyeoksi/teukbyeolsi</level1>
+        <level2>Si/Gun</level2>
+        <level3>Gu/Eup</level3>
+    </country>
+    <country name="Kuwait">
+        <level1>Governate</level1>
+        <level2>Neighborhood</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Kyrgyzstan">
+        <level1>oblast</level1>
+        <level2>raion</level2>
+        <level3>aiyl okmotus</level3>
+    </country>
+    <country name="Laos">
+        <level1>Na Kone Luang Vientiane</level1>
+        <level2>qwang</level2>
+        <level3>muang</level3>
+        <level4>baan</level4>
+    </country>
+    <country name="Latvia">
+        <level1>Rajons</level1>
+        <level2>Novads</level2>
+        <level3>Pagasts</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Lebanon">
+        <level1>Mohafazah</level1>
+        <level2>Qadaa</level2>
+        <level3>Municipality</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Lesotho">
+        <level1>District</level1>
+        <level2>Council</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Liechtenstein">
+        <level1>Wahlkreis</level1>
+        <level2>Gemeinde</level2>
+        <level3>Ortschaft</level3>
+    </country>
+    <country name="Lithuania">
+        <level1>Apskritis</level1>
+        <level2>Savivaldybe</level2>
+        <level3>Seniunija</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Luxembourg">
+        <level1>District</level1>
+        <level2>Canton</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="Macedonia">
+        <level1>Opcina</level1>
+        <level2>Opstina</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Madagascar">
+        <level1>faritany mizakatena</level1>
+        <level2>faritra</level2>
+    </country>
+    <country name="Macau China">
+        <level1>Provincia</level1>
+        <level2>Distrito</level2>
+        <level3>Concelhos</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Malawie">
+        <level1>Region</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Malaysia">
+        <level1>State</level1>
+        <level2>District</level2>
+        <level3>Mukim</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Maldives">
+        <level1>atoll</level1>
+    </country>
+    <country name="Mali">
+        <level1>Region</level1>
+        <level2>cercles</level2>
+        <level3>arrondissements</level3>
+    </country>
+    <country name="Mauritania">
+        <level1>wilaya</level1>
+        <level2>Nouakchott</level2>
+        <level3>moughataa</level3>
+    </country>
+    <country name="Mauritius">
+        <level1>district</level1>
+        <level2>depencies</level2>
+    </country>
+    <country name="Mexico">
+        <level1>Estado</level1>
+        <level2>Municipios</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Mongolia">
+        <level1>Aimags</level1>
+        <level2>Khot</level2>
+        <level3>Sums</level3>
+    </country>
+    <country name="Monaco">
+        <level1>Quartier</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Montenegro">
+        <level1>Region</level1>
+        <level2>Okrug</level2>
+        <level3>Opstine</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Morroco">
+        <level1>Region</level1>
+        <level2>Province</level2>
+        <level3>Commune</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Mozambique">
+        <level1>Provincia</level1>
+        <level2>Distrito</level2>
+        <level3>Posto</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Namibia">
+        <level1>District</level1>
+        <level2>Constituency</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Nauru">
+        <level1>island</level1>
+    </country>
+    <country name="Nepal">
+        <level1>region</level1>
+        <level2>zone</level2>
+        <level3>district</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Netherlands,the">
+        <level1>provincie</level1>
+        <level2>gemeente</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="New Zealand">
+        <level1>Region</level1>
+        <level2>District</level2>
+        <level3>City/Town</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Nicaragua">
+        <level1>departmento</level1>
+        <level2>municipio</level2>
+    </country>
+    <country name="Niger">
+        <level1>Region</level1>
+        <level2>Department</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="Nigeria">
+        <level1>Federal Capital Territory</level1>
+        <level2>State</level2>
+        <level3>Local Goverment Area</level3>
+    </country>
+    <country name="Northern Ireland">
+        <level1>Countie</level1>
+        <level2>Posttown</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Norway">
+        <level1>Fylke</level1>
+        <level2>Kommune</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Oman">
+        <level1>Governate</level1>
+        <level2>Wilayats</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Pakistan">
+        <level1>Province/Federal Territory/Autonomous State/Territory
+        </level1>
+        <level2>Zillah/Takula</level2>
+        <level3>Tehsil</level3>
+    </country>
+    <country name="Palau">
+        <level1>state</level1>
+    </country>
+    <country name="Palestine">
+        <level1>District</level1>
+        <level2>Commune</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Panama">
+        <level1>Provincia/Comarca indigena</level1>
+        <level2>Corregimiento</level2>
+    </country>
+    <country name="Papua New Guinea">
+        <level1>Region</level1>
+        <level2>Province</level2>
+        <level3>District</level3>
+    </country>
+    <country name="Paraguay">
+        <level1>departmiento</level1>
+        <level2>distritio</level2>
+        <level3>municipio</level3>
+    </country>
+    <country name="Portugal">
+        <level1>Distrito</level1>
+        <level2>concelho</level2>
+        <level3>freguesia</level3>
+    </country>
+    <country name="Romania">
+        <level1>judet/Bucuresti</level1>
+        <level2>comuna</level2>
+    </country>
+    <country name="Russia">
+        <level1>Okrug</level1>
+        <level2>Sub'ekt</level2>
+        <level3>Rayon</level3>
+    </country>
+    <country name="Rwanda">
+        <level1>intara</level1>
+        <level2>akarere</level2>
+    </country>
+    <country name="Federation of Saint Kitts and Nevis ">
+        <level1>parish</level1>
+    </country>
+    <country name="Saint Luca">
+        <level1>Quarter</level1>
+    </country>
+    <country name="Saint Vincent and the Grenadines ">
+        <level1>parish</level1>
+    </country>
+    <country name="Samoa">
+        <level1>itumalo</level1>
+    </country>
+    <country name="San Marino">
+        <level1>castelli</level1>
+    </country>
+    <country name="São Tomé and Príncipe ">
+        <level1>province</level1>
+        <level2>district</level2>
+    </country>
+    <country name="Saudi Arabia">
+        <level1>mintaqah</level1>
+        <level2>governorates</level2>
+        <level3>settlement</level3>
+    </country>
+    <country name="Scotland">
+        <level1>county</level1>
+        <level2>township</level2>
+        <level3>settlement</level3>
+    </country>
+    <country name="Senegal">
+        <level1>Region</level1>
+        <level2>Department</level2>
+        <level3>Arrondissement</level3>
+    </country>
+    <country name="Serbia">
+        <level1>Okrug/Kosovo</level1>
+        <level2>grad</level2>
+        <level3>opstine</level3>
+    </country>
+    <country name="Seychelles">
+        <level1>district</level1>
+    </country>
+    <country name="Sierra Leone">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Chiefdom</level3>
+    </country>
+    <country name="Singapore">
+        <level1>County</level1>
+        <level2>City</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Slovak Republic">
+        <level1>Kray</level1>
+        <level2>Okres</level2>
+        <level3>Obec</level3>
+    </country>
+    <country name="Slovenia">
+        <level1>Upravna Enota</level1>
+        <level2>Obcina</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Solomon Islands">
+        <level1>district</level1>
+    </country>
+    <country name="Somalia">
+        <level1>gobol</level1>
+        <level2>district</level2>
+    </country>
+    <country name="South Africa">
+        <level1>Province</level1>
+        <level2>District Municipality</level2>
+        <level3>Local Municipality</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Spain">
+        <level1>Autonomia</level1>
+        <level2>Provincia</level2>
+        <level3>Municipio</level3>
+        <level4>Barrio</level4>
+    </country>
+    <country name="Sri Lanka">
+        <level1>Province</level1>
+        <level2>District</level2>
+    </country>
+    <country name="Sudan">
+        <level1>wilayah</level1>
+        <level2>District</level2>
+        <level3>county</level3>
+    </country>
+    <country name="Suriname">
+        <level1>District</level1>
+        <level2>Resort</level2>
+    </country>
+    <country name="Swaziland">
+        <level1>District</level1>
+        <level2>tinkhundla</level2>
+    </country>
+    <country name="Sweden">
+        <level1>län</level1>
+        <level2>Kommun</level2>
+        <level3>församlingar</level3>
+    </country>
+    <country name="Switzerland">
+        <level1>Kanton</level1>
+        <level2>Bezirk</level2>
+        <level3>Gemeinde</level3>
+        <level4>Stadtteil</level4>
+    </country>
+    <country name="Syria">
+        <level1>muhafazat</level1>
+        <level2>mintaqah</level2>
+        <level3>nahiya</level3>
+    </country>
+    <country name="Tajikistan">
+        <level1>viloyat</level1>
+        <level2>raion</level2>
+        <level3>jamoats</level3>
+        <level4>qyshloqs</level4>
+    </country>
+    <country name="Tanzania">
+        <level1>mkoa</level1>
+        <level2>wilaya</level2>
+        <level3>county</level3>
+    </country>
+    <country name="Taiwan">
+        <level1>County</level1>
+        <level2>City</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Thailand">
+        <level1>changwat</level1>
+        <level2>tambon</level2>
+        <level3>amphoe</level3>
+    </country>
+    <country name="Togo">
+        <level1>province</level1>
+        <level2>prefectur</level2>
+        <level3>commune</level3>
+    </country>
+    <country name="Tonga">
+        <level1>Division</level1>
+        <level2>island</level2>
+    </country>
+    <country name="Trinidad and Tobago">
+        <level1>Regional Cooperation</level1>
+        <level2>Municipality</level2>
+    </country>
+    <country name="Tunesia">
+        <level1>governorate</level1>
+        <level2>mutamadiyat</level2>
+        <level3>shaykhats</level3>
+        <level4>imadats</level4>
+    </country>
+    <country name="Turkey">
+        <level1>böge</level1>
+        <level2>il</level2>
+        <level3>ilce</level3>
+        <level4>mahalle</level4>
+    </country>
+    <country name="Turkmenistan">
+        <level1>welayat</level1>
+        <level2>etrap</level2>
+        <level3>county</level3>
+        <level4>city</level4>
+    </country>
+    <country name="Tuvalu">
+        <level1>District</level1>
+        <level2>Island</level2>
+    </country>
+    <country name="Uganda">
+        <level1>district</level1>
+        <level2>county</level2>
+        <level3>city</level3>
+        <level4>town</level4>
+    </country>
+    <country name="Ukraine">
+        <level1>oblast</level1>
+        <level2>avtonomna respublika</level2>
+        <level3>raion</level3>
+        <level4>settlement</level4>
+    </country>
+    <country name="UAE">
+        <level1>Emirate</level1>
+        <level2>City</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="USA">
+        <level1>state</level1>
+        <level2>county</level2>
+        <level3>city/township</level3>
+    </country>
+    <country name="Urugay">
+        <level1>Departamento</level1>
+        <level2>Municipio</level2>
+    </country>
+    <country name="Uzbekistan">
+        <level1>viloyat</level1>
+        <level2>resubliblika</level2>
+        <level3>shahar</level3>
+        <level4>tuman</level4>
+    </country>
+    <country name="Vanatu">
+        <level1>province</level1>
+    </country>
+    <country name="Vatikan City">
+        <level1>Vatikan City</level1>
+    </country>
+    <country name="Venezuela">
+        <level1>estado</level1>
+        <level2>distrito capital</level2>
+        <level3>municipio</level3>
+        <level4>parroquia</level4>
+    </country>
+    <country name="Vietnam">
+        <level1>tinh</level1>
+        <level2>thành phố trực thuộc trung ương</level2>
+        <level3>thị xã/huyện</level3>
+        <level4>thị trấn/xã</level4>
+        <level5>quận</level5>
+    </country>
+    <country name="Wales">
+        <level1>County</level1>
+        <level2>Township</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Yemen">
+        <level1>muhafazah</level1>
+        <level2>muderiah</level2>
+        <level3>settlement</level3>
+    </country>
+    <country name="Zambia">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Zimbabwe">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Municipality</level3>
+    </country>
+</administrative-levels>
Index: /applications/editors/josm/plugins/namemanager/resources/administrative-levels.xml
===================================================================
--- /applications/editors/josm/plugins/namemanager/resources/administrative-levels.xml	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/resources/administrative-levels.xml	(revision 25571)
@@ -0,0 +1,893 @@
+﻿<administrative-levels>
+    <country name="Poland">
+        <level1>Wojewodztwo</level1>
+        <level2>Powiat</level2>
+        <level3>Gmina</level3>
+        <level4>Miasto</level4>
+        <level5>Dzielnica</level5>
+    </country>
+    <country name="Abkhazia">
+        <level1>raion</level1>
+        <level2>town</level2>
+        <level3>settlement</level3>
+    </country>
+    <country name="Afghanistan">
+        <level1>Welayat</level1>
+        <level2>District</level2>
+        <level3>Township</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Albania">
+        <level1>Qark</level1>
+        <level2>Rreth</level2>
+        <level3>Komune</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Algeria">
+        <level1>Wilaya</level1>
+        <level2>Daïra</level2>
+        <level3>Baladiyah</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Andorra">
+        <level1>Parròquia</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Angola">
+        <level1>Provincia</level1>
+        <level2>Municipio</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Armenia">
+        <level1>Marz</level1>
+        <level2>Hamayank</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Australia">
+        <level1>State</level1>
+        <level2>Local Government Area</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Austria">
+        <level1>Bundesland</level1>
+        <level2>Bezirk</level2>
+        <level3>Gemeinde</level3>
+        <level4>Ort</level4>
+        <level5>Ortsteil</level5>
+        <level6>Ortsteil-Abschnitt</level6>
+    </country>
+    <country name="Azerbaijan">
+        <level1>Rayon</level1>
+        <level2>seher</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Bahamas">
+        <level1>Island</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Bahrain">
+        <level1>Municipality</level1>
+        <level2>Area/Section</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Bangladesh">
+        <level1>Bighag</level1>
+        <level2>Zila</level2>
+        <level3>Upazila</level3>
+    </country>
+    <country name="Barbados">
+        <level1>Parish</level1>
+    </country>
+    <country name="Belarus">
+        <level1>Voblast</level1>
+        <level2>Rayon</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Belgium">
+        <level1>Gewest</level1>
+        <level2>Provincie</level2>
+        <level3>Gemeente</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Belize">
+        <level1>District</level1>
+        <level2>Constituency</level2>
+    </country>
+    <country name="Benin">
+        <level1>Department</level1>
+        <level2>Commune</level2>
+    </country>
+    <country name="Bermuda">
+        <level1>Parish</level1>
+        <level2>Municipality</level2>
+    </country>
+    <country name="Bhutan">
+        <level1>Dzongdey</level1>
+        <level2>Dzonghag</level2>
+        <level3>Gewog</level3>
+    </country>
+    <country name="Bolivia">
+        <level1>Department</level1>
+        <level2>Provincia</level2>
+        <level3>Municipio</level3>
+        <level4>Canton</level4>
+    </country>
+    <country name="Bosnia/Herzegovina">
+        <level1>Region</level1>
+        <level2>Kanton</level2>
+        <level3>Opstine</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Botswana">
+        <level1>Region</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Brazil">
+        <level1>Região</level1>
+        <level2>Estado</level2>
+        <level3>Munícipio</level3>
+    </country>
+    <country name="Brunei">
+        <level1>Daerah</level1>
+        <level2>Mukim</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Bulgaria">
+        <level1>Oblast</level1>
+        <level2>Obshtina</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Burkina Faso">
+        <level1>Region</level1>
+        <level2>Province</level2>
+        <level3>Department</level3>
+    </country>
+    <country name="Cameroon">
+        <level1>Region</level1>
+        <level2>Department</level2>
+        <level3>Arrondissement</level3>
+        <level4>District</level4>
+    </country>
+    <country name="Cape Verde">
+        <level1>Municipality</level1>
+        <level2>Parish</level2>
+    </country>
+    <country name="Canada">
+        <level1>Province</level1>
+        <level2>Country/District/Region</level2>
+        <level3>Municipality</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Chile">
+        <level1>Región</level1>
+        <level2>Provincia</level2>
+        <level3>Comuna</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="China">
+        <level1>Province/Municipality</level1>
+        <level2>Prefecture/City</level2>
+        <level3>County/District</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Colombia">
+        <level1>Departments/Capital District</level1>
+        <level2>Municipality</level2>
+        <level3>Corregimiento</level3>
+    </country>
+    <country name="Costa Rica">
+        <level1>Province</level1>
+        <level2>Canton</level2>
+        <level3>District</level3>
+    </country>
+    <country name="Côte d'Ivoire">
+        <level1>Region</level1>
+        <level2>Departement</level2>
+    </country>
+    <country name="Croatia">
+        <level1>Zupanije</level1>
+        <level2>Grad</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Cuba">
+        <level1>Province</level1>
+        <level2>Municipality</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Cyprus">
+        <level1>District</level1>
+        <level2>Municipality</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Czech Republic">
+        <level1>Kraj</level1>
+        <level2>Okres</level2>
+        <level3>Obec</level3>
+    </country>
+    <country name="Denmark">
+        <level1>Region</level1>
+        <level2>Kommune</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Dominica">
+        <level1>Parish</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Dominican Republic">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Municipio</level3>
+    </country>
+    <country name="East Timor">
+        <level1>Districts</level1>
+        <level2>Subdistrics</level2>
+        <level3>Sucos</level3>
+    </country>
+    <country name="Ecuador">
+        <level1>Province</level1>
+        <level2>Canton</level2>
+        <level3>Parish</level3>
+    </country>
+    <country name="Egypt">
+        <level1>Mahafaza</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="England">
+        <level1>County</level1>
+        <level2>Township</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Estonia">
+        <level1>Makoond</level1>
+        <level2>Omavalitsus</level2>
+        <level3>District</level3>
+    </country>
+    <country name="Ethopia">
+        <level1>County</level1>
+        <level2>Zones</level2>
+        <level3>Woredas</level3>
+        <level4>Kebele</level4>
+    </country>
+    <country name="Faroe Islands">
+        <level1>Municipality</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Fijj">
+        <level1>Division</level1>
+        <level2>Province</level2>
+    </country>
+    <country name="Finland">
+        <level1>Lääni</level1>
+        <level2>Maakunta</level2>
+        <level3>Kunta</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="French Guiana">
+        <level1>Arrondissement</level1>
+        <level2>Canton</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="France">
+        <level1>Région</level1>
+        <level2>Département</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="Gabon">
+        <level1>Arrondissement</level1>
+        <level2>Canton</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="Germany">
+        <level1>Bundesland</level1>
+        <level2>Kreis</level2>
+        <level3>Gemeinde</level3>
+        <level4>Stadt</level4>
+        <level5>Stadtteil</level5>
+        <level6>Stadteil Abschnitt</level6>
+    </country>
+    <country name="Ghana">
+        <level1>Region</level1>
+        <level2>District</level2>
+    </country>
+    <country name="Gibraltar">
+        <level1>City</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Greece">
+        <level1>Periferia</level1>
+        <level2>Nomi</level2>
+        <level3>Dimotika</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Guadeloupe-France">
+        <level1>Région</level1>
+        <level2>Département</level2>
+        <level3>Commune</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Guatemala">
+        <level1>Départemento</level1>
+        <level2>Municipio</level2>
+    </country>
+    <country name="Guinea Equatorial">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Guyane-France">
+        <level1>Région</level1>
+        <level2>Département</level2>
+        <level3>Commune</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Haiti">
+        <level1>Departments</level1>
+        <level2>arrondissements</level2>
+        <level3>communes</level3>
+    </country>
+    <country name="Hondurras">
+        <level1>Departments</level1>
+        <level2>municipalities</level2>
+        <level3>aldeas</level3>
+    </country>
+    <country name="Hong Kong-China">
+        <level1>Province</level1>
+        <level2>Municipality</level2>
+        <level3>District</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Hungary">
+        <level1>Megye</level1>
+        <level2>Település</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Iceland">
+        <level1>Region</level1>
+        <level2>Constituencies</level2>
+        <level3>Counties</level3>
+        <level4>Municipality</level4>
+    </country>
+    <country name="India">
+        <level1>State/Territory</level1>
+        <level2>District</level2>
+        <level3>Subistrict</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Indonesia">
+        <level1>Provinsi</level1>
+        <level2>Kabupaten</level2>
+        <level3>Kecamatan</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Iran">
+        <level1>ostan</level1>
+        <level2>sharestan</level2>
+        <level3>bakhsh</level3>
+    </country>
+    <country name="Iraq">
+        <level1>muhafadhah</level1>
+        <level2>qadhas</level2>
+    </country>
+    <country name="Ireland">
+        <level1>PostCounty</level1>
+        <level2>Post Town</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Israel">
+        <level1>mechoz</level1>
+        <level2>nafa</level2>
+        <level3>Sub-district</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Italy">
+        <level1>Regione</level1>
+        <level2>Provincia</level2>
+        <level3>Comune</level3>
+    </country>
+    <country name="Jamaica">
+        <level1>Parish</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Japan">
+        <level1>Pefecture</level1>
+        <level2>City</level2>
+        <level3>Town</level3>
+        <level4>Village</level4>
+    </country>
+    <country name="Jordan">
+        <level1>Governorate</level1>
+        <level2>Nahia</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Kazakhstan">
+        <level1>oblıstar</level1>
+        <level2>awandar</level2>
+    </country>
+    <country name="Kenya">
+        <level1>mkoa</level1>
+        <level2>wilaya</level2>
+        <level3>taarafa</level3>
+        <level4>mtaa mdogo</level4>
+    </country>
+    <country name="Kiribati">
+        <level1>islands</level1>
+    </country>
+    <country name="Korea North">
+        <level1>Do/Chikhalsi</level1>
+        <level2>Kun</level2>
+        <level3>Up</level3>
+    </country>
+    <country name="Korea South">
+        <level1>Do/gwangyeoksi/teukbyeolsi</level1>
+        <level2>Si/Gun</level2>
+        <level3>Gu/Eup</level3>
+    </country>
+    <country name="Kuwait">
+        <level1>Governate</level1>
+        <level2>Neighborhood</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Kyrgyzstan">
+        <level1>oblast</level1>
+        <level2>raion</level2>
+        <level3>aiyl okmotus</level3>
+    </country>
+    <country name="Laos">
+        <level1>Na Kone Luang Vientiane</level1>
+        <level2>qwang</level2>
+        <level3>muang</level3>
+        <level4>baan</level4>
+    </country>
+    <country name="Latvia">
+        <level1>Rajons</level1>
+        <level2>Novads</level2>
+        <level3>Pagasts</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Lebanon">
+        <level1>Mohafazah</level1>
+        <level2>Qadaa</level2>
+        <level3>Municipality</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Lesotho">
+        <level1>District</level1>
+        <level2>Council</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Liechtenstein">
+        <level1>Wahlkreis</level1>
+        <level2>Gemeinde</level2>
+        <level3>Ortschaft</level3>
+    </country>
+    <country name="Lithuania">
+        <level1>Apskritis</level1>
+        <level2>Savivaldybe</level2>
+        <level3>Seniunija</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Luxembourg">
+        <level1>District</level1>
+        <level2>Canton</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="Macedonia">
+        <level1>Opcina</level1>
+        <level2>Opstina</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Madagascar">
+        <level1>faritany mizakatena</level1>
+        <level2>faritra</level2>
+    </country>
+    <country name="Macau China">
+        <level1>Provincia</level1>
+        <level2>Distrito</level2>
+        <level3>Concelhos</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Malawie">
+        <level1>Region</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Malaysia">
+        <level1>State</level1>
+        <level2>District</level2>
+        <level3>Mukim</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Maldives">
+        <level1>atoll</level1>
+    </country>
+    <country name="Mali">
+        <level1>Region</level1>
+        <level2>cercles</level2>
+        <level3>arrondissements</level3>
+    </country>
+    <country name="Mauritania">
+        <level1>wilaya</level1>
+        <level2>Nouakchott</level2>
+        <level3>moughataa</level3>
+    </country>
+    <country name="Mauritius">
+        <level1>district</level1>
+        <level2>depencies</level2>
+    </country>
+    <country name="Mexico">
+        <level1>Estado</level1>
+        <level2>Municipios</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Mongolia">
+        <level1>Aimags</level1>
+        <level2>Khot</level2>
+        <level3>Sums</level3>
+    </country>
+    <country name="Monaco">
+        <level1>Quartier</level1>
+        <level2>Settlement</level2>
+    </country>
+    <country name="Montenegro">
+        <level1>Region</level1>
+        <level2>Okrug</level2>
+        <level3>Opstine</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Morroco">
+        <level1>Region</level1>
+        <level2>Province</level2>
+        <level3>Commune</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Mozambique">
+        <level1>Provincia</level1>
+        <level2>Distrito</level2>
+        <level3>Posto</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Namibia">
+        <level1>District</level1>
+        <level2>Constituency</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Nauru">
+        <level1>island</level1>
+    </country>
+    <country name="Nepal">
+        <level1>region</level1>
+        <level2>zone</level2>
+        <level3>district</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Netherlands,the">
+        <level1>provincie</level1>
+        <level2>gemeente</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="New Zealand">
+        <level1>Region</level1>
+        <level2>District</level2>
+        <level3>City/Town</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Nicaragua">
+        <level1>departmento</level1>
+        <level2>municipio</level2>
+    </country>
+    <country name="Niger">
+        <level1>Region</level1>
+        <level2>Department</level2>
+        <level3>Commune</level3>
+    </country>
+    <country name="Nigeria">
+        <level1>Federal Capital Territory</level1>
+        <level2>State</level2>
+        <level3>Local Goverment Area</level3>
+    </country>
+    <country name="Northern Ireland">
+        <level1>Countie</level1>
+        <level2>Posttown</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Norway">
+        <level1>Fylke</level1>
+        <level2>Kommune</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Oman">
+        <level1>Governate</level1>
+        <level2>Wilayats</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Pakistan">
+        <level1>Province/Federal Territory/Autonomous State/Territory
+        </level1>
+        <level2>Zillah/Takula</level2>
+        <level3>Tehsil</level3>
+    </country>
+    <country name="Palau">
+        <level1>state</level1>
+    </country>
+    <country name="Palestine">
+        <level1>District</level1>
+        <level2>Commune</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Panama">
+        <level1>Provincia/Comarca indigena</level1>
+        <level2>Corregimiento</level2>
+    </country>
+    <country name="Papua New Guinea">
+        <level1>Region</level1>
+        <level2>Province</level2>
+        <level3>District</level3>
+    </country>
+    <country name="Paraguay">
+        <level1>departmiento</level1>
+        <level2>distritio</level2>
+        <level3>municipio</level3>
+    </country>
+    <country name="Portugal">
+        <level1>Distrito</level1>
+        <level2>concelho</level2>
+        <level3>freguesia</level3>
+    </country>
+    <country name="Romania">
+        <level1>judet/Bucuresti</level1>
+        <level2>comuna</level2>
+    </country>
+    <country name="Russia">
+        <level1>Okrug</level1>
+        <level2>Sub'ekt</level2>
+        <level3>Rayon</level3>
+    </country>
+    <country name="Rwanda">
+        <level1>intara</level1>
+        <level2>akarere</level2>
+    </country>
+    <country name="Federation of Saint Kitts and Nevis ">
+        <level1>parish</level1>
+    </country>
+    <country name="Saint Luca">
+        <level1>Quarter</level1>
+    </country>
+    <country name="Saint Vincent and the Grenadines ">
+        <level1>parish</level1>
+    </country>
+    <country name="Samoa">
+        <level1>itumalo</level1>
+    </country>
+    <country name="San Marino">
+        <level1>castelli</level1>
+    </country>
+    <country name="São Tomé and Príncipe ">
+        <level1>province</level1>
+        <level2>district</level2>
+    </country>
+    <country name="Saudi Arabia">
+        <level1>mintaqah</level1>
+        <level2>governorates</level2>
+        <level3>settlement</level3>
+    </country>
+    <country name="Scotland">
+        <level1>county</level1>
+        <level2>township</level2>
+        <level3>settlement</level3>
+    </country>
+    <country name="Senegal">
+        <level1>Region</level1>
+        <level2>Department</level2>
+        <level3>Arrondissement</level3>
+    </country>
+    <country name="Serbia">
+        <level1>Okrug/Kosovo</level1>
+        <level2>grad</level2>
+        <level3>opstine</level3>
+    </country>
+    <country name="Seychelles">
+        <level1>district</level1>
+    </country>
+    <country name="Sierra Leone">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Chiefdom</level3>
+    </country>
+    <country name="Singapore">
+        <level1>County</level1>
+        <level2>City</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Slovak Republic">
+        <level1>Kray</level1>
+        <level2>Okres</level2>
+        <level3>Obec</level3>
+    </country>
+    <country name="Slovenia">
+        <level1>Upravna Enota</level1>
+        <level2>Obcina</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Solomon Islands">
+        <level1>district</level1>
+    </country>
+    <country name="Somalia">
+        <level1>gobol</level1>
+        <level2>district</level2>
+    </country>
+    <country name="South Africa">
+        <level1>Province</level1>
+        <level2>District Municipality</level2>
+        <level3>Local Municipality</level3>
+        <level4>Settlement</level4>
+    </country>
+    <country name="Spain">
+        <level1>Autonomia</level1>
+        <level2>Provincia</level2>
+        <level3>Municipio</level3>
+        <level4>Barrio</level4>
+    </country>
+    <country name="Sri Lanka">
+        <level1>Province</level1>
+        <level2>District</level2>
+    </country>
+    <country name="Sudan">
+        <level1>wilayah</level1>
+        <level2>District</level2>
+        <level3>county</level3>
+    </country>
+    <country name="Suriname">
+        <level1>District</level1>
+        <level2>Resort</level2>
+    </country>
+    <country name="Swaziland">
+        <level1>District</level1>
+        <level2>tinkhundla</level2>
+    </country>
+    <country name="Sweden">
+        <level1>län</level1>
+        <level2>Kommun</level2>
+        <level3>församlingar</level3>
+    </country>
+    <country name="Switzerland">
+        <level1>Kanton</level1>
+        <level2>Bezirk</level2>
+        <level3>Gemeinde</level3>
+        <level4>Stadtteil</level4>
+    </country>
+    <country name="Syria">
+        <level1>muhafazat</level1>
+        <level2>mintaqah</level2>
+        <level3>nahiya</level3>
+    </country>
+    <country name="Tajikistan">
+        <level1>viloyat</level1>
+        <level2>raion</level2>
+        <level3>jamoats</level3>
+        <level4>qyshloqs</level4>
+    </country>
+    <country name="Tanzania">
+        <level1>mkoa</level1>
+        <level2>wilaya</level2>
+        <level3>county</level3>
+    </country>
+    <country name="Taiwan">
+        <level1>County</level1>
+        <level2>City</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Thailand">
+        <level1>changwat</level1>
+        <level2>tambon</level2>
+        <level3>amphoe</level3>
+    </country>
+    <country name="Togo">
+        <level1>province</level1>
+        <level2>prefectur</level2>
+        <level3>commune</level3>
+    </country>
+    <country name="Tonga">
+        <level1>Division</level1>
+        <level2>island</level2>
+    </country>
+    <country name="Trinidad and Tobago">
+        <level1>Regional Cooperation</level1>
+        <level2>Municipality</level2>
+    </country>
+    <country name="Tunesia">
+        <level1>governorate</level1>
+        <level2>mutamadiyat</level2>
+        <level3>shaykhats</level3>
+        <level4>imadats</level4>
+    </country>
+    <country name="Turkey">
+        <level1>böge</level1>
+        <level2>il</level2>
+        <level3>ilce</level3>
+        <level4>mahalle</level4>
+    </country>
+    <country name="Turkmenistan">
+        <level1>welayat</level1>
+        <level2>etrap</level2>
+        <level3>county</level3>
+        <level4>city</level4>
+    </country>
+    <country name="Tuvalu">
+        <level1>District</level1>
+        <level2>Island</level2>
+    </country>
+    <country name="Uganda">
+        <level1>district</level1>
+        <level2>county</level2>
+        <level3>city</level3>
+        <level4>town</level4>
+    </country>
+    <country name="Ukraine">
+        <level1>oblast</level1>
+        <level2>avtonomna respublika</level2>
+        <level3>raion</level3>
+        <level4>settlement</level4>
+    </country>
+    <country name="UAE">
+        <level1>Emirate</level1>
+        <level2>City</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="USA">
+        <level1>state</level1>
+        <level2>county</level2>
+        <level3>city/township</level3>
+    </country>
+    <country name="Urugay">
+        <level1>Departamento</level1>
+        <level2>Municipio</level2>
+    </country>
+    <country name="Uzbekistan">
+        <level1>viloyat</level1>
+        <level2>resubliblika</level2>
+        <level3>shahar</level3>
+        <level4>tuman</level4>
+    </country>
+    <country name="Vanatu">
+        <level1>province</level1>
+    </country>
+    <country name="Vatikan City">
+        <level1>Vatikan City</level1>
+    </country>
+    <country name="Venezuela">
+        <level1>estado</level1>
+        <level2>distrito capital</level2>
+        <level3>municipio</level3>
+        <level4>parroquia</level4>
+    </country>
+    <country name="Vietnam">
+        <level1>tinh</level1>
+        <level2>thành phố trực thuộc trung ương</level2>
+        <level3>thị xã/huyện</level3>
+        <level4>thị trấn/xã</level4>
+        <level5>quận</level5>
+    </country>
+    <country name="Wales">
+        <level1>County</level1>
+        <level2>Township</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Yemen">
+        <level1>muhafazah</level1>
+        <level2>muderiah</level2>
+        <level3>settlement</level3>
+    </country>
+    <country name="Zambia">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Settlement</level3>
+    </country>
+    <country name="Zimbabwe">
+        <level1>Province</level1>
+        <level2>District</level2>
+        <level3>Municipality</level3>
+    </country>
+</administrative-levels>
Index: /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/NameManagerMain.java
===================================================================
--- /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/NameManagerMain.java	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/NameManagerMain.java	(revision 25571)
@@ -0,0 +1,15 @@
+package org.openstreetmap.josm.plugins.namemanager;
+
+/**
+ * This is the main class of {@link NameManagerPlugin}
+ * 
+ * @author Rafal Jachowicz, Harman/Becker Automotive Systems (master's thesis)
+ * 
+ */
+public class NameManagerMain {
+
+    public static void main(String[] args) {
+    }
+
+}
+
Index: /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/NameManagerPlugin.java
===================================================================
--- /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/NameManagerPlugin.java	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/NameManagerPlugin.java	(revision 25571)
@@ -0,0 +1,21 @@
+package org.openstreetmap.josm.plugins.namemanager;
+
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.gui.MainMenu;
+import org.openstreetmap.josm.plugins.Plugin;
+import org.openstreetmap.josm.plugins.PluginInformation;
+import org.openstreetmap.josm.plugins.namemanager.listeners.NameManagerAction;
+
+/**
+ * This is plugin class which constructor is callad at the initialization stage.
+ * 
+ * @author Rafal Jachowicz, Harman/Becker Automotive Systems (master's thesis)
+ * 
+ */
+public class NameManagerPlugin extends Plugin {
+    public NameManagerPlugin(PluginInformation info) {
+        super(info);
+        MainMenu.add(Main.main.menu.toolsMenu, new NameManagerAction());
+    }
+}
+
Index: /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/countryData/Country.java
===================================================================
--- /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/countryData/Country.java	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/countryData/Country.java	(revision 25571)
@@ -0,0 +1,81 @@
+package org.openstreetmap.josm.plugins.namemanager.countryData;
+
+public class Country {
+    
+    private String countryName;
+    private String level1;
+    private String level2;
+    private String level3;
+    private String level4;
+    private String level5;
+    private String level6;
+    
+    public Country(String countryName, String level1, String level2, String level3, String level4,
+            String level5, String level6) {
+        super();
+        this.countryName = countryName;
+        this.level1 = level1;
+        this.level2 = level2;
+        this.level3 = level3;
+        this.level4 = level4;
+        this.level5 = level5;
+        this.level6 = level6;
+    }
+
+    public String getCountryName() {
+        return countryName;
+    }
+
+    public void setCountryName(String countryName) {
+        this.countryName = countryName;
+    }
+
+    public String getLevel1() {
+        return level1;
+    }
+
+    public void setLevel1(String level1) {
+        this.level1 = level1;
+    }
+
+    public String getLevel2() {
+        return level2;
+    }
+
+    public void setLevel2(String level2) {
+        this.level2 = level2;
+    }
+
+    public String getLevel3() {
+        return level3;
+    }
+
+    public void setLevel3(String level3) {
+        this.level3 = level3;
+    }
+
+    public String getLevel4() {
+        return level4;
+    }
+
+    public void setLevel4(String level4) {
+        this.level4 = level4;
+    }
+
+    public String getLevel5() {
+        return level5;
+    }
+
+    public void setLevel5(String level5) {
+        this.level5 = level5;
+    }
+
+    public String getLevel6() {
+        return level6;
+    }
+
+    public void setLevel6(String level6) {
+        this.level6 = level6;
+    }
+
+}
Index: /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/countryData/CountryDataMemory.java
===================================================================
--- /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/countryData/CountryDataMemory.java	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/countryData/CountryDataMemory.java	(revision 25571)
@@ -0,0 +1,39 @@
+package org.openstreetmap.josm.plugins.namemanager.countryData;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class CountryDataMemory {
+
+    private static Map<String, Country> countryCache;
+
+    public static void instantiateCountryCache() {
+        if (countryCache == null) {
+            countryCache = new HashMap<String, Country>();
+        }
+    }
+
+    public static void addCountry(Country country) {
+        if (country != null) {
+            countryCache.put(country.getCountryName(), country);
+        }
+    }
+
+    public static void clearCache() {
+        if (countryCache != null) {
+            countryCache.clear();
+        }
+    }
+
+    public static boolean isEmpty() {
+        if (countryCache != null) {
+            return countryCache.isEmpty();
+        }
+        return true;
+    }
+
+    public static Map<String, Country> getCountryCache() {
+        return countryCache;
+    }
+
+}
Index: /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/dialog/NameManagerDialog.java
===================================================================
--- /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/dialog/NameManagerDialog.java	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/dialog/NameManagerDialog.java	(revision 25571)
@@ -0,0 +1,507 @@
+package org.openstreetmap.josm.plugins.namemanager.dialog;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
+
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import java.awt.GraphicsConfiguration;
+import java.awt.GridLayout;
+import java.awt.Point;
+import java.awt.Rectangle;
+import java.awt.Window;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.KeyEvent;
+import java.awt.event.KeyListener;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.Set;
+
+import javax.swing.AbstractAction;
+import javax.swing.Action;
+import javax.swing.Box;
+import javax.swing.BoxLayout;
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.JCheckBox;
+import javax.swing.JComboBox;
+import javax.swing.JDialog;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JMenu;
+import javax.swing.JMenuBar;
+import javax.swing.JMenuItem;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.JTabbedPane;
+import javax.swing.JTextField;
+import javax.swing.KeyStroke;
+
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.osm.Way;
+import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingTextField;
+import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList;
+import org.openstreetmap.josm.plugins.namemanager.countryData.Country;
+import org.openstreetmap.josm.plugins.namemanager.countryData.CountryDataMemory;
+import org.openstreetmap.josm.plugins.namemanager.utils.NameManagerUtils;
+import org.openstreetmap.josm.tools.ImageProvider;
+
+/**
+ * Plugin's dialog box. Singleton class.
+ * 
+ * @author Rafal Jachowicz, Harman/Becker Automotive Systems (master's thesis)
+ * 
+ */
+public class NameManagerDialog extends JDialog {
+
+    private static final String TAG_NAME = "Tag name";
+    private static final String TAG_VALUE = "Tag value";
+    private static final String ADMINISTRATIVE = "Administrative";
+    private static final String ADD = "Add";
+    private static final String EDIT = "Edit";
+    private static final String DELETE = "Delete";
+    private static final String TAG_BUILDINGS = "Tag buildings";
+    private static final String COUNTRY = "Country";
+    private static NameManagerDialog dialog;
+    private static final int height = 400;
+    private static final int width = 300;
+
+    /**
+     * serialVersionUID
+     */
+    private static final long serialVersionUID = 4289136772379693178L;
+    private Dimension dimension = new Dimension(width, height);
+    private Way selectedWay;
+    private List<Way> waysInsideSelectedArea;
+    private JTabbedPane tabPanel;
+    private JComboBox country;
+    private JLabel labelLevel1;
+    private JTextField level1;
+    private JLabel labelLevel2;
+    private JTextField level2;
+    private JLabel labelLevel3;
+    private JTextField level3;
+    private JLabel labelLevel4;
+    private JTextField level4;
+    private JLabel labelLevel5;
+    private JTextField level5;
+    private JLabel labelLevel6;
+    private JTextField level6;
+    private JLabel labelTagNameAM;
+    private AutoCompletingTextField tagNameAM;
+    private JLabel labelTagNameD;
+    private AutoCompletingTextField tagNameD;
+    private JLabel labelTagValueAM;
+    private AutoCompletingTextField tagValueAM;
+    private JCheckBox buildings;
+    private JButton addModifyButton;
+    private JButton deleteButton;
+
+    private NameManagerDialog() {
+        super((JFrame) Main.parent, "Name Manager", true);
+        Container cp = this.getContentPane();
+        cp.setLayout(new BorderLayout());
+
+        JMenuBar menuBar = new JMenuBar();
+        JMenu aboutMenu = new JMenu(tr("About"));
+        JMenuItem aboutAppButton = new JMenuItem(tr("About Plugin"));
+        aboutAppButton.addActionListener(new ActionListener() {
+
+            public void actionPerformed(ActionEvent arg0) {
+                String newline = System.getProperty("line.separator");
+                JOptionPane.showMessageDialog(NameManagerDialog.this, "Authors:" + newline + "Rafal Jachowicz, Marek Strassenburg-Kleciak"
+                        + newline + "Consultant:" + newline + "Stefanie Otte" + newline + "Powered by:" + newline
+                        + "Harman Becker Automotive Systems GmbH" + newline + "Neusoft Technology Solutions GmbH", tr("About"),
+                        JOptionPane.INFORMATION_MESSAGE);
+            }
+        });
+        aboutMenu.add(aboutAppButton);
+        menuBar.add(aboutMenu);
+        this.setJMenuBar(menuBar);
+
+        tabPanel = new JTabbedPane();
+        tabPanel.setTabPlacement(JTabbedPane.TOP);
+
+        JPanel buttonPanel = new JPanel(new BorderLayout());
+        JButton saveButton = new JButton(new SaveAction());
+        JButton cancelButton = new JButton(new CancelAction());
+        buttonPanel.add(cancelButton, BorderLayout.CENTER);
+        cp.add(buttonPanel, BorderLayout.SOUTH);
+
+        JPanel administrativePanel = new JPanel();
+        administrativePanel.setLayout(new BoxLayout(administrativePanel, BoxLayout.PAGE_AXIS));
+        JPanel levelPanel = new JPanel(new GridLayout(7, 2, 5, 2));
+        levelPanel.setAlignmentX(CENTER_ALIGNMENT);
+        buildings = new JCheckBox(tr(TAG_BUILDINGS));
+        buildings.setSelected(false);
+        JLabel labelCountry = new JLabel("  " + tr(COUNTRY));
+        country = new JComboBox();
+        labelLevel1 = new JLabel("  level1");
+        level1 = new JTextField();
+        labelLevel2 = new JLabel("  level2");
+        level2 = new JTextField();
+        labelLevel3 = new JLabel("  level3");
+        level3 = new JTextField();
+        labelLevel4 = new JLabel("  level4");
+        level4 = new JTextField();
+        labelLevel5 = new JLabel("  level5");
+        level5 = new JTextField();
+        labelLevel6 = new JLabel("  level6");
+        level6 = new JTextField();
+
+        levelPanel.add(labelCountry);
+        levelPanel.add(country);
+        levelPanel.add(labelLevel1);
+        levelPanel.add(level1);
+        levelPanel.add(labelLevel2);
+        levelPanel.add(level2);
+        levelPanel.add(labelLevel3);
+        levelPanel.add(level3);
+        levelPanel.add(labelLevel4);
+        levelPanel.add(level4);
+        levelPanel.add(labelLevel5);
+        levelPanel.add(level5);
+        levelPanel.add(labelLevel6);
+        levelPanel.add(level6);
+        administrativePanel.add(Box.createRigidArea(new Dimension(0, 20)));
+        administrativePanel.add(buildings);
+        administrativePanel.add(Box.createRigidArea(new Dimension(0, 10)));
+        administrativePanel.add(levelPanel);
+        administrativePanel.add(Box.createRigidArea(new Dimension(0, 10)));
+        administrativePanel.add(saveButton);
+        administrativePanel.add(Box.createRigidArea(new Dimension(0, 20)));
+
+        JPanel addModifyPanel = new JPanel();
+        addModifyPanel.setLayout(new BoxLayout(addModifyPanel, BoxLayout.PAGE_AXIS));
+        labelTagNameAM = new JLabel(tr(TAG_NAME));
+        tagNameAM = new AutoCompletingTextField();
+        AutoCompletionList list = new AutoCompletionList();
+        Main.main.getEditLayer().data.getAutoCompletionManager().populateWithKeys(list);
+        tagNameAM.setAutoCompletionList(list);
+        labelTagValueAM = new JLabel(tr(TAG_VALUE));
+        tagValueAM = new AutoCompletingTextField();
+        tagNameAM.addKeyListener(new KeyListener() {
+            @Override
+            public void keyTyped(KeyEvent arg0) {
+                if (!"".equals(tagNameAM.getText())) {
+                    AutoCompletionList list = tagValueAM.getAutoCompletionList();
+                    if (list == null) {
+                        list = new AutoCompletionList();
+                    }
+                    list.clear();
+                    Main.main.getEditLayer().data.getAutoCompletionManager().populateWithTagValues(list, tagNameAM.getText());
+                    tagValueAM.setAutoCompletionList(list);
+                }
+            }
+
+            @Override
+            public void keyReleased(KeyEvent arg0) {
+            }
+
+            @Override
+            public void keyPressed(KeyEvent arg0) {
+            }
+        });
+        addModifyButton = new JButton(new AddModifyAction());
+        addModifyPanel.add(Box.createRigidArea(new Dimension(0, 20)));
+        addModifyPanel.add(labelTagNameAM);
+        addModifyPanel.add(Box.createRigidArea(new Dimension(0, 10)));
+        addModifyPanel.add(tagNameAM);
+        addModifyPanel.add(Box.createRigidArea(new Dimension(0, 10)));
+        addModifyPanel.add(labelTagValueAM);
+        addModifyPanel.add(Box.createRigidArea(new Dimension(0, 10)));
+        addModifyPanel.add(tagValueAM);
+        addModifyPanel.add(Box.createRigidArea(new Dimension(0, 10)));
+        addModifyPanel.add(addModifyButton);
+        addModifyPanel.add(Box.createRigidArea(new Dimension(0, 170)));
+
+        JPanel deletePanel = new JPanel();
+        deletePanel.setLayout(new BoxLayout(deletePanel, BoxLayout.PAGE_AXIS));
+        labelTagNameD = new JLabel(tr(TAG_NAME));
+        tagNameD = new AutoCompletingTextField();
+        tagNameD.setAutoCompletionList(list);
+        deleteButton = new JButton(new DeleteAction());
+        deletePanel.add(Box.createRigidArea(new Dimension(0, 20)));
+        deletePanel.add(labelTagNameD);
+        deletePanel.add(Box.createRigidArea(new Dimension(0, 10)));
+        deletePanel.add(tagNameD);
+        deletePanel.add(Box.createRigidArea(new Dimension(0, 10)));
+        deletePanel.add(deleteButton);
+        deletePanel.add(Box.createRigidArea(new Dimension(0, 228)));
+
+        tabPanel.addTab(tr(ADD) + "/" + tr(EDIT), addModifyPanel);
+        tabPanel.addTab(tr(DELETE), deletePanel);
+        tabPanel.addTab(tr(ADMINISTRATIVE), administrativePanel);
+        cp.add(tabPanel, BorderLayout.CENTER);
+
+        this.setPreferredSize(dimension);
+        this.setSize(dimension);
+        this.setResizable(false);
+    }
+
+    public void setCountryComboBox() {
+        Set<String> keySetUnsorted = CountryDataMemory.getCountryCache().keySet();
+        List<String> keySet = new ArrayList<String>(keySetUnsorted);
+        Collections.sort(keySet);
+        country.removeAllItems();
+        for (String string : keySet) {
+            country.addItem(string);
+        }
+        String countryName = (String) country.getSelectedItem();
+        if (CountryDataMemory.getCountryCache().containsKey(countryName)) {
+            Country countryItem = CountryDataMemory.getCountryCache().get(countryName);
+            labelLevel1.setText("  " + countryItem.getLevel1());
+            if ("  n/a".equals(labelLevel1.getText())) {
+                level1.setEnabled(false);
+            } else {
+                level1.setEnabled(true);
+            }
+            labelLevel2.setText("  " + countryItem.getLevel2());
+            if ("  n/a".equals(labelLevel2.getText())) {
+                level2.setEnabled(false);
+            } else {
+                level2.setEnabled(true);
+            }
+            labelLevel3.setText("  " + countryItem.getLevel3());
+            if ("  n/a".equals(labelLevel3.getText())) {
+                level3.setEnabled(false);
+            } else {
+                level3.setEnabled(true);
+            }
+            labelLevel4.setText("  " + countryItem.getLevel4());
+            if ("  n/a".equals(labelLevel4.getText())) {
+                level4.setEnabled(false);
+            } else {
+                level4.setEnabled(true);
+            }
+            labelLevel5.setText("  " + countryItem.getLevel5());
+            if ("  n/a".equals(labelLevel5.getText())) {
+                level5.setEnabled(false);
+            } else {
+                level5.setEnabled(true);
+            }
+            labelLevel6.setText("  " + countryItem.getLevel6());
+            if ("  n/a".equals(labelLevel6.getText())) {
+                level6.setEnabled(false);
+            } else {
+                level6.setEnabled(true);
+            }
+        }
+        country.addActionListener(new ActionListener() {
+            public void actionPerformed(ActionEvent e) {
+                String countryName = (String) country.getSelectedItem();
+                if (CountryDataMemory.getCountryCache().containsKey(countryName)) {
+                    Country countryItem = CountryDataMemory.getCountryCache().get(countryName);
+                    labelLevel1.setText("  " + countryItem.getLevel1());
+                    if ("  n/a".equals(labelLevel1.getText())) {
+                        level1.setEnabled(false);
+                    } else {
+                        level1.setEnabled(true);
+                    }
+                    labelLevel2.setText("  " + countryItem.getLevel2());
+                    if ("  n/a".equals(labelLevel2.getText())) {
+                        level2.setEnabled(false);
+                    } else {
+                        level2.setEnabled(true);
+                    }
+                    labelLevel3.setText("  " + countryItem.getLevel3());
+                    if ("  n/a".equals(labelLevel3.getText())) {
+                        level3.setEnabled(false);
+                    } else {
+                        level3.setEnabled(true);
+                    }
+                    labelLevel4.setText("  " + countryItem.getLevel4());
+                    if ("  n/a".equals(labelLevel4.getText())) {
+                        level4.setEnabled(false);
+                    } else {
+                        level4.setEnabled(true);
+                    }
+                    labelLevel5.setText("  " + countryItem.getLevel5());
+                    if ("  n/a".equals(labelLevel5.getText())) {
+                        level5.setEnabled(false);
+                    } else {
+                        level5.setEnabled(true);
+                    }
+                    labelLevel6.setText("  " + countryItem.getLevel6());
+                    if ("  n/a".equals(labelLevel6.getText())) {
+                        level6.setEnabled(false);
+                    } else {
+                        level6.setEnabled(true);
+                    }
+                }
+            }
+        });
+    }
+
+    /**
+     * Gets reference to the singleton object.
+     * 
+     * @return Singleton object of the {@link LaneManagerDialog} class.
+     */
+    public static NameManagerDialog getInstance() {
+        if (dialog == null) {
+            dialog = new NameManagerDialog();
+            centerDialog(dialog);
+        }
+        dialog.buildings.setSelected(false);
+        return dialog;
+    }
+
+    /**
+     * This method centers the dialog window on the screen.
+     * 
+     * @param dialog
+     *            is the {@link LaneManagerDialog} object
+     */
+    private static void centerDialog(NameManagerDialog dialog) {
+        Window window = NameManagerUtils.getTopWindow();
+        if (window == null)
+            return;
+
+        GraphicsConfiguration gc = window.getGraphicsConfiguration();
+        if (gc != null) {
+            Rectangle screenBounds = gc.getBounds();
+            Rectangle windowBounds = window.getBounds();
+            Dimension d = dialog.getPreferredSize();
+
+            Point p = new Point();
+            if (d.width <= windowBounds.width && d.height <= windowBounds.height) {
+                p.x = windowBounds.x + ((windowBounds.width - d.width) / 2);
+                p.y = windowBounds.y + ((windowBounds.height - d.height) / 2);
+            } else {
+                p.x = screenBounds.x + ((screenBounds.width - d.width) / 2);
+                p.y = screenBounds.y + ((screenBounds.height - d.height) / 2);
+            }
+            dialog.setLocation(p);
+        }
+    }
+
+    public Way getSelectedWay() {
+        return selectedWay;
+    }
+
+    public void setSelectedWay(Way selectedWay) {
+        this.selectedWay = selectedWay;
+    }
+
+    @SuppressWarnings("serial")
+    class AddModifyAction extends AbstractAction {
+
+        public AddModifyAction() {
+            putValue(Action.NAME, tr(ADD) + "/" + tr(EDIT));
+            ImageIcon addModifyIcon = ImageProvider.get("", "addnode");
+            if (addModifyIcon != null) {
+                putValue(Action.SMALL_ICON, addModifyIcon);
+            }
+        }
+
+        public void actionPerformed(ActionEvent arg0) {
+            if (selectedWay != null && waysInsideSelectedArea != null && !waysInsideSelectedArea.isEmpty()) {
+                if (tabPanel.getSelectedIndex() == 0) {
+                    for (Way way : waysInsideSelectedArea) {
+                        if (!"".equals(tagNameAM.getText()) && !"".equals(tagValueAM.getText())) {
+                            way.put(tagNameAM.getText(), tagValueAM.getText());
+                            way.save();
+                        }
+                    }
+                }
+            }
+            setVisible(false);
+        }
+    }
+
+    @SuppressWarnings("serial")
+    class DeleteAction extends AbstractAction {
+
+        public DeleteAction() {
+            putValue(Action.NAME, tr(DELETE));
+            ImageIcon deleteIcon = ImageProvider.get("", "purge");
+            if (deleteIcon != null) {
+                putValue(Action.SMALL_ICON, deleteIcon);
+            }
+        }
+
+        public void actionPerformed(ActionEvent arg0) {
+            if (selectedWay != null && waysInsideSelectedArea != null && !waysInsideSelectedArea.isEmpty()) {
+                if (tabPanel.getSelectedIndex() == 1) {
+                    for (Way way : waysInsideSelectedArea) {
+                        if (!"".equals(tagNameD.getText())) {
+                            way.remove(tagNameD.getText());
+                            way.save();
+                        }
+                    }
+                }
+            }
+            setVisible(false);
+        }
+    }
+
+    @SuppressWarnings("serial")
+    class CancelAction extends AbstractAction {
+
+        public CancelAction() {
+            putValue(Action.NAME, tr("Cancel"));
+            putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0));
+            ImageIcon cancelIcon = ImageProvider.get("", "cancel");
+            if (cancelIcon != null) {
+                putValue(Action.SMALL_ICON, cancelIcon);
+            }
+        }
+
+        public void actionPerformed(ActionEvent arg0) {
+            setVisible(false);
+        }
+    }
+
+    @SuppressWarnings("serial")
+    class SaveAction extends AbstractAction {
+
+        public SaveAction() {
+            putValue(Action.NAME, tr("Save"));
+            putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0));
+            ImageIcon saveIcon = ImageProvider.get("", "save");
+            if (saveIcon != null) {
+                putValue(Action.SMALL_ICON, saveIcon);
+            }
+        }
+
+        public void actionPerformed(ActionEvent arg0) {
+            if (selectedWay != null && waysInsideSelectedArea != null && !waysInsideSelectedArea.isEmpty()) {
+                String countryName = (String) country.getSelectedItem();
+                Country countryItem = null;
+                if (CountryDataMemory.getCountryCache().containsKey(countryName)) {
+                    countryItem = CountryDataMemory.getCountryCache().get(countryName);
+                }
+                for (Way way : waysInsideSelectedArea) {
+                    if (tabPanel.getSelectedIndex() == 2) {
+                        if (way.get("building") != null && !buildings.isSelected()) {
+                            continue;
+                        }
+                        way.put("country", countryName);
+                        if (countryItem != null) {
+                            way.put("level1", level1.getText());
+                            way.put("level2", level2.getText());
+                            way.put("level3", level3.getText());
+                            way.put("level4", level4.getText());
+                            way.put("level5", level5.getText());
+                            way.put("level6", level6.getText());
+                        }
+                    }
+                    way.save();
+                }
+            }
+            setVisible(false);
+        }
+    }
+
+    public List<Way> getWaysInsideSelectedArea() {
+        return waysInsideSelectedArea;
+    }
+
+    public void setWaysInsideSelectedArea(List<Way> waysInsideSelectedArea) {
+        this.waysInsideSelectedArea = waysInsideSelectedArea;
+    }
+
+}
Index: /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/listeners/NameManagerAction.java
===================================================================
--- /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/listeners/NameManagerAction.java	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/listeners/NameManagerAction.java	(revision 25571)
@@ -0,0 +1,75 @@
+package org.openstreetmap.josm.plugins.namemanager.listeners;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
+
+import java.awt.event.ActionEvent;
+import java.util.Collection;
+
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.actions.JosmAction;
+import org.openstreetmap.josm.data.SelectionChangedListener;
+import org.openstreetmap.josm.data.osm.DataSet;
+import org.openstreetmap.josm.data.osm.OsmPrimitive;
+import org.openstreetmap.josm.data.osm.Way;
+import org.openstreetmap.josm.plugins.namemanager.dialog.NameManagerDialog;
+import org.openstreetmap.josm.plugins.namemanager.utils.NameManagerUtils;
+import org.w3c.dom.Document;
+
+/**
+ * This is {@link JosmAction} subclass, which is responsible for executing mouse
+ * click on toolmenu plugin field.
+ * 
+ * @author Rafal Jachowicz, Harman/Becker Automotive Systems (master's thesis)
+ * 
+ */
+public class NameManagerAction extends JosmAction implements SelectionChangedListener {
+
+    private static final String ATTRIBUTE_DISTRICTS = "Attribute districts";
+    private static final String NAME_MANAGER = "Name Manager";
+    private static final String NAME_MANAGER_MENU = "selectall";
+    /**
+     * serialVersionUID.
+     */
+    private static final long serialVersionUID = 5638780111409126823L;
+
+    /**
+     * Constructor.
+     */
+    public NameManagerAction() {
+        super(tr(NAME_MANAGER), NAME_MANAGER_MENU, tr(ATTRIBUTE_DISTRICTS), null, true);
+        DataSet.addSelectionListener(this);
+        setEnabled(false);
+    }
+
+    /**
+     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
+     */
+    public void actionPerformed(ActionEvent e) {
+        if (!isEnabled()) {
+            return;
+        }
+        NameManagerDialog dialog = NameManagerDialog.getInstance();
+        Way selectedWay = (Way) Main.main.getCurrentDataSet().getSelectedWays().iterator().next();
+        dialog.setSelectedWay(selectedWay);
+        dialog.setWaysInsideSelectedArea(NameManagerUtils.getWaysInsideSelectedArea(selectedWay));
+        Document doc = NameManagerUtils.parseCountries();
+        doc.getDocumentElement().normalize();
+        NameManagerUtils.prepareCountryDataMemoryCache(doc);
+        dialog.setCountryComboBox();
+        dialog.repaint();
+        dialog.setVisible(true);
+    }
+
+    /**
+     * This method is responsible for enabling and disabling toolmenu
+     * LaneManager button.
+     * 
+     * @see org.openstreetmap.josm.data.SelectionChangedListener#selectionChanged(java.util.Collection)
+     */
+    public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) {
+        setEnabled(newSelection != null
+                && Main.main.getCurrentDataSet().getSelectedWays().size() == 1
+                && Main.main.getCurrentDataSet().getSelectedWays().iterator().next().firstNode() == Main.main.getCurrentDataSet()
+                        .getSelectedWays().iterator().next().lastNode());
+    }
+}
Index: /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/utils/NameManagerUtils.java
===================================================================
--- /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/utils/NameManagerUtils.java	(revision 25571)
+++ /applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/utils/NameManagerUtils.java	(revision 25571)
@@ -0,0 +1,288 @@
+package org.openstreetmap.josm.plugins.namemanager.utils;
+
+import java.awt.Component;
+import java.awt.Window;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.openstreetmap.gui.jmapviewer.Coordinate;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.osm.Node;
+import org.openstreetmap.josm.data.osm.Way;
+import org.openstreetmap.josm.plugins.namemanager.NameManagerPlugin;
+import org.openstreetmap.josm.plugins.namemanager.countryData.Country;
+import org.openstreetmap.josm.plugins.namemanager.countryData.CountryDataMemory;
+import org.openstreetmap.josm.tools.Pair;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.xml.sax.SAXException;
+
+public class NameManagerUtils {
+    /**
+     * @return the top {@link Window} of the JOSM application.
+     */
+    public static Window getTopWindow() {
+        Component component = Main.panel;
+        if (component != null) {
+            while (component.getParent() != null) {
+                component = component.getParent();
+            }
+            if (component instanceof Window)
+                return (Window) component;
+        }
+        return null;
+    }
+
+    public static List<Way> getWaysInsideSelectedArea(Way areaBorder) {
+        List<Way> waysInsideSelectedArea = new ArrayList<Way>();
+        if (areaBorder != null) {
+            Coordinate topLeftCorner = getTopLeftCorener(areaBorder);
+            List<Pair<Node, Node>> areaBorderLines = areaBorder.getNodePairs(true);
+            Collection<Way> ways = Main.main.getCurrentDataSet().getWays();
+            ways: for (Way way : ways) {
+                if (areaBorder == way) {
+                    continue ways;
+                }
+                pairs: for (Pair<Node, Node> pair : way.getNodePairs(false)) {
+                    double x1Pair = pair.a.getCoor().getX();
+                    double y1Pair = pair.a.getCoor().getY();
+                    double x2Pair = pair.b.getCoor().getX();
+                    double y2Pair = pair.b.getCoor().getY();
+                    double aPair = 0.0;
+                    double bPair = 0.0;
+                    double cPair = 0.0;
+                    boolean pairPerpendicular = false;
+                    if (x2Pair == x1Pair || y2Pair == y1Pair) {
+                        pairPerpendicular = true;
+                    } else {
+                        aPair = 1 / (x2Pair - x1Pair);
+                        bPair = -1 / (y2Pair - y1Pair);
+                        cPair = y1Pair / (y2Pair - y1Pair) - x1Pair / (x2Pair - x1Pair);
+                    }
+                    int crossCount = 0;
+                    areaLine: for (Pair<Node, Node> areaLine : areaBorderLines) {
+                        double x1Line = areaLine.a.getCoor().getX();
+                        double y1Line = areaLine.a.getCoor().getY();
+                        double x2Line = areaLine.b.getCoor().getX();
+                        double y2Line = areaLine.b.getCoor().getY();
+                        boolean areaLinePerpendicular = false;
+                        double aLine = 0.0;
+                        double bLine = 0.0;
+                        double cLine = 0.0;
+                        if (x2Line == x1Line || y2Line == y1Line) {
+                            areaLinePerpendicular = true;
+                        } else {
+                            aLine = 1 / (x2Line - x1Line);
+                            bLine = -1 / (y2Line - y1Line);
+                            cLine = y1Line / (y2Line - y1Line) - x1Line / (x2Line - x1Line);
+                        }
+                        if (pairPerpendicular && areaLinePerpendicular) {
+                            if (x1Pair == x2Pair) {
+                                if (x1Line == x2Line) {
+                                    if (x1Pair == x1Line) {
+                                        if ((y1Pair - y1Line) * (y1Pair - y2Line) < 0.0
+                                                || (y2Pair - y1Line) * (y2Pair - y2Line) < 0.0
+                                                || (y1Line - y1Pair) * (y1Line - y2Pair) < 0.0
+                                                || (y2Line - y1Pair) * (y2Line - y2Pair) < 0.0) {
+                                            waysInsideSelectedArea.add(way);
+                                            continue ways;
+                                        }
+                                    }
+                                } else if (y1Line == y2Line) {
+                                    if ((x1Pair - x1Line) * (x1Pair - x2Line) < 0.0
+                                            && (y1Line - y1Pair) * (y1Line - y2Pair) < 0.0) {
+                                        waysInsideSelectedArea.add(way);
+                                        continue ways;
+                                    }
+                                }
+                            } else if (y1Pair == y2Pair) {
+                                if (x1Line == x2Line) {
+                                    if ((y1Pair - y1Line) * (y1Pair - y2Line) < 0.0
+                                            && (x1Line - x1Pair) * (x1Line - x2Pair) < 0.0) {
+                                        waysInsideSelectedArea.add(way);
+                                        continue ways;
+                                    }
+                                } else if (y1Line == y2Line) {
+                                    if (y1Pair == y1Line) {
+                                        if ((x1Pair - x1Line) * (x1Pair - x2Line) < 0.0
+                                                || (x2Pair - x1Line) * (x2Pair - x2Line) < 0.0
+                                                || (x1Line - x1Pair) * (x1Line - x2Pair) < 0.0
+                                                || (x2Line - x1Pair) * (x2Line - x2Pair) < 0.0) {
+                                            waysInsideSelectedArea.add(way);
+                                            continue ways;
+                                        }
+                                    }
+                                }
+                            }
+                        } else if (pairPerpendicular) {
+                            if (((aLine * x1Pair + bLine * y1Pair + cLine) * (aLine * x2Pair
+                                    + bLine * y2Pair + cLine)) < 0.0) {
+                                if (x1Pair == x2Pair) {
+                                    if ((x1Pair - x1Line) * (x1Pair - x2Line) < 0.0) {
+                                        waysInsideSelectedArea.add(way);
+                                        continue ways;
+                                    }
+                                } else if (y1Pair == y2Pair) {
+                                    if ((y1Pair - y1Line) * (y1Pair - y2Line) < 0.0) {
+                                        waysInsideSelectedArea.add(way);
+                                        continue ways;
+                                    }
+                                }
+                            }
+                        } else if (areaLinePerpendicular) {
+                            if (((aPair * x1Line + bPair * y1Line + cPair) * (aPair * x2Line
+                                    + bPair * y2Line + cPair)) < 0.0) {
+                                if (x1Line == x2Line) {
+                                    if ((x1Line - x1Pair) * (x1Line - x2Pair) < 0.0) {
+                                        waysInsideSelectedArea.add(way);
+                                        continue ways;
+                                    }
+                                } else if (y1Line == y2Line) {
+                                    if ((y1Line - y1Pair) * (y1Line - y2Pair) < 0.0) {
+                                        waysInsideSelectedArea.add(way);
+                                        continue ways;
+                                    }
+                                }
+                            }
+                        } else if (((aLine * x1Pair + bLine * y1Pair + cLine) * (aLine * x2Pair
+                                + bLine * y2Pair + cLine)) < 0.0
+                                && ((aPair * x1Line + bPair * y1Line + cPair) * (aPair * x2Line
+                                        + bPair * y2Line + cPair)) < 0.0) {
+                            waysInsideSelectedArea.add(way);
+                            continue ways;
+                        }
+                        Node raySource = null;
+                        double tlcX = topLeftCorner.getLon();
+                        double tlcY = topLeftCorner.getLat();
+                        if (x1Pair != tlcX && y1Pair != tlcY) {
+                            raySource = pair.a;
+                        } else if (x2Pair != tlcX && y2Pair != tlcY) {
+                            raySource = pair.b;
+                        } else {
+                            continue pairs;
+                        }
+                        if (raySource != null) {
+                            double rsX = raySource.getCoor().getX();
+                            double rsY = raySource.getCoor().getY();
+                            if (areaLinePerpendicular) {
+                                if (x1Line == x2Line) {
+                                    if ((x1Line - rsX) * (x1Line - tlcX) > 0.0) {
+                                        continue areaLine;
+                                    }
+                                } else if (y1Line == y2Line) {
+                                    if ((y1Line - rsY) * (y1Line - tlcY) > 0.0) {
+                                        continue areaLine;
+                                    }
+                                }
+                            } else if (((aLine * rsX + bLine * rsY + cLine) * (aLine * tlcX + bLine
+                                    * tlcY + cLine)) > 0.0) {
+                                continue areaLine;
+                            }
+                            double aRay = 1 / (tlcX - rsX);
+                            double bRay = -1 / (tlcY - rsY);
+                            double cRay = rsY / (tlcY - rsY) - rsX / (tlcX - rsX);
+                            if (((aRay * x1Line + bRay * y1Line + cRay) * (aRay * x2Line + bRay
+                                    * y2Line + cRay)) < 0.0) {
+                                crossCount++;
+                            }
+                        }
+                    }
+                    if (crossCount % 2 == 1) {
+                        waysInsideSelectedArea.add(way);
+                        continue ways;
+                    }
+                }
+            }
+        }
+        return waysInsideSelectedArea;
+    }
+
+    private static Coordinate getTopLeftCorener(Way way) {
+        double x = Double.POSITIVE_INFINITY;
+        double y = Double.NEGATIVE_INFINITY;
+        List<Node> nodes = way.getNodes();
+        for (Node node : nodes) {
+            if (node.getCoor().getX() < x) {
+                x = node.getCoor().getX();
+            }
+            if (node.getCoor().getY() > y) {
+                y = node.getCoor().getY();
+            }
+        }
+        x--;
+        y++;
+        return new Coordinate(y, x);
+    }
+
+    public static Document parseCountries() {
+        Document doc = null;
+        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
+        DocumentBuilder db;
+        try {
+            db = dbf.newDocumentBuilder();
+            InputStream xml = NameManagerPlugin.class
+                    .getResourceAsStream("/resources/administrative-levels.xml");
+            doc = db.parse(xml);
+        } catch (ParserConfigurationException e) {
+            e.printStackTrace();
+        } catch (SAXException e) {
+            e.printStackTrace();
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+
+        return doc;
+    }
+
+    public static void prepareCountryDataMemoryCache(Document doc) {
+        CountryDataMemory.instantiateCountryCache();
+        if (!CountryDataMemory.isEmpty()) {
+            CountryDataMemory.clearCache();
+        }
+        NodeList nodeList = doc.getElementsByTagName("country");
+        for (int i = 0; i < nodeList.getLength(); i++) {
+            Element countryNode = (Element) nodeList.item(i);
+            String countryName = countryNode.getAttributes().item(0).getNodeValue();
+            NodeList level1List = countryNode.getElementsByTagName("level1");
+            String level1 = "n/a";
+            if (level1List.getLength() == 1) {
+                level1 = level1List.item(0).getTextContent();
+            }
+            NodeList level2List = countryNode.getElementsByTagName("level2");
+            String level2 = "n/a";
+            if (level2List.getLength() == 1) {
+                level2 = level2List.item(0).getTextContent();
+            }
+            NodeList level3List = countryNode.getElementsByTagName("level3");
+            String level3 = "n/a";
+            if (level3List.getLength() == 1) {
+                level3 = level3List.item(0).getTextContent();
+            }
+            NodeList level4List = countryNode.getElementsByTagName("level4");
+            String level4 = "n/a";
+            if (level4List.getLength() == 1) {
+                level4 = level4List.item(0).getTextContent();
+            }
+            NodeList level5List = countryNode.getElementsByTagName("level5");
+            String level5 = "n/a";
+            if (level5List.getLength() == 1) {
+                level5 = level5List.item(0).getTextContent();
+            }
+            NodeList level6List = countryNode.getElementsByTagName("level6");
+            String level6 = "n/a";
+            if (level6List.getLength() == 1) {
+                level6 = level6List.item(0).getTextContent();
+            }
+            CountryDataMemory.addCountry(new Country(countryName, level1, level2, level3, level4,
+                    level5, level6));
+        }
+    }
+}
