Merge pull request #6042 from emanuelschuetze/new-languages
Added new translations (it, es).
This commit is contained in:
commit
14687bba0e
@ -28,7 +28,7 @@
|
||||
"doc-build": "./node_modules/.bin/compodoc -c .compodocrc.json",
|
||||
"extract": "ngx-translate-extract -i ./src -o ./src/assets/i18n/template-en.pot --clean --sort --format pot",
|
||||
"po2json": "./node_modules/.bin/po2json -f mf src/assets/i18n/de.po src/assets/i18n/de.json && ./node_modules/.bin/po2json -f mf src/assets/i18n/cs.po src/assets/i18n/cs.json && ./node_modules/.bin/po2json -f mf src/assets/i18n/ru.po src/assets/i18n/ru.json",
|
||||
"po2json-tempfix": "./node_modules/.bin/po2json -f mf src/assets/i18n/de.po /dev/stdout | sed -f sed_replacements > src/assets/i18n/de.json && ./node_modules/.bin/po2json -f mf src/assets/i18n/cs.po /dev/stdout | sed -f sed_replacements > src/assets/i18n/cs.json && ./node_modules/.bin/po2json -f mf src/assets/i18n/ru.po /dev/stdout | sed -f sed_replacements > src/assets/i18n/ru.json",
|
||||
"po2json-tempfix": "./node_modules/.bin/po2json -f mf src/assets/i18n/de.po /dev/stdout | sed -f sed_replacements > src/assets/i18n/de.json && ./node_modules/.bin/po2json -f mf src/assets/i18n/cs.po /dev/stdout | sed -f sed_replacements > src/assets/i18n/cs.json && ./node_modules/.bin/po2json -f mf src/assets/i18n/ru.po /dev/stdout | sed -f sed_replacements > src/assets/i18n/ru.json && ./node_modules/.bin/po2json -f mf src/assets/i18n/it.po /dev/stdout | sed -f sed_replacements > src/assets/i18n/it.json && ./node_modules/.bin/po2json -f mf src/assets/i18n/es.po /dev/stdout | sed -f sed_replacements > src/assets/i18n/es.json",
|
||||
"prettify-check": "prettier --config ./.prettierrc --list-different \"src/{app,environments}/**/*{.ts,.js,.json,.css,.scss}\"",
|
||||
"prettify-write": "prettier --config ./.prettierrc --write \"src/{app,environments}/**/*{.ts,.js,.json,.css,.scss}\"",
|
||||
"cleanup": "npm run prettify-write; npm run lint-write",
|
||||
|
@ -90,7 +90,7 @@ export class AppComponent {
|
||||
chatNotificationService: ChatNotificationService
|
||||
) {
|
||||
// manually add the supported languages
|
||||
translate.addLangs(['en', 'de', 'cs', 'ru']);
|
||||
translate.addLangs(['en', 'de', 'it', 'es', 'cs', 'ru']);
|
||||
// this language will be used as a fallback when a translation isn't found in the current language
|
||||
translate.setDefaultLang('en');
|
||||
// get the browsers default language
|
||||
|
@ -69,6 +69,8 @@
|
||||
<mat-menu #languageMenu="matMenu">
|
||||
<button mat-menu-item (click)="selectLang('en')">{{ getLangName('en') }}</button>
|
||||
<button mat-menu-item (click)="selectLang('de')">{{ getLangName('de') }}</button>
|
||||
<button mat-menu-item (click)="selectLang('it')">{{ getLangName('it') }}</button>
|
||||
<button mat-menu-item (click)="selectLang('es')">{{ getLangName('es') }}</button>
|
||||
<button mat-menu-item (click)="selectLang('ru')">{{ getLangName('ru') }}</button>
|
||||
<button mat-menu-item (click)="selectLang('cs')">{{ getLangName('cs') }}</button>
|
||||
</mat-menu>
|
||||
|
@ -109,6 +109,10 @@ export class UserMenuComponent extends BaseViewComponentDirective implements OnI
|
||||
return 'English';
|
||||
} else if (abbreviation === 'de') {
|
||||
return 'Deutsch';
|
||||
} else if (abbreviation === 'it') {
|
||||
return 'Italiano';
|
||||
} else if (abbreviation === 'es') {
|
||||
return 'Español';
|
||||
} else if (abbreviation === 'cs') {
|
||||
return 'Čeština';
|
||||
} else if (abbreviation === 'ru') {
|
||||
|
1
client/src/assets/i18n/es.json
Normal file
1
client/src/assets/i18n/es.json
Normal file
File diff suppressed because one or more lines are too long
3721
client/src/assets/i18n/es.po
Normal file
3721
client/src/assets/i18n/es.po
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,95 +0,0 @@
|
||||
{
|
||||
"Cancel": "",
|
||||
"About Me": "",
|
||||
"Category": "",
|
||||
"Change Password": "",
|
||||
"Changed version": "",
|
||||
"Comment": "",
|
||||
"Content": "",
|
||||
"Copyright by": "",
|
||||
"Delete User": "",
|
||||
"DeleteMotion": "",
|
||||
"Designates whether this user is in the room": {
|
||||
"0": ""
|
||||
},
|
||||
"Designates whether this user should be treated as a committee": {
|
||||
"0": ""
|
||||
},
|
||||
"Designates whether this user should be treated as active": {
|
||||
" Unselect this instead of deleting the account": {
|
||||
"0": ""
|
||||
}
|
||||
},
|
||||
"Diff version": "",
|
||||
"EMail": "",
|
||||
"Edit Profile": "",
|
||||
"Edit category details:": "",
|
||||
"English": "",
|
||||
"Export As": {
|
||||
"0": {
|
||||
"0": {
|
||||
"0": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"FILTER": "",
|
||||
"Final version": "",
|
||||
"First Name": "",
|
||||
"French": "",
|
||||
"German": "",
|
||||
"Groups": "",
|
||||
"Identifier": "",
|
||||
"Initial Password": "",
|
||||
"Inline": "",
|
||||
"Installed plugins": "",
|
||||
"Is Active": "",
|
||||
"Is Present": "",
|
||||
"Is a committee": "",
|
||||
"Last Name": "",
|
||||
"Legal Notice": "",
|
||||
"License": "",
|
||||
"Login": "",
|
||||
"Login as Guest": "",
|
||||
"Logout": "",
|
||||
"Meta information": "",
|
||||
"Motion": "",
|
||||
"Motions": "",
|
||||
"Name": "",
|
||||
"None": "",
|
||||
"OK": "",
|
||||
"Offline mode: You can use OpenSlides but changes are not saved": {
|
||||
"0": ""
|
||||
},
|
||||
"Only for internal notes": {
|
||||
"0": ""
|
||||
},
|
||||
"Origin": "",
|
||||
"Original version": "",
|
||||
"Outside": "",
|
||||
"Participant Number": "",
|
||||
"Personal Note": "",
|
||||
"Personal note": "",
|
||||
"Prefix": "",
|
||||
"Present": "",
|
||||
"Privacy Policy": "",
|
||||
"Project": "",
|
||||
"Projector": "",
|
||||
"Reason": "",
|
||||
"Required": "",
|
||||
"Reset State": "",
|
||||
"Reset recommendation": "",
|
||||
"SORT": "",
|
||||
"Selected Values": "",
|
||||
"State": "",
|
||||
"Structure Level": "",
|
||||
"Submitters": "",
|
||||
"Supporters": "",
|
||||
"The assembly may decide:": "",
|
||||
"The event manager hasn't set up a privacy policy yet": {
|
||||
"0": ""
|
||||
},
|
||||
"Title": "",
|
||||
"Username": "",
|
||||
"Welcome to OpenSlides": "",
|
||||
"by": ""
|
||||
}
|
1
client/src/assets/i18n/it.json
Normal file
1
client/src/assets/i18n/it.json
Normal file
File diff suppressed because one or more lines are too long
3750
client/src/assets/i18n/it.po
Normal file
3750
client/src/assets/i18n/it.po
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user