 
     return this
 ])
-module.service('localize', ['$rootScope', '$locale', '$http', '$filter', ($rootScope, $locale, $http, $filter) ->
+angular.module('tea').service('localize', ($rootScope, $locale, $http, $filter) ->
     self = this
     this.dictionary = []
     this.resourceFileLoaded = false

        return result

    return this
])

module.run((teaSelection, localize) ->
    localize.initLocalizedResources()
    teaSelection.init()
)

@ControlPanelController = ($scope, $timeout, teaSelection, localize) ->
    self = this

    $scope.radio = {index: 0}

#Initialization code
$(document).ready ->
    #check webkit notification
    if (not window.webkitNotifications &&  not Notification)
        $("#notification_not_found").show()
        $('#btn-run').toggleClass('disabled')
