This commit is contained in:
Matjaž Horvat 2012-07-19 00:46:09 +02:00
Родитель 7e6bdda442
Коммит f81c606bcb
5 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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('&lt;script src="' + base + 'static/js/project/pontoon.js"&gt;&lt;/script&gt;');
$("#install code").html('&lt;script src="' + base + 'static/pontoon.js"&gt;&lt;/script&gt;');
// Translate
if (locale && url) {