Updated localizations & improved some special and demo translation string data handling

This commit is contained in:
Bernd Bestel
2019-09-20 16:26:50 +02:00
parent 399ebbe14a
commit 292b652437
69 changed files with 2528 additions and 2374 deletions

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -1,7 +1,7 @@
var equipmentTable = $('#equipment-table').DataTable({
'paginate': false,
'order': [[0, 'asc']],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -340,7 +340,7 @@ var quConversionsTable = $('#qu-conversions-table').DataTable({
{ 'orderable': false, 'targets': 0 },
{ 'visible': false, 'targets': 3 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -119,7 +119,7 @@ var quConversionsTable = $('#qu-conversions-table').DataTable({
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -69,7 +69,7 @@ var recipesPosTables = $('#recipes-pos-table').DataTable({
{ 'orderable': false, 'targets': 0 },
{ 'visible': false, 'targets': 4 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,
@@ -95,7 +95,7 @@ var recipesIncludesTables = $('#recipes-includes-table').DataTable({
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderData': 2, 'targets': 1 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -6,7 +6,7 @@
{ 'orderable': false, 'targets': 0 },
{ 'visible': false, 'targets': 3 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -7,7 +7,7 @@
{ 'visible': false, 'targets': 5 },
{ 'visible': false, 'targets': 6 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -5,7 +5,7 @@
{ 'orderable': false, 'targets': 0 },
{ 'visible': false, 'targets': 3 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,

View File

@@ -4,7 +4,7 @@
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(__t('datatables_localization')),
'language': IsJsonString(__t('datatables_localization')) ? JSON.parse(__t('datatables_localization')) : { },
'scrollY': false,
'colReorder': true,
'stateSave': true,