Upload/Download of multiple files now possible
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / actions / mediawiki / config / WikipediaZH.java
diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaZH.java b/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaZH.java
new file mode 100644 (file)
index 0000000..93dc708
--- /dev/null
@@ -0,0 +1,54 @@
+package net.sourceforge.phpeclipse.wiki.actions.mediawiki.config;
+
+//Parts of this sources are copied and modified from the jEdit Wikipedia plugin:
+//http://www.djini.de/software/wikipedia/index.html
+//
+//The modified sources are available under the "Common Public License"
+//with permission from the original author: Daniel Wunsch
+
+public class WikipediaZH extends AbstractWikipedia {
+
+  final private static String[] nameSpaces = new String[] {
+      "Media",
+      "Special",
+      "",
+      "Talk",
+      "User",
+      "User talk",
+      "Wikipedia",
+      "Wikipedia talk",
+      "Image",
+      "Image talk",
+      "MediaWiki",
+      "MediaWiki talk",
+      "Template",
+      "Template talk",
+      "Help",
+      "Help talk",
+      "Category",
+      "Category talk" };
+
+  private static WikipediaZH instance = new WikipediaZH();
+
+  /**
+   * Get the singleton instance
+   * 
+   * @see net.sourceforge.phpeclipse.wiki.editor.WikiEditorPlugin#getWikiInstance()
+   */
+  public static IWikipedia getInstance() {
+    return instance;
+  }
+
+  // private constructor
+  private WikipediaZH() {
+    super(new WikiProperties("WikipediaZH"));
+  }
+
+  /**
+   * @return Returns the nameSpaces.
+   */
+  public String[] getNameSpaces() {
+    return nameSpaces;
+  }
+
+}
\ No newline at end of file