Remove Fluent sample
This commit is contained in:
parent
1d7928077b
commit
169e798e8c
|
@ -15,10 +15,9 @@ namespace BizHawk.Client.DiscoHawk
|
|||
{
|
||||
public sealed class ArgsDict : Dictionary<string, object?>
|
||||
{
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -114,8 +114,6 @@ namespace BizHawk.Client.DiscoHawk
|
|||
}
|
||||
}
|
||||
|
||||
Sample.RunAll(); // testing Fluent.Net
|
||||
|
||||
// Do something for visuals, I guess
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
|
|
@ -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")'.
|
||||
|
|
|
@ -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]}
|
|
@ -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]}
|
Loading…
Reference in New Issue