mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 15:31:00 +00:00
Merge pull request #100 from pierotofy/logo
Logo, move LibreTranslate org
This commit is contained in:
commit
38a846704a
5 changed files with 103 additions and 11 deletions
|
@ -162,10 +162,10 @@ This is a list of online resources that serve the LibreTranslate API. Some requi
|
|||
|
||||
URL |API Key Required|Contact|Cost
|
||||
--- | --- | --- | ---
|
||||
[https://libretranslate.com](libretranslate.com)|:heavy_check_mark:|[https://uav4geo.com/contact](UAV4GEO)| $9 / month
|
||||
[https://libretranslate.de/](libretranslate.de)|-|-
|
||||
[https://translate.mentality.rip](translate.mentality.rip)|-|-
|
||||
[https://translate.astian.org/](translate.astian.org)|-|-
|
||||
[libretranslate.com](https://libretranslate.com)|:heavy_check_mark:|[UAV4GEO](https://uav4geo.com/contact)| $9 / month
|
||||
[libretranslate.de](https://libretranslate.de/)|-|-
|
||||
[translate.mentality.rip](https://translate.mentality.rip)|-|-
|
||||
[translate.astian.org](https://translate.astian.org/)|-|-
|
||||
|
||||
|
||||
## Roadmap
|
||||
|
@ -176,6 +176,7 @@ Help us by opening a pull request!
|
|||
- [x] Auto-detect input language (thanks [@vemonet](https://github.com/vemonet) !)
|
||||
- [X] User authentication / tokens
|
||||
- [ ] Language bindings for every computer language
|
||||
- [ ] [Improved translations](https://github.com/argosopentech/argos-parallel-corpus)
|
||||
|
||||
## FAQ
|
||||
|
||||
|
|
|
@ -143,6 +143,14 @@ h3.header {
|
|||
justify-content: center;
|
||||
}
|
||||
|
||||
#logo-container{
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.logo{
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.language-select {
|
||||
}
|
||||
|
|
2
app/static/css/main.min.css
vendored
2
app/static/css/main.min.css
vendored
|
@ -1 +1 @@
|
|||
h3.header{margin-bottom:2.5rem}.mb-0{margin-bottom:0!important}.mt-0{margin-top:0!important}.position-relative{position:relative}.language-select{display:inline-flex;align-items:center;justify-content:flex-start}.language-select select{border:none;width:auto;cursor:pointer;font-weight:600;text-decoration:underline;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:"";padding:0;height:2rem}.btn-switch-language{color:#000;margin-left:-1.5rem;margin-right:1rem}.textarea-container{margin-top:0;position:relative}.btn-delete-text{position:absolute;right:1.5rem;top:.75rem;border:0;background:0 0;padding:0;cursor:pointer;color:#777}.btn-copy-translated:focus,.btn-delete-text:focus{background:0 0!important}.characters-limit-container{position:absolute;right:2rem;bottom:1rem;color:#777;pointer-events:none}.btn-copy-translated{position:absolute;right:2.75rem;bottom:1rem;display:flex;align-items:center;color:#777;font-size:.85rem;background:0 0;border:none;cursor:pointer;margin-right:-1.5rem}.btn-copy-translated span{padding-right:.5rem}.btn-copy-translated .material-icons{font-size:1.35rem}.progress{background-color:#f3f3f3}.progress.translate{position:absolute}.progress .indeterminate{background-color:#4682b4}.textarea-container textarea{font-size:1.25rem;resize:none;border:1px solid #ccc;background:#f3f3f3;padding:1rem 2rem 1rem 1.5rem;overflow-y:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.code{font-size:90%;padding:1rem 1.5rem;border:1px solid #ccc;background:#fbfbfb;overflow:auto;font-family:monospace;min-height:280px;width:100%;overflow:auto}.page-footer .footer-copyright{justify-content:center}@media (max-width:760px){.language-select select{text-align:center;margin:auto}.language-select span{display:none}}
|
||||
h3.header{margin-bottom:2.5rem}.mb-0{margin-bottom:0!important}.mt-0{margin-top:0!important}.position-relative{position:relative}.language-select{display:inline-flex;align-items:center;justify-content:flex-start}.language-select select{border:none;width:auto;cursor:pointer;font-weight:600;text-decoration:underline;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:"";padding:0;height:2rem}.btn-switch-language{color:#000;margin-left:-1.5rem;margin-right:1rem}.textarea-container{margin-top:0;position:relative}.btn-delete-text{position:absolute;right:1.5rem;top:.75rem;border:0;background:0 0;padding:0;cursor:pointer;color:#777}.btn-copy-translated:focus,.btn-delete-text:focus{background:0 0!important}.characters-limit-container{position:absolute;right:2rem;bottom:1rem;color:#777;pointer-events:none}.btn-copy-translated{position:absolute;right:2.75rem;bottom:1rem;display:flex;align-items:center;color:#777;font-size:.85rem;background:0 0;border:none;cursor:pointer;margin-right:-1.5rem}.btn-copy-translated span{padding-right:.5rem}.btn-copy-translated .material-icons{font-size:1.35rem}.progress{background-color:#f3f3f3}.progress.translate{position:absolute}.progress .indeterminate{background-color:#4682b4}.textarea-container textarea{font-size:1.25rem;resize:none;border:1px solid #ccc;background:#f3f3f3;padding:1rem 2rem 1rem 1.5rem;overflow-y:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.code{font-size:90%;padding:1rem 1.5rem;border:1px solid #ccc;background:#fbfbfb;overflow:auto;font-family:monospace;min-height:280px;width:100%;overflow:auto}.page-footer .footer-copyright{justify-content:center}#logo-container{height:100%}.logo{height:32px}@media (max-width:760px){.language-select select{text-align:center;margin:auto}.language-select span{display:none}}
|
83
app/static/icon.svg
Normal file
83
app/static/icon.svg
Normal file
|
@ -0,0 +1,83 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="187.04305"
|
||||
height="188.81523"
|
||||
viewBox="0 0 49.488472 49.957363"
|
||||
version="1.1"
|
||||
id="svg8">
|
||||
<defs
|
||||
id="defs2">
|
||||
<rect
|
||||
x="25.162016"
|
||||
y="84.327377"
|
||||
width="71.115189"
|
||||
height="52.835255"
|
||||
id="rect835" />
|
||||
<rect
|
||||
x="25.162016"
|
||||
y="84.327377"
|
||||
width="71.115189"
|
||||
height="52.835255"
|
||||
id="rect835-7" />
|
||||
<rect
|
||||
x="25.162016"
|
||||
y="84.327377"
|
||||
width="71.115189"
|
||||
height="52.835255"
|
||||
id="rect874" />
|
||||
<rect
|
||||
x="25.162016"
|
||||
y="84.327377"
|
||||
width="71.115189"
|
||||
height="52.835255"
|
||||
id="rect923" />
|
||||
</defs>
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
transform="translate(-23.040803,-26.932047)">
|
||||
<g
|
||||
id="g861"
|
||||
transform="translate(-42.114518,-17.993737)"
|
||||
style="fill:#ffffff">
|
||||
<g
|
||||
aria-label="众"
|
||||
transform="matrix(4.3205134,0,0,4.3205134,-37.271798,-327.6536)"
|
||||
id="text833"
|
||||
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect835);fill:#ffffff;fill-opacity:1;stroke:none">
|
||||
<path
|
||||
d="m 34.996103,90.121035 -0.614947,0.759641 q -2.754346,-1.41593 -3.948067,-2.950715 -1.167884,1.617467 -3.7672,2.888703 L 26.0096,90.084861 q 3.457142,-1.601964 4.283963,-3.849882 l 0.878496,0.273884 q -0.175699,0.516763 -0.232543,0.604613 1.116207,1.596797 4.056587,3.007559 z m 0.165364,4.91958 -0.676959,0.645954 q -1.514115,-1.157549 -2.346102,-2.826692 -0.547769,1.550288 -2.268589,2.806021 l -0.676959,-0.625283 q 1.19889,-0.795814 1.798334,-1.875848 0.599445,-1.080034 0.682127,-3.079906 l 0.909502,0.07751 q 0,0.268716 -0.04134,0.671791 l -0.03617,0.361734 q 0,0.273884 0.30489,1.033525 0.310058,0.754474 0.899167,1.467606 0.594277,0.707965 1.452103,1.343583 z m -4.800725,-1.374588 -0.702797,0.63045 q -0.594277,-0.780312 -1.162716,-1.276404 -0.651121,1.421098 -2.020542,2.676831 l -0.687295,-0.614948 q 1.229895,-1.095537 1.767329,-2.201409 0.5426,-1.105872 0.697629,-2.795686 l 0.919838,0.09819 q -0.103353,0.940508 -0.366902,1.91719 1.00252,0.862993 1.555456,1.565791 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Adobe Garamond Pro';-inkscape-font-specification:'Adobe Garamond Pro Bold';fill:#ffffff"
|
||||
id="path961" />
|
||||
</g>
|
||||
<g
|
||||
aria-label="L"
|
||||
id="text841"
|
||||
style="font-style:normal;font-weight:normal;font-size:43.3964px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.08492">
|
||||
<path
|
||||
d="M 84.81389,94.883148 V 91.324643 H 69.191186 V 63.247172 h -4.035865 v 31.635976 z"
|
||||
style="fill:#ffffff;stroke-width:1.08492"
|
||||
id="path964" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
id="g921"
|
||||
transform="translate(29.198135,-14.725175)" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.5 KiB |
|
@ -38,11 +38,11 @@
|
|||
<nav class="blue lighten-1" role="navigation">
|
||||
<div class="nav-wrapper container">
|
||||
<a id="logo-container" href="/" class="brand-logo">
|
||||
<i class="material-icons">translate</i> LibreTranslate
|
||||
<img src="{{ url_for('static', filename='icon.svg') }}" class="logo"> LibreTranslate
|
||||
</a>
|
||||
<ul class="right hide-on-med-and-down">
|
||||
<li><a href="/docs">API Docs</a></li>
|
||||
<li><a href="https://github.com/uav4geo/LibreTranslate" rel="noopener noreferrer">GitHub</a></li>
|
||||
<li><a href="https://github.com/LibreTranslate/LibreTranslate" rel="noopener noreferrer">GitHub</a></li>
|
||||
{% if api_keys %}
|
||||
<li><a href="javascript:setApiKey()" title="Set API Key"><i class="material-icons">vpn_key</i></a></li>
|
||||
{% endif %}
|
||||
|
@ -50,7 +50,7 @@
|
|||
|
||||
<ul id="nav-mobile" class="sidenav">
|
||||
<li><a href="/docs">API Docs</a></li>
|
||||
<li><a href="https://github.com/uav4geo/LibreTranslate" rel="noopener noreferrer">GitHub</a></li>
|
||||
<li><a href="https://github.com/LibreTranslate/LibreTranslate" rel="noopener noreferrer">GitHub</a></li>
|
||||
{% if api_keys %}
|
||||
<li><a href="javascript:setApiKey()" title="Set API Key"><i class="material-icons">vpn_key</i></a></li>
|
||||
{% endif %}
|
||||
|
@ -194,7 +194,7 @@
|
|||
<div class="col s12 m12">
|
||||
<h3 class="header">Open Source Machine Translation</h3>
|
||||
<h4 class="header">100% Self-Hosted. No Limits. No Ties to Proprietary Services.</h4>
|
||||
<br/><a class="waves-effect waves-light btn btn-large" href="https://github.com/uav4geo/LibreTranslate" rel="noopener noreferrer"><i class="material-icons left">cloud_download</i> Download</a>
|
||||
<br/><a class="waves-effect waves-light btn btn-large" href="https://github.com/LibreTranslate/LibreTranslate" rel="noopener noreferrer"><i class="material-icons left">cloud_download</i> Download</a>
|
||||
<br/><br/><br/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -214,7 +214,7 @@
|
|||
<p><a class="grey-text text-lighten-4" href="/javascript-licenses" rel="jslicense">JavaScript license information</a></p>
|
||||
{% if web_version %}
|
||||
<p>
|
||||
The public API on libretranslate.com should be used for testing, personal or infrequent use. If you're going to run an application in production, please <a href="https://github.com/uav4geo/LibreTranslate" class="grey-text text-lighten-4" style="text-decoration: underline;" rel="noopener noreferrer">host your own server</a> or <a class="grey-text text-lighten-4" href="https://uav4geo.com/contact" style="text-decoration: underline;" rel="noopener noreferrer">get in touch</a> to obtain an API key.
|
||||
This public API should be used for testing, personal or infrequent use. If you're going to run an application in production, please <a href="https://github.com/LibreTranslate/LibreTranslate" class="grey-text text-lighten-4" style="text-decoration: underline;" rel="noopener noreferrer">host your own server</a> or <a class="grey-text text-lighten-4" href="https://github.com/LibreTranslate/LibreTranslate#mirrors" style="text-decoration: underline;" rel="noopener noreferrer">get an API key</a>.
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
@ -222,7 +222,7 @@
|
|||
</div>
|
||||
<div class="footer-copyright center">
|
||||
<p>
|
||||
Made with ❤ by <a class="grey-text text-lighten-3" href="https://uav4geo.com" rel="noopener noreferrer">UAV4GEO</a> and powered by <a class="grey-text text-lighten-3" href="https://github.com/argosopentech/argos-translate/" rel="noopener noreferrer">Argos Translate</a>
|
||||
Made with ❤ by <a class="grey-text text-lighten-3" href="https://github.com/LibreTranslate/LibreTranslate/graphs/contributors" rel="noopener noreferrer">LibreTranslate Contributors</a> and powered by <a class="grey-text text-lighten-3" href="https://github.com/argosopentech/argos-translate/" rel="noopener noreferrer">Argos Translate</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
Loading…
Reference in a new issue