Added faqs translated links

Closes #675
This commit is contained in:
Igor Zhukov 2015-02-02 13:31:50 +03:00
parent 51b8e7b93a
commit 67fa3cbe73
3 changed files with 14 additions and 2 deletions

View File

@ -359,6 +359,18 @@ angular.module('myApp.controllers', ['myApp.i18n'])
});
};
$scope.openFaq = function () {
var url = 'https://telegram.org/faq';
switch (Config.I18n.locale) {
case 'es-es': url += '/es'; break;
case 'it-it': url += '/it'; break;
case 'de-de': url += '/de'; break;
case 'ko-ko': url += '/ko'; break;
case 'pt-br': url += '/br'; break;
};
window.open(url, '_blank');
};
$scope.openContacts = function () {
ContactsSelectService.selectContact().then(function (userID) {
$scope.dialogSelect(AppUsersManager.getUserString(userID));

View File

@ -21,7 +21,7 @@
<li><a ng-click="openSettings()">
<i class="icon icon-settings"></i><span my-i18n="im_settings"></span>
</a></li>
<li><a href="https://telegram.org/faq" target="_blank">
<li><a ng-click="openFaq()">
<i class="icon icon-faq"></i><span my-i18n="head_telegram_faq"></span>
</a></li>
<li><a href="" ng-click="openChangelog()">

View File

@ -18,7 +18,7 @@
<a ng-click="editTitle()" my-i18n="group_modal_menu_edit_group"></a>
</li>
<li ng-if="chatFull.chat._ != 'chatForbidden' &amp;&amp; !chatFull.chat.left">
<a ng-click="leaveGroup()" my-i18n="group_modal_menu_leave_group"></a>
<a ng-click="leaveGroup()" my-i18n="group_modal_menu_leave"></a>
</li>
<li>
<a ng-click="flushHistory()" my-i18n="group_modal_menu_delete_chat"></a>