mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-31 23:28:34 -04:00
Add support of i18n with related patches and support "en" and "zh" locales for now
This commit is contained in:
parent
87f4d05e8e
commit
b9c59c454d
14 changed files with 400 additions and 147 deletions
|
@ -43,15 +43,15 @@
|
|||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="myModalLabel">Import from clipboard</h4>
|
||||
<h4 class="modal-title" id="myModalLabel"><%= __('Import from clipboard') %></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div contenteditable data-ph="Paste your markdown or webpage here..." id="clipboardModalContent" style="overflow:auto;max-height:50vh"></div>
|
||||
<div contenteditable data-ph="<%= __('Paste your markdown or webpage here...') %>" id="clipboardModalContent" style="overflow:auto;max-height:50vh"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
||||
<button type="button" class="btn btn-danger" id="clipboardModalClear">Clear</button>
|
||||
<button type="button" class="btn btn-primary" id="clipboardModalConfirm">Import</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal"><%= __('Cancel') %></button>
|
||||
<button type="button" class="btn btn-danger" id="clipboardModalClear"><%= __('Clear') %></button>
|
||||
<button type="button" class="btn btn-primary" id="clipboardModalConfirm"><%= __('Import') %></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -63,13 +63,13 @@
|
|||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="myModalLabel"><i class="fa fa-lock"></i> This note is locked</h4>
|
||||
<h4 class="modal-title" id="myModalLabel"><i class="fa fa-lock"></i> <%= __('This note is locked') %></h4>
|
||||
</div>
|
||||
<div class="modal-body" style="color:black;">
|
||||
<h5>Sorry, only owner can edit this note.</h5>
|
||||
<h5><%= __('Sorry, only owner can edit this note.') %></h5>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">OK</button>
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal"><%= __('OK') %></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -81,14 +81,14 @@
|
|||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="myModalLabel"><i class="fa fa-exclamation-triangle"></i> Reach the limit</h4>
|
||||
<h4 class="modal-title" id="myModalLabel"><i class="fa fa-exclamation-triangle"></i> <%= __('Reach the limit') %></h4>
|
||||
</div>
|
||||
<div class="modal-body" style="color:black;">
|
||||
<h5>Sorry, you've reached the max length this note can be.</h5>
|
||||
<strong>Please reduce the content or divide it to more notes, thank you!</strong>
|
||||
<h5><%= __("Sorry, you've reached the max length this note can be.") %></h5>
|
||||
<strong><%= __('Please reduce the content or divide it to more notes, thank you!') %></strong>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-warning" data-dismiss="modal">OK</button>
|
||||
<button type="button" class="btn btn-warning" data-dismiss="modal"><%= __('OK') %></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -107,7 +107,7 @@
|
|||
<a target="_blank" style="word-break: break-all;"></a>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">OK</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal"><%= __('OK') %></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -119,15 +119,15 @@
|
|||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="myModalLabel">Import from Gist</h4>
|
||||
<h4 class="modal-title" id="myModalLabel"><%= __('Import from Gist') %></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<input type="url" class="form-control" placeholder="Paste your gist url here... (like: https://gist.github.com/username/gistid)" id="gistImportModalContent">
|
||||
<input type="url" class="form-control" placeholder="<%= __('Paste your gist url here...') %> (like: https://gist.github.com/username/gistid)" id="gistImportModalContent">
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
||||
<button type="button" class="btn btn-danger" id="gistImportModalClear">Clear</button>
|
||||
<button type="button" class="btn btn-primary" id="gistImportModalConfirm">Import</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal"><%= __('Cancel') %></button>
|
||||
<button type="button" class="btn btn-danger" id="gistImportModalClear"><%= __('Clear') %></button>
|
||||
<button type="button" class="btn btn-primary" id="gistImportModalConfirm"><%= __('Import') %></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -139,7 +139,7 @@
|
|||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="myModalLabel">Import from Snippet</h4>
|
||||
<h4 class="modal-title" id="myModalLabel"><%= __('Import from Snippet') %></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<input type="hidden" id="snippetImportModalAccessToken" />
|
||||
|
@ -148,24 +148,24 @@
|
|||
<div style="display:table-row;margin-bottom:5px;">
|
||||
<label style="display:table-cell;">Project:</label>
|
||||
<select class="form-control" id="snippetImportModalProjects" style="display:table-cell;" disabled="disabled">
|
||||
<option value="init" selected="selected" disabled="disabled">Select From Available Projects</option>
|
||||
<option value="init" selected="selected" disabled="disabled"><%= __('Select From Available Projects') %></option>
|
||||
</select>
|
||||
</div>
|
||||
<div style="display:table-row;">
|
||||
<label style="display:table-cell;">Snippet</label>
|
||||
<select class="form-control" id="snippetImportModalSnippets" style="display:table-cell;" disabled="disabled">
|
||||
<option value="init" selected="selected" disabled="disabled">Select From Available Snippets</option>
|
||||
<option value="init" selected="selected" disabled="disabled"><%= __('Select From Available Snippets') %></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<p class="snippet-import-or">OR</p>
|
||||
<p class="snippet-import-or"><%= __('OR') %></p>
|
||||
<input type="url" class="form-control" placeholder="/projects/:id/snippets/:snippet_id" id="snippetImportModalContent" disabled="disabled">
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<span id="snippetImportModalLoading"><i class="fa fa-refresh fa-spin fa-fw"></i></span>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
||||
<button type="button" class="btn btn-danger" id="snippetImportModalClear">Clear</button>
|
||||
<button type="button" class="btn btn-primary" id="snippetImportModalConfirm" disabled="disabled">Import</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal"><%= __('Cancel') %></button>
|
||||
<button type="button" class="btn btn-danger" id="snippetImportModalClear"><%= __('Clear') %></button>
|
||||
<button type="button" class="btn btn-primary" id="snippetImportModalConfirm" disabled="disabled"><%= __('Import') %></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -177,7 +177,7 @@
|
|||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="myModalLabel">Export to Snippet</h4>
|
||||
<h4 class="modal-title" id="myModalLabel"><%= __('Export to Snippet') %></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<input type="hidden" id="snippetExportModalAccessToken" />
|
||||
|
@ -194,13 +194,13 @@
|
|||
<div style="display:table-row;margin-bottom:5px;">
|
||||
<label style="display:table-cell;">Project:</label>
|
||||
<select class="form-control" id="snippetExportModalProjects" style="display:table-cell;">
|
||||
<option value="init" selected="selected" disabled="disabled">Select From Available Projects</option>
|
||||
<option value="init" selected="selected" disabled="disabled"><%= __('Select From Available Projects') %></option>
|
||||
</select>
|
||||
</div>
|
||||
<div style="display:table-row;margin-bottom:5px;">
|
||||
<label style="display:table-cell;">Visibility:</label>
|
||||
<select class="form-control" id="snippetExportModalVisibility" style="display:table-cell;">
|
||||
<option value="" selected="selected" disabled="disabled">Select Visibility Level</option>
|
||||
<option value="" selected="selected" disabled="disabled"><%= __('Select Visibility Level') %></option>
|
||||
<option value="0">Private</option>
|
||||
<option value="10">Internal</option>
|
||||
</select>
|
||||
|
@ -209,8 +209,8 @@
|
|||
</div>
|
||||
<div class="modal-footer">
|
||||
<span id="snippetExportModalLoading"><i class="fa fa-refresh fa-spin fa-fw"></i></span>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
||||
<button type="button" class="btn btn-primary" id="snippetExportModalConfirm">Export</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal"><%= __('Cancel') %></button>
|
||||
<button type="button" class="btn btn-primary" id="snippetExportModalConfirm"><%= __('Export') %></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue