Skip to content

Commit

Permalink
fix help
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoCoderMatrix86 committed Dec 19, 2024
1 parent 83db03d commit cf853a3
Show file tree
Hide file tree
Showing 12 changed files with 624 additions and 147 deletions.
123 changes: 123 additions & 0 deletions AudioCuesheetEditor/Pages/Help.de.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Help" xml:space="preserve">
<value>Hilfe</value>
</data>
</root>
141 changes: 8 additions & 133 deletions AudioCuesheetEditor/Pages/Help.razor
Original file line number Diff line number Diff line change
Expand Up @@ -17,154 +17,29 @@ along with Foobar. If not, see
-->

@page "/Help"
@layout MainLayoutWithoutMenu

@implements IDisposable

@inject ITextLocalizer<Help> _localizer
@inject ITextLocalizerService _localizationService
@inject IStringLocalizer<Help> _localizer
@inject LocalizationService _localizationService

<Layout>
<LayoutContent Margin="Margin.Is2">
<Heading Size="HeadingSize.Is1">@_localizer["Help"]</Heading>
<Heading Size="HeadingSize.Is5">@_localizer["Quick links"]</Heading>
<Blazorise.Link To="#headingIntroduction">@_localizer["Introduction"]</Blazorise.Link>
<br />
<Blazorise.Link To="#whatIsAudioCuesheetEditor">@_localizer["What is AudioCuesheetEditor"]</Blazorise.Link>
<br />
<Blazorise.Link To="#features">@_localizer["Features"]</Blazorise.Link>
<br />
<Blazorise.Link To="#userInterface">@_localizer["User Interface"]</Blazorise.Link>
<br />
<Blazorise.Link To="#shortcuts">@_localizer["Shortcuts"]</Blazorise.Link>
<br />
<Blazorise.Link To="#validation">@_localizer["Validation"]</Blazorise.Link>
<br />
<Blazorise.Link To="#trackLinking">@_localizer["Track linking"]</Blazorise.Link>
<br />
<Blazorise.Link To="#headingCreateCuesheet">@_localizer["Create cuesheet"]</Blazorise.Link>
<br />
<Blazorise.Link To="#headingImportOfFiles">@_localizer["Import of files"]</Blazorise.Link>
<br />
<Blazorise.Link To="#importOfTextFiles">@_localizer["Import of textfiles"]</Blazorise.Link>
<br />
<Blazorise.Link To="#importOfCuesheetFiles">@_localizer["Import of cuesheetfiles"]</Blazorise.Link>
<br />
<Blazorise.Link To="#headingExportOfData">@_localizer["Export of data"]</Blazorise.Link>
<br />
<Blazorise.Link To="#sections">@_localizer["Sections"]</Blazorise.Link>
<br />
<Blazorise.Link To="#headingRecordMode">@_localizer["Recordmode"]</Blazorise.Link>
<br />
<Blazorise.Link To="#headingOptions">@_localizer["Options"]</Blazorise.Link>
<br />
<Blazorise.Link To="#headingOfflineUsage">@_localizer["Offline usage (progressive WebApp)"]</Blazorise.Link>
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="headingIntroduction" Size="HeadingSize.Is2">@_localizer["Introduction"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="whatIsAudioCuesheetEditor" Size="HeadingSize.Is3">@_localizer["What is AudioCuesheetEditor"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["What is AudioCuesheetEditor helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="features" Size="HeadingSize.Is3">@_localizer["Features"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["Features helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="validation" Size="HeadingSize.Is3">@_localizer["Validation"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["Validation helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="userInterface" Size="HeadingSize.Is3">@_localizer["User Interface"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["User Interface helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="shortcuts" Size="HeadingSize.Is3">@_localizer["Shortcuts"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["Shortcuts helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="trackLinking" Size="HeadingSize.Is3">@_localizer["Track linking"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["Track linking helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="headingCreateCuesheet" Size="HeadingSize.Is2">@_localizer["Create cuesheet"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["Create cuesheet helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="headingImportOfFiles" Size="HeadingSize.Is2">@_localizer["Import of files"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="importOfTextFiles" Size="HeadingSize.Is3">@_localizer["Import of textfiles"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["Import of textfiles helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="importOfCuesheetFiles" Size="HeadingSize.Is3">@_localizer["Import of cuesheetfiles"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["Import of cuesheetfiles helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="headingExportOfData" Size="HeadingSize.Is2">@_localizer["Export of data"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["Export of data helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="sections" Size="HeadingSize.Is2">@_localizer["Sections"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["Sections helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="headingRecordMode" Size="HeadingSize.Is2">@_localizer["Recordmode"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["Recordmode helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="headingOptions" Size="HeadingSize.Is2">@_localizer["Options"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["Options helptext"])
<Row Margin="Margin.Is2.FromEnd">
<Column><Heading id="headingOfflineUsage" Size="HeadingSize.Is2">@_localizer["Offline usage (progressive WebApp)"]</Heading></Column>
<Column Flex="Flex.JustifyContent.End"><Blazorise.Link To="Help">@_localizer["Scroll to top"]</Blazorise.Link></Column>
</Row>
@((MarkupString)_localizer["Offline usage helptext"])
</LayoutContent>
</Layout>
<MudText Typo="Typo.h1">@_localizer["Help"]</MudText>

@code {
[CascadingParameter]
public MainLayout? mainLayout { get; set; }

//TODO
public void Dispose()
{
_localizationService.LocalizationChanged -= LocalizationService_LocalizationChanged;
}

protected override Task OnInitializedAsync()
protected override void OnInitialized()
{
base.OnInitialized();
_localizationService.LocalizationChanged += LocalizationService_LocalizationChanged;

return base.OnInitializedAsync();
}

protected override async Task OnParametersSetAsync()
{
await base.OnParametersSetAsync();
if (mainLayout != null)
{
mainLayout.SetDisplayMenuBar(false);
}
}

private void LocalizationService_LocalizationChanged(object? sender, EventArgs args)
void LocalizationService_LocalizationChanged(object? sender, EventArgs args)
{
StateHasChanged();
}
Expand Down
Loading

0 comments on commit cf853a3

Please sign in to comment.