Skip to content

Commit

Permalink
add polish
Browse files Browse the repository at this point in the history
  • Loading branch information
callcenter-magnus committed Jan 26, 2025
1 parent 1063357 commit 11eff15
Show file tree
Hide file tree
Showing 27 changed files with 4,866 additions and 464 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@ wiki/pt_BR/_build
build/ApplicationBuild.js
build/ApplicationPUBLIC.js
wiki/generate.php
script/install_8.sh
script/install_18.sh
script/test.sql
Binary file modified build/MagnusBilling-current.tar.gz
Binary file not shown.
33 changes: 19 additions & 14 deletions classic/src/ux/button/Locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,14 @@
Ext.define('Ext.ux.button.Locale', {
extend: 'Ext.button.Split',
alias: 'widget.locale',
handler: function() {
handler: function () {
this.showMenu()
},
supportLang: ['pt_BR', 'en', 'es', 'fr', 'it', 'ru', 'de'],
supportLang: ['pt_BR', 'en', 'es', 'fr', 'it', 'ru', 'de', 'pl'],
iconCls: 'flag-' + window.lang,
initComponent: function() {
initComponent: function () {
var me = this;
me.menu = [{
text: t('German'),
iconCls: 'flag-de',
scope: me,
handler: me.setLocale
}, {
text: t('English'),
iconCls: 'flag-en',
scope: me,
Expand All @@ -43,11 +38,26 @@ Ext.define('Ext.ux.button.Locale', {
iconCls: 'flag-fr',
scope: me,
handler: me.setLocale
}, {
text: t('German'),
iconCls: 'flag-de',
scope: me,
handler: me.setLocale
}, {
text: t('Italian'),
iconCls: 'flag-it',
scope: me,
handler: me.setLocale
}, {
text: t('Polish'),
iconCls: 'flag-pl',
scope: me,
handler: me.setLocale
}, {
text: t('Portuguese'),
iconCls: 'flag-pt_BR',
scope: me,
handler: me.setLocale
}, {
text: t('Russian'),
iconCls: 'flag-ru',
Expand All @@ -58,15 +68,10 @@ Ext.define('Ext.ux.button.Locale', {
iconCls: 'flag-es',
scope: me,
handler: me.setLocale
}, {
text: t('Portuguese'),
iconCls: 'flag-pt_BR',
scope: me,
handler: me.setLocale
}];
me.callParent(arguments);
},
setLocale: function(item) {
setLocale: function (item) {
var me = this,
icon = item.iconCls,
lang = icon.replace('flag-', '');
Expand Down
14 changes: 9 additions & 5 deletions classic/src/view/general/BooleanCombo.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,14 @@ Ext.define('MBilling.view.general.Typelanguage', {
value: 'en',
store: [
['', t('Undefined')],
['br', t('Portuguese')],
['en', t('English')],
['es', t('Spanish')],
['ru', t('Russian')]
['fr', t('French')],
['de', t('German')],
['it', t('Italian')],
['pl', t('Polish')],
['br', t('Portuguese')],
['ru', t('Russian')],
['es', t('Spanish')]
]
});
Ext.define('MBilling.view.general.TypeCampaign', {
Expand Down Expand Up @@ -261,7 +265,7 @@ Ext.define('MBilling.view.general.CountryISOCombo', {
forceSelection: true,
editable: true,
listeners: {
focus: function(combo) {
focus: function (combo) {
combo.expand();
}
},
Expand Down Expand Up @@ -525,7 +529,7 @@ Ext.define('MBilling.view.general.CountryCombo', {
editable: true,
allowBlank: true,
listeners: {
focus: function(combo) {
focus: function (combo) {
combo.expand();
}
},
Expand Down
10 changes: 10 additions & 0 deletions protected/commands/UpdateMysqlCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,16 @@ public function run($args)
$version = '7.8.4.9';
$this->update($version);
}


//2025-01-06
if ($version == '7.8.4.9') {
$sql = "ALTER TABLE pkg_trunk DROP FOREIGN KEY fk_pkg_trunk_pkg_trunk";
$this->executeDB($sql);

$version = '7.8.5.0';
$this->update($version);
}
}

public function executeDB($sql)
Expand Down
Loading

0 comments on commit 11eff15

Please sign in to comment.