mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 02:31:14 +01:00
prepare git.config.js for localization
This commit is contained in:
@@ -29,15 +29,39 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
registerConfigPanel({
|
Ext.ns("Sonia.git");
|
||||||
xtype : 'simpleConfigForm',
|
|
||||||
title : 'Git Settings',
|
Sonia.git.ConfigPanel = Ext.extend(Sonia.config.SimpleConfigForm, {
|
||||||
|
|
||||||
|
// labels
|
||||||
|
titleText: 'Git Settings',
|
||||||
|
repositoryDirectoryText: 'Repository directory',
|
||||||
|
|
||||||
|
// helpTexts
|
||||||
|
repositoryDirectoryHelpText: 'The location of the Git repositories.',
|
||||||
|
|
||||||
|
initComponent: function(){
|
||||||
|
|
||||||
|
var config = {
|
||||||
|
title : this.titleText,
|
||||||
configUrl: restUrl + 'config/repositories/git.json',
|
configUrl: restUrl + 'config/repositories/git.json',
|
||||||
items : [{
|
items : [{
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
name: 'repositoryDirectory',
|
name: 'repositoryDirectory',
|
||||||
fieldLabel: 'Repository directory',
|
fieldLabel: this.repositoryDirectoryText,
|
||||||
helpText: 'The location of the Git repositories.',
|
helpText: this.repositoryDirectoryHelpText,
|
||||||
allowBlank : false
|
allowBlank : false
|
||||||
}]
|
}]
|
||||||
|
}
|
||||||
|
|
||||||
|
Ext.apply(this, Ext.apply(this.initialConfig, config));
|
||||||
|
Sonia.git.ConfigPanel.superclass.initComponent.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
Ext.reg("gitConfigPanel", Sonia.git.ConfigPanel);
|
||||||
|
|
||||||
|
registerConfigPanel({
|
||||||
|
xtype : 'gitConfigPanel'
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user