From: axelcl Date: Sun, 9 Jan 2005 16:40:15 +0000 (+0000) Subject: Added more Wikipedia configurations X-Git-Url: http://git.phpeclipse.com?hp=f6de12c397d2dbc765335b2ab661c22d2b1114c8 Added more Wikipedia configurations --- diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikiProperties.java b/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikiProperties.java index 5c6a2b7..301420d 100644 --- a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikiProperties.java +++ b/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikiProperties.java @@ -5,10 +5,17 @@ package net.sourceforge.phpeclipse.wiki.actions.mediawiki.config; //The modified sources are available under the "Common Public License" //with permission from the original author: Daniel Wunsch +import java.io.IOException; +import java.io.InputStream; import java.text.MessageFormat; import java.util.MissingResourceException; +import java.util.PropertyResourceBundle; import java.util.ResourceBundle; +import net.sourceforge.phpeclipse.wiki.editor.WikiEditorPlugin; + +import org.eclipse.core.runtime.Path; + public class WikiProperties { private static final String PACKAGE_NAME = WikiProperties.class.getPackage().getName(); @@ -18,8 +25,16 @@ public class WikiProperties { private ResourceBundle fgResourceBundle = null; protected WikiProperties(String locale) { - RESOURCE_BUNDLE = PACKAGE_NAME + "." + locale; - fgResourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE); + try { + InputStream is = WikiEditorPlugin.getDefault().openStream(new Path("wikis/"+locale+".properties")); + fgResourceBundle = new PropertyResourceBundle(is); +// RESOURCE_BUNDLE = PACKAGE_NAME + "." + locale; +// fgResourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } public String getString(String key) { diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikibooksDE.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikibooksDE.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikibooksDE.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikibooksDE.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikibooksEN.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikibooksEN.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikibooksEN.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikibooksEN.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikinewsDE.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikinewsDE.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikinewsDE.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikinewsDE.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikinewsEN.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikinewsEN.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikinewsEN.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikinewsEN.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaAR.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaAR.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaAR.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaAR.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaCA.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaCA.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaCA.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaCA.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaDA.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaDA.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaDA.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaDA.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaDE.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaDE.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaDE.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaDE.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaEN.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaEN.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaEN.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaEN.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaEO.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaEO.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaEO.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaEO.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaES.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaES.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaES.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaES.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaET.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaET.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaET.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaET.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaFI.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaFI.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaFI.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaFI.properties diff --git a/archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaFR.properties b/archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaFR.properties similarity index 100% rename from archive/net.sourceforge.phpeclipse.wiki/src/net/sourceforge/phpeclipse/wiki/actions/mediawiki/config/WikipediaFR.properties rename to archive/net.sourceforge.phpeclipse.wiki/wikis/WikipediaFR.properties