german localization for svn, git, hg and bzr plugin

This commit is contained in:
Sebastian Sdorra
2011-03-31 11:16:30 +02:00
parent 9739b216c4
commit 189a098dab
4 changed files with 95 additions and 3 deletions

View File

@@ -86,6 +86,30 @@ Sonia.bzr.ConfigPanel = Ext.extend(Sonia.config.SimpleConfigForm, {
Ext.reg("bzrConfigPanel", Sonia.bzr.ConfigPanel);
// i18n
if ( i18n != null && i18n.country == 'de' ){
Ext.override(Sonia.hg.ConfigPanel, {
// labels
titleText: 'Bazaar Settings',
bzrBinaryText: 'Bzr Pfad',
pythonBinary: 'Python Pfad',
pythonPath: 'Python Modul Suchpfad',
repositoryDirectoryText: 'Repository-Verzeichnis',
// helpTexts
bzrBinaryHelpText: 'Pfad zum "bzr" Befehl.',
pythonBinaryHelpText: 'Pfad zum "python" Befehl.',
pythonPathHelpText: 'Der Python Modul Suchpfad (PYTHONPATH).',
repositoryDirectoryHelpText: 'The location of the Bazaar repositories.'
});
}
// register panel
registerConfigPanel({
xtype : 'bzrConfigPanel'

View File

@@ -62,6 +62,25 @@ Sonia.git.ConfigPanel = Ext.extend(Sonia.config.SimpleConfigForm, {
Ext.reg("gitConfigPanel", Sonia.git.ConfigPanel);
// i18n
if ( i18n != null && i18n.country == 'de' ){
Ext.override(Sonia.git.ConfigPanel, {
// labels
titleText: 'Git Einstellungen',
repositoryDirectoryText: 'Repository-Verzeichnis',
// helpTexts
repositoryDirectoryHelpText: 'Das Verzeichnis der Git-Repositories.'
});
}
// register panel
registerConfigPanel({
xtype : 'gitConfigPanel'
});

View File

@@ -38,15 +38,16 @@ Sonia.hg.ConfigPanel = Ext.extend(Sonia.config.ConfigForm, {
titleText: 'Mercurial Settings',
hgBinaryText: 'HG Binary',
pythonBinaryText: 'Python Binary',
pythonPathText: 'Python Path',
pythonPathText: 'Python Module Search Path',
repositoryDirectoryText: 'Repository directory',
useOptimizedBytecodeText: 'Optimized Bytecode (.pyo)',
autoConfigText: 'Load Auto-Configuration',
autoConfigLabelText: 'Auto-Configuration',
// helpText
hgBinaryHelpText: 'The location of the Mercurial binary.',
pythonBinaryHelpText: 'The location of the Python binary.',
pythonPathHelpText: 'The Python path.',
pythonPathHelpText: 'The Python Module Search Path (PYTHONPATH).',
repositoryDirectoryHelpText: 'The location of the Mercurial repositories.',
useOptimizedBytecodeHelpText: 'Use the Python "-O" switch.',
@@ -86,7 +87,7 @@ Sonia.hg.ConfigPanel = Ext.extend(Sonia.config.ConfigForm, {
},{
xtype: 'button',
text: this.autoConfigText,
fieldLabel: 'Auto-Configuration',
fieldLabel: this.autoConfigLabelText,
handler: function(){
var self = Ext.getCmp('hgConfigForm');
self.loadConfig( self.el, 'config/repositories/hg/auto-configuration.json', 'POST' );
@@ -150,6 +151,35 @@ Sonia.hg.ConfigPanel = Ext.extend(Sonia.config.ConfigForm, {
Ext.reg("hgConfigPanel", Sonia.hg.ConfigPanel);
// i18n
if ( i18n != null && i18n.country == 'de' ){
Ext.override(Sonia.hg.ConfigPanel, {
// labels
titleText: 'Mercurial Einstellungen',
hgBinaryText: 'HG Pfad',
pythonBinaryText: 'Python Pfad',
pythonPathText: 'Python Modul Suchpfad',
repositoryDirectoryText: 'Repository-Verzeichnis',
useOptimizedBytecodeText: 'Optimierter Bytecode (.pyo)',
autoConfigText: 'Einstellungen automatisch laden',
autoConfigLabelText: 'Automatische Einstellung',
// helpText
hgBinaryHelpText: 'Pfad zum "hg" Befehl.',
pythonBinaryHelpText: 'Pfad zum "python" Befehl.',
pythonPathHelpText: 'Der Python Modul Suchpfad (PYTHONPATH).',
repositoryDirectoryHelpText: 'Das Verzeichnis der Mercurial-Repositories.',
useOptimizedBytecodeHelpText: 'Optimierten Bytecode verwenden (python -O).'
});
}
// register panel
registerConfigPanel({
id: 'hgConfigForm',
xtype : 'hgConfigPanel'

View File

@@ -62,6 +62,25 @@ Sonia.svn.ConfigPanel = Ext.extend(Sonia.config.SimpleConfigForm, {
Ext.reg("svnConfigPanel", Sonia.svn.ConfigPanel);
// i18n
if ( i18n != null && i18n.country == 'de' ){
Ext.override(Sonia.hg.ConfigPanel, {
// labels
titleText: 'Subversion Einstellungen',
repositoryDirectoryText: 'Repository-Verzeichnis',
// helpTexts
repositoryDirectoryHelpText: 'Das Verzeichnis der Subversion-Repositories.'
});
}
// register panel
registerConfigPanel({
xtype : 'svnConfigPanel'
});