mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-04 05:39:11 +01:00
improve i18n for sonia.repository.js
This commit is contained in:
@@ -163,6 +163,37 @@ if (Sonia.repository.Panel){
|
||||
|
||||
}
|
||||
|
||||
if (Sonia.repository.PermissionFormPanel){
|
||||
|
||||
Ext.override(Sonia.repository.PermissionFormPanel, {
|
||||
titleText: 'Berechtigungen'
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
if (Sonia.repository.InfoPanel){
|
||||
|
||||
Ext.override(Sonia.repository.InfoPanel, {
|
||||
nameText: 'Name: ',
|
||||
typeText: 'Typ: ',
|
||||
contactText: 'Kontakt: ',
|
||||
urlText: 'Url: ',
|
||||
// german ??
|
||||
changesetViewerText: 'ChangesetViewer',
|
||||
changesetViewerTitleText: 'ChangesetViewer {0}'
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
if (Sonia.repository.ExtendedInfoPanel){
|
||||
|
||||
Ext.override(Sonia.repository.ExtendedInfoPanel, {
|
||||
// german ??
|
||||
checkoutText: 'Checkout: '
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// sonia.config.js
|
||||
|
||||
if (Sonia.config.ScmConfigPanel){
|
||||
|
||||
@@ -62,8 +62,6 @@ Sonia.repository.setEditPanel = function(panels){
|
||||
|
||||
/**
|
||||
* panels
|
||||
*
|
||||
* TODO: missing i18n
|
||||
*/
|
||||
|
||||
Sonia.repository.DefaultPanel = {
|
||||
@@ -210,7 +208,7 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, {
|
||||
mailTemplate: '<a href="mailto: {0}">{0}</a>',
|
||||
actionLinkTemplate: '<a style="cursor: pointer;">{0}</a>',
|
||||
|
||||
// text TODO i18n
|
||||
// text
|
||||
nameText: 'Name: ',
|
||||
typeText: 'Type: ',
|
||||
contactText: 'Contact: ',
|
||||
@@ -225,28 +223,27 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, {
|
||||
contact = String.format(this.mailTemplate, this.item.contact);
|
||||
}
|
||||
|
||||
// TODO i18n
|
||||
var items = [{
|
||||
xtype: 'label',
|
||||
text: 'Name: '
|
||||
text: this.nameText
|
||||
},{
|
||||
xtype: 'box',
|
||||
html: this.item.name
|
||||
},{
|
||||
xtype: 'label',
|
||||
text: 'Type: '
|
||||
text: this.typeText
|
||||
},{
|
||||
xtype: 'box',
|
||||
html: this.getRepositoryTypeText(this.item.type)
|
||||
},{
|
||||
xtype: 'label',
|
||||
text: 'Contact: '
|
||||
text: this.contactText
|
||||
},{
|
||||
xtype: 'box',
|
||||
html: contact
|
||||
},{
|
||||
xtype: 'label',
|
||||
text: 'Url: '
|
||||
text: this.urlText
|
||||
},{
|
||||
xtype: 'box',
|
||||
html: String.format(this.linkTemplate, this.item.url)
|
||||
@@ -355,8 +352,8 @@ Sonia.repository.ExtendedInfoPanel = Ext.extend(Sonia.repository.InfoPanel,{
|
||||
|
||||
checkoutTemplate: null,
|
||||
|
||||
// text TODO i18n
|
||||
ckeckoutText: 'Checkout: ',
|
||||
// text
|
||||
checkoutText: 'Checkout: ',
|
||||
|
||||
modifyDefaultConfig: function(config){
|
||||
var items = config.items;
|
||||
@@ -569,6 +566,8 @@ Ext.reg('repositoryPropertiesForm', Sonia.repository.PropertiesFormPanel);
|
||||
Sonia.repository.PermissionFormPanel = Ext.extend(Sonia.repository.FormPanel, {
|
||||
|
||||
permissionStore: null,
|
||||
|
||||
titleText: 'Permissions',
|
||||
|
||||
initComponent: function(){
|
||||
var permissionStore = new Ext.data.JsonStore({
|
||||
@@ -665,8 +664,7 @@ Sonia.repository.PermissionFormPanel = Ext.extend(Sonia.repository.FormPanel, {
|
||||
});
|
||||
|
||||
var config = {
|
||||
// TODO i18n
|
||||
title: 'Permissions',
|
||||
title: this.titleText,
|
||||
listeners: {
|
||||
updated: this.clearModifications,
|
||||
preUpdate: {
|
||||
|
||||
Reference in New Issue
Block a user