Skip to content

Commit

Permalink
Side by side translations #89
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2776 committed Sep 7, 2024
1 parent 1533197 commit f77bf67
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 2 deletions.
18 changes: 18 additions & 0 deletions src/PicView.Avalonia/ViewModels/ViewModelBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,27 @@ public void UpdateLanguage()
GalleryThumbnailStretch = TranslationHelper.Translation.GalleryThumbnailStretch;
BottomGalleryThumbnailStretch = TranslationHelper.Translation.BottomGalleryThumbnailStretch;
RestoreDown = TranslationHelper.Translation.RestoreDown;
SideBySide = TranslationHelper.Translation.SideBySide;
SideBySideTooltip = TranslationHelper.Translation.SideBySideTooltip;
}

#region Strings

private string? _sideBySide;

public string? SideBySide
{
get => _sideBySide;
set => this.RaiseAndSetIfChanged(ref _sideBySide, value);
}

private string? _sideBySideTooltip;

public string? SideBySideTooltip
{
get => _sideBySideTooltip;
set => this.RaiseAndSetIfChanged(ref _sideBySideTooltip, value);
}

private string? _fullscreenTxt;

Expand Down
4 changes: 2 additions & 2 deletions src/PicView.Avalonia/Views/UC/Menus/ImageMenu.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@
Classes="ButtonBorder altHover"
Command="{CompiledBinding ShowSideBySideCommand}"
IsChecked="{CompiledBinding IsShowingSideBySide}"
ToolTip.Tip="View image side by side">
ToolTip.Tip="{CompiledBinding SideBySideTooltip}">
<TextBlock
Classes="txt"
Margin="1,0,6,0"
MaxWidth="175"
Text="Side by side" />
Text="{CompiledBinding SideBySide}" />
</ToggleButton>

<ToggleButton
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Config/Languages/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"ShowInfoWindow": "Åbn vindue for info og genveje",
"ShowResizeWindow": "Vis størrelsesændringsvinduet",
"ShutterPriority": "Lukker prioritet",
"SideBySide": "Side om side",
"SideBySideTooltip": "Vis billeder side om side",
"Size": "Størrelse",
"SizeMp": "Størrelse (mp)",
"SizeTooltip": "Indtast størrelse i pixels eller procent.",
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Config/Languages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"ShowInfoWindow": "Info Fenster anzeigen",
"ShowResizeWindow": "Größenänderungsfenster anzeigen",
"ShutterPriority": "Verschlusspriorität",
"SideBySide": "Seitenspalte",
"SideBySideTooltip": "Bilder nebeneinander anzeigen",
"Size": "Größe",
"SizeMp": "Größe (mp)",
"SizeTooltip": "Die gewünschte Größe in Pixeln oder Prozent eingeben.",
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Config/Languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"ShowInfoWindow": "Show info window",
"ShowResizeWindow": "Show the Resize Window",
"ShutterPriority": "Shutter priority",
"SideBySide": "Side by side",
"SideBySideTooltip": "Show images side by side",
"Size": "Size",
"SizeMp": "Size (mp)",
"SizeTooltip": "Enter desired size in pixels or percentage.",
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Config/Languages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"ShowInfoWindow": "Mostrar ventana de información",
"ShowResizeWindow": "Mostrar la ventana de cambio de tamaño",
"ShutterPriority": "Prioridad de obturador",
"SideBySide": "Vista lateral",
"SideBySideTooltip": "Mostrar las imagenes uno al lado del otro",
"Size": "Tamaño",
"SizeMp": "Tamaño (mp)",
"SizeTooltip": "Ingrese el tamaño deseado en píxeles o porcentaje.",
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Config/Languages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"ShowInfoWindow": "Afficher la fenêtre d'infos",
"ShowResizeWindow": "Afficher la fenêtre de redimensionnement",
"ShutterPriority": "Priorité à l'obturateur",
"SideBySide": "Côte à côte",
"SideBySideTooltip": "Afficher les images côte à côte",
"Size": "Taille",
"SizeMp": "Taille (mp)",
"SizeTooltip": "Entrez la taille souhaitée en pixels ou en pourcentage.",
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Config/Languages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"ShowInfoWindow": "Mostra finestra informativa",
"ShowResizeWindow": "Mostra la finestra Ridimensiona",
"ShutterPriority": "Priorità dell'otturatore",
"SideBySide": "Fianco a fianco",
"SideBySideTooltip": "Mostra le immagini affiancate",
"Size": "Dimensione",
"SizeMp": "Dimensione (mp)",
"SizeTooltip": "Inserisci la dimensione desiderata in pixel o in percentuale.",
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Config/Languages/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"ShowInfoWindow": "정보 창 표시",
"ShowResizeWindow": "크기 조정 창 표시",
"ShutterPriority": "셔터 우선",
"SideBySide": "나란히",
"SideBySideTooltip": "이미지를 나란히 표시",
"Size": "크기",
"SizeMp": "크기 (mp)",
"SizeTooltip": "원하는 크기를 픽셀 또는 백분율로 입력하세요.",
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Config/Languages/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"ShowInfoWindow": "Pokaż okno z informacją",
"ShowResizeWindow": "Pokaż okno Zmiana rozmiaru",
"ShutterPriority": "Priorytet migawki",
"SideBySide": "Obok siebie",
"SideBySideTooltip": "Pokaż obrazy obok siebie",
"Size": "Szerokość",
"SizeMp": "Rozmiar (mp)",
"SizeTooltip": "Wprowadź rozmiar w pikselach lub procentach.",
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Config/Languages/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"ShowInfoWindow": "Arată fereastra cu informații",
"ShowResizeWindow": "Arată fereastra de redimensionare",
"ShutterPriority": "Prioritate obturator",
"SideBySide": "Alăturat",
"SideBySideTooltip": "Afișați imagini una lângă alta",
"Size": "Dimensiune",
"SizeMp": "Dimensiune (mp)",
"SizeTooltip": "Introdu dimensiunea dorită în pixeli sau în procent.",
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Config/Languages/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"ShowInfoWindow": "Показать информационное окно",
"ShowResizeWindow": "Показать окно изменения размера",
"ShutterPriority": "Приоритет затвора",
"SideBySide": "Бок о бок",
"SideBySideTooltip": "Показывать изображения рядом",
"Size": "Размер",
"SizeMp": "Размер (mp)",
"SizeTooltip": "Введите желаемый размер в пикселях или процентах.",
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Config/Languages/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"ShowInfoWindow": "显示应用程序信息窗口",
"ShowResizeWindow": "显示调整尺寸窗口",
"ShutterPriority": "快门优先",
"SideBySide": "并排",
"SideBySideTooltip": "并排显示图像",
"Size": "大小",
"SizeMp": "大小(兆像素)",
"SizeTooltip": "以像素或百分比输入所需的尺寸。",
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Config/Languages/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"ShowInfoWindow": "顯示應用程式資訊視窗",
"ShowResizeWindow": "顯示調整大小視窗",
"ShutterPriority": "快門優先",
"SideBySide": "並排",
"SideBySideTooltip": "並排顯示影像",
"Size": "大小",
"SizeMp": "大小(兆像素)",
"SizeTooltip": "以像素或百分比輸入所需的大小。",
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Core/Localization/LanguageModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,4 +385,6 @@ public class LanguageModel
public string? GallerySettings { get; set; }
public string? GalleryThumbnailStretch { get; set; }
public string? BottomGalleryThumbnailStretch { get; set; }
public string? SideBySide { get; set; }
public string? SideBySideTooltip { get; set; }
}

0 comments on commit f77bf67

Please sign in to comment.