Skip to content

Commit

Permalink
update strings
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Dec 21, 2019
1 parent c1f673c commit d65fbfa
Show file tree
Hide file tree
Showing 48 changed files with 212 additions and 189 deletions.
2 changes: 1 addition & 1 deletion appheader/appheader.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
}

function onManageServerButtonClick() {
Dashboard.navigate('dashboard.html');
appRouter.show(appRouter.getRouteUrl('manageserver'));
}

function onCastButtonClick() {
Expand Down
25 changes: 19 additions & 6 deletions headroom/headroom.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ define(['dom', 'layoutManager', 'browser', 'apphost', 'events', 'css!./headroom'
windowInsetTop = insets.top;
}

var enableDebouncing = true;

/**
* UI enhancement for fixed headers.
* Hides header when scrolling down
Expand All @@ -53,8 +55,8 @@ define(['dom', 'layoutManager', 'browser', 'apphost', 'events', 'css!./headroom'

function onScroll(e) {
if (!this.scrolled) {
this.scrolled = true;
requestAnimationFrame(this.updateFn);
this.scrolled = true;
}
}

Expand Down Expand Up @@ -153,17 +155,22 @@ define(['dom', 'layoutManager', 'browser', 'apphost', 'events', 'css!./headroom'

if (scroller) {

var fn;

if (scroller.removeScrollEventListener) {

var fn = scroller.getScrollEventName() === 'scroll' ? this.onScroll : this.updateFn;
fn = scroller.getScrollEventName() === 'scroll' && enableDebouncing ? this.onScroll : this.updateFn;

scroller.removeScrollEventListener(fn, {
capture: false,
passive: true
});
}
else {
dom.removeEventListener(scroller, 'scroll', this.onScroll, {

fn = enableDebouncing ? this.onScroll : this.updateFn;

dom.removeEventListener(scroller, 'scroll', fn, {
capture: false,
passive: true
});
Expand All @@ -190,17 +197,23 @@ define(['dom', 'layoutManager', 'browser', 'apphost', 'events', 'css!./headroom'
var scroller = this.scrollElementForEvents;

if (scroller) {

var fn;

if (scroller.addScrollEventListener) {

var fn = scroller.getScrollEventName() === 'scroll' ? this.onScroll : this.updateFn;
fn = scroller.getScrollEventName() === 'scroll' && enableDebouncing ? this.onScroll : this.updateFn;

scroller.addScrollEventListener(fn, {
capture: false,
passive: true
});
}
else {
dom.addEventListener(scroller, 'scroll', this.onScroll, {

fn = enableDebouncing ? this.onScroll : this.updateFn;

dom.addEventListener(scroller, 'scroll', fn, {
capture: false,
passive: true
});
Expand Down Expand Up @@ -288,7 +301,7 @@ define(['dom', 'layoutManager', 'browser', 'apphost', 'events', 'css!./headroom'
if (this.paused) {
return;
}

console.log('scroll update');
var currentScrollY = this.getScrollY();

// Ignore if out of bounds (iOS rubber band effect)
Expand Down
6 changes: 6 additions & 0 deletions mediainfo/mediainfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,12 @@ define(['browser', 'datetime', 'connectionManager', 'globalize', 'appRouter', 'i
}
}

if (options.dateAdded && itemHelper.enableDateAddedDisplay(item)) {
var dateCreated = datetime.parseISO8601Date(item.DateCreated);

html += getMediaInfoItem(globalize.translate('AddedOnValue', datetime.toLocaleDateString(dateCreated)));
}

html += indicators.getMissingIndicator(item);

return html;
Expand Down
24 changes: 14 additions & 10 deletions multiselect/multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,13 @@
});
}

menuItems.push({
name: globalize.translate('HeaderGroupVersions'),
id: 'groupvideos',
icon: 'call_merge'
});
if (user.Policy.IsAdministrator) {
menuItems.push({
name: globalize.translate('HeaderGroupVersions'),
id: 'groupvideos',
icon: 'call_merge'
});
}

menuItems.push({
name: globalize.translate('HeaderMarkPlayed'),
Expand All @@ -248,11 +250,13 @@
icon: 'remove'
});

menuItems.push({
name: globalize.translate('HeaderRefreshMetadata'),
id: 'refresh',
icon: 'refresh'
});
if (user.Policy.IsAdministrator) {
menuItems.push({
name: globalize.translate('HeaderRefreshMetadata'),
id: 'refresh',
icon: 'refresh'
});
}

require(['actionsheet'], function (actionsheet) {

Expand Down
2 changes: 1 addition & 1 deletion router.js
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ define(['loading', 'globalize', 'events', 'viewManager', 'layoutManager', 'skinM
return '/managedownloads.html';
}
if (item === 'manageserver') {
return '/dashboard.html';
return '/dashboard/dashboard.html';
}
if (item === 'recordedtv') {
return '/livetv/livetv.html?tab=3&serverId=' + serverId;
Expand Down
8 changes: 4 additions & 4 deletions strings/ar.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"SameAsMainTheme": "Same as main theme",
"HeaderUploadNewImage": "Upload New Image",
"HeaderDeleteImage": "Delete Image",
"EmbyLoginTerms": "\u0644\u0642\u062f \u0635\u0645\u0645 \u0623\u0645\u0628\u064a \u0644\u0645\u0633\u0627\u0639\u062f\u062a\u0643 \u0641\u064a \u0625\u062f\u0627\u0631\u0629 \u0645\u0643\u062a\u0628\u0627\u062a \u0648\u0633\u0627\u0626\u0637\u0643. \u0645\u062b\u0644 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u0645\u0646\u0632\u0644\u064a \u0648\u0627\u0644\u0635\u0648\u0631 \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u0643. \u0627\u0644\u0631\u062c\u0627\u0621 \u0645\u0637\u0627\u0644\u0639\u0629 \u0634\u0631\u0648\u0637 \u0648\u0623\u062d\u0643\u0627\u0645 \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645 {1}\u060c \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u0640{0}. \u0625\u0646 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0623\u064a \u0628\u0631\u0646\u0627\u0645\u062c \u0645\u0646 \u0628\u0631\u0627\u0645\u062c \u0623\u0645\u0628\u064a \u064a\u0639\u062a\u0628\u0631 \u0642\u0628\u0648\u0644 \u0645\u0646\u0643 \u0639\u0644\u0649 \u0647\u0630\u0647 \u0627\u0644\u0634\u0631\u0648\u0637 \u0648\u0627\u0644\u0623\u062d\u0643\u0627\u0645.",
"MessageUnableToConnectToServer": "We're unable to connect to the selected server right now. Please ensure it is running and try again.",
"EmbyIntroMessage": "With Emby you can easily stream videos, music and photos to smart phones, tablets and other devices from your Emby Server.",
Expand Down Expand Up @@ -487,6 +484,8 @@
"Screenshots": "Screenshots",
"MoveRight": "Move right",
"MoveLeft": "Move left",
"HeaderUploadNewImage": "Upload New Image",
"HeaderDeleteImage": "Delete Image",
"ConfirmDeleteImage": "Delete image?",
"HeaderEditImages": "Edit Images",
"Settings": "Settings",
Expand Down Expand Up @@ -798,7 +797,7 @@
"ErrorConnectServerUnreachable": "There was an error performing the requested operation. Your server is unable to contact our Emby Connect Server at {0}. Please ensure your server has an active internet connection and that the communications are being allowed by any firewall or security software you have installed.",
"HeaderStopRecording": "Stop Recording",
"ManageRecording": "Manage recording",
"LabelDropImageHere": "Drop image here, or click to browse.",
"LabelDropImageHere": "Drag and drop image here, or click to select an image to upload.",
"MessageFileReadError": "There was an error reading the file. Please try again.",
"Browse": "Browse",
"HeaderUploadImage": "Upload Image",
Expand Down Expand Up @@ -840,6 +839,7 @@
"AllowSeasonalThemes": "Allow automatic seasonal themes",
"AllowSeasonalThemesHelp": "If enabled, seasonal themes will occasionally override your theme setting.",
"AutoBasedOnLanguageSetting": "Auto (based on device setting)",
"SameAsMainTheme": "Same as main theme",
"LabelDateTimeLocale": "Date time locale:",
"DirectorValue": "Director: {0}",
"DirectorsValue": "Directors: {0}",
Expand Down
6 changes: 3 additions & 3 deletions strings/bg-BG.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"SameAsMainTheme": "Same as main theme",
"HeaderUploadNewImage": "Upload New Image",
"HeaderDeleteImage": "Delete Image",
"EmbyLoginTerms": "Emby is designed to help you manage your personal media library, such as home videos and photos. Please see our {0}terms of use{1}. The use of any Emby software constitutes acceptance of these terms.",
"MessageUnableToConnectToServer": "We're unable to connect to the selected server right now. Please ensure it is running and try again.",
"EmbyIntroMessage": "With Emby you can easily stream videos, music and photos to smart phones, tablets and other devices from your Emby Server.",
Expand Down Expand Up @@ -487,6 +484,8 @@
"Screenshots": "\u0421\u043d\u0438\u043c\u043a\u0438 \u043d\u0430 \u0435\u043a\u0440\u0430\u043d\u0430",
"MoveRight": "Move right",
"MoveLeft": "Move left",
"HeaderUploadNewImage": "Upload New Image",
"HeaderDeleteImage": "Delete Image",
"ConfirmDeleteImage": "\u0418\u0437\u0442\u0440\u0438\u0432\u0430\u043d\u0435 \u043d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0442\u043e?",
"HeaderEditImages": "\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0442\u0430",
"Settings": "\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",
Expand Down Expand Up @@ -840,6 +839,7 @@
"AllowSeasonalThemes": "\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u0438 \u0441\u0435\u0437\u043e\u043d\u043d\u0438 \u043e\u0431\u043b\u0438\u0446\u0438",
"AllowSeasonalThemesHelp": "If enabled, seasonal themes will occasionally override your theme setting.",
"AutoBasedOnLanguageSetting": "\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u043e (\u0441\u043f\u043e\u0440\u0435\u0434 \u0435\u0437\u0438\u043a\u0430)",
"SameAsMainTheme": "Same as main theme",
"LabelDateTimeLocale": "\u041c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430 \u0434\u0430\u0442\u0430 \u0438 \u0447\u0430\u0441:",
"DirectorValue": "\u0420\u0435\u0436\u0438\u0441\u044c\u043e\u0440: {0}",
"DirectorsValue": "\u0420\u0435\u0436\u0438\u0441\u044c\u043e\u0440\u0438: {0}",
Expand Down
8 changes: 4 additions & 4 deletions strings/ca.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"SameAsMainTheme": "Same as main theme",
"HeaderUploadNewImage": "Upload New Image",
"HeaderDeleteImage": "Delete Image",
"EmbyLoginTerms": "Emby is designed to help you manage your personal media library, such as home videos and photos. Please see our {0}terms of use{1}. The use of any Emby software constitutes acceptance of these terms.",
"MessageUnableToConnectToServer": "We're unable to connect to the selected server right now. Please ensure it is running and try again.",
"EmbyIntroMessage": "With Emby you can easily stream videos, music and photos to smart phones, tablets and other devices from your Emby Server.",
Expand Down Expand Up @@ -487,6 +484,8 @@
"Screenshots": "Captures de pantalla",
"MoveRight": "Moure a la dreta",
"MoveLeft": "Moure a l'esquerra",
"HeaderUploadNewImage": "Upload New Image",
"HeaderDeleteImage": "Delete Image",
"ConfirmDeleteImage": "Esborrar imatge?",
"HeaderEditImages": "Edita Imatges",
"Settings": "Prefer\u00e8ncies",
Expand Down Expand Up @@ -798,7 +797,7 @@
"ErrorConnectServerUnreachable": "There was an error performing the requested operation. Your server is unable to contact our Emby Connect Server at {0}. Please ensure your server has an active internet connection and that the communications are being allowed by any firewall or security software you have installed.",
"HeaderStopRecording": "Stop Recording",
"ManageRecording": "Manage recording",
"LabelDropImageHere": "Drop image here, or click to browse.",
"LabelDropImageHere": "Drag and drop image here, or click to select an image to upload.",
"MessageFileReadError": "There was an error reading the file. Please try again.",
"Browse": "Browse",
"HeaderUploadImage": "Upload Image",
Expand Down Expand Up @@ -840,6 +839,7 @@
"AllowSeasonalThemes": "Allow automatic seasonal themes",
"AllowSeasonalThemesHelp": "If enabled, seasonal themes will occasionally override your theme setting.",
"AutoBasedOnLanguageSetting": "Auto (based on device setting)",
"SameAsMainTheme": "Same as main theme",
"LabelDateTimeLocale": "Date time locale:",
"DirectorValue": "Director: {0}",
"DirectorsValue": "Directors: {0}",
Expand Down
6 changes: 3 additions & 3 deletions strings/cs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"SameAsMainTheme": "Stejn\u00e9 jako hlavn\u00ed t\u00e9ma",
"HeaderUploadNewImage": "Upload New Image",
"HeaderDeleteImage": "Delete Image",
"EmbyLoginTerms": "Emby je navr\u017eeno tak, aby pomohlo spravovat Va\u0161i osobn\u00ed sb\u00edrku m\u00e9di\u00ed jako jsou videa a fotky. Pros\u00edm p\u0159e\u010dt\u011bte si na\u0161e {0}podm\u00ednky pou\u017eit\u00ed{1}. Pou\u017e\u00edv\u00e1n\u00edm programu Emby vyjad\u0159ujete souhlas s t\u011bmito podm\u00ednkami.",
"MessageUnableToConnectToServer": "Moment\u00e1ln\u011b nejsme schopni se p\u0159ipojit k vybran\u00e9mu serveru. Pros\u00edm, ujist\u011bte se, \u017ee je spu\u0161t\u011bn a zkuste to znovu.",
"EmbyIntroMessage": "S Emby m\u016f\u017eete snadno streamovat videa, hudbu a fotografie na chytr\u00e9 telefony, tablety a dal\u0161\u00ed za\u0159\u00edzen\u00ed ze sv\u00e9ho Emby serveru.",
Expand Down Expand Up @@ -487,6 +484,8 @@
"Screenshots": "Sn\u00edmky obrazovky",
"MoveRight": "Posunout vpravo",
"MoveLeft": "Posunout vlevo",
"HeaderUploadNewImage": "Upload New Image",
"HeaderDeleteImage": "Delete Image",
"ConfirmDeleteImage": "Odstranit obr\u00e1zek?",
"HeaderEditImages": "Editace obr\u00e1zk\u016f",
"Settings": "Nastaven\u00ed",
Expand Down Expand Up @@ -840,6 +839,7 @@
"AllowSeasonalThemes": "Povolit automatick\u00e1 sez\u00f3nn\u00ed t\u00e9mata",
"AllowSeasonalThemesHelp": "Pokud je povoleno, sez\u00f3nn\u00ed t\u00e9mata mohou p\u0159epsat Va\u0161e nastaven\u00ed motiv\u016f.",
"AutoBasedOnLanguageSetting": "Auto (na z\u00e1klad\u011b nastaven\u00ed za\u0159\u00edzen\u00ed)",
"SameAsMainTheme": "Stejn\u00e9 jako hlavn\u00ed t\u00e9ma",
"LabelDateTimeLocale": "M\u00edstn\u00ed datum a \u010das:",
"DirectorValue": "Re\u017eis\u00e9r: {0}",
"DirectorsValue": "Re\u017eis\u00e9\u0159i: {0}",
Expand Down
8 changes: 4 additions & 4 deletions strings/da.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"SameAsMainTheme": "Same as main theme",
"HeaderUploadNewImage": "Upload New Image",
"HeaderDeleteImage": "Delete Image",
"EmbyLoginTerms": "Emby is designed to help you manage your personal media library, such as home videos and photos. Please see our {0}terms of use{1}. The use of any Emby software constitutes acceptance of these terms.",
"MessageUnableToConnectToServer": "Vi kan ikke forbinde til den valgte server p\u00e5 nuv\u00e6rende tidspunkt. Sikrer dig venligst at serveren k\u00f8rer og pr\u00f8v igen.",
"EmbyIntroMessage": "Med Emby kan du nemt streame videoer, musik og fotos til din smartphone, tablet eller andre enheder.",
Expand Down Expand Up @@ -487,6 +484,8 @@
"Screenshots": "Sk\u00e6rmbilleder",
"MoveRight": "Flyt mod h\u00f8jre",
"MoveLeft": "Flyt mod venstre",
"HeaderUploadNewImage": "Upload New Image",
"HeaderDeleteImage": "Delete Image",
"ConfirmDeleteImage": "Slet billede?",
"HeaderEditImages": "Rediger billeder",
"Settings": "Indstillinger",
Expand Down Expand Up @@ -798,7 +797,7 @@
"ErrorConnectServerUnreachable": "There was an error performing the requested operation. Your server is unable to contact our Emby Connect Server at {0}. Please ensure your server has an active internet connection and that the communications are being allowed by any firewall or security software you have installed.",
"HeaderStopRecording": "Stop med at optage",
"ManageRecording": "Administrer optagelse",
"LabelDropImageHere": "Drop image here, or click to browse.",
"LabelDropImageHere": "Drag and drop image here, or click to select an image to upload.",
"MessageFileReadError": "There was an error reading the file. Please try again.",
"Browse": "Browse",
"HeaderUploadImage": "Upload billede",
Expand Down Expand Up @@ -840,6 +839,7 @@
"AllowSeasonalThemes": "Allow automatic seasonal themes",
"AllowSeasonalThemesHelp": "If enabled, seasonal themes will occasionally override your theme setting.",
"AutoBasedOnLanguageSetting": "Auto (baseret p\u00e5 sprogindstillinger)",
"SameAsMainTheme": "Same as main theme",
"LabelDateTimeLocale": "Date time locale:",
"DirectorValue": "Instrukt\u00f8r: {0}",
"DirectorsValue": "Instrukt\u00f8rer: {0}",
Expand Down
6 changes: 3 additions & 3 deletions strings/de.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"SameAsMainTheme": "Dasselbe wie das Haupt-Thema",
"HeaderUploadNewImage": "Upload New Image",
"HeaderDeleteImage": "Delete Image",
"EmbyLoginTerms": "Emby wurde designed um Sie bei der Verwaltung Ihrer Medienbibliothek, wie z.B Heimvideos oder Fotos, zu unterst\u00fctzen. Bitte lesen Sie unsere {0}Nutzungsbedingungen{1}. Die Verwendung jeglicher Emby Software bedingt die Zustimmung dieser Vereinbarung.",
"MessageUnableToConnectToServer": "Wir k\u00f6nnen gerade keine Verbindung zum gew\u00e4hlten Server herstellen. Bitte stellen Sie sicher das dieser l\u00e4uft und versuchen Sie es erneut.",
"EmbyIntroMessage": "Mit Emby k\u00f6nnen Sie auf einfache Art und Weise Videos, Musik und Fotos von Ihrem Emby Server auf Smartphones, Tablets und andere Ger\u00e4te streamen.",
Expand Down Expand Up @@ -487,6 +484,8 @@
"Screenshots": "Screenshots",
"MoveRight": "Nach rechts bewegen",
"MoveLeft": "Nach links bewegen",
"HeaderUploadNewImage": "Upload New Image",
"HeaderDeleteImage": "Delete Image",
"ConfirmDeleteImage": "Bild l\u00f6schen?",
"HeaderEditImages": "Bilder bearbeiten",
"Settings": "Einstellungen",
Expand Down Expand Up @@ -840,6 +839,7 @@
"AllowSeasonalThemes": "Erlaube automatische Saison-Themes",
"AllowSeasonalThemesHelp": "Wenn aktiviert, werden Saison-Themes von Zeit zu Zeit deine Theme-Einstellungen \u00fcberschreiben.",
"AutoBasedOnLanguageSetting": "Automatisch (basierend auf Ger\u00e4teeinstellungen)",
"SameAsMainTheme": "Dasselbe wie das Haupt-Thema",
"LabelDateTimeLocale": "Datum\/Zeit lokal:",
"DirectorValue": "Regisseur: {0}",
"DirectorsValue": "Regisseure: {0}",
Expand Down
Loading

0 comments on commit d65fbfa

Please sign in to comment.