sibprogrammer/owp

View on GitHub

Showing 803 of 803 total issues

Similar blocks of code found in 48 locations. Consider refactoring.
Open

if(Ext.grid.GridView){
  Ext.apply(Ext.grid.GridView.prototype, {
    sortAscText  : "Sorter stigande",
    sortDescText : "Sorter fallande",
    lockText     : "Lås kolonne",
Severity: Major
Found in public/ext/locale/ext-lang-no_NN.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 45 locations. Consider refactoring.
Open

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "Minimālais garums šim laukam ir {0}",
      maxLengthText : "Maksimālais garums šim laukam ir {0}",
      blankText     : "Šis ir obligāts lauks",
Severity: Major
Found in public/ext/locale/ext-lang-lv.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 48 locations. Consider refactoring.
Open

if(Ext.grid.GridView){
   Ext.apply(Ext.grid.GridView.prototype, {
      sortAscText  : "Tăng dần",
      sortDescText : "Giảm dần",
      lockText     : "Khóa cột",
Severity: Major
Found in public/ext/locale/ext-lang-vn.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 48 locations. Consider refactoring.
Open

if(Ext.grid.GridView){
  Ext.apply(Ext.grid.GridView.prototype, {
    sortAscText  : "Ordenação Crescente",
    sortDescText : "Ordenação Decrescente",
    lockText     : "Fixar Coluna",
Severity: Major
Found in public/ext/locale/ext-lang-pt_PT.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 48 locations. Consider refactoring.
Open

if(Ext.grid.GridView){
   Ext.apply(Ext.grid.GridView.prototype, {
      sortAscText  : "Растући редослед",
      sortDescText : "Опадајући редослед",
      lockText     : "Закључај колону",
Severity: Major
Found in public/ext/locale/ext-lang-sr_RS.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 45 locations. Consider refactoring.
Open

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "Минимална дужина овог поља је {0}",
      maxLengthText : "Максимална дужина овог поља је {0}",
      blankText     : "Поље је обавезно",
Severity: Major
Found in public/ext/locale/ext-lang-sr_RS.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 45 locations. Consider refactoring.
Open

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "Chiều dài tối thiểu của ô này là {0}",
      maxLengthText : "Chiều dài tối đa của ô này là {0}",
      blankText     : "Ô này cần phải nhập giá trị",
Severity: Major
Found in public/ext/locale/ext-lang-vn.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 48 locations. Consider refactoring.
Open

if(Ext.grid.GridView){
    Ext.apply(Ext.grid.GridView.prototype, {
       sortAscText  : "Sorteer Oplopend",
       sortDescText : "Sorteer Aflopend",
       lockText     : "Vries Kolom",
Severity: Major
Found in public/ext/locale/ext-lang-af.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 48 locations. Consider refactoring.
Open

if(Ext.grid.GridView){
   Ext.apply(Ext.grid.GridView.prototype, {
      sortAscText  : "Sortiraj naraščajoče",
      sortDescText : "Sortiraj padajoče",
      lockText     : "Zakleni stolpec",
Severity: Major
Found in public/ext/locale/ext-lang-sl.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 48 locations. Consider refactoring.
Open

if(Ext.grid.GridView){
   Ext.apply(Ext.grid.GridView.prototype, {
      sortAscText  : "Сортувати по зростанню",
      sortDescText : "Сортувати по спаданню",
      lockText     : "Закріпити стовпець",
Severity: Major
Found in public/ext/locale/ext-lang-ukr.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 45 locations. Consider refactoring.
Open

if(Ext.form.TextField){
  Ext.apply(Ext.form.TextField.prototype, {
    minLengthText: 'De minimale lengte van dit veld is {0}',
    maxLengthText: 'De maximale lengte van dit veld is {0}',
    blankText: 'Dit veld is verplicht',
Severity: Major
Found in public/ext/locale/ext-lang-nl.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 45 locations. Consider refactoring.
Open

if(Ext.form.TextField){
  Ext.apply(Ext.form.TextField.prototype, {
    minLengthText : "The minimum length for this field is {0}",
    maxLengthText : "The maximum length for this field is {0}",
    blankText     : "This field is required",
Severity: Major
Found in public/ext/locale/ext-lang-en_GB.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 45 locations. Consider refactoring.
Open

if(Ext.form.TextField){
  Ext.apply(Ext.form.TextField.prototype, {
    minLengthText : "Girilen verinin uzunluðu en az {0} olabilir",
    maxLengthText : "Girilen verinin uzunluðu en fazla {0} olabilir",
    blankText     : "Bu alan boþŸ býrakýlamaz",
Severity: Major
Found in public/ext/locale/ext-lang-tr.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 48 locations. Consider refactoring.
Open

if(Ext.form.TimeField){
   Ext.apply(Ext.form.TimeField.prototype, {
      minText     : "L'heure de ce champ ne peut être antérieure à {0}",
      maxText     : "L'heure de ce champ ne peut être postérieure à {0}",
      invalidText : "{0} n'est pas une heure valide",
Severity: Major
Found in public/ext/locale/ext-lang-fr.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 45 locations. Consider refactoring.
Open

if(Ext.form.TextField){
  Ext.apply(Ext.form.TextField.prototype, {
    minLengthText : "Den minste lengda for dette feltet er {0}",
    maxLengthText : "Den største lengda for dette feltet er {0}",
    blankText     : "Dette feltet er påkravd",
Severity: Major
Found in public/ext/locale/ext-lang-no_NN.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 45 locations. Consider refactoring.
Open

if(Ext.form.TextField){
  Ext.apply(Ext.form.TextField.prototype, {
    minLengthText : "The minimum length for this field is {0}",
    maxLengthText : "The maximum length for this field is {0}",
    blankText     : "This field is required",
Severity: Major
Found in public/ext/locale/ext-lang-en.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 45 locations. Consider refactoring.
Open

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "Minimalna dolžina tega polja je {0}",
      maxLengthText : "Maksimalna dolžina tega polja je {0}",
      blankText     : "To polje je obvezno",
Severity: Major
Found in public/ext/locale/ext-lang-sl.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 45 locations. Consider refactoring.
Open

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "Minimum længden for dette felt er {0}",
      maxLengthText : "Maksimum længden for dette felt er {0}",
      blankText     : "Dette felt skal udfyldes",
Severity: Major
Found in public/ext/locale/ext-lang-da.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 45 locations. Consider refactoring.
Open

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "La lunghezza minima \u00E8 {0}",
      maxLengthText : "La lunghezza massima \u00E8 {0}",
      blankText     : "Campo obbligatorio",
Severity: Major
Found in public/ext/locale/ext-lang-it.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 45 locations. Consider refactoring.
Open

if(Ext.form.TextField){
    Ext.apply(Ext.form.TextField.prototype, {
       minLengthText : "此欄位最少要輸入 {0} 個字",
       maxLengthText : "此欄位最多輸入 {0} 個字",
       blankText     : "此欄位為必填",
Severity: Major
Found in public/ext/locale/ext-lang-zh_TW.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 65.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language