diff --git a/src/BizHawk.Client.DiscoHawk/Sample.cs b/src/BizHawk.Client.DiscoHawk/MultiMessageContext.cs similarity index 76% rename from src/BizHawk.Client.DiscoHawk/Sample.cs rename to src/BizHawk.Client.DiscoHawk/MultiMessageContext.cs index b98ff13396..e2002c1336 100644 --- a/src/BizHawk.Client.DiscoHawk/Sample.cs +++ b/src/BizHawk.Client.DiscoHawk/MultiMessageContext.cs @@ -15,10 +15,9 @@ namespace BizHawk.Client.DiscoHawk { public sealed class ArgsDict : Dictionary { - public ArgsDict(string? filePath = null, int? tabCount = null) + public ArgsDict(string? filePath = null) { Add(nameof(filePath), filePath); - Add(nameof(tabCount), tabCount); } } @@ -127,35 +126,4 @@ namespace BizHawk.Client.DiscoHawk return strWithoutMn; } } - - public static class Sample - { - public static void RunAll() - { - static void RunTest(string lang) - { - MultiMessageContext translator = new(lang); - Console.WriteLine($"\n{lang}:"); - Console.WriteLine($"tabs-close-button = {translator.GetString("tabs-close-button")}"); - Console.WriteLine( - "tabs-close-tooltip ($tabCount = 1) = " - + translator.GetString("tabs-close-tooltip", new ArgsDict(tabCount: 1))); - Console.WriteLine( - "tabs-close-tooltip ($tabCount = 2) = " - + translator.GetString("tabs-close-tooltip", new ArgsDict(tabCount: 2))); - Console.WriteLine( - "tabs-close-warning ($tabCount = 1) = " - + translator.GetString("tabs-close-warning", new ArgsDict(tabCount: 1))); - Console.WriteLine( - "tabs-close-warning ($tabCount = 2) = " - + translator.GetString("tabs-close-warning", new ArgsDict(tabCount: 2))); - Console.WriteLine($"sync-dialog-title = {translator.GetString("sync-dialog-title")}"); - Console.WriteLine($"sync-headline-title = {translator.GetString("sync-headline-title")}"); - Console.WriteLine($"sync-signedout-title = {translator.GetString("sync-signedout-title")}"); - } - RunTest("en"); - RunTest("it"); - RunTest("pl"); - } - } } diff --git a/src/BizHawk.Client.DiscoHawk/Program.cs b/src/BizHawk.Client.DiscoHawk/Program.cs index 96864809b7..c23dbcc8d0 100644 --- a/src/BizHawk.Client.DiscoHawk/Program.cs +++ b/src/BizHawk.Client.DiscoHawk/Program.cs @@ -114,8 +114,6 @@ namespace BizHawk.Client.DiscoHawk } } - Sample.RunAll(); // testing Fluent.Net - // Do something for visuals, I guess Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/src/BizHawk.Client.DiscoHawk/locale/en.ftl b/src/BizHawk.Client.DiscoHawk/locale/en.ftl index b3f93099b3..118e5f5a7b 100644 --- a/src/BizHawk.Client.DiscoHawk/locale/en.ftl +++ b/src/BizHawk.Client.DiscoHawk/locale/en.ftl @@ -107,34 +107,3 @@ discohawkabout-4584-lbl-explainer = This is beta software. You are invited to report problems to our bug tracker or IRC. Problems consist of: crusty disc images that crash {-tm-discohawk} or that cause {-tm-discohawk} to produce a _hawked.ccd which fails to serve your particular purposes (which we will need to be informed of, in case we are outputting wrongly.) discohawkabout-2822-windowtitlestatic = About {-tm-discohawk} - - - -### strings for the Fluent sample - - - -## Closing tabs - -tabs-close-button = Close -tabs-close-tooltip = {$tabCount -> - [one] Close {$tabCount} tab - *[other] Close {$tabCount} tabs -} -tabs-close-warning = - You are about to close {$tabCount} tabs. - Are you sure you want to continue? - -## Syncing - --sync-brand-name = Firefox Account - -sync-dialog-title = {-sync-brand-name} -sync-headline-title = - {-sync-brand-name}: The best way to bring - your data always with you -sync-signedout-title = - Connect with your {-sync-brand-name} - -## Datetime -date-is = The date is 'DATETIME($dt, weekday: "short", month: "short", year: "numeric", day: "numeric", hour: "numeric", minute: "numeric", second: "numeric")'. diff --git a/src/BizHawk.Client.DiscoHawk/locale/it.ftl b/src/BizHawk.Client.DiscoHawk/locale/it.ftl deleted file mode 100644 index 9281d708fd..0000000000 --- a/src/BizHawk.Client.DiscoHawk/locale/it.ftl +++ /dev/null @@ -1,23 +0,0 @@ -## Closing tabs - -tabs-close-button = Chiudi -tabs-close-tooltip = {$tabCount -> - [one] Chiudi {$tabCount} scheda - *[other] Chiudi {$tabCount} schede -} -tabs-close-warning = - Verranno chiuse {$tabCount} schede. Proseguire? - -## Syncing - --sync-brand-name = {$first -> - *[uppercase] Account Firefox - [lowercase] account Firefox -} - -sync-dialog-title = {-sync-brand-name} -sync-headline-title = - {-sync-brand-name}: il modo migliore - per avere i tuoi dati sempre con te -sync-signedout-title = - Connetti il tuo {-sync-brand-name[lowercase]} diff --git a/src/BizHawk.Client.DiscoHawk/locale/pl.ftl b/src/BizHawk.Client.DiscoHawk/locale/pl.ftl deleted file mode 100644 index 9048f6b08a..0000000000 --- a/src/BizHawk.Client.DiscoHawk/locale/pl.ftl +++ /dev/null @@ -1,29 +0,0 @@ -## Closing tabs - -tabs-close-button = Zamknij -tabs-close-tooltip = {$tabCount -> - [one] Zamknij kartę - [few] Zamknij {$tabCount} karty - *[many] Zamknij { $tabCount } kart -} -tabs-close-warning = {$tabCount -> - [few] Zostaną zamknięte {$tabCount} karty. - Czy chcesz kontynuować? - *[many] Zostanie zamkniętych {$tabCount} kart. - Czy chcesz kontynuować? -} - -## Syncing - --sync-brand-name = {$case -> - *[nominative] Konto Firefox - [genitive] Konta Firefox - [accusative] Kontem Firefox -} - -sync-dialog-title = {-sync-brand-name} -sync-headline-title = - {-sync-brand-name}: Najlepszy sposób na to, - aby mieć swoje dane zawsze przy sobie -sync-signedout-title = - Zaloguj do {-sync-brand-name[genitive]}