This commit is contained in:
Davide Alberani 2015-03-28 20:06:33 +01:00
parent 578c8d749d
commit 9e86711e22
5 changed files with 2383 additions and 5 deletions

View file

@ -9,8 +9,10 @@
<script src="/static/js/angular-route.js"></script> <script src="/static/js/angular-route.js"></script>
<script src="/static/js/angular-resource.js"></script> <script src="/static/js/angular-resource.js"></script>
<script src="/static/js/ui-bootstrap-tpls-0.12.1.js"></script> <script src="/static/js/ui-bootstrap-tpls-0.12.1.js"></script>
<script src="/static/js/angular-translate.js"></script>
<script src="/static/js/eventman.js"></script> <script src="/static/js/eventman.js"></script>
<script src="/js/app.js"></script> <script src="/js/app.js"></script>
<script src="/js/i18n.js"></script>
<script src="/js/services.js"></script> <script src="/js/services.js"></script>
<script src="/js/controllers.js"></script> <script src="/js/controllers.js"></script>
<link href="/static/css/normalize.css" rel="stylesheet"> <link href="/static/css/normalize.css" rel="stylesheet">
@ -36,10 +38,10 @@
<body> <body>
<div class="main-header" ng-controller="NavigationCtrl as n"> <div class="main-header" ng-controller="NavigationCtrl as n">
<input type="button" id="events-button" ng-click="n.go('/events')" class="btn btn-link" value="Events" /> <input type="button" id="events-button" ng-click="n.go('/events')" class="btn btn-link" value="{{'Events' | translate}}" />
<input type="button" id="new-event-button" ng-click="n.go('/new-event')" class="btn btn-link" value="Add Event" /> <input type="button" id="new-event-button" ng-click="n.go('/new-event')" class="btn btn-link" value="{{'Add Event' | translate}}" />
<input type="button" id="persons-button" ng-click="n.go('/persons')" class="btn btn-link" value="Persons" /> <input type="button" id="persons-button" ng-click="n.go('/persons')" class="btn btn-link" value="{{'Persons' | translate}}" />
<input type="button" id="persons-button" ng-click="n.go('/new-person')" class="btn btn-link" value="Add Persons" /> <input type="button" id="persons-button" ng-click="n.go('/new-person')" class="btn btn-link" value="{{'Add Person' | translate}}" />
</div> </div>
<!-- all the magic takes place here: the content inside the next div <!-- all the magic takes place here: the content inside the next div

View file

@ -19,7 +19,8 @@ var eventManApp = angular.module('eventManApp', [
'ngRoute', 'ngRoute',
'eventManServices', 'eventManServices',
'eventManControllers', 'eventManControllers',
'ui.bootstrap' 'ui.bootstrap',
'pascalprecht.translate'
]); ]);

10
angular_app/js/i18n.js vendored Normal file
View file

@ -0,0 +1,10 @@
eventManApp.config(['$translateProvider', function ($translateProvider) {
$translateProvider.translations('it_IT', {
'Events': 'Eventi',
'Add Event': 'Nuovo evento',
'Persons': 'Persone',
'Add Person': 'Nuova persona',
});
$translateProvider.preferredLanguage('it_IT');
}]);

2359
static/js/angular-translate.js vendored Normal file

File diff suppressed because it is too large Load diff

6
static/js/angular-translate.min.js vendored Normal file

File diff suppressed because one or more lines are too long