From: axelcl Date: Thu, 4 Nov 2004 22:05:13 +0000 (+0000) Subject: Added Pref option to configure for which extensions the internal parser should be... X-Git-Url: http://secure.phpeclipse.com Added Pref option to configure for which extensions the internal parser should be used --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileUtil.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileUtil.java index e9de7c4..91e330b 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileUtil.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileUtil.java @@ -4,111 +4,149 @@ */ package net.sourceforge.phpdt.internal.ui.util; -import net.sourceforge.phpeclipse.ui.IPreferenceConstants; -import net.sourceforge.phpeclipse.ui.overlaypages.Util; +import java.util.ArrayList; +import java.util.StringTokenizer; + +import net.sourceforge.phpeclipse.PHPeclipsePlugin; import org.eclipse.core.resources.IFile; +import org.eclipse.jface.preference.IPreferenceStore; /** * @author khartlage - * + * */ public class PHPFileUtil { - public final static String[] PHP_EXTENSIONS = { - "php", - "php3", - "php4", - "php5", - "phtml", - "module", // drupal - "inc", - "class" - }; -// public final static String[] HTML_EXTENSIONS = { -// "html", -// "htm", -// "xhtml" -// }; - public final static String[] SMARTY_EXTENSIONS = { - "tpl" - }; - - public static boolean isPHPFile(IFile file) { + private static String[] PHP_EXTENSIONS = null; + + // { + // "php", + // "php3", + // "php4", + // "php5", + // "phtml", + // "module", // drupal + // "inc", + // "class" + // }; + // public final static String[] HTML_EXTENSIONS = { + // "html", + // "htm", + // "xhtml" + // }; + public final static String[] SMARTY_EXTENSIONS = { "tpl" }; + + public static boolean isPHPFile(IFile file) { String extension = file.getFileExtension(); return isPHPFileName(file.getLocation().toString()); } public final static String getFileExtension(String name) { - int index = name.lastIndexOf('.'); - if (index == -1) - return null; - if (index == (name.length() - 1)) - return null; //$NON-NLS-1$ - return name.substring(index + 1); -} - + int index = name.lastIndexOf('.'); + if (index == -1) + return null; + if (index == (name.length() - 1)) + return null; //$NON-NLS-1$ + return name.substring(index + 1); + } + /** - * Returns true iff str.toLowerCase().endsWith(".php") - * implementation is not creating extra strings. + * Returns true iff str.toLowerCase().endsWith(".php") implementation is not creating extra strings. */ public final static boolean isPHPFileName(String name) { String extension = getFileExtension(name); - if (extension==null) { + if (extension == null) { return false; } extension = extension.toLowerCase(); - for (int i=0;i= 1) { + list.add(token); + } + } + if (list.size() != 0) { + PHP_EXTENSIONS = new String[list.size()]; + for (int i = 0; i < list.size(); i++) { + PHP_EXTENSIONS[i] = (String) list.get(i); + } + } + } + } + return PHP_EXTENSIONS; + } + + /** + * @param php_extensions + * The PHP extensions to set. + */ + public static void setExtensins(String[] php_extensions) { + PHP_EXTENSIONS = php_extensions; + } +} \ No newline at end of file diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/IPreferenceConstants.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/IPreferenceConstants.java index e23e462..19a2a9d 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/IPreferenceConstants.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/IPreferenceConstants.java @@ -33,9 +33,6 @@ public interface IPreferenceConstants { // public static final String LOCALHOST_PREF = "_localhost"; // public static final String DOCUMENTROOT_PREF = "_documentroot"; -// public static final String USE_EXTERNAL_BROWSER_PREF = "_use_external_browser"; -// public static final String SHOW_EXTERNAL_PREVIEW_PREF = "_show_external_preview"; -// public static final String EXTERNAL_BROWSER_PREF = "_external_browser"; public static final String MYSQL_RUN_PREF = "_mysql_run_pref"; public static final String MYSQL_START_BACKGROUND = "_mysql_start_background"; public static final String MYSQL_PREF = "__mysql_start"; @@ -49,6 +46,7 @@ public interface IPreferenceConstants { public static final String SHOW_OUTPUT_IN_CONSOLE = "_show_output_in_console"; public static final String PHP_RUN_PREF = "_php_run_pref"; public static final String EXTERNAL_PARSER_PREF = "_external_parser"; + public static final String PHP_EXTENSION_PREFS = "_php_parser_extensions"; public static final String PHP_PARSER_DEFAULT = "_php_parser_default"; // public static final String PHP_INTERNAL_PARSER = "_php_internal_parser"; // public static final String PHP_EXTERNAL_PARSER = "_php_external_parser"; diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPEclipseBasePreferencePage.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPEclipseBasePreferencePage.java index 9da4482..2a290d5 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPEclipseBasePreferencePage.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPEclipseBasePreferencePage.java @@ -1,9 +1,9 @@ package net.sourceforge.phpeclipse; +import net.sourceforge.phpdt.internal.ui.util.PHPFileUtil; import net.sourceforge.phpeclipse.preferences.PHPPreferencesMessages; import org.eclipse.jface.preference.BooleanFieldEditor; -import org.eclipse.jface.preference.DirectoryFieldEditor; import org.eclipse.jface.preference.FileFieldEditor; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.preference.PreferencePage; @@ -20,6 +20,8 @@ import org.eclipse.ui.IWorkbenchPreferencePage; public class PHPEclipseBasePreferencePage extends PreferencePage implements IWorkbenchPreferencePage { + StringFieldEditor phpParserExtensionsSFE; + StringFieldEditor apacheStartSFE; StringFieldEditor apacheStopSFE; @@ -52,6 +54,7 @@ public class PHPEclipseBasePreferencePage extends PreferencePage implements IWor } protected void performDefaults() { + phpParserExtensionsSFE.loadDefault(); apacheStartSFE.loadDefault(); apacheStopSFE.loadDefault(); apacheRestartSFE.loadDefault(); @@ -67,7 +70,8 @@ public class PHPEclipseBasePreferencePage extends PreferencePage implements IWor } public boolean performOk() { - + PHPFileUtil.setExtensins(null); + phpParserExtensionsSFE.store(); apacheStartSFE.store(); apacheStopSFE.store(); apacheRestartSFE.store(); @@ -90,6 +94,16 @@ public class PHPEclipseBasePreferencePage extends PreferencePage implements IWor composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); composite.setLayout(new GridLayout()); + // allowed PHP file extensions for parsing + Composite phpParserExtensionsComposite = new Composite(composite, SWT.NULL); + phpParserExtensionsComposite.setLayout(new GridLayout()); + phpParserExtensionsComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); + phpParserExtensionsSFE = new StringFieldEditor(IPreferenceConstants.PHP_EXTENSION_PREFS, PHPPreferencesMessages + .getString("PHPBasePreferencePage.phpExtensionPrefs"), phpParserExtensionsComposite); + phpParserExtensionsSFE.setPreferencePage(this); + phpParserExtensionsSFE.setPreferenceStore(getPreferenceStore()); + phpParserExtensionsSFE.load(); + //Create apache Composite apacheSettingsComposite = new Composite(composite, SWT.NULL); apacheSettingsComposite.setLayout(new GridLayout()); diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java index 663efec..4b1d051 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java @@ -726,6 +726,7 @@ public class PHPeclipsePlugin extends AbstractUIPlugin implements IPreferenceCon store.setDefault(MYSQL_RUN_PREF, "/apache/mysql/bin/mysqld"); store.setDefault(APACHE_RUN_PREF, "/apache/apache"); } + store.setDefault(PHP_EXTENSION_PREFS, "php,php3,php4,php5,phtml,inc,module,class"); store.setDefault(MYSQL_PREF, "--standalone"); store.setDefault(APACHE_START_PREF, "-c \"DocumentRoot \"{0}\"\""); store.setDefault(APACHE_STOP_PREF, "-k shutdown"); diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/newPHPPreferencesMessages_DE.properties b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/newPHPPreferencesMessages_DE.properties deleted file mode 100644 index d522c65..0000000 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/newPHPPreferencesMessages_DE.properties +++ /dev/null @@ -1,82 +0,0 @@ -######################################### -# PHPProjectLibraryPage -######################################### - -PHPProjectLibraryPage.elementNotIProject=FEHLER: Element ist kein IProject -PHPProjectLibraryPage.project=Projekt -PHPProjectLibraryPage.tabName=Projekte - - -######################################### -# Property Pages -######################################### - -PHPProjectPropertyPage.phpProjectClosed=Das ausgewählte Projekt ist ein PHP Projekt, aber es ist geschlossen. -PHPProjectPropertyPage.performOkExceptionDialogTitle=Kann nicht sichern -PHPProjectPropertyPage.performOkExceptionDialogMessage=FEHLER: Kann die Projekt Eigenschaften nicht sichern - -PHPObfuscatorPropertyPage.hasnature=PHP Projekt. -PHPObfuscatorPropertyPage.publish=Obfuscator Ausgabe Verzeichnis: -PHPObfuscatorPropertyPage.dialogtitle=PHP -PHPObfuscatorPropertyPage.projecterror=Kann das neue Projekt nicht anlegen. -PHPObfuscatorPropertyPage.properties=PHP Obfuscator Projekt Eigenschaften - -######################################### -# Preference Pages -######################################### -PHPBasePreferencePage.description=PHP Voreinstellungen -PHPBasePreferencePage.websettingsGroup=Webserver Einstellungen -PHPBasePreferencePage.websettingsGroup.localhost=Localhost -PHPBasePreferencePage.websettingsGroup.docroot=DocumentRoot -PHPBasePreferencePage.websettingsGroup.browser=Externes Browser Kommando -PHPBasePreferencePage.websettingsGroup.useexternal=Benutze externen Browser -PHPBasePreferencePage.websettingsGroup.showexternalpreview=Vorschau beim Öffnen des Editors (nur win32) -PHPBasePreferencePage.apacheGroup=Apache Einstellungen -PHPBasePreferencePage.apacheGroup.run=Apache -PHPBasePreferencePage.apacheGroup.start=Start Apache -PHPBasePreferencePage.apacheGroup.start_background=Im Hintergrund ausführen? -PHPBasePreferencePage.apacheGroup.stop=Stop Apache -PHPBasePreferencePage.apacheGroup.stop_background=Im Hintergrund ausführen? -PHPBasePreferencePage.apacheGroup.restart=Restart Apache -PHPBasePreferencePage.apacheGroup.restart_background=Im Hintergrund ausführen? -PHPBasePreferencePage.console.php=Run PHP command -PHPBasePreferencePage.mySQLGroup=MySQL Einstellungen -PHPBasePreferencePage.mySQLGroup.run=MySQL -PHPBasePreferencePage.mySQLGroup.start_background=Im Hintergrund ausführen? -PHPBasePreferencePage.mySQLGroup.command=Start MySQL - -PHPBasePreferencePage.parsers=Parser Einstellungen -PHPBasePreferencePage.parsers.pos=Parse beim Sichern -PHPBasePreferencePage.parsers.external=Externer Parser -PHPBasePreferencePage.parsers.internal=Interner Parser -PHPBasePreferencePage.parsers.extcommand=Parser command -PHPBasePreferencePage.parsers.choose=PHP Parser auswählen - -PHPEditorSyntaxPreferencePage.description:PHP Editor Preferences -PHPEditorSyntaxPreferencePage.background:Background settings -PHPEditorSyntaxPreferencePage.foreground:Foreground settings -PHPEditorSyntaxPreferencePage.syntax:Syntax highlighting -PHPEditorSyntaxPreferencePage.color:Colour -PHPEditorSyntaxPreferencePage.bold:Bold -PHPEditorSyntaxPreferencePage.italic:Italic -PHPEditorSyntaxPreferencePage.underline:Underline -PHPEditorSyntaxPreferencePage.multiLineComment=Multi-line comment -PHPEditorSyntaxPreferencePage.singleLineComment=Single-line comment -PHPEditorSyntaxPreferencePage.keywords=Keywords -PHPEditorSyntaxPreferencePage.variables=Variables -PHPEditorSyntaxPreferencePage.types=Types -PHPEditorSyntaxPreferencePage.functions=Functions -PHPEditorSyntaxPreferencePage.constants=Constants -PHPEditorSyntaxPreferencePage.strings=Strings -PHPEditorSyntaxPreferencePage.others=Others -PHPEditorSyntaxPreferencePage.syntaxdialog=Custom PHP Syntax File: -PHPEditorSyntaxPreferencePage.browse=Browse.. -PHPEditorSyntaxPreferencePage.textfont=Text font - -PHPLanguagePreferencePage.description=PHP Editor Language -PHPLanguagePreferencePage.preflingo=PHP Language Preference -PHPLanguagePreferencePage.choose=Choose Language -PHPLanguagePreferencePage.english=Englisch -PHPLanguagePreferencePage.german=Deutsch -PHPLanguagePreferencePage.french=Frensch -PHPLanguagePreferencePage.spanish=Spanish diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/newPHPPreferencesMessages_FR.properties b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/newPHPPreferencesMessages_FR.properties deleted file mode 100644 index 9e03703..0000000 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/newPHPPreferencesMessages_FR.properties +++ /dev/null @@ -1,82 +0,0 @@ -######################################### -# PHPProjectLibraryPage -######################################### - -PHPProjectLibraryPage.elementNotIProject=ERREUR: L'élément n'est pas un IProject -PHPProjectLibraryPage.project=Projet -PHPProjectLibraryPage.tabName=Projets - - -######################################### -# Property Pages -######################################### - -PHPProjectPropertyPage.phpProjectClosed=Le project choisi est un projet PHP, mais est fermé. -PHPProjectPropertyPage.performOkExceptionDialogTitle=Impossible de sauver -PHPProjectPropertyPage.performOkExceptionDialogMessage=ERREUR: Impossible de sauver les propriétés du projet. - -PHPObfuscatorPropertyPage.hasnature=Is PHP project. -PHPObfuscatorPropertyPage.publish=Obfuscator directory: -PHPObfuscatorPropertyPage.dialogtitle=PHP -PHPObfuscatorPropertyPage.projecterror=Could not create the new project. -PHPObfuscatorPropertyPage.properties=PHP Obfuscator Project Properties - -######################################### -# Preference Pages -######################################### -PHPBasePreferencePage.description=PHP Preferences -PHPBasePreferencePage.websettingsGroup=Configuration du serveur Web -PHPBasePreferencePage.websettingsGroup.localhost=Localhost -PHPBasePreferencePage.websettingsGroup.docroot=DocumentRoot -PHPBasePreferencePage.websettingsGroup.browser=Commande du navigateur externe -PHPBasePreferencePage.websettingsGroup.useexternal=Utiliser navigateur externe -PHPBasePreferencePage.websettingsGroup.showexternalpreview=Show preview on editor load (win32 only) -PHPBasePreferencePage.apacheGroup=Configuration Apache -PHPBasePreferencePage.apacheGroup.run=Apache -PHPBasePreferencePage.apacheGroup.start=Lancer Apache -PHPBasePreferencePage.apacheGroup.start_background=Run in background mode -PHPBasePreferencePage.apacheGroup.stop=Stopper Apache -PHPBasePreferencePage.apacheGroup.stop_background=Run in background mode -PHPBasePreferencePage.apacheGroup.restart=Relancer Apache -PHPBasePreferencePage.apacheGroup.restart_background=Run in background mode -PHPBasePreferencePage.console.php=Run PHP command -PHPBasePreferencePage.mySQLGroup=Configuration MySQL -PHPBasePreferencePage.mySQLGroup.run=MySQL -PHPBasePreferencePage.mySQLGroup.start_background=Run in background mode -PHPBasePreferencePage.mySQLGroup.command=Lancer MySQL - -PHPBasePreferencePage.parsers=Configuration de parsing -PHPBasePreferencePage.parsers.pos=Parser à la sauvegarde -PHPBasePreferencePage.parsers.external=Externe -PHPBasePreferencePage.parsers.internal=Interne -PHPBasePreferencePage.parsers.extcommand=Parser command -PHPBasePreferencePage.parsers.choose=Choisissez un parseur PHP - -PHPEditorSyntaxPreferencePage.description:Configuration de l'éditeur PHP -PHPEditorSyntaxPreferencePage.background:Paramètres d'arrière plan -PHPEditorSyntaxPreferencePage.foreground:Paramètres d'avant plan -PHPEditorSyntaxPreferencePage.syntax:Coloration syntaxique -PHPEditorSyntaxPreferencePage.color:Couleur -PHPEditorSyntaxPreferencePage.bold:Gras -PHPEditorSyntaxPreferencePage.italic:Italique -PHPEditorSyntaxPreferencePage.underline:Sousligné -PHPEditorSyntaxPreferencePage.multiLineComment=Commentaire Multi-ligne -PHPEditorSyntaxPreferencePage.singleLineComment=Commenaire Mono-ligne -PHPEditorSyntaxPreferencePage.keywords=Mots clef -PHPEditorSyntaxPreferencePage.variables=Variables -PHPEditorSyntaxPreferencePage.types=Types -PHPEditorSyntaxPreferencePage.functions=Fonctions -PHPEditorSyntaxPreferencePage.constants=Constantes -PHPEditorSyntaxPreferencePage.strings=Strings -PHPEditorSyntaxPreferencePage.others=Autres -PHPEditorSyntaxPreferencePage.syntaxdialog=Fichier de syntaxe PHP personnalisé : -PHPEditorSyntaxPreferencePage.browse=Parcourir.. -PHPEditorSyntaxPreferencePage.textfont=Text font - -PHPLanguagePreferencePage.description=PHP Langue de l'éditeur -PHPLanguagePreferencePage.preflingo=PHP Configuration de langue -PHPLanguagePreferencePage.choose=Choisissez une langue -PHPLanguagePreferencePage.english=English -PHPLanguagePreferencePage.german=Deutsch -PHPLanguagePreferencePage.french=Francais -PHPLanguagePreferencePage.spanish=Spanish diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/newPHPPreferencesMessages_en_GB.properties b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/newPHPPreferencesMessages_en_GB.properties deleted file mode 100644 index c02902b..0000000 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/newPHPPreferencesMessages_en_GB.properties +++ /dev/null @@ -1,81 +0,0 @@ -######################################### -# PHPProjectLibraryPage -######################################### - -PHPProjectLibraryPage.elementNotIProject=ERROR: Element not IProject -PHPProjectLibraryPage.project=Project -PHPProjectLibraryPage.tabName=Projects - - -######################################### -# Property Pages -######################################### - -PHPProjectPropertyPage.phpProjectClosed=The project selected is a PHP project, but is closed. -PHPProjectPropertyPage.performOkExceptionDialogTitle=Unable to save -PHPProjectPropertyPage.performOkExceptionDialogMessage=ERROR: Unable to save project properties. - -PHPObfuscatorPropertyPage.hasnature=Is PHP project. -PHPObfuscatorPropertyPage.publish=Obfuscator directory: -PHPObfuscatorPropertyPage.dialogtitle=PHP -PHPObfuscatorPropertyPage.projecterror=Could not create the new project. -PHPObfuscatorPropertyPage.properties=PHP Obfuscator Project Properties - -######################################### -# Preference Pages -######################################### -PHPBasePreferencePage.description=PHP Preferences -PHPBasePreferencePage.websettingsGroup=Webserver Settings -PHPBasePreferencePage.websettingsGroup.localhost=Localhost -PHPBasePreferencePage.websettingsGroup.docroot=DocumentRoot -PHPBasePreferencePage.websettingsGroup.browser=External browser command -PHPBasePreferencePage.websettingsGroup.useexternal=Use external browser -PHPBasePreferencePage.websettingsGroup.showexternalpreview=Show preview on editor load (win32 only) -PHPBasePreferencePage.apacheGroup=Apache Settings -PHPBasePreferencePage.apacheGroup.run=Apache -PHPBasePreferencePage.apacheGroup.start=Start Apache -PHPBasePreferencePage.apacheGroup.start_background=Run in background mode -PHPBasePreferencePage.apacheGroup.stop=Stop Apache -PHPBasePreferencePage.apacheGroup.stop_background=Run in background mode -PHPBasePreferencePage.apacheGroup.restart=Restart Apache -PHPBasePreferencePage.apacheGroup.restart_background=Run in background mode -PHPBasePreferencePage.console.php=Run PHP command -PHPBasePreferencePage.mySQLGroup=MySQL Settings -PHPBasePreferencePage.mySQLGroup.run=MySQL -PHPBasePreferencePage.mySQLGroup.start_background=Run in background mode -PHPBasePreferencePage.mySQLGroup.command=Start MySQL -PHPBasePreferencePage.parsers=Parsing settings -PHPBasePreferencePage.parsers.pos=Parse on save -PHPBasePreferencePage.parsers.external=External -PHPBasePreferencePage.parsers.internal=Internal -PHPBasePreferencePage.parsers.extcommand=Parser command -PHPBasePreferencePage.parsers.choose=Choose PHP Parser - -PHPEditorSyntaxPreferencePage.description:PHP Editor Preferences -PHPEditorSyntaxPreferencePage.background:Background settings -PHPEditorSyntaxPreferencePage.foreground:Foreground settings -PHPEditorSyntaxPreferencePage.syntax:Syntax highlighting -PHPEditorSyntaxPreferencePage.color:Colour -PHPEditorSyntaxPreferencePage.bold:Bold -PHPEditorSyntaxPreferencePage.italic:Italic -PHPEditorSyntaxPreferencePage.underline:Underline -PHPEditorSyntaxPreferencePage.multiLineComment=Multi-line comment -PHPEditorSyntaxPreferencePage.singleLineComment=Single-line comment -PHPEditorSyntaxPreferencePage.keywords=Keywords -PHPEditorSyntaxPreferencePage.variables=Variables -PHPEditorSyntaxPreferencePage.types=Types -PHPEditorSyntaxPreferencePage.functions=Functions -PHPEditorSyntaxPreferencePage.constants=Constants -PHPEditorSyntaxPreferencePage.strings=Strings -PHPEditorSyntaxPreferencePage.others=Others -PHPEditorSyntaxPreferencePage.syntaxdialog=Custom PHP Syntax File: -PHPEditorSyntaxPreferencePage.browse=Browse.. -PHPEditorSyntaxPreferencePage.textfont=Text font - -PHPLanguagePreferencePage.description=PHP Editor Language -PHPLanguagePreferencePage.preflingo=PHP Language Preference -PHPLanguagePreferencePage.choose=Choose Language -PHPLanguagePreferencePage.english=English -PHPLanguagePreferencePage.german=German -PHPLanguagePreferencePage.french=French -PHPLanguagePreferencePage.spanish=Spanish diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/newPHPPreferencesMessages_es_ES.properties b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/newPHPPreferencesMessages_es_ES.properties deleted file mode 100644 index a93dd07..0000000 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/newPHPPreferencesMessages_es_ES.properties +++ /dev/null @@ -1,84 +0,0 @@ -######################################### -# PHPProjectLibraryPage -######################################### - -PHPProjectLibraryPage.elementNotIProject=ERROR: El elemento no es IProject -PHPProjectLibraryPage.project=Proyecto -PHPProjectLibraryPage.tabName=Proyectos - - -######################################### -# Property Pages -######################################### - -PHPProjectPropertyPage.phpProjectClosed=El proyecto seleccionado es un proyecto PHP, pero está cerrado. -PHPProjectPropertyPage.performOkExceptionDialogTitle=No se pudo guardar. -PHPProjectPropertyPage.performOkExceptionDialogMessage=ERROR: No se pudo guardar las propiedades del proyecto. - -PHPObfuscatorPropertyPage.hasnature=Is PHP project. -PHPObfuscatorPropertyPage.publish=Obfuscator directory: -PHPObfuscatorPropertyPage.dialogtitle=PHP -PHPObfuscatorPropertyPage.projecterror=Could not create the new project. -PHPObfuscatorPropertyPage.properties=PHP Obfuscator Project Properties - -######################################### -# Preference Pages -######################################### -PHPBasePreferencePage.description=Preferencias PHP -PHPBasePreferencePage.websettingsGroup=Configuración Webserver -PHPBasePreferencePage.websettingsGroup.localhost=Localhost -PHPBasePreferencePage.websettingsGroup.docroot=DocumentRoot -PHPBasePreferencePage.websettingsGroup.browser=Comando navegador externo -PHPBasePreferencePage.websettingsGroup.useexternal=Usar navegador externo -PHPBasePreferencePage.websettingsGroup.showexternalpreview=Show preview on editor load (win32 only) -PHPBasePreferencePage.apacheGroup=Configuración Apache -PHPBasePreferencePage.apacheGroup.run=Apache -PHPBasePreferencePage.apacheGroup.start=Arranchar Apache -PHPBasePreferencePage.apacheGroup.start_background=Run in background mode -PHPBasePreferencePage.apacheGroup.stop=Parar Apache -PHPBasePreferencePage.apacheGroup.stop_background=Run in background mode -PHPBasePreferencePage.apacheGroup.restart=Reiniciar Apache -PHPBasePreferencePage.apacheGroup.restart_background=Run in background mode -PHPBasePreferencePage.console.php=Run PHP command -PHPBasePreferencePage.mySQLGroup=Configuración MySQL -PHPBasePreferencePage.mySQLGroup.run=MySQL -PHPBasePreferencePage.mySQLGroup.start_background=Run in background mode -PHPBasePreferencePage.mySQLGroup.command=Arranchar MySQL - -PHPBasePreferencePage.console.php=Run PHP command - -PHPBasePreferencePage.parsers=Configuración Parser -PHPBasePreferencePage.parsers.pos=Parsear al guardar -PHPBasePreferencePage.parsers.external=Externo -PHPBasePreferencePage.parsers.internal=Interno -PHPBasePreferencePage.parsers.extcommand=Parser command -PHPBasePreferencePage.parsers.choose=Escoja Parser PHP - -PHPEditorSyntaxPreferencePage.description:Preferencias Editor PHP -PHPEditorSyntaxPreferencePage.background:Background settings -PHPEditorSyntaxPreferencePage.foreground:Preferencias primer plano -PHPEditorSyntaxPreferencePage.syntax:Resaltar sintaxis -PHPEditorSyntaxPreferencePage.color:Color -PHPEditorSyntaxPreferencePage.bold:Negrita -PHPEditorSyntaxPreferencePage.italic:Cursiva -PHPEditorSyntaxPreferencePage.underline:Subrayado -PHPEditorSyntaxPreferencePage.multiLineComment=Comentario varias líneas -PHPEditorSyntaxPreferencePage.singleLineComment=Comentario una línia -PHPEditorSyntaxPreferencePage.keywords=Palabras clave -PHPEditorSyntaxPreferencePage.variables=Variables -PHPEditorSyntaxPreferencePage.types=Tipos -PHPEditorSyntaxPreferencePage.functions=Funciones -PHPEditorSyntaxPreferencePage.constants=Constantes -PHPEditorSyntaxPreferencePage.strings=Cadenas -PHPEditorSyntaxPreferencePage.others=Otros -PHPEditorSyntaxPreferencePage.syntaxdialog=Fichero de sintaxis personalizado: -PHPEditorSyntaxPreferencePage.browse=Examinar.. -PHPEditorSyntaxPreferencePage.textfont=Fuente del texto - -PHPLanguagePreferencePage.description=Idioma editor PHP -PHPLanguagePreferencePage.preflingo=Configuración idioma PHP -PHPLanguagePreferencePage.choose=Escoja idioma -PHPLanguagePreferencePage.english=Inglés -PHPLanguagePreferencePage.german=Alemán -PHPLanguagePreferencePage.french=Francés -PHPLanguagePreferencePage.spanish=Español diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/preferences/PHPPreferencesMessages.properties b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/preferences/PHPPreferencesMessages.properties index b13bd34..ff0b239 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/preferences/PHPPreferencesMessages.properties +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/preferences/PHPPreferencesMessages.properties @@ -54,6 +54,7 @@ PHPBasePreferencePage.parsers.external=External PHPBasePreferencePage.parsers.internal=Internal PHPBasePreferencePage.parsers.extcommand=Parser command PHPBasePreferencePage.parsers.choose=Choose PHP Parser +PHPBasePreferencePage.phpExtensionPrefs=PHP file extensions (internal Parser) PHPEditorSyntaxPreferencePage.description:PHP Editor Preferences PHPEditorSyntaxPreferencePage.background:Background settings