-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Internationalization - Config list (#1940)
* Added i18n for config list * Move cells and cells into own files * Fix linter erros * Fix playwright tests * Update the github workflow to prevent double execution * Translate missing waiting * Fix linter issue
- Loading branch information
1 parent
2c16ea6
commit 82090b0
Showing
28 changed files
with
739 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
name: Playwright Tests | ||
on: | ||
push: | ||
branches: [ mf2025/* ] | ||
pull_request: | ||
branches: [ main, mf2025/main ] | ||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
using System.Linq; | ||
|
||
namespace MobiFlight.Base | ||
{ | ||
public class Settings | ||
{ | ||
public bool ArcazeSupportEnabled { get; set; } | ||
public bool AutoRetrigger { get; set; } | ||
public bool AutoRun { get; set; } | ||
public bool AutoLoadLinkedConfig { get; set; } | ||
public bool BetaUpdates { get; set; } | ||
public bool CommunityFeedback { get; set; } | ||
public bool EnableJoystickSupport { get; set; } | ||
public bool EnableMidiSupport { get; set; } | ||
public string ExcludedJoysticks { get; set; } | ||
public string ExcludedMidiBoards { get; set; } | ||
public bool FwAutoUpdateCheck { get; set; } | ||
public bool HubHopAutoCheck { get; set; } | ||
public string IgnoredComPortsList { get; set; } | ||
public string Language { get; set; } | ||
public bool LogEnabled { get; set; } | ||
public bool LogJoystickAxis { get; set; } | ||
public string LogLevel { get; set; } | ||
public bool MinimizeOnAutoRun { get; set; } | ||
public string ModuleSettings { get; set; } | ||
public string[] RecentFiles { get; set; } | ||
public int RecentFilesMaxCount { get; set; } | ||
public int TestTimerInterval { get; set; } | ||
|
||
internal Settings() | ||
{ | ||
} | ||
|
||
internal Settings(Properties.Settings settings) | ||
{ | ||
ArcazeSupportEnabled = settings.ArcazeSupportEnabled; | ||
AutoRetrigger = settings.AutoRetrigger; | ||
AutoRun = settings.AutoRun; | ||
AutoLoadLinkedConfig = settings.AutoLoadLinkedConfig; | ||
BetaUpdates = settings.BetaUpdates; | ||
CommunityFeedback = settings.CommunityFeedback; | ||
EnableJoystickSupport = settings.EnableJoystickSupport; | ||
EnableMidiSupport = settings.EnableMidiSupport; | ||
ExcludedJoysticks = settings.ExcludedJoysticks; | ||
ExcludedMidiBoards = settings.ExcludedMidiBoards; | ||
FwAutoUpdateCheck = settings.FwAutoUpdateCheck; | ||
HubHopAutoCheck = settings.HubHopAutoCheck; | ||
IgnoredComPortsList = settings.IgnoredComPortsList; | ||
Language = settings.Language; | ||
LogEnabled = settings.LogEnabled; | ||
LogJoystickAxis = settings.LogJoystickAxis; | ||
LogLevel = settings.LogLevel; | ||
MinimizeOnAutoRun = settings.MinimizeOnAutoRun; | ||
ModuleSettings = settings.ModuleSettings; | ||
// Skip: OfflineMode = settings.OfflineMode; | ||
// Skip: PollInterval = settings.PollInterval; | ||
RecentFiles = settings.RecentFiles.Cast<string>().ToArray(); | ||
RecentFilesMaxCount = settings.RecentFilesMaxCount; | ||
TestTimerInterval = settings.TestTimerInterval; | ||
// Properties.Settings.Default.AutoRetrigger = true; | ||
// Properties.Settings.Default.AutoRun = true; | ||
// Properties.Settings.Default.AutoLoadLinkedConfig = true; | ||
// Properties.Settings.Default.BetaUpdates = true; | ||
// Properties.Settings.Default.CommunityFeedback = true; | ||
// Properties.Settings.Default.EnableJoystickSupport = true; | ||
// Properties.Settings.Default.EnableMidiSupport = true; | ||
// Properties.Settings.Default.ExcludedJoysticks | ||
// Properties.Settings.Default.ExcludedMidiBoards | ||
// Properties.Settings.Default.FwAutoUpdateCheck = true; | ||
// Properties.Settings.Default.HubHopAutoCheck = true; | ||
// Properties.Settings.Default.IgnoredComPortsList | ||
// Properties.Settings.Default.Language = "en"; | ||
// Properties.Settings.Default.LogEnabled = true; | ||
// Properties.Settings.Default.LogJoystickAxis = false; | ||
// Properties.Settings.Default.LogLevel = "Debug"; | ||
// Properties.Settings.Default.MinimizeOnAutoRun = true; | ||
// Properties.Settings.Default.ModuleSettings = true; | ||
// Skip: Properties.Settings.Default.OfflineMode = false; | ||
// Skip: Properties.Settings.Default.PollInterval = 100; | ||
// Properties.Settings.Default.RecentFiles = new System.Collections.Specialized.StringCollection(); | ||
// Properties.Settings.Default.RecentFilesMaxCount = 10; | ||
// Skip: Properties.Settings.Default.TestTimerInterval = 1000; | ||
} | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"ConfigList": { | ||
"Toolbar" : { | ||
"Search" : { | ||
"Placeholder": "Einträge filtern..." | ||
}, | ||
"Filter" : { | ||
"Device": "Geräte", | ||
"Type" : "Typen", | ||
"Name" : "Namen", | ||
"Selected" : "{{items}} ausgewählt", | ||
"Clear" : "Filter zurücksetzen", | ||
"NoResultsFound" : "Keine Ergebnisse gefunden." | ||
}, | ||
"Reset": "Filter zurücksetzen" | ||
}, | ||
"Header" : { | ||
"Active": "Aktiv", | ||
"Name": "Name / Beschreibung", | ||
"Device": "Gerät", | ||
"Component": "Komponente", | ||
"Status": "Status", | ||
"RawValue": "Rohwert", | ||
"FinalValue": "Endwert", | ||
"Actions": "Aktionen" | ||
}, | ||
"Cell" : { | ||
"Waiting" : "Warten" | ||
}, | ||
"Table" : { | ||
"NoResultsFound" : "Neue Konfiguration. Erstelle neue Einträge." | ||
}, | ||
"Actions": { | ||
"OutputConfigItem" : { | ||
"Add": "Neue Ausgabe-Konfiguration", | ||
"DefaultName": "Neue Ausgabe-Konfiguration" | ||
}, | ||
"InputConfigItem" : { | ||
"Add": "Neue Eingabe-konfiguration", | ||
"DefaultName": "Neue Eingabe-Konfiguration" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,44 @@ | ||
{ | ||
"interpolation": "Hello {{name}}!", | ||
"app": { | ||
"greeting": "Hello MobiFlight user! Test!" | ||
"ConfigList": { | ||
"Toolbar" : { | ||
"Search" : { | ||
"Placeholder": "Filter items..." | ||
}, | ||
"Filter" : { | ||
"Device": "Devices", | ||
"Type" : "Types", | ||
"Name" : "Names", | ||
"Selected" : "{{items}} selected", | ||
"Clear" : "Clear filters", | ||
"NoResultsFound" : "No results found." | ||
}, | ||
"Reset": "Reset filters" | ||
}, | ||
"Header" : { | ||
"Active": "Active", | ||
"Name": "Name / Description", | ||
"Device": "Device", | ||
"Component": "Component", | ||
"Status": "Status", | ||
"RawValue": "Raw Value", | ||
"FinalValue": "Final Value", | ||
"Actions": "Actions" | ||
}, | ||
"Cell" : { | ||
"Waiting" : "Waiting" | ||
}, | ||
"Table" : { | ||
"NoResultsFound" : "This is a new configuration. Please add some items." | ||
}, | ||
"Actions": { | ||
"OutputConfigItem" : { | ||
"Add": "Add Output Config", | ||
"DefaultName": "New Output Config" | ||
}, | ||
"InputConfigItem" : { | ||
"Add": "Add Input Config", | ||
"DefaultName": "New Input Config" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"ConfigList": { | ||
"Toolbar": { | ||
"Search": { | ||
"Placeholder": "Filtrar elementos..." | ||
}, | ||
"Filter": { | ||
"Device": "Dispositivos", | ||
"Type": "Tipos", | ||
"Name": "Nombres", | ||
"Selected": "{{items}} seleccionados", | ||
"Clear": "Borrar filtros", | ||
"NoResultsFound": "No se encontraron resultados." | ||
}, | ||
"Reset": "Restablecer filtros" | ||
}, | ||
"Header": { | ||
"Active": "Activo", | ||
"Name": "Nombre / Descripción", | ||
"Device": "Dispositivo", | ||
"Component": "Componente", | ||
"Status": "Estado", | ||
"RawValue": "Valor Original", | ||
"FinalValue": "Valor Final", | ||
"Actions": "Acciones" | ||
}, | ||
"Cell" : { | ||
"Waiting" : "Esperando" | ||
}, | ||
"Table": { | ||
"NoResultsFound": "Nueva configuratión. Por favor, añade algunos elementos." | ||
}, | ||
"Actions": { | ||
"OutputConfigItem": { | ||
"Add": "Nueva configuración de Output", | ||
"DefaultName": "Nueva Configuración Output" | ||
}, | ||
"InputConfigItem": { | ||
"Add": "Nueva configuración de Input", | ||
"DefaultName": "Nueva Configuración Input" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.