mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
prepare svn.config.js for localization
This commit is contained in:
@@ -29,15 +29,39 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
registerConfigPanel({
|
Ext.ns("Sonia.svn");
|
||||||
xtype : 'simpleConfigForm',
|
|
||||||
title : 'Subversion Settings',
|
Sonia.svn.ConfigPanel = Ext.extend(Sonia.config.SimpleConfigForm, {
|
||||||
|
|
||||||
|
// labels
|
||||||
|
titleText: 'Subversion Settings',
|
||||||
|
repositoryDirectoryText: 'Repository directory',
|
||||||
|
|
||||||
|
// helpTexts
|
||||||
|
repositoryDirectoryHelpText: 'The location of the Suberversion repositories.',
|
||||||
|
|
||||||
|
initComponent: function(){
|
||||||
|
|
||||||
|
var config = {
|
||||||
|
title : this.titleText,
|
||||||
configUrl: restUrl + 'config/repositories/svn.json',
|
configUrl: restUrl + 'config/repositories/svn.json',
|
||||||
items : [{
|
items : [{
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
name: 'repositoryDirectory',
|
name: 'repositoryDirectory',
|
||||||
fieldLabel: 'Repository directory',
|
fieldLabel: this.repositoryDirectoryText,
|
||||||
helpText: 'The location of the Suberversion repositories.',
|
helpText: this.repositoryDirectoryHelpText,
|
||||||
allowBlank : false
|
allowBlank : false
|
||||||
}]
|
}]
|
||||||
|
}
|
||||||
|
|
||||||
|
Ext.apply(this, Ext.apply(this.initialConfig, config));
|
||||||
|
Sonia.svn.ConfigPanel.superclass.initComponent.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
Ext.reg("svnConfigPanel", Sonia.git.ConfigPanel);
|
||||||
|
|
||||||
|
registerConfigPanel({
|
||||||
|
xtype : 'svnConfigPanel'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -275,6 +275,10 @@ Sonia.config.ConfigForm = Ext.extend(Ext.form.FormPanel, {
|
|||||||
title: 'Config Form',
|
title: 'Config Form',
|
||||||
saveButtonText: 'Save',
|
saveButtonText: 'Save',
|
||||||
resetButtontext: 'Reset',
|
resetButtontext: 'Reset',
|
||||||
|
|
||||||
|
submitText: 'Submit ...',
|
||||||
|
loadingText: 'Loading ...',
|
||||||
|
|
||||||
items: null,
|
items: null,
|
||||||
onSubmit: null,
|
onSubmit: null,
|
||||||
getValues: null,
|
getValues: null,
|
||||||
@@ -356,8 +360,6 @@ Ext.reg("configForm", Sonia.config.ConfigForm);
|
|||||||
|
|
||||||
Sonia.config.SimpleConfigForm = Ext.extend(Sonia.config.ConfigForm,{
|
Sonia.config.SimpleConfigForm = Ext.extend(Sonia.config.ConfigForm,{
|
||||||
|
|
||||||
submitText: 'Submit ...',
|
|
||||||
loadingText: 'Loading ...',
|
|
||||||
configUrl: null,
|
configUrl: null,
|
||||||
loadMethod: 'GET',
|
loadMethod: 'GET',
|
||||||
submitMethod: 'POST',
|
submitMethod: 'POST',
|
||||||
|
|||||||
Reference in New Issue
Block a user