Revision 41749 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.fmap.control/src/main/java/org/gvsig/fmap/mapcontrol/dal/jdbc/JDBCConnectionPanel.java
JDBCConnectionPanel.java | ||
---|---|---|
19 | 19 |
import org.gvsig.fmap.dal.DataServerExplorerPoolEntry; |
20 | 20 |
import org.gvsig.fmap.dal.exception.DataException; |
21 | 21 |
import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters; |
22 |
import org.gvsig.tools.ToolsLocator; |
|
23 |
import org.gvsig.tools.i18n.I18nManager; |
|
22 | 24 |
import org.slf4j.Logger; |
23 | 25 |
import org.slf4j.LoggerFactory; |
24 | 26 |
|
... | ... | |
76 | 78 |
} catch(Throwable th) { |
77 | 79 |
// Ignore it to allow use in GUI builders |
78 | 80 |
} |
81 |
this.translate(); |
|
79 | 82 |
} |
80 | 83 |
|
84 |
private void translate() { |
|
85 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
86 |
|
|
87 |
this.lblConnectionName.setText(i18nManager.getTranslation("_Connection_name")); |
|
88 |
this.lblConnector.setText(i18nManager.getTranslation("_Driver_type")); |
|
89 |
this.lblServer.setText(i18nManager.getTranslation("_Host")); |
|
90 |
this.lblPort.setText(i18nManager.getTranslation("_Port")); |
|
91 |
this.lblDataBase.setText(i18nManager.getTranslation("_Database")); |
|
92 |
this.lblUsername.setText(i18nManager.getTranslation("_User")); |
|
93 |
this.lblPassword.setText(i18nManager.getTranslation("_Password")); |
|
94 |
this.lblFoother.setText("<html>"+i18nManager.getTranslation("_JDBCConecctionPanel_foother")+"</html>"); |
|
95 |
} |
|
96 |
|
|
81 | 97 |
public void setServerExplorerParameters(JDBCServerExplorerParameters parameters) { |
82 | 98 |
|
83 | 99 |
int indexConnector = this.getIndexOfConnector(parameters); |
Also available in: Unified diff