diff --git a/plugins/copy-structure-export.php b/plugins/copy-structure-export.php new file mode 100644 index 000000000..63c1ad16e --- /dev/null +++ b/plugins/copy-structure-export.php @@ -0,0 +1,385 @@ +lang('Copy table as')); + $copied = json_encode($this->lang('Copied')); + $copyFailed = json_encode($this->lang('Copy failed')); + $column = json_encode($this->lang('Column')); + $type = json_encode($this->lang('Type')); + $comment = json_encode($this->lang('Comment')); + + echo << + #sb-structure-copy { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: .65rem; + margin: .5rem 0 .75rem; + font: inherit; + } + #sb-structure-copy .sb-structure-copy-label { + color: inherit; + opacity: .75; + } + #sb-structure-copy button { + padding: 0; + border: 0; + background: none; + color: blue; + cursor: pointer; + font: inherit; + text-decoration: none; + } + #sb-structure-copy button:hover, + #sb-structure-copy button:focus { + color: red; + text-decoration: underline; + } + #sb-structure-copy button + button { + margin-left: .05rem; + } + #sb-structure-copy .sb-structure-copy-status { + margin-left: .25rem; + color: #1C8439; + font-weight: 400; + min-width: 6rem; + } + +HTML; + + echo ' +HTML; + } + + protected $translations = array( + 'cs' => array( + '' => 'Kopíruje strukturu tabulky jako Markdown, JSON, text, CSV nebo SQL', + 'Copy table as' => 'Kopírovat tabulku jako', + 'Copied' => 'Zkopírováno', + 'Copy failed' => 'Kopírování selhalo', + 'Column' => 'Sloupec', + 'Type' => 'Typ', + 'Comment' => 'Komentář', + ), + 'de' => array( + '' => 'Kopiert die Tabellenstruktur als Markdown, JSON, Text, CSV oder SQL', + 'Copy table as' => 'Tabelle kopieren als', + 'Copied' => 'Kopiert', + 'Copy failed' => 'Kopieren fehlgeschlagen', + 'Column' => 'Spalte', + 'Type' => 'Typ', + 'Comment' => 'Kommentar', + ), + 'pl' => array( + '' => 'Kopiuje strukturę tabeli jako Markdown, JSON, tekst, CSV lub SQL', + 'Copy table as' => 'Kopiuj tabelę jako', + 'Copied' => 'Skopiowano', + 'Copy failed' => 'Kopiowanie nie powiodło się', + 'Column' => 'Kolumna', + 'Type' => 'Typ', + 'Comment' => 'Komentarz', + ), + 'ro' => array( + '' => 'Copiază structura tabelului ca Markdown, JSON, text, CSV sau SQL', + 'Copy table as' => 'Copiază tabelul ca', + 'Copied' => 'Copiat', + 'Copy failed' => 'Copierea a eșuat', + 'Column' => 'Coloană', + 'Type' => 'Tip', + 'Comment' => 'Comentariu', + ), + 'ja' => array( + '' => 'テーブル構造を Markdown、JSON、テキスト、CSV、SQL でコピー', + 'Copy table as' => '形式を選択してコピー', + 'Copied' => 'コピーしました', + 'Copy failed' => 'コピーに失敗しました', + 'Column' => '列', + 'Type' => '型', + 'Comment' => 'コメント', + ), + 'hr' => array( + '' => 'Kopira strukturu tablice kao Markdown, JSON, tekst, CSV ili SQL', + 'Copy table as' => 'Kopiraj tablicu kao', + 'Copied' => 'Kopirano', + 'Copy failed' => 'Kopiranje nije uspjelo', + 'Column' => 'Stupac', + 'Type' => 'Vrsta', + 'Comment' => 'Komentar', + ), + ); +}