mirror of
https://github.com/filegator/filegator.git
synced 2025-08-30 06:39:53 +02:00
331 lines
13 KiB
HTML
331 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>FileGator - Documentation</title>
|
|
|
|
<link rel="stylesheet" href="https://docs.filegator.io/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="https://docs.filegator.io/css/font-awesome.min.css">
|
|
<link rel="stylesheet" href="https://docs.filegator.io/css/highlight.tomorrow-night.css">
|
|
<link rel="stylesheet" href="https://docs.filegator.io/css/main.css">
|
|
</head>
|
|
<body>
|
|
|
|
<header class="navbar navbar-default navbar-fixed-top">
|
|
|
|
<a class="navbar-brand" href="https://docs.filegator.io/">
|
|
FileGator
|
|
<small class="hidden-xs hidden-sm">
|
|
Documentation
|
|
</small>
|
|
</a>
|
|
|
|
</header>
|
|
|
|
<main class="container-fluid">
|
|
<div class="row">
|
|
|
|
|
|
<nav id="sidebar" class="col-sm-3 col-lg-2" role="navigation">
|
|
|
|
<p class="text-muted">
|
|
Getting Started
|
|
</p>
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
|
<li class="">
|
|
<a href="https://docs.filegator.io/index.html">
|
|
What is FileGator
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="https://docs.filegator.io/install.html">
|
|
Installation
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="https://docs.filegator.io/accounts.html">
|
|
Users
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="https://docs.filegator.io/development.html">
|
|
Development
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<p class="text-muted">
|
|
Configuration
|
|
</p>
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
|
<li class="">
|
|
<a href="https://docs.filegator.io/configuration/basic.html">
|
|
Basic
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="https://docs.filegator.io/configuration/auth.html">
|
|
Auth
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="https://docs.filegator.io/configuration/session.html">
|
|
Session
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="https://docs.filegator.io/configuration/storage.html">
|
|
Storage
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="https://docs.filegator.io/configuration/logging.html">
|
|
Logging
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="https://docs.filegator.io/configuration/security.html">
|
|
Security
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="https://docs.filegator.io/configuration/router.html">
|
|
Router
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="https://docs.filegator.io/configuration/tmpfs.html">
|
|
Tmpfs
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<p class="text-muted">
|
|
Languages
|
|
</p>
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
|
<li class="active">
|
|
<a href="https://docs.filegator.io/translations/default.html">
|
|
Translations
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
|
|
<section class="col-sm-offset-3 col-lg-offset-2 col-sm-9 col-lg-10">
|
|
<h2 id="translations">Translations</h2>
|
|
<p>Language is configured by adjusting the <code>language</code> variable in your <code>configuration.php</code> file.</p>
|
|
<p>Available languages:</p>
|
|
<ul>
|
|
<li><code>english</code> (default)</li>
|
|
<li><code>spanish</code></li>
|
|
<li><code>german</code></li>
|
|
<li><code>indonesian</code></li>
|
|
<li><code>turkish</code></li>
|
|
<li><code>lithuanian</code></li>
|
|
<li><code>portuguese</code></li>
|
|
<li><code>dutch</code></li>
|
|
<li><code>chinese</code> (simplified)</li>
|
|
<li><code>bulgarian</code></li>
|
|
<li><code>serbian</code></li>
|
|
<li><code>french</code></li>
|
|
<li><code>slovak</code></li>
|
|
<li><code>polish</code></li>
|
|
<li><code>italian</code></li>
|
|
<li><code>korean</code></li>
|
|
<li><code>czech</code></li>
|
|
<li><code>galician</code></li>
|
|
<li><code>russian</code></li>
|
|
<li><code>hungarian</code></li>
|
|
<li><code>swedish</code></li>
|
|
<li><code>japanese</code></li>
|
|
<li><code>slovenian</code></li>
|
|
<li><code>hebrew</code></li>
|
|
<li><code>romanian</code></li>
|
|
<li><code>arabic</code> (see <a href="https://docs.filegator.io/translations/default.html#rtl-support">https://docs.filegator.io/translations/default.html#rtl-support</a>)</li>
|
|
<li><code>portuguese_br</code> (brazilian portuguese pt-BR)</li>
|
|
<li><code>persian</code></li>
|
|
<li><code>estonian</code></li>
|
|
<li><code>ukrainian</code></li>
|
|
</ul>
|
|
<p>Please help us translating FileGator to your language by submitting a Pull Request on GitHub.</p>
|
|
<h2 id="how-to-translate">How to translate</h2>
|
|
<p>First, you must setup the project like described in the 'Development' section. Default language file is located under <code>frontend/translations/english.js</code> You can add more languages in the same folder. Once your language file is in place, it needs to be added to <code>frontend/mixins/shared.js</code>. After this, recompile everything with <code>npm run build</code> and then you can use it by adjusting the <code>language</code> variable in your <code>configuration.php</code> file.</p>
|
|
<p>You should only translate value on the right, for example:</p>
|
|
<pre><code>'Close': 'Schliessen',</code></pre>
|
|
<p>Default language file:</p>
|
|
<pre><code>const data = {
|
|
'Selected': 'Selected: {0} of {1}',
|
|
'Uploading files': 'Uploading {0}% of {1}',
|
|
'File size error': '{0} is too large, please upload files less than {1}',
|
|
'Upload failed': '{0} failed to upload',
|
|
'Per page': '{0} Per Page',
|
|
'Folder': 'Folder',
|
|
'Login failed, please try again': 'Login failed, please try again',
|
|
'Already logged in': 'Already logged in.',
|
|
'Please enter username and password': 'Please enter username and password.',
|
|
'Not Found': 'Not Found',
|
|
'Not Allowed': 'Not Allowed',
|
|
'Please log in': 'Please log in',
|
|
'Unknown error': 'Unknown error',
|
|
'Add files': 'Add files',
|
|
'New': 'New',
|
|
'New name': 'New name',
|
|
'Username': 'Username',
|
|
'Password': 'Password',
|
|
'Login': 'Log in',
|
|
'Logout': 'Log out',
|
|
'Profile': 'Profile',
|
|
'No pagination': 'No pagination',
|
|
'Time': 'Time',
|
|
'Name': 'Name',
|
|
'Size': 'Size',
|
|
'Home': 'Home',
|
|
'Copy': 'Copy',
|
|
'Move': 'Move',
|
|
'Rename': 'Rename',
|
|
'Required': 'Please fill out this field',
|
|
'Zip': 'Zip',
|
|
'Batch Download': 'Batch Download',
|
|
'Unzip': 'Unzip',
|
|
'Delete': 'Delete',
|
|
'Download': 'Download',
|
|
'Copy link': 'Copy link',
|
|
'Done': 'Done',
|
|
'File': 'File',
|
|
'Drop files to upload': 'Drop files to upload',
|
|
'Close': 'Close',
|
|
'Select Folder': 'Select Folder',
|
|
'Users': 'Users',
|
|
'Files': 'Files',
|
|
'Role': 'Role',
|
|
'Cancel': 'Cancel',
|
|
'Paused': 'Paused',
|
|
'Confirm': 'Confirm',
|
|
'Create': 'Create',
|
|
'User': 'User',
|
|
'Admin': 'Admin',
|
|
'Save': 'Save',
|
|
'Read': 'Read',
|
|
'Write': 'Write',
|
|
'Upload': 'Upload',
|
|
'Permissions': 'Permissions',
|
|
'Homedir': 'Home Folder',
|
|
'Leave blank for no change': 'Leave blank for no change',
|
|
'Are you sure you want to do this?': 'Are you sure you want to do this?',
|
|
'Are you sure you want to allow access to everyone?': 'Are you sure you want to allow access to everyone?',
|
|
'Are you sure you want to stop all uploads?': 'Are you sure you want to stop all uploads?',
|
|
'Something went wrong': 'Something went wrong',
|
|
'Invalid directory': 'Invalid directory',
|
|
'This field is required': 'This field is required',
|
|
'Username already taken': 'Username already taken',
|
|
'User not found': 'User not found',
|
|
'Old password': 'Old password',
|
|
'New password': 'New password',
|
|
'Wrong password': 'Wrong password',
|
|
'Updated': 'Updated',
|
|
'Deleted': 'Deleted',
|
|
'Your file is ready': 'Your file is ready',
|
|
'View': 'View',
|
|
}
|
|
|
|
export default data
|
|
</code></pre>
|
|
<h2 id="rtl-support">RTL support</h2>
|
|
<p>Thanks to @yaniv1983 who provided these RTL tweaks for hebrew language in <a href="https://github.com/filegator/filegator/issues/301">#301</a>.</p>
|
|
<p>To enable RTL support, simply add this to your configuration.php 'add_to_head' section:</p>
|
|
<pre><code><style>
|
|
body {
|
|
direction: rtl;
|
|
color: #000000;
|
|
}
|
|
.search-btn[data-v-081c0a81] {
|
|
margin-left: 10px;
|
|
margin-right: unset;
|
|
}
|
|
#multi-actions a[data-v-081c0a81] {
|
|
margin: 0 0 15px 15px;
|
|
}
|
|
.dropdown .dropdown-menu .has-link a, a.dropdown-item, button.dropdown-item {
|
|
padding-left: 3rem;
|
|
padding-right: unset;
|
|
text-align: right;
|
|
}
|
|
table td:not([align]), table th:not([align]) {
|
|
text-align: right;
|
|
}
|
|
.b-table .table th .th-wrap .icon {
|
|
margin-left: 0;
|
|
margin-right: .5rem;
|
|
font-size: 1rem;
|
|
}
|
|
.b-table .table th .th-wrap.is-numeric {
|
|
flex-direction: unset;
|
|
text-align: right;
|
|
}
|
|
.progress-icon[data-v-07f55d0a] {
|
|
margin-right: 15px;
|
|
margin-left: unset;
|
|
}
|
|
.progress-items[data-v-07f55d0a] {
|
|
overflow-y: hidden;
|
|
margin-left: -100px;
|
|
padding-left: 100px;
|
|
max-height: 300px;
|
|
margin-right: unset;
|
|
padding-right: unset;
|
|
}
|
|
.navbar-burger {
|
|
margin-left: unset;
|
|
margin-right: auto;
|
|
}
|
|
@media screen and (min-width: 1024px) {
|
|
.navbar-end {
|
|
justify-content: flex-end;
|
|
margin-right: auto;
|
|
margin-left: unset;
|
|
}}
|
|
@media (min-width: 1088px) {
|
|
.logo img[data-v-cd57c856] {
|
|
max-height: 3.5rem !important;
|
|
}}
|
|
</style></code></pre>
|
|
</section>
|
|
|
|
</div>
|
|
</main>
|
|
|
|
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
|
|
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
|
|
<script src="//yandex.st/highlightjs/7.5/highlight.min.js"></script>
|
|
|
|
<script>
|
|
$(function() {
|
|
$("section>h1").wrap('<div class="page-header" />');
|
|
// Syntax highlighting
|
|
hljs.initHighlightingOnLoad();
|
|
});
|
|
</script>
|
|
|
|
<!-- Ticksel analytics v1.0 -->
|
|
<script type="text/javascript">
|
|
var _tcfg = _tcfg || [];
|
|
(function() {
|
|
_tcfg.push(["tags", "filegator-io,filegator-io-docs"]);
|
|
var u="https://a.interactive32.com/js/safetick.js"; _tcfg.push(["account_id", 8348834]);
|
|
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0];
|
|
g.type="text/javascript"; g.async=true; g.src=u; g.setAttribute("crossorigin", "anonymous");
|
|
s.parentNode.insertBefore(g,s);
|
|
})();
|
|
</script>
|
|
<noscript><img src="https://a.interactive32.com/beam?account_id=8348834&referrer=&tags=filegator-io,filegator-io-docs" style="border:0;" width="0" height="0" alt="" /></noscript>
|
|
<!-- End Ticksel Code -->
|
|
|
|
</body>
|
|
</html>
|