зеркало из https://github.com/mozilla/pontoon.git
Shorten pontoon.js URL
This commit is contained in:
Родитель
7e6bdda442
Коммит
f81c606bcb
|
@ -4,7 +4,7 @@ Pontoon is a live website localization tool. Instead of extracting original stri
|
|||
|
||||
This enables localizers to translate websites in-place with context and spatial limitations right in front of them. A full list of extracted strings is also available, to help with strings that are hard to reach, e.g. error messages and the `<title>` tag.
|
||||
|
||||
To enable localization of your site with Pontoon, simply include the script located at `/static/js/project/pontoon.js` to overcome cross frame scripting, and Pontoon will autodetect strings. Or, to make the best out of Pontoon, fully prepare your site with hooks that will mark strings for localization and include all the neccessary tags.
|
||||
To enable localization of your site with Pontoon, simply include the script located at `/static/pontoon.js` to overcome cross frame scripting, and Pontoon will autodetect strings. Or, to make the best out of Pontoon, fully prepare your site with hooks that will mark strings for localization and include all the neccessary tags.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
|
|
@ -77,6 +77,6 @@ class Pontoon
|
|||
.'/>'."\n";
|
||||
|
||||
$url = $GLOBALS["path"] ? $GLOBALS["path"] : "http://localhost:8000/";
|
||||
echo '<script src="'.$url.'static/js/project/pontoon.js"></script>'."\n";
|
||||
echo '<script src="'.$url.'static/pontoon.js"></script>'."\n";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -619,7 +619,7 @@ _tag.dcsCollect();
|
|||
|
||||
<!-- Pontoon -->
|
||||
<!-- TODO: change hardcoded URL -->
|
||||
<script src="http://localhost:8000/en-US/static/js/project/pontoon.js"></script>
|
||||
<script src="http://localhost:8000/en-US/static/pontoon.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
$('#demo').attr('href', '/locale/de/url/' + l.protocol + '//' + l.hostname + '/pontoon/hooks/php/test/testpilot/');
|
||||
|
||||
// Set include script URL
|
||||
$("#install code").html('<script src="' + base + 'static/js/project/pontoon.js"></script>');
|
||||
$("#install code").html('<script src="' + base + 'static/pontoon.js"></script>');
|
||||
|
||||
// Translate
|
||||
if (locale && url) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче