Skip to content

Commit

Permalink
Update localization
Browse files Browse the repository at this point in the history
  • Loading branch information
bagusnl committed Aug 20, 2023
1 parent 171fd40 commit 41c39d2
Show file tree
Hide file tree
Showing 14 changed files with 293 additions and 957 deletions.
1 change: 0 additions & 1 deletion CollapseLauncher/Classes/Properties/InnerLauncherConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public enum AppMode
public static bool IsCustomBG = false;
public static bool IsSkippingUpdateCheck = false;
public static GameVersion AppCurrentVersion;
public static MainPage m_mainPage;

public static ApplicationTheme GetAppTheme()
{
Expand Down
19 changes: 1 addition & 18 deletions CollapseLauncher/XAMLs/MainApp/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public MainPage()
LogWriteLine($"Welcome to Collapse Launcher v{AppCurrentVersion.VersionString} - {MainEntryPoint.GetVersionString()}", LogType.Default, false);
LogWriteLine($"Application Data Location:\r\n\t{AppDataFolder}", LogType.Default);
InitializeComponent();
m_mainPage = this;
LoadingPopupPill.Translation += Shadow32;
LoadingCancelBtn.Translation += Shadow16;
WebView2Frame.Navigate(typeof(BlankPage));
Expand Down Expand Up @@ -991,13 +990,8 @@ private void NavView_ItemInvoked(NavigationView sender, NavigationViewItemInvoke
if (item == null) return;

string itemTag = (string)item.Tag;

NavigateInnerSwitch(itemTag);
}

void NavigateInnerSwitch(string itemTag)
{
if (itemTag == PreviousTag) return;

switch (itemTag)
{
case "launcher":
Expand Down Expand Up @@ -1040,17 +1034,6 @@ void Navigate(Type sourceType, string tagStr)
LogWriteLine($"Page changed to {sourceType.Name} with Tag: {tagStr}", LogType.Scheme);
}

internal void InvokeMainPageNavigateByTag(string tagStr)
{
NavigationViewItem item = NavigationViewControl.MenuItems.OfType<NavigationViewItem>()?.Where(x => x.Tag.GetType() == typeof(string) && (string)x.Tag == tagStr)?.FirstOrDefault();
if (item != null)
{
NavigationViewControl.SelectedItem = item;
string tag = (string)item.Tag;
NavigateInnerSwitch(tag);
}
}

private bool IsGameInstalled() => GameInstallationState == GameInstallStateEnum.Installed ||
GameInstallationState == GameInstallStateEnum.InstalledHavePreload ||
GameInstallationState == GameInstallStateEnum.NeedsUpdate;
Expand Down
2 changes: 1 addition & 1 deletion CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ private void OpenScreenshotFolderButton_Click(object sender, RoutedEventArgs e)
#region Game Management Buttons
private void RepairGameButton_Click(object sender, RoutedEventArgs e)
{
m_mainPage.InvokeMainPageNavigateByTag("repair");
MainFrameChanger.ChangeMainFrame(typeof(RepairPage));
}

private async void UninstallGameButton_Click(object sender, RoutedEventArgs e)
Expand Down
227 changes: 120 additions & 107 deletions Hi3Helper.Core/Lang/de-de.json

Large diffs are not rendered by default.

19 changes: 16 additions & 3 deletions Hi3Helper.Core/Lang/es-419.json
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,7 @@
"CDNDescription_Github": "El repositorio oficial (principal) del lanzador.",
"CDNDescription_Cloudflare": "Mirror del repositorio oficial (principal) alojado en Cloudflare R2 bucket.",
"CDNDescription_Bitbucket": "Mirror del repositorio oficial (principal) alojado en Bitbucket.",
"CDNDescription_Statically": "Una copia del repositorio oficial (principal), proporcionada por Statically. Úsalo si vives en un lugar donde GitHub es inaccesible.",
"CDNDescription_jsDelivr": "jsDelivr utiliza múltiples proveedores CDN como CloudFlare, Fastly y Quantil, resultando en el mejor tiempo de actividad y rendimiento posible.",
"LocateExecutable": "Localiza el Ejecutable",
"LocateExecutable": "Locate Executable",
"OpenDownloadPage": "Abrir página de descarga",
"DiscordRP_Play": "Jugando",
"DiscordRP_InGame": "En el juego",
Expand All @@ -434,6 +432,15 @@
"DiscordRP_Ad": "- Con Collapse Launcher",
"DiscordRP_Region": "Región:"
},
"_BackgroundNotification": {
"LoadingTitle": "Loading activity...",
"Placeholder": "-",
"CategoryTitle_Downloading": "Downloading game: {0}",
"CategoryTitle_DownloadingPreload": "Downloading preload: {0}",
"CategoryTitle_Updating": "Updating game: {0}",
"NotifBadge_Completed": "[Completed] {0}",
"NotifBadge_Error": "[Error/Canceled] {0}"
},
"_Dialogs": {
"DeltaPatchDetectedTitle": "Advertencia: ¡Una actualización al Delta Patch ha sido detectada!",
"DeltaPatchDetectedSubtitle": "El Delta Patch se utilizará para actualizar tu juego de {0} a {1}.\nRecuerda que puede que necesite descargar algunos archivos dentro del juego.\n\n¿Desea continuar?",
Expand Down Expand Up @@ -727,13 +734,18 @@
"Graphics_VSync": "VSync",
"Graphics_AAMode": "Modo de Anti-Aliasing",
"Graphics_VolFogs": "Niebla volumétrica",
"Graphics_VolFogs_ToolTip": "Requires Shadow Quality to be set at Medium or higher!",
"Graphics_ReflectionQuality": "Reflejos",
"Graphics_MotionBlur": "Desenfoque de movimiento",
"Graphics_BloomQuality": "Bloom",
"Graphics_CrowdDensity": "Densidad de personas",
"Graphics_SubsurfaceScattering": "Dispersión subsuperficial",
"Graphics_TeammateFX": "Efectos de compañeros",
"Graphics_AnisotropicFiltering": "Filtrado anisotrópico",
"Graphics_TeamPageBackground": "Regional Party Setup Background",
"Graphics_GlobalIllumination": "Global Illumination",
"Graphics_GlobalIllumination_Help1": "Only for supported hardware!",
"Graphics_GlobalIllumination_Help2": "More information (en)",
"Graphics_SpecPanel": "Configuración Grafica Global",
"SpecEnabled": "Activado",
"SpecDisabled": "Desactivado",
Expand All @@ -742,6 +754,7 @@
"SpecMedium": "Medio",
"SpecHigh": "Alto",
"SpecVeryHigh": "Muy Alto",
"SpecExtreme": "Extreme",
"SpecPartiallyOff": "Parcialmente apagado",
"ApplyBtn": "Aplicar Ajustes",
"SettingsApplied": "¡Se guardaron los cambios!",
Expand Down
19 changes: 16 additions & 3 deletions Hi3Helper.Core/Lang/id-ID.json
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,7 @@
"CDNDescription_Github": "Repositori resmi (utama) untuk launcher",
"CDNDescription_Cloudflare": "Mirror dari repositori resmi (main) yang dihost dalam bucket Cloudflare R2.",
"CDNDescription_Bitbucket": "Mirror dari repositori resmi (main) yang dihost dalam Bitbucket.",
"CDNDescription_Statically": "Sebuah mirror dari Repository resmi (utama) dan disediakan oleh Statically. Gunakan ini apabila kamu tinggal di daerah dimana GitHub tidak dapat diakses",
"CDNDescription_jsDelivr": "jsDelivr menggunakan beragam penyedia CDN seperti CloudFlare, Fastly dan Quantil, dan menawarkan performa dan uptime sebaik mungkin.",
"LocateExecutable": "Pilih Executable Program",
"LocateExecutable": "Pilih Executable",
"OpenDownloadPage": "Buka Halaman Download",
"DiscordRP_Play": "Memainkan",
"DiscordRP_InGame": "Di dalam Game",
Expand All @@ -434,6 +432,15 @@
"DiscordRP_Ad": "- Dengan Collapse Launcher",
"DiscordRP_Region": "Wilayah:"
},
"_BackgroundNotification": {
"LoadingTitle": "Memuat aktivitas...",
"Placeholder": "-",
"CategoryTitle_Downloading": "Mendownload game: {0}",
"CategoryTitle_DownloadingPreload": "Mendownload pra-unduh: {0}",
"CategoryTitle_Updating": "Memperbarui game: {0}",
"NotifBadge_Completed": "[Selesai] {0}",
"NotifBadge_Error": "[Error/Dibatalkan] {0}"
},
"_Dialogs": {
"DeltaPatchDetectedTitle": "Pemberitahuan: Pembaruan Delta Patch Terdeteksi!",
"DeltaPatchDetectedSubtitle": "Delta patch akan digunakan untuk pemperbarui game dari {0} ke {1}.\r\nPerlu diingat bahwa kamu mungkin masih perlu mengunduh beberapa berkas di dalam game.\r\n\r\nMau dilanjutkan?",
Expand Down Expand Up @@ -727,13 +734,18 @@
"Graphics_VSync": "VSync",
"Graphics_AAMode": "Mode Anti-Aliasing",
"Graphics_VolFogs": "Kabut Volumetric",
"Graphics_VolFogs_ToolTip": "Membutuhkan Kualitas Bayangan pada pilihan Sedang atau lebih tinggi!",
"Graphics_ReflectionQuality": "Refleksi",
"Graphics_MotionBlur": "Motion Blur",
"Graphics_BloomQuality": "Bloom",
"Graphics_CrowdDensity": "Detil Kerumunan",
"Graphics_SubsurfaceScattering": "Subsurface Scattering",
"Graphics_TeammateFX": "Efek Teammate",
"Graphics_AnisotropicFiltering": "Filter Anisotropic",
"Graphics_TeamPageBackground": "Latar Belakang Setup Party Per-Region",
"Graphics_GlobalIllumination": "Iluminasi Global",
"Graphics_GlobalIllumination_Help1": "Hanya untuk perangkat keras yang didukung!",
"Graphics_GlobalIllumination_Help2": "Informasi lebih lanjut (en)",
"Graphics_SpecPanel": "Pengaturan Grafis Global",
"SpecEnabled": "Aktif",
"SpecDisabled": "Mati",
Expand All @@ -742,6 +754,7 @@
"SpecMedium": "Sedang",
"SpecHigh": "Tinggi",
"SpecVeryHigh": "S. Tinggi",
"SpecExtreme": "Ekstrim",
"SpecPartiallyOff": "Dimatikan Sebagian",
"ApplyBtn": "Terapkan Pengaturan",
"SettingsApplied": "Perubahan telah disimpan!",
Expand Down
19 changes: 16 additions & 3 deletions Hi3Helper.Core/Lang/ja-jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,7 @@
"CDNDescription_Github": "ランチャーの公式(メイン)リポジトリ。",
"CDNDescription_Cloudflare": "Cloudflare R2が提供する公式(メイン)リポジトリのミラー。",
"CDNDescription_Bitbucket": "Bitbucketが提供する公式(メイン)リポジトリのミラー。",
"CDNDescription_Statically": "Statically が提供する公式(メイン)リポジトリのミラー。GitHubにアクセスできない場所に住んでいる場合に使用してください。",
"CDNDescription_jsDelivr": "jsDelivrは、CloudFlare、Fastly、Quantilなどの複数の CDN プロバイダを使用しており、アップタイムとパフォーマンスを最適化します。",
"LocateExecutable": ".exeファイルを指定",
"LocateExecutable": "Locate Executable",
"OpenDownloadPage": "配布サイトを開く",
"DiscordRP_Play": "プレイ",
"DiscordRP_InGame": "ゲーム",
Expand All @@ -434,6 +432,15 @@
"DiscordRP_Ad": "- Collapse Launcherから起動",
"DiscordRP_Region": "サーバー:"
},
"_BackgroundNotification": {
"LoadingTitle": "Loading activity...",
"Placeholder": "-",
"CategoryTitle_Downloading": "Downloading game: {0}",
"CategoryTitle_DownloadingPreload": "Downloading preload: {0}",
"CategoryTitle_Updating": "Updating game: {0}",
"NotifBadge_Completed": "[Completed] {0}",
"NotifBadge_Error": "[Error/Canceled] {0}"
},
"_Dialogs": {
"DeltaPatchDetectedTitle": "警告: デルタ パッチ アップデートが検出されました!",
"DeltaPatchDetectedSubtitle": "ゲームを {0} から {1} に更新するために、デルタ パッチが使用されます。\r\n一部のファイルはゲーム内でダウンロードする必要があります。\r\n\r\n続行しますか?",
Expand Down Expand Up @@ -727,13 +734,18 @@
"Graphics_VSync": "垂直同期",
"Graphics_AAMode": "アンチエイリアス",
"Graphics_VolFogs": "ボリュームフォグ",
"Graphics_VolFogs_ToolTip": "Requires Shadow Quality to be set at Medium or higher!",
"Graphics_ReflectionQuality": "反射",
"Graphics_MotionBlur": "モーションブラー",
"Graphics_BloomQuality": "Bloom",
"Graphics_CrowdDensity": "人群れの密度",
"Graphics_SubsurfaceScattering": "サブサーフェス・スキャタリング",
"Graphics_TeammateFX": "チームメイトのSFX",
"Graphics_AnisotropicFiltering": "異方性サンプリング",
"Graphics_TeamPageBackground": "Regional Party Setup Background",
"Graphics_GlobalIllumination": "Global Illumination",
"Graphics_GlobalIllumination_Help1": "Only for supported hardware!",
"Graphics_GlobalIllumination_Help2": "More information (en)",
"Graphics_SpecPanel": "画質",
"SpecEnabled": "ON",
"SpecDisabled": "OFF",
Expand All @@ -742,6 +754,7 @@
"SpecMedium": "",
"SpecHigh": "",
"SpecVeryHigh": "最高",
"SpecExtreme": "Extreme",
"SpecPartiallyOff": "一部ブロック",
"ApplyBtn": "設定を適用",
"SettingsApplied": "変更が保存されました!",
Expand Down
Loading

0 comments on commit 41c39d2

Please sign in to comment.