Ionic popup change buttons and title when popup is shown?

Hello so i’m trying to get those buttons changed when translation is changed.
This is my function when i create the popup.

    $scope.showLogin = function () {
    $scope.data = {};
    $scope.txtLogin = "";
    $scope.txtPassword = "";
    $scope.remainLogged = true;
    var myPopup = $ionicPopup.show({
        templateUrl: 'templates/loginpopup.html',
        title: ''+ $scope.tBtnLogin ,
        subTitle: '',
        scope: $scope,
        buttons: [
            {text: ''+ $scope.tBtnCancel},
            {
                text: ''+ $scope.tBtnLogin ,
                type: 'button-positive',
                onTap: function (e) {
                    $scope.LogIn();
                    return $scope.data;
                }
            },
        ]
    });
};