Skip to content

Commit

Permalink
Add support for i18n of channel names, add 'Melody' translations
Browse files Browse the repository at this point in the history
  • Loading branch information
marcan committed Nov 27, 2017
1 parent 8c3cbf9 commit 81fb799
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions blitzloop/res/web/i18n/de-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"Tempo": "Tempo",
"Vocals": "Gesang",
"Music": "Musik",
"Melody": "Melodie",
"Microphone": "Microfon",
"Volume": "Lautstärke",
"Sync": "Synchronisation",
Expand Down
1 change: 1 addition & 0 deletions blitzloop/res/web/i18n/es-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"Pitch": "Tono",
"Tempo": "Tempo",
"Vocals": "Voz",
"Melody": "Melodía",
"Music": "Música",
"Microphone": "Micrófono",
"Volume": "Volumen",
Expand Down
1 change: 1 addition & 0 deletions blitzloop/res/web/i18n/es-eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"Pitch": "Tonua",
"Tempo": "Tempoa",
"Vocals": "Ahotsak",
"Melody": "Melodia",
"Music": "Musika",
"Microphone": "Mikrofonoa",
"Volume": "Bolumena",
Expand Down
1 change: 1 addition & 0 deletions blitzloop/res/web/i18n/fr-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"Pitch": "Tonalité",
"Tempo": "Tempo",
"Vocals": "Doublage",
"Melody": "Mélodie",
"Music": "Musique",
"Microphone": "Micro",
"Volume": "Volume",
Expand Down
3 changes: 2 additions & 1 deletion blitzloop/res/web/i18n/ja-jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"Remove from queue": "予約削除",
"Pitch": "音高",
"Tempo": "早さ",
"Vocals": "声の音量",
"Vocals": "ボーカル",
"Melody": "メロディー",
"Music": "音楽",
"Microphone": "マイク",
"Volume": "音量",
Expand Down
11 changes: 7 additions & 4 deletions blitzloop/res/web/js/ng-translate.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@
log = boolLog;
};
return translate;
}]);
}]);

}])
}]).filter('translate', function(translate) {
return function(input) {
return translate(input);
};
});
/* Directives */
ng.module('translate.directives', [], function ($compileProvider) {
$compileProvider.directive('translate', ['$compile', 'translate', function ($compile, translate) {
Expand All @@ -65,4 +68,4 @@
};
}]);
});
}(angular));
}(angular));
2 changes: 1 addition & 1 deletion blitzloop/res/web/partials/song.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<slider ng-model="song.config.speed" min="-12" max="12" plus>Tempo</slider>
</div>
<div class="right" ng-show="song.channels.length > 0">
<slider ng-repeat="c in song.config.channels" ng-model="c.volume" min="0" max="20">{{$parent.song.channel_names[$parent.$index]}}</slider>
<slider ng-repeat="c in song.config.channels" ng-model="c.volume" min="0" max="20">{{$parent.song.channel_names[$parent.$index] | translate}}</slider>
</div>
<div class="wide"></div>
</div>
Expand Down

0 comments on commit 81fb799

Please sign in to comment.