translation strings in import-export behaviour and polish translations

This commit is contained in:
Kuba 2015-10-21 19:39:16 +02:00
parent db5fde4749
commit 031b9cdbe6
11 changed files with 307 additions and 227 deletions

View File

@ -1,10 +1,10 @@
<div class="modal-header">
<button type="button" class="close" data-dismiss="popup">&times;</button>
<h4 class="modal-title">Column preview</h4>
<h4 class="modal-title"><?= e(trans('backend::lang.import_export.column_preview')) ?></h4>
</div>
<div class="modal-body">
<p>
Column:
<?= e(trans('backend::lang.import_export.column')) ?>:
<strong><?= $columnName ?></strong>
</p>

View File

@ -3,7 +3,7 @@
<?= Form::open(['id' => 'exportForm']) ?>
<div class="modal-header">
<h4 class="modal-title">Export progress</h4>
<h4 class="modal-title"><?= e(trans('backend::lang.import_export.export_progress')) ?></h4>
</div>
<div id="exportContainer">
@ -12,7 +12,7 @@
<div class="loading-indicator-container">
<p>&nbsp;</p>
<div class="loading-indicator transparent">
<div>Processing</div>
<div><?= e(trans('backend::lang.import_export.processing')) ?></div>
<span></span>
</div>
</div>
@ -33,7 +33,7 @@
<div class="modal-header">
<button type="button" class="close" data-dismiss="popup">&times;</button>
<h4 class="modal-title">Export error</h4>
<h4 class="modal-title"><?= e(trans('backend::lang.import_export.export_error')) ?></h4>
</div>
<div class="modal-body">
<p class="flash-message static error"><?= e($this->fatalError) ?></p>

View File

@ -2,8 +2,8 @@
<div class="modal-body">
<p>
File export process has completed successfully!
The browser should now redirect automatically to the file download.
<?= e(trans('backend::lang.import_export.processing_successful_line1')) ?>
<?= e(trans('backend::lang.import_export.processing_successful_line2')) ?>
</p>
</div>
<div class="modal-footer">

View File

@ -12,7 +12,7 @@
data-toggle="tooltip"
data-delay="300"
data-placement="right"
title="Ignore this column"
title="<?= e(trans('backend::lang.import_export.ignore_this_column')) ?>"
onclick="$.oc.importBehavior.ignoreFileColumn(this)"
>
<i class="icon-close"></i>
@ -27,14 +27,14 @@
</span>
</div>
<div class="import-column-bindings">
<ul data-empty-text="Drop column here..."></ul>
<ul data-empty-text="<?= e(trans('backend::lang.import_export.drop_column_here')) ?>"></ul>
</div>
</li>
<?php endforeach ?>
</ul>
<?php else: ?>
<p class="upload-prompt">
Please upload a valid CSV file.
<?= e(trans('backend::lang.import_export.upload_valid_csv')) ?>.
</p>
<?php endif ?>
</div>

View File

@ -3,7 +3,7 @@
<?= Form::open(['id' => 'importForm']) ?>
<div class="modal-header">
<h4 class="modal-title">Import progress</h4>
<h4 class="modal-title"><?= e(trans('backend::lang.import_export.import_progress')) ?></h4>
</div>
<div id="importContainer">
@ -12,7 +12,7 @@
<div class="loading-indicator-container">
<p>&nbsp;</p>
<div class="loading-indicator transparent">
<div>Processing</div>
<div><?= e(trans('backend::lang.import_export.processing')) ?></div>
<span></span>
</div>
</div>
@ -33,7 +33,7 @@
<div class="modal-header">
<button type="button" class="close" data-dismiss="popup">&times;</button>
<h4 class="modal-title">Import error</h4>
<h4 class="modal-title"><?= e(trans('backend::lang.import_export.import_error')) ?></h4>
</div>
<div class="modal-body">
<p class="flash-message static error"><?= e($this->fatalError) ?></p>

View File

@ -5,27 +5,27 @@
<div class="scoreboard">
<div data-control="toolbar">
<div class="scoreboard-item title-value">
<h4>Created</h4>
<h4><?= e(trans('backend::lang.import_export.created')) ?></h4>
<p><?= $importResults->created ?></p>
</div>
<div class="scoreboard-item title-value">
<h4>Updated</h4>
<h4><?= e(trans('backend::lang.import_export.updated')) ?></h4>
<p><?= $importResults->updated ?></p>
</div>
<?php if ($importResults->skippedCount): ?>
<div class="scoreboard-item title-value">
<h4>Skipped</h4>
<h4><?= e(trans('backend::lang.import_export.skipped')) ?></h4>
<p><?= $importResults->skippedCount ?></p>
</div>
<?php endif ?>
<?php if ($importResults->warningCount): ?>
<div class="scoreboard-item title-value">
<h4>Warnings</h4>
<h4><?= e(trans('backend::lang.import_export.warnings')) ?></h4>
<p><?= $importResults->warningCount ?></p>
</div>
<?php endif ?>
<div class="scoreboard-item title-value">
<h4>Errors</h4>
<h4><?= e(trans('backend::lang.import_export.errors')) ?></h4>
<p><?= $importResults->errorCount ?></p>
</div>
</div>
@ -34,9 +34,9 @@
<?php if ($importResults->hasMessages): ?>
<?php
$tabs = [
'skipped' => 'Skipped rows',
'warnings' => 'Warnings',
'errors' => 'Errors',
'skipped' => trans('backend::lang.import_export.skipped_rows'),
'warnings' => trans('backend::lang.import_export.warnings'),
'errors' => trans('backend::lang.import_export.errors'),
];
if (!$importResults->skippedCount) unset($tabs['skipped']);

View File

@ -4,13 +4,13 @@
id="showIgnoredColumnsButton"
class="btn btn-sm btn-default oc-icon-eye disabled"
onclick="$.oc.importBehavior.showIgnoredColumns()">
Show ignored columns
<?= e(trans('backend::lang.import_export.show_ignored_columns')) ?>
</a>
<a
href="javascript:;"
id="autoMatchColumnsButton"
class="btn btn-sm btn-default oc-icon-bullseye"
onclick="$.oc.importBehavior.autoMatchColumns()">
Auto match columns
<?= e(trans('backend::lang.import_export.auto_match_columns')) ?>
</a>
</div>

View File

@ -4,20 +4,20 @@
fields:
step1_section:
label: 1. Export output format
label: backend::lang.import_export.export_output_format
type: section
format_preset:
label: File format
label: backend::lang.import_export.file_format
type: dropdown
default: standard
options:
standard: Standard format
custom: Custom format
standard: backend::lang.import_export.standard_format
custom: backend::lang.import_export.custom_format
span: left
format_delimiter:
label: Delimiter character
label: backend::lang.import_export.delimiter_char
default: ','
span: left
trigger:
@ -26,7 +26,7 @@ fields:
field: format_preset
format_enclosure:
label: Enclosure character
label: backend::lang.import_export.enclosure_char
span: auto
default: '"'
trigger:
@ -35,7 +35,7 @@ fields:
field: format_preset
format_escape:
label: Escape character
label: backend::lang.import_export.escape_char
span: auto
default: '\\'
trigger:
@ -44,15 +44,15 @@ fields:
field: format_preset
step2_section:
label: 2. Select columns to export
label: backend::lang.import_export.select_columns
type: section
export_columns:
label: Columns
label: backend::lang.import_export.columns
type: partial
path: ~/modules/backend/behaviors/importexportcontroller/partials/_export_columns.htm
span: left
step3_section:
label: 3. Set export options
label: backend::lang.import_export.set_export_options
type: section

View File

@ -4,11 +4,11 @@
fields:
step1_section:
label: 1. Upload a CSV file
label: backend::lang.import_export.upload_csv_file
type: section
import_file:
label: Import file
label: backend::lang.import_export.import_file
type: fileupload
mode: file
span: left
@ -16,14 +16,14 @@ fields:
useCaption: false
first_row_titles:
label: First row contains column titles
comment: Leave this checked if the first row in the CSV is used as the column titles.
label: backend::lang.import_export.first_row_contains_titles
comment: backend::lang.import_export.first_row_contains_titles_desc
type: checkbox
default: true
span: left
step2_section:
label: 2. Match the file columns to database fields
label: backend::lang.import_export.match_columns
type: section
column_control_panel:
@ -31,19 +31,19 @@ fields:
path: ~/modules/backend/behaviors/importexportcontroller/partials/_import_toolbar.htm
import_file_columns:
label: File columns
label: backend::lang.import_export.file_columns
type: partial
path: ~/modules/backend/behaviors/importexportcontroller/partials/_import_file_columns.htm
dependsOn: [import_file, first_row_titles]
span: left
import_db_columns:
label: Database fields
label: backend::lang.import_export.database_fields
type: partial
path: ~/modules/backend/behaviors/importexportcontroller/partials/_import_db_columns.htm
dependsOn: [import_file, first_row_titles]
span: right
step3_section:
label: 3. Set import options
label: backend::lang.import_export.set_import_options
type: section

View File

@ -321,5 +321,45 @@ return [
],
'filter' => [
'all' => 'all'
]
],
'import_export' => [
'upload_csv_file' => '1. Upload a CSV file',
'import_file' => 'Import file',
'first_row_contains_titles' => 'First row contains column titles',
'first_row_contains_titles_desc' => 'Leave this checked if the first row in the CSV is used as the column titles.',
'match_columns' => '2. Match the file columns to database fields',
'file_columns' => 'File columns',
'database_fields' => 'Database fields',
'set_import_options' => '3. Set import options',
'export_output_format' => '1. Export output format',
'file_format' => 'File format',
'standard_format' => 'Standard format',
'custom_format' => 'Custom format',
'delimiter_char' => 'Delimiter character',
'enclosure_char' => 'Enclosure character',
'escape_char' => 'Escape character',
'select_columns' => '2. Select columns to export',
'column' => 'Column',
'columns' => 'Columns',
'set_export_options' => '3. Set export options',
'show_ignored_columns' => 'Show ignored columns',
'auto_match_columns' => 'Auto match columns',
'created' => 'Created',
'updated' => 'Updated',
'skipped' => 'Skipped',
'warnings' => 'Warnings',
'errors' => 'Errors',
'skipped_rows' => 'Skipped Rows',
'import_progress' => 'Import progress',
'processing' => 'Processing',
'import_error' => 'Import error',
'upload_valid_csv' => 'Please upload a valid CSV file.',
'drop_column_here' => 'Drop column here...',
'ignore_this_column' => 'Ignore this column',
'processing_successful_line1' => 'File export process has completed successfully!',
'processing_successful_line2' => 'The browser should now redirect automatically to the file download.',
'export_progress' => 'Export progress',
'export_error' => 'Export error',
'column_preview' => 'Column preview',
],
];

View File

@ -313,5 +313,45 @@ return [
],
'filter' => [
'all' => 'wszystkie'
]
],
'import_export' => [
'upload_csv_file' => '1. Wgraj plik CSV',
'import_file' => 'Importuj Plik',
'first_row_contains_titles' => 'Pierwszy wiersz zawiera nazwy kolumn',
'first_row_contains_titles_desc' => 'Zostaw to pole zaznaczone, jeżeli pierwszy wiersz w pliku CSV zawiera tytuły kolumn.',
'match_columns' => '2. Przypisz kolumny z pliku do pól w bazie danych',
'file_columns' => 'Kolumny w pliku',
'database_fields' => 'Pola w bazie',
'set_import_options' => '3. Ustaw opcje importu',
'export_output_format' => '1. Format eksportowanego pliku',
'file_format' => 'Format pliku',
'standard_format' => 'Standardowy',
'custom_format' => 'Niestandardowy',
'delimiter_char' => 'Znak rozdzielający (delimiter)',
'enclosure_char' => 'Znak zawierający (enclosure)',
'escape_char' => 'Znak unikania (escape)',
'select_columns' => '2. Wybierz kolumny do eksportu',
'column' => 'Kolumna',
'columns' => 'Kolumny',
'set_export_options' => '3. Ustaw opcje eksportu',
'show_ignored_columns' => 'Pokaż ignorowane kolumny',
'auto_match_columns' => 'Automatycznie przypisz kolumny',
'created' => 'Stworzono',
'updated' => 'Zaktualizowano',
'skipped' => 'Pominięto',
'warnings' => 'Ostrzeżenia',
'errors' => 'Błędy',
'skipped_rows' => 'Pominięte wiersze',
'import_progress' => 'Postęp importu',
'processing' => 'Przetwarzanie',
'import_error' => 'Błąd importu',
'upload_valid_csv' => 'Wgraj prawidłowy plik CSV.',
'drop_column_here' => 'Upuść kolumnę tutaj...',
'ignore_this_column' => 'Ignoruj tą kolumnę',
'processing_successful_line1' => 'Procedura eksportu zakończyła się powodzeniem!',
'processing_successful_line2' => 'Przeglądarka automatycznie zaproponuje Ci pobranie pliku.',
'export_progress' => 'Postęp eksportu',
'export_error' => 'Błąd eksportu',
'column_preview' => 'Podgląd kolumny',
],
];