Permalink
Browse files

Use https for translation links, fix http links in readme (#816)

  • Loading branch information...
flodolo committed Sep 28, 2016
1 parent 17373b2 commit 2e4d529658257faf809b07f2ee47bea888724b08
Showing with 6 additions and 6 deletions.
  1. +2 −2 README.md
  2. +2 −2 app/classes/Transvision/ShowResults.php
  3. +2 −2 app/views/results_entities.php
View
@@ -48,7 +48,7 @@ eslint web/js
2. Clone your fork to your machine.
3. Copy `app/config/config.ini-dist` to `app/config/config.ini` and adapt the variables to your system.
4. Run first `app/scripts/setup.sh`, then `app/scripts/glossaire.sh`. This process will take some time as it downloads the source code for all Mozilla products (~20GB of data).
-5. Install Composer (Dependency Manager for PHP, http://getcomposer.org/) and run `php composer.phar install` (or "composer install" if installed globally) inside the web folder.
+5. Install Composer (Dependency Manager for PHP, https://getcomposer.org/) and run `php composer.phar install` (or "composer install" if installed globally) inside the web folder.
6. You can run Transvision in your local machine either with the ```start.sh``` script or with ```php -S localhost:8082 -t web/ app/inc/router.php``` and opening http://localhost:8082/ with your browser. To bound PHP internal web server to 0.0.0.0 use ```start.sh -remote```: server will be accessible from other devices in the LAN, or from the host machine in case Transvision is running inside a virtual machine.
## Snapshot installation (regular development)
@@ -76,6 +76,6 @@ MPL 2
[Create a new issue on github]: https://github.com/mozfr/transvision/issues
[Transvision classes]: https://transvision-beta.mozfr.org/docs
[Transvision Project]: https://github.com/mozfr/transvision
-[phpDocumentor]: http://phpdoc.org/
+[phpDocumentor]: https://phpdoc.org/
[npm]: https://www.npmjs.com
[Coding Standards]:https://github.com/mozfr/transvision/wiki/Code-conventions
@@ -388,11 +388,11 @@ public static function resultsTable($search_object, $search_results, $page)
} else {
$meta_source = "
<span>Translate with:</span>
- <a href='http://translate.google.com/#{$locale1_short_code}/{$locale2_short_code}/"
+ <a href='https://translate.google.com/#{$locale1_short_code}/{$locale2_short_code}/"
// We use html_entity_decode twice because we can have strings as &amp;amp; stored
. urlencode(strip_tags(html_entity_decode(html_entity_decode($source_string))))
. "' target='_blank'>Google</a>
- <a href='http://www.bing.com/translator/?from={$locale1_short_code}&to={$locale2_short_code}&text="
+ <a href='https://www.bing.com/translator/?from={$locale1_short_code}&to={$locale2_short_code}&text="
. urlencode(strip_tags(html_entity_decode(html_entity_decode($source_string))))
. "' target='_blank'>BING</a>";
}
@@ -139,11 +139,11 @@
} else {
$meta_source = "
<span>Translate with:</span>
- <a href='http://translate.google.com/#{$locale1_short_code}/{$locale2_short_code}/"
+ <a href='https://translate.google.com/#{$locale1_short_code}/{$locale2_short_code}/"
// We use html_entity_decode twice because we can have strings as &amp;amp; stored
. urlencode(strip_tags(html_entity_decode(html_entity_decode($source_string))))
. "' target='_blank'>Google</a>
- <a href='http://www.bing.com/translator/?from={$locale1_short_code}&to={$locale2_short_code}&text="
+ <a href='https://www.bing.com/translator/?from={$locale1_short_code}&to={$locale2_short_code}&text="
. urlencode(strip_tags(html_entity_decode(html_entity_decode($source_string))))
. "' target='_blank'>BING</a>";
}

0 comments on commit 2e4d529

Please sign in to comment.