Skip to content

Commit

Permalink
minor simplification #4024
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Apr 27, 2016
1 parent 3216f13 commit c3ec3c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/github.com/getlantern/lantern-ui/app/js/controllers.js
Expand Up @@ -294,14 +294,11 @@ app.controller('ErrorCtrl', ['$scope', '$rootScope', 'gaMgr', '$sce', '$translat
}

$scope.toggleShowConnectionHelp = function() {
$translate('CONNECTION_HELP', {
facebookLink: '<a href="https://www.facebook.com/getlantern/manager/?section=messages" target="_blank">Facebook</a>',
gitHubLink: '<a href="https://github.com/getlantern/lantern" target="_blank">GitHub</a>',
forumsLink: '<a href="https://groups.google.com/forum/#!forum/lantern-users-zh" target="_blank">forums</a>'
})
$translate('CONNECTION_HELP')
.then(function (translatedVal) {
$rootScope.connectionHelpText = translatedVal;
});

$scope.showConnectionHelp = !$scope.showConnectionHelp;
}
}]);
2 changes: 1 addition & 1 deletion src/github.com/getlantern/lantern-ui/app/locale/en_US.json
Expand Up @@ -9,7 +9,7 @@
"PROXY_OFF_HELP": "Enable that option in Lantern settings.",
"EXTENSION_HELP": "Try disabling them or sending traffic through Lantern running at 127.0.0.1:8787",
"XUNLEI_HELP": "Try uninstalling Xunlei for now",
"CONNECTION_HELP": "<p>If your network seems to be otherwise working, please let us know on our {{forumsLink}}, {{facebookLink}}, or {{gitHubLink}}.</p><p>You can also email your logs to <a href=\"mailto:support@getlantern.org\">support@getlantern.org</a>. You can find your logs at:</p>",
"CONNECTION_HELP": "<p>If your network seems to be otherwise working, please let us know on our <a href=\"https://groups.google.com/forum/#!forum/lantern-users-zh\" target=\"_blank\">forums</a>, <a href=\"https://www.facebook.com/getlantern\" target=\"_blank\">Facebook</a>, or <a href=\"https://github.com/getlantern/lantern\" target=\"_blank\">GitHub</a>.</p><p>You can also email your logs to <a href=\"mailto:support@getlantern.org\">support@getlantern.org</a>. You can find your logs at:</p>",
"LANTERN_MOBILE_SHARE": "Trying out Lantern for Android! %s #getlantern",
"LANTERN_MOBILE_ANDROID_TEXT": "Android download link",
"TRY_LANTERN_FOR_ANDROID": "Try Lantern for Android!",
Expand Down

0 comments on commit c3ec3c8

Please sign in to comment.