localized upload tool (cs, en)

box-drawing
Ondřej Hruška 7 years ago
parent f080dcc55f
commit 2bd167304c
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 15
      lang/cs.php
  2. 15
      lang/en.php
  3. 28
      pages/term.php
  4. 2
      sass/pages/_term.scss

@ -88,6 +88,18 @@ return [
'cursor.bar_blink' => 'Svislice, blikající', 'cursor.bar_blink' => 'Svislice, blikající',
'cursor.bar_steady' => 'Svislice, stálá', 'cursor.bar_steady' => 'Svislice, stálá',
// Text upload dialog
'upload.title' => 'Upload textu',
'upload.prompt' => 'Načíst ze souboru:',
'upload.endings' => 'Konce řádku:',
'upload.endings.cr' => 'CR (klávesa Enter)',
'upload.endings.crlf' => 'CR LF (Windows)',
'upload.endings.lf' => 'LF (Linux)',
'upload.chunk_delay' => 'Prodleva (ms):',
'upload.chunk_size' => 'Délka úseku (0=řádek):',
'upload.progress' => 'Proběh:',
// Network config page // Network config page
'net.explain_sta' => ' 'net.explain_sta' => '
@ -247,10 +259,13 @@ return [
// Generic button / dialog labels // Generic button / dialog labels
'apply' => 'Uložit!', 'apply' => 'Uložit!',
'start' => 'Start',
'cancel' => 'Zrušit',
'enabled' => 'Zapnuto', 'enabled' => 'Zapnuto',
'disabled' => 'Vypnuto', 'disabled' => 'Vypnuto',
'yes' => 'Ano', 'yes' => 'Ano',
'no' => 'Ne', 'no' => 'Ne',
'confirm' => 'OK', 'confirm' => 'OK',
'copy' => 'Kopírovat',
'form_errors' => 'Neplatné hodnoty:', 'form_errors' => 'Neplatné hodnoty:',
]; ];

@ -87,6 +87,18 @@ return [
'cursor.bar_blink' => 'I-bar, blinking', 'cursor.bar_blink' => 'I-bar, blinking',
'cursor.bar_steady' => 'I-bar, steady', 'cursor.bar_steady' => 'I-bar, steady',
// Text upload dialog
'upload.title' => 'Text Upload',
'upload.prompt' => 'Load a text file:',
'upload.endings' => 'Line endings:',
'upload.endings.cr' => 'CR (Enter key)',
'upload.endings.crlf' => 'CR LF (Windows)',
'upload.endings.lf' => 'LF (Linux)',
'upload.chunk_delay' => 'Chunk delay (ms):',
'upload.chunk_size' => 'Chunk size (0=line):',
'upload.progress' => 'Upload:',
// Network config page // Network config page
'net.explain_sta' => ' 'net.explain_sta' => '
@ -247,10 +259,13 @@ return [
// Generic button / dialog labels // Generic button / dialog labels
'apply' => 'Apply!', 'apply' => 'Apply!',
'start' => 'Start',
'cancel' => 'Cancel',
'enabled' => 'Enabled', 'enabled' => 'Enabled',
'disabled' => 'Disabled', 'disabled' => 'Disabled',
'yes' => 'Yes', 'yes' => 'Yes',
'no' => 'No', 'no' => 'No',
'confirm' => 'OK', 'confirm' => 'OK',
'copy' => 'Copy',
'form_errors' => 'Validation errors for:', 'form_errors' => 'Validation errors for:',
]; ];

@ -13,45 +13,45 @@
<div class="Modal light hidden" id="fu_modal"> <div class="Modal light hidden" id="fu_modal">
<div id="fu_form" class="Dialog"> <div id="fu_form" class="Dialog">
<div class="fu-content"> <div class="fu-content">
<h2>Text Upload</h2> <h2><?= tr('upload.title') ?></h2>
<p> <p>
<label for="fu_file">Load a text file:</label> <label for="fu_file"><?= tr('upload.prompt') ?></label>
<input type="file" id="fu_file" accept="text/*" /><br> <input type="file" id="fu_file" accept="text/*" /><br>
<textarea id="fu_text"></textarea> <textarea id="fu_text"></textarea>
</p> </p>
<p> <p>
<label for="fu_crlf">Line endings:</label> <label for="fu_crlf"><?= tr('upload.endings') ?></label>
<select id="fu_crlf"> <select id="fu_crlf">
<option value="CR">CR (Enter key)</option> <option value="CR"><?= tr('upload.endings.cr') ?></option>
<option value="CRLF">CR LF (Windows)</option> <option value="CRLF"><?= tr('upload.endings.crlf') ?></option>
<option value="LF">LF (Linux)</option> <option value="LF"><?= tr('upload.endings.lf') ?></option>
</select> </select>
</p> </p>
<p> <p>
<label for="fu_delay">Chunk delay (ms):</label> <label for="fu_delay"><?= tr('upload.chunk_delay') ?></label>
<input id="fu_delay" type="number" value=1 min=0> <input id="fu_delay" type="number" value=1 min=0>
</p> </p>
<p> <p>
<label for="fu_chunk">Chunk size (0=line):</label> <label for="fu_chunk"><?= tr('upload.chunk_size') ?></label>
<input id="fu_chunk" type="number" value=0 min=0 max=100> <input id="fu_chunk" type="number" value=0 min=0 max=100>
</p> </p>
</div> </div>
<div class="fu-buttons"> <div class="fu-buttons">
<button id="term-fu-start" class="icn-ok x-fu-go">Start</button>&nbsp; <button id="term-fu-start" class="icn-ok x-fu-go"><?= tr('start') ?></button>&nbsp;
<button id="term-fu-close" class="icn-cancel x-fu-cancel">Cancel</button>&nbsp; <button id="term-fu-close" class="icn-cancel x-fu-cancel"><?= tr('cancel') ?></button>&nbsp;
<i class="fu-prog-box">Upload: <span id="fu_prog"></span></i> <i class="fu-prog-box"><?= tr('upload.progress') ?> <span id="fu_prog"></span></i>
</div> </div>
</div> </div>
</div> </div>
<h1 id="screen-title"><!-- Screen title is loaded here by JS --></h1> <h1 id="screen-title"><!-- JS, title --></h1>
<a href="#" id="term-fit-screen" class="mq-tablet-max"><i id="resize-button-icon" class="icn-resize-small"></i></a> <a href="#" id="term-fit-screen" class="mq-tablet-max"><i id="resize-button-icon" class="icn-resize-small"></i></a>
<div id="term-wrap"> <div id="term-wrap">
<div id="screen"> <div id="screen">
<input id="softkb-input" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /> <input id="softkb-input" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
<div id="touch-select-menu"> <div id="touch-select-menu">
<button id="touch-select-copy-btn">Copy</button> <button id="touch-select-copy-btn"><?= tr('copy') ?></button>
</div> </div>
<div class="screen-margin top"></div> <div class="screen-margin top"></div>
<div class="screen-margin left"></div> <div class="screen-margin left"></div>
@ -59,7 +59,7 @@
<div class="screen-margin bottom"></div> <div class="screen-margin bottom"></div>
</div> </div>
<div id="action-buttons"></div> <div id="action-buttons"><!-- JS, buttons --></div>
</div> </div>
<nav id="term-nav"> <nav id="term-nav">

@ -206,7 +206,7 @@ body.term {
z-index: 1000; z-index: 1000;
label { label {
width: 10em; width: 12em;
display: inline-block; display: inline-block;
} }

Loading…
Cancel
Save