closes #37: extract translations
This commit is contained in:
parent
d6a2697f51
commit
949ab53973
2 changed files with 69 additions and 8 deletions
19
angular_app/js/i18n.js
vendored
19
angular_app/js/i18n.js
vendored
|
@ -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');
|
||||
}]);
|
||||
|
||||
|
|
58
static/i18n/it_IT.json
Normal file
58
static/i18n/it_IT.json
Normal file
|
@ -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?": ""
|
||||
}
|
Loading…
Reference in a new issue