1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update translations

This commit is contained in:
Luke Pulverenti 2014-09-08 21:15:31 -04:00
parent 8f3dc87100
commit 2a8364b21c
4 changed files with 40 additions and 6 deletions

View file

@ -84,7 +84,7 @@
<br /> <br />
</div> </div>
</div> </div>
<ul data-role="listview" class="ulForm"> <ul data-role="listview" class="ulForm" style="margin-bottom:0!important;">
<li> <li>
<label>${HeaderExtractChapterImagesFor}</label> <label>${HeaderExtractChapterImagesFor}</label>
<div data-role="controlgroup"> <div data-role="controlgroup">
@ -100,6 +100,13 @@
</div> </div>
</li> </li>
</ul> </ul>
<div>
<label for="chkExtractChaptersDuringLibraryScan">${LabelExtractChaptersDuringLibraryScan}</label>
<input type="checkbox" id="chkExtractChaptersDuringLibraryScan" />
<div class="fieldDescription">${LabelExtractChaptersDuringLibraryScanHelp}</div>
</div>
<br />
</div> </div>
</div> </div>
@ -131,8 +138,8 @@
<input type="checkbox" id="chkPeopleOthers" /> <input type="checkbox" id="chkPeopleOthers" />
<label for="chkPeopleOthers">${OptionOthers}</label> <label for="chkPeopleOthers">${OptionOthers}</label>
<div class="fieldDescription">${HeaderDownloadPeopleMetadataForHelp}</div>
</div> </div>
<div class="fieldDescription">${HeaderDownloadPeopleMetadataForHelp}</div>
</li> </li>
</ul> </ul>
</div> </div>

View file

@ -37,6 +37,8 @@
$('#chkDownloadChapterMovies', page).checked(config.DownloadMovieChapters).checkboxradio("refresh"); $('#chkDownloadChapterMovies', page).checked(config.DownloadMovieChapters).checkboxradio("refresh");
$('#chkDownloadChapterEpisodes', page).checked(config.DownloadEpisodeChapters).checkboxradio("refresh"); $('#chkDownloadChapterEpisodes', page).checked(config.DownloadEpisodeChapters).checkboxradio("refresh");
$('#chkExtractChaptersDuringLibraryScan', page).checked(config.ExtractDuringLibraryScan).checkboxradio("refresh");
renderChapterFetchers(page, config, providers); renderChapterFetchers(page, config, providers);
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
@ -205,6 +207,7 @@
config.DownloadMovieChapters = $('#chkDownloadChapterMovies', form).checked(); config.DownloadMovieChapters = $('#chkDownloadChapterMovies', form).checked();
config.DownloadEpisodeChapters = $('#chkDownloadChapterEpisodes', form).checked(); config.DownloadEpisodeChapters = $('#chkDownloadChapterEpisodes', form).checked();
config.ExtractDuringLibraryScan = $('#chkExtractChaptersDuringLibraryScan', form).checked();
config.DisabledFetchers = $('.chkChapterFetcher:not(:checked)', form).get().map(function (c) { config.DisabledFetchers = $('.chkChapterFetcher:not(:checked)', form).get().map(function (c) {

View file

@ -50,7 +50,15 @@
function navigateToNextPage() { function navigateToNextPage() {
ApiClient.getSystemInfo().done(function(info) {
if (info.SupportsRunningAsService) {
Dashboard.navigate('wizardservice.html'); Dashboard.navigate('wizardservice.html');
} else {
Dashboard.navigate('wizardfinish.html');
}
});
} }
$(document).on('pageshow', "#wizardSettingsPage", function () { $(document).on('pageshow', "#wizardSettingsPage", function () {

View file

@ -1,9 +1,22 @@
(function ($, document, window) { (function ($, document, window) {
function onSaveComplete() { function onSaveComplete(user) {
var userId = user.Id;
var metadataKey = "xbmcmetadata";
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
ApiClient.getNamedConfiguration(metadataKey).done(function (config) {
config.UserId = userId;
ApiClient.updateNamedConfiguration(metadataKey, config).done(function () {
Dashboard.navigate('wizardlibrary.html'); Dashboard.navigate('wizardlibrary.html');
});
});
} }
function wizardUserPage() { function wizardUserPage() {
@ -25,7 +38,10 @@
user.Name = $('#txtUsername', form).val(); user.Name = $('#txtUsername', form).val();
ApiClient.updateUser(user).done(onSaveComplete); ApiClient.updateUser(user).done(function () {
onSaveComplete(user);
});
} else { } else {