 
     return {link: link}
 
-module.directive("tgProjectCustomAttributes", ["$log", "$tgConfirm", "animationFrame", ProjectCustomAttributesDirective])
+module.directive("tgProjectCustomAttributes", ["$log", "$tgConfirm", "animationFrame", "$translate", ProjectCustomAttributesDirective])

            if _.keys(choices).length == 0
                return $confirm.error("ADMIN.PROJECT_VALUES.ERROR_DELETE_ALL")

            $confirm.askChoice("PROJECT.TITLE_ACTION_DELETE_VALUE", subtitle, choices, "ADMIN.PROJECT_VALUES.REPLACEMENT").then (response) ->
                onSucces = ->
                    $ctrl.loadValues().finally ->
                        response.finish()

            }

        initializeTextTranslations = ->
            $scope.addNewElementText = $translate.instant("ADMIN.PROJECT_VALUES_#{objName.toUpperCase()}.ACTION_ADD")

        initializeNewValue()
        initializeTextTranslations()
