Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend alarm-clock module : weekday selection #665

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/app/components/side-menu/elements/modal-alarm-clock.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ <h3 class="modal-title"><i class="fa fa-clock-o"></i> {{::modal.dataObj.name}}</
<div class="modal-body">
<div
ng-if="!modal.playlistService.playlists || modal.playlistService.playlists.length === 0"
translate="ALARM.CRATE_PLAYLIST_FIRST">
translate="ALARM.CREATE_PLAYLIST_FIRST">
</div>

<div
Expand All @@ -18,6 +18,17 @@ <h3 class="modal-title"><i class="fa fa-clock-o"></i> {{::modal.dataObj.name}}</
show-meridian="modal.showMeridian">
</uib-timepicker>
</div>
<div class="col-xs-12 col-sm-6">
<div class="btn-group">
<label class="btn btn-primary" ng-model="alarm.monday" uib-btn-checkbox>{{'ALARM.MONDAY' | translate}}</label>
<label class="btn btn-primary" ng-model="alarm.tuesday" uib-btn-checkbox>{{'ALARM.TUESDAY' | translate}}</label>
<label class="btn btn-primary" ng-model="alarm.wednesday" uib-btn-checkbox>{{'ALARM.WEDNESDAY' | translate}}</label>
<label class="btn btn-primary" ng-model="alarm.thursday" uib-btn-checkbox>{{'ALARM.THURSDAY' | translate}}</label>
<label class="btn btn-primary" ng-model="alarm.friday" uib-btn-checkbox>{{'ALARM.FRIDAY' | translate}}</label>
<label class="btn btn-primary" ng-model="alarm.saturday" uib-btn-checkbox>{{'ALARM.SATURDAY' | translate}}</label>
<label class="btn btn-primary" ng-model="alarm.sunday" uib-btn-checkbox>{{'ALARM.SUNDAY' | translate}}</label>
</div>
</div>
<div class="col-xs-12 col-sm-6 pull-down">
<input
bs-switch
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"STOP_MUSIC": "Parar la música"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Per utilitzar la alarma primer has de crear una llista de reproducció"
"CREATE_PLAYLIST_FIRST": "Per utilitzar la alarma primer has de crear una llista de reproducció"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Editar els grups",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
"OFF": "Off"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Pro použití budíku, musíte vytvořit alespoň jeden seznam skladeb."
"CREATE_PLAYLIST_FIRST": "Pro použití budíku, musíte vytvořit alespoň jeden seznam skladeb."
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Změnit skupiny",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
"OFF": "Aus"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Um die Weckfunktion nutzen zu können, muss mindestens eine Wiedergabeliste angelegt sein."
"CREATE_PLAYLIST_FIRST": "Um die Weckfunktion nutzen zu können, muss mindestens eine Wiedergabeliste angelegt sein."
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Gruppen bearbeiten",
Expand Down
9 changes: 8 additions & 1 deletion src/app/i18n/locale-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,14 @@
"OFF": "Off"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "In order to use Alarm Clock, you must create at least one Playlist first"
"CREATE_PLAYLIST_FIRST": "In order to use Alarm Clock, you must create at least one Playlist first",
"MONDAY":"Monday",
"TUESDAY":"Tuesday",
"WEDNESDAY":"Wednesday",
"THURSDAY":"Thursday",
"FRIDAY":"Friday",
"SATURDAY":"Saturday",
"SUNDAY":"Sunday"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Edit groups",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
"STOP_MUSIC": "Detener música"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Para utilizar la función de Alarma, debes crear al menos una lista de reproducción."
"CREATE_PLAYLIST_FIRST": "Para utilizar la función de Alarma, debes crear al menos una lista de reproducción."
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Editar grupos",
Expand Down
9 changes: 8 additions & 1 deletion src/app/i18n/locale-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,14 @@
"OFF": "Stop"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Avant de pouvoir utiliser l'alarme, vous devez créer au moins une playlist"
"CREATE_PLAYLIST_FIRST": "Avant de pouvoir utiliser l'alarme, vous devez créer au moins une playlist",
"MONDAY":"Lundi",
"TUESDAY":"Mardi",
"WEDNESDAY":"Mercredi",
"THURSDAY":"Jeudi",
"FRIDAY":"Vendredi",
"SATURDAY":"Samedi",
"SUNDAY":"Dimanche"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Editer les groupes",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
"OFF": "Isključeno"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Za upotrebu budilice prvo morate stvoriti barem jedan popis za reprodukciju"
"CREATE_PLAYLIST_FIRST": "Za upotrebu budilice prvo morate stvoriti barem jedan popis za reprodukciju"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Uređivanje grupa",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
"OFF": "Off"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Per usare la funzione sveglia, è necessario creare almeno una Playlist"
"CREATE_PLAYLIST_FIRST": "Per usare la funzione sveglia, è necessario creare almeno una Playlist"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Modifica gruppi",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"STOP_MUSIC":"再生停止"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "アラームクロックを作成するためには最初にプレイリストを作成してください"
"CREATE_PLAYLIST_FIRST": "アラームクロックを作成するためには最初にプレイリストを作成してください"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "グループの編集",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"STOP_MUSIC": "재생 정지"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "알람 기능을 사용하려면 플레이 리스트를 만들어야 합니다"
"CREATE_PLAYLIST_FIRST": "알람 기능을 사용하려면 플레이 리스트를 만들어야 합니다"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "그룹 수정",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
"OFF":"Uit"
},
"ALARM":{
"CRATE_PLAYLIST_FIRST":"Om de wekker te gebruiken is het noodzakelijk om eerst een afspeellijst te maken"
"CREATE_PLAYLIST_FIRST":"Om de wekker te gebruiken is het noodzakelijk om eerst een afspeellijst te maken"
},
"MULTIDEVICE":{
"EDIT_GROUPS":"Bewerk groepen",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@
"STOP_MUSIC": "Para Música"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Para utilizar o Despertador é necessário criar pelo menos uma Lista de Reprodução"
"CREATE_PLAYLIST_FIRST": "Para utilizar o Despertador é necessário criar pelo menos uma Lista de Reprodução"
}
}
2 changes: 1 addition & 1 deletion src/app/i18n/locale-ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
"OFF": "Выключено"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Для того, чтобы использовать будильник, необходимо сначала создать хотя бы один плейлист"
"CREATE_PLAYLIST_FIRST": "Для того, чтобы использовать будильник, необходимо сначала создать хотя бы один плейлист"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Редактировать группы",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
"OFF": "Vypnúť"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Ak chcete použiť budík, musíte najprv vytvoriť aspoň jeden playlist"
"CREATE_PLAYLIST_FIRST": "Ak chcete použiť budík, musíte najprv vytvoriť aspoň jeden playlist"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Upraviť skupiny",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
"OFF": "Kapalı"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Saat alarmını Kullanmak için, önce en az bir Oynatma Listesi oluşturmalısınız"
"CREATE_PLAYLIST_FIRST": "Saat alarmını Kullanmak için, önce en az bir Oynatma Listesi oluşturmalısınız"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Grupları düzenle",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
"OFF": "Tắt"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "Để chọn thời gian báo thức, bạn phải tạo trước ít nhất một danh sách nhạc"
"CREATE_PLAYLIST_FIRST": "Để chọn thời gian báo thức, bạn phải tạo trước ít nhất một danh sách nhạc"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "Chỉnh sửa Nhóm",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
"OFF": "关闭"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "为了使用闹铃,您必须首先创建一个播放列表"
"CREATE_PLAYLIST_FIRST": "为了使用闹铃,您必须首先创建一个播放列表"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "编辑群组",
Expand Down
2 changes: 1 addition & 1 deletion src/app/i18n/locale-zh_TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"STOP_MUSIC": "停止播放"
},
"ALARM": {
"CRATE_PLAYLIST_FIRST": "設定鬧鐘前,請先製造最少一個播放貯列"
"CREATE_PLAYLIST_FIRST": "設定鬧鐘前,請先製造最少一個播放貯列"
},
"MULTIDEVICE": {
"EDIT_GROUPS": "編輯群組",
Expand Down