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({
|
||||
xtype : 'simpleConfigForm',
|
||||
title : 'Subversion Settings',
|
||||
Ext.ns("Sonia.svn");
|
||||
|
||||
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',
|
||||
items : [{
|
||||
xtype: 'textfield',
|
||||
name: 'repositoryDirectory',
|
||||
fieldLabel: 'Repository directory',
|
||||
helpText: 'The location of the Suberversion repositories.',
|
||||
fieldLabel: this.repositoryDirectoryText,
|
||||
helpText: this.repositoryDirectoryHelpText,
|
||||
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',
|
||||
saveButtonText: 'Save',
|
||||
resetButtontext: 'Reset',
|
||||
|
||||
submitText: 'Submit ...',
|
||||
loadingText: 'Loading ...',
|
||||
|
||||
items: null,
|
||||
onSubmit: null,
|
||||
getValues: null,
|
||||
@@ -356,8 +360,6 @@ Ext.reg("configForm", Sonia.config.ConfigForm);
|
||||
|
||||
Sonia.config.SimpleConfigForm = Ext.extend(Sonia.config.ConfigForm,{
|
||||
|
||||
submitText: 'Submit ...',
|
||||
loadingText: 'Loading ...',
|
||||
configUrl: null,
|
||||
loadMethod: 'GET',
|
||||
submitMethod: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user