diff --git a/angular_app/js/i18n.js b/angular_app/js/i18n.js index 51a3833..f9fb7f0 100644 --- a/angular_app/js/i18n.js +++ b/angular_app/js/i18n.js @@ -1,13 +1,16 @@ /* i18n for Event(man) */ + + eventManApp.config(['$translateProvider', function ($translateProvider) { - $translateProvider.translations('it_IT', { - 'Events': 'Eventi', - 'Add event': 'Nuovo evento', - 'Persons': 'Persone', - 'Add person': 'Nuova persona', - 'Import persons': 'Importa persone', + console.log($translateProvider); + $translateProvider.useStaticFilesLoader({ + prefix: '/static/i18n/', + suffix: '.json' }); - - $translateProvider.preferredLanguage('it_IT'); + + $translateProvider.useSanitizeValueStrategy('escaped'); + //$translateProvider.preferredLanguage('it_IT'); + //$translateProvider.fallbackLanguage('en_US'); }]); + diff --git a/static/i18n/it_IT.json b/static/i18n/it_IT.json new file mode 100644 index 0000000..1075345 --- /dev/null +++ b/static/i18n/it_IT.json @@ -0,0 +1,58 @@ +{ + "Info": "", + "New event": "", + "save": "", + "Title": "", + "begin date:": "", + "begin time:": "", + "End date:": "", + "End time:": "", + "Edit": "", + "Registered:": "", + "Attendees:": "", + "Persons": "", + "Search:": "", + "Name or email": "", + "Person": "", + "Name": "", + "Surname": "", + "Attended": "", + "Delete": "", + "Quick add": "", + "Email": "", + "name.surname@example.com": "", + "Company": "", + "Acme Corporation": "", + "Job": "", + "Evil Ruler": "", + "Add": "", + "Unregistered persons": "", + "Events": "", + "Add event": "", + "Event title": "", + "Title (descending)": "", + "Date": "", + "Date (descending)": "", + "Event": "", + "Begins:": "", + "Ends:": "", + "Import persons": "", + "Import persons from eventbrite CSV": "", + "CSV file": "", + "CSV exported from eventbrite": "", + "Associate users to this event": "", + "Import": "", + "logout": "", + "Confirm": "", + "Ok": "", + "Cancel": "", + "New person": "", + "Add to event:": "", + "Sort by:": "", + "Registered": "", + "Add person": "", + "Persons:": "", + "You really want to delete this event?": "", + "{{person_name}} {{person_surname}} successfully added to event {{event_title}}": "", + "You really want to delete this person?": "" +}