v 0.4
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
/OpenTXspeak.suo
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<Application x:Class="OpenTXspeak.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
StartupUri="MainWindow.xaml">
|
||||||
|
<Application.Resources>
|
||||||
|
|
||||||
|
</Application.Resources>
|
||||||
|
</Application>
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Data;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace OpenTXspeak
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for App.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class App : Application
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
<Window x:Class="OpenTXspeak.MainWindow"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
Title="OpenTX Speaker"
|
||||||
|
Height="480"
|
||||||
|
MinWidth="840"
|
||||||
|
MaxWidth="840"
|
||||||
|
ResizeMode="CanResizeWithGrip" MinHeight="480">
|
||||||
|
|
||||||
|
<Grid VerticalAlignment="Stretch" >
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Grid Grid.Row="0" Grid.Column="0" VerticalAlignment="Stretch">
|
||||||
|
<ListView Name="lvSentences"
|
||||||
|
SelectionMode="Single"
|
||||||
|
MouseDoubleClick="lvSentences_MouseDoubleClick"
|
||||||
|
VerticalAlignment="Stretch"
|
||||||
|
Margin="0, 0, 0, 10">
|
||||||
|
<ListView.View>
|
||||||
|
<GridView>
|
||||||
|
<GridView.Columns>
|
||||||
|
<GridViewColumn Header="File Name" Width="100" DisplayMemberBinding="{Binding fileName}" />
|
||||||
|
<GridViewColumn Header="Description" Width="200" DisplayMemberBinding="{Binding description}" />
|
||||||
|
<GridViewColumn Header="Voice" Width="200" DisplayMemberBinding="{Binding voiceString}" />
|
||||||
|
</GridView.Columns>
|
||||||
|
</GridView>
|
||||||
|
</ListView.View>
|
||||||
|
</ListView>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<StackPanel Grid.Row="0" Grid.Column="1">
|
||||||
|
<TextBlock Text="Language" Margin="5,0,0,0" FontSize="18" />
|
||||||
|
|
||||||
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Left" Margin="10,0,0,0">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Label Content="Text" Width="75" />
|
||||||
|
<ComboBox Name="cbLanguages"
|
||||||
|
DisplayMemberPath="lName"
|
||||||
|
SelectedValuePath="sName"
|
||||||
|
SelectionChanged="cbLanguages_SelectionChanged"
|
||||||
|
Width="200" Height="23" />
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Label Content="Voice" Width="75" />
|
||||||
|
<ComboBox Height="23" Name="cbVoices" Width="200" Margin="0,0,0,0"/>
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<Separator Height="5" />
|
||||||
|
<TextBlock Text="Sentence" Margin="5,0,0,0" FontSize="18" />
|
||||||
|
<Grid Margin="10,0,0,0" DataContext="{Binding ElementName=lvSentences, Path=SelectedItem}" Width="Auto">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="75" />
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TextBlock Text="File Name" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Row="0" Grid.Column="0" Margin="0,5,0,0" />
|
||||||
|
<TextBox Text="{Binding Path=fileName}" Grid.Row="0" Grid.Column="1" Margin=" 0,0,10,0" />
|
||||||
|
<TextBlock Text="Description" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="0" Margin="0,5,0,0" />
|
||||||
|
<TextBox Text="{Binding Path=description}" Grid.Row="1" Grid.Column="1" Margin=" 0,0,10,0"/>
|
||||||
|
<TextBlock Text="Sentence" Grid.Row="2" Grid.Column="0" Margin="0,5,0,0" />
|
||||||
|
<TextBox Text="{Binding Path=voiceString}" Grid.Row="2" Grid.Column="1" Margin="0,0,10,0"/>
|
||||||
|
</Grid>
|
||||||
|
<StackPanel Orientation="Horizontal" Margin="0,0,0,0">
|
||||||
|
<TextBlock Text="Voice Rate" Width="70" Margin="10,10,0,0" />
|
||||||
|
<Slider Name="voiceRateSlider"
|
||||||
|
Value="0"
|
||||||
|
Minimum="-5"
|
||||||
|
Maximum="5"
|
||||||
|
TickPlacement="BottomRight"
|
||||||
|
TickFrequency="1"
|
||||||
|
IsSnapToTickEnabled="True"
|
||||||
|
Width="170"
|
||||||
|
Margin="10,10,10,0"/>
|
||||||
|
<TextBlock Text="{Binding ElementName=voiceRateSlider, Path=Value}" Width="40" Margin="0,10,0,0"/>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||||||
|
<Button Content="New Sentence" Name="buttonAddItem" Click="buttonAddItem_Click" Margin="0,10,0,0" Width="140" />
|
||||||
|
<Button Content="Play Sentence" Name="buttonPlay" Click="buttonPlay_Click" Margin="10,10,0,0" Width="140" />
|
||||||
|
</StackPanel>
|
||||||
|
<Separator Height="5" />
|
||||||
|
<TextBlock Text="Voice Files" Margin="5,0,0,0" FontSize="18" />
|
||||||
|
<StackPanel Orientation="Horizontal" >
|
||||||
|
<TextBlock Text="Voice Rate" Width="70" Margin="10,0,0,0" />
|
||||||
|
<Slider Name="fileRateSlider"
|
||||||
|
Value="0"
|
||||||
|
Minimum="-5"
|
||||||
|
Maximum="5"
|
||||||
|
TickPlacement="BottomRight"
|
||||||
|
TickFrequency="1"
|
||||||
|
IsSnapToTickEnabled="True"
|
||||||
|
Width="170"
|
||||||
|
Margin="10,0,10,0"/>
|
||||||
|
<TextBlock Text="{Binding ElementName=fileRateSlider, Path=Value}" Width="40" />
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="Sample Rate" Width="70" Margin="10,10,0,0" />
|
||||||
|
<RadioButton Content="8 KHz" Height="16" Name="rb8khz" Margin="10,10,0,0"/>
|
||||||
|
<RadioButton Content="16 kHz" Height="16" Name="rb16khz" Margin="10,10,0,0" />
|
||||||
|
<RadioButton Content="32 kHz" Height="16" Name="rb32khz" IsChecked="True" Margin="10,10,0,0"/>
|
||||||
|
</StackPanel>
|
||||||
|
<Button Content="Generate Voice Files" Name="buttonGenerate" Click="buttonSaveFiles_Click" Margin="10,10,10,0" />
|
||||||
|
<Separator Height="5" />
|
||||||
|
<Image Name="openTXLogo" Height="75" Width="75" Source="/OpenTXspeak;component/icon.ico" MouseLeftButtonDown="openTXLogo_MouseLeftButtonDown" HorizontalAlignment="Right" Cursor="Hand" Margin="0,0,5,0"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
||||||
@@ -0,0 +1,198 @@
|
|||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
using System.Speech.Synthesis;
|
||||||
|
using System.Speech.AudioFormat;
|
||||||
|
|
||||||
|
namespace OpenTXspeak
|
||||||
|
{
|
||||||
|
public partial class MainWindow : Window
|
||||||
|
{
|
||||||
|
SentenceTables tables = new SentenceTables();
|
||||||
|
Languages languages = new Languages();
|
||||||
|
Language curLang;
|
||||||
|
Sentences sentences = new Sentences();
|
||||||
|
SpeechSynthesizer synth = new SpeechSynthesizer();
|
||||||
|
int added_files = 0;
|
||||||
|
|
||||||
|
public MainWindow()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
lvSentences.ItemsSource = sentences;
|
||||||
|
cbLanguages.ItemsSource = languages;
|
||||||
|
|
||||||
|
foreach (InstalledVoice voice in synth.GetInstalledVoices())
|
||||||
|
{
|
||||||
|
cbVoices.Items.Add(voice.VoiceInfo.Name);
|
||||||
|
}
|
||||||
|
cbVoices.SelectedIndex = 0;
|
||||||
|
|
||||||
|
languages.Add("English", "en");
|
||||||
|
languages.Add("Italian", "it");
|
||||||
|
languages.Add("Swedish", "se");
|
||||||
|
curLang = languages[0];
|
||||||
|
cbLanguages.SelectedIndex = 0; // Note: Sets current langugage -> triggers loadlanguage()
|
||||||
|
}
|
||||||
|
|
||||||
|
private void loadLanguage()
|
||||||
|
{
|
||||||
|
string[] system_strings;
|
||||||
|
string[] other_strings;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
system_strings = System.IO.File.ReadAllLines(@"SOUNDS\" + curLang.sName + @"\SYSTEM\system_sounds.txt");
|
||||||
|
other_strings = System.IO.File.ReadAllLines(@"SOUNDS\" + curLang.sName + @"\other_sounds.txt");
|
||||||
|
}
|
||||||
|
catch (IOException)
|
||||||
|
{
|
||||||
|
system_strings = tables.default_system_strings[tables.toInt(curLang.sName)];
|
||||||
|
other_strings = tables.default_other_strings[tables.toInt(curLang.sName)];
|
||||||
|
}
|
||||||
|
sentences.RemoveRange(0, sentences.Count);
|
||||||
|
|
||||||
|
foreach (string str in system_strings)
|
||||||
|
sentences.Add(str);
|
||||||
|
|
||||||
|
sentences.Add(@";^ System Sounds ^;");
|
||||||
|
|
||||||
|
foreach (string str in other_strings)
|
||||||
|
sentences.Add(str);
|
||||||
|
|
||||||
|
lvSentences.Items.Refresh(); // Workaround - Two way binding is better
|
||||||
|
}
|
||||||
|
|
||||||
|
private void cbLanguages_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||||
|
{
|
||||||
|
curLang = (Language)e.AddedItems[0];
|
||||||
|
loadLanguage();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void lvSentences_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
||||||
|
{
|
||||||
|
synth.SetOutputToDefaultAudioDevice();
|
||||||
|
synth.Rate = (int)this.voiceRateSlider.Value;
|
||||||
|
|
||||||
|
if (this.lvSentences.SelectedItems.Count < 1)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Sentence sentence = (Sentence)this.lvSentences.SelectedItem;
|
||||||
|
synth.SelectVoice(cbVoices.Text);
|
||||||
|
try { synth.Speak(sentence.voiceString); }
|
||||||
|
catch (Exception){} // Workaround - Some TTS engines crashes on destruction
|
||||||
|
}
|
||||||
|
|
||||||
|
private void openTXLogo_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||||
|
{
|
||||||
|
AboutWindow aboutWindow = new AboutWindow();
|
||||||
|
aboutWindow.ShowDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonPlay_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
lvSentences_MouseDoubleClick(sender, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonAddItem_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
added_files++;
|
||||||
|
sentences.Add(new Sentence("new_file_" + added_files.ToString() + ";New Description;New Voice Message"));
|
||||||
|
this.lvSentences.Items.Refresh();
|
||||||
|
this.lvSentences.SelectedIndex = this.lvSentences.Items.Count - 1;
|
||||||
|
this.lvSentences.ScrollIntoView(this.lvSentences.SelectedItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonSaveFiles_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
Cursor oldCursor = this.Cursor;
|
||||||
|
this.Cursor = Cursors.Wait;
|
||||||
|
|
||||||
|
synth.Rate = (int)this.fileRateSlider.Value;
|
||||||
|
|
||||||
|
int sampleRate = 32000;
|
||||||
|
if ((bool)this.rb16khz.IsChecked)
|
||||||
|
sampleRate = 16000;
|
||||||
|
else if ((bool)this.rb8khz.IsChecked)
|
||||||
|
sampleRate = 8000;
|
||||||
|
|
||||||
|
SpeechAudioFormatInfo audioFormat = new SpeechAudioFormatInfo(sampleRate, AudioBitsPerSample.Sixteen, AudioChannel.Mono);
|
||||||
|
|
||||||
|
System.IO.Directory.CreateDirectory(@"SOUNDS\" + curLang.sName + @"\SYSTEM");
|
||||||
|
StreamWriter sw = File.CreateText(@"SOUNDS\" + curLang.sName + @"\SYSTEM\system_sounds.txt");
|
||||||
|
int i;
|
||||||
|
for (i = 0; sentences[i].fileName != ""; i++)
|
||||||
|
{
|
||||||
|
sw.WriteLine(sentences[i].toRaw());
|
||||||
|
synth.SetOutputToWaveFile(@"SOUNDS\" + curLang.sName + @"\SYSTEM\" + sentences[i].fileName + ".wav", audioFormat);
|
||||||
|
try { synth.Speak(sentences[i].voiceString); }
|
||||||
|
catch (Exception){} // Workaround - Some TTS engines crashes on destruction
|
||||||
|
}
|
||||||
|
sw.Close();
|
||||||
|
sw = File.CreateText(@"SOUNDS\" + curLang.sName + @"\other_sounds.txt");
|
||||||
|
for (i++; i < sentences.Count; i++)
|
||||||
|
{
|
||||||
|
sw.WriteLine(sentences[i].toRaw());
|
||||||
|
synth.SetOutputToWaveFile(@"SOUNDS\" + curLang.sName + @"\" + sentences[i].fileName + ".wav", audioFormat);
|
||||||
|
try { synth.Speak(sentences[i].voiceString); }
|
||||||
|
catch (Exception){} // Workaround - Some TTS engines crashes on destruction
|
||||||
|
}
|
||||||
|
sw.Close();
|
||||||
|
synth.SetOutputToNull(); // Workaround - The synth does not release the sound file like it should
|
||||||
|
this.Cursor = oldCursor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Language
|
||||||
|
{
|
||||||
|
public string lName { get; set; }
|
||||||
|
public string sName { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Languages : List<Language>
|
||||||
|
{
|
||||||
|
public void Add(string longer, string shorter)
|
||||||
|
{
|
||||||
|
this.Add(new Language { lName = longer, sName = shorter });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Sentence
|
||||||
|
{
|
||||||
|
public string fileName { get; set; }
|
||||||
|
public string description { get; set; }
|
||||||
|
public string voiceString { get; set; }
|
||||||
|
|
||||||
|
public Sentence(string rawString)
|
||||||
|
{
|
||||||
|
string[] words = rawString.Split(';');
|
||||||
|
fileName = words[0];
|
||||||
|
description = words[1];
|
||||||
|
voiceString = words[2];
|
||||||
|
}
|
||||||
|
|
||||||
|
public string toRaw()
|
||||||
|
{
|
||||||
|
return fileName + ";" + description + ";" + voiceString;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Sentences : List<Sentence>
|
||||||
|
{
|
||||||
|
public void Add(string rawString)
|
||||||
|
{
|
||||||
|
string[] words = rawString.Split(';');
|
||||||
|
this.Add(new Sentence(rawString));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||||
|
<ProductVersion>8.0.30703</ProductVersion>
|
||||||
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
|
<ProjectGuid>{8143D08D-1861-42DD-A861-56B15DE42A69}</ProjectGuid>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>OpenTXspeak</RootNamespace>
|
||||||
|
<AssemblyName>OpenTXspeak</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||||
|
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<ApplicationIcon>icon.ico</ApplicationIcon>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Speech" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="System.Xaml">
|
||||||
|
<RequiredTargetFramework>4.0</RequiredTargetFramework>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="WindowsBase" />
|
||||||
|
<Reference Include="PresentationCore" />
|
||||||
|
<Reference Include="PresentationFramework" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ApplicationDefinition Include="App.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</ApplicationDefinition>
|
||||||
|
<Compile Include="AboutWindow.xaml.cs">
|
||||||
|
<DependentUpon>AboutWindow.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="App.xaml.cs">
|
||||||
|
<DependentUpon>App.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="sentencetables.cs" />
|
||||||
|
<Page Include="MainWindow.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
|
<Compile Include="MainWindow.xaml.cs">
|
||||||
|
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||||
|
<SubType>Code</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Page Include="AboutWindow.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs">
|
||||||
|
<SubType>Code</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Properties\Resources.Designer.cs">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Properties\Settings.Designer.cs">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
|
</Compile>
|
||||||
|
<EmbeddedResource Include="Properties\Resources.resx">
|
||||||
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<None Include="Properties\Settings.settings">
|
||||||
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
<AppDesigner Include="Properties\" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="icon.ico" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||||
|
# Visual C# Express 2010
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenTXspeak", "OpenTXspeak.csproj", "{8143D08D-1861-42DD-A861-56B15DE42A69}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{8143D08D-1861-42DD-A861-56B15DE42A69}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{8143D08D-1861-42DD-A861-56B15DE42A69}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{8143D08D-1861-42DD-A861-56B15DE42A69}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{8143D08D-1861-42DD-A861-56B15DE42A69}.Release|x86.Build.0 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using System.Resources;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("OpenTX Speaker")]
|
||||||
|
[assembly: AssemblyDescription("This application is used to edit OpenTX voice strings and generate audio files for use in the FrSky Taranis radio.")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("Kjell Kernen")]
|
||||||
|
[assembly: AssemblyProduct("OpenTX Speaker")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © The OpenTX Team 2014")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
//In order to begin building localizable applications, set
|
||||||
|
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
|
||||||
|
//inside a <PropertyGroup>. For example, if you are using US english
|
||||||
|
//in your source files, set the <UICulture> to en-US. Then uncomment
|
||||||
|
//the NeutralResourceLanguage attribute below. Update the "en-US" in
|
||||||
|
//the line below to match the UICulture setting in the project file.
|
||||||
|
|
||||||
|
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
|
||||||
|
|
||||||
|
|
||||||
|
[assembly: ThemeInfo(
|
||||||
|
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// or application resource dictionaries)
|
||||||
|
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// app, or any theme specific resource dictionaries)
|
||||||
|
)]
|
||||||
|
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("0.4")]
|
||||||
|
[assembly: AssemblyFileVersion("0.4")]
|
||||||
Generated
+71
@@ -0,0 +1,71 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Runtime Version:4.0.30319.18444
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace OpenTXspeak.Properties
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||||
|
/// </summary>
|
||||||
|
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||||
|
// class via a tool like ResGen or Visual Studio.
|
||||||
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||||
|
// with the /str option, or rebuild your VS project.
|
||||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
|
internal class Resources
|
||||||
|
{
|
||||||
|
|
||||||
|
private static global::System.Resources.ResourceManager resourceMan;
|
||||||
|
|
||||||
|
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||||
|
|
||||||
|
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||||
|
internal Resources()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the cached ResourceManager instance used by this class.
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
internal static global::System.Resources.ResourceManager ResourceManager
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if ((resourceMan == null))
|
||||||
|
{
|
||||||
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("OpenTXspeak.Properties.Resources", typeof(Resources).Assembly);
|
||||||
|
resourceMan = temp;
|
||||||
|
}
|
||||||
|
return resourceMan;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Overrides the current thread's CurrentUICulture property for all
|
||||||
|
/// resource lookups using this strongly typed resource class.
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
internal static global::System.Globalization.CultureInfo Culture
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return resourceCulture;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
resourceCulture = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
<?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.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: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" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
</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" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
</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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
Generated
+30
@@ -0,0 +1,30 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Runtime Version:4.0.30319.18444
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace OpenTXspeak.Properties
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
||||||
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||||
|
{
|
||||||
|
|
||||||
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
|
|
||||||
|
public static Settings Default
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return defaultInstance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
|
||||||
|
<Profiles>
|
||||||
|
<Profile Name="(Default)" />
|
||||||
|
</Profiles>
|
||||||
|
<Settings />
|
||||||
|
</SettingsFile>
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<Window x:Class="OpenTXspeak.AboutWindow"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
Title="OpenTX About Window" Height="273" Width="335" Icon="/OpenTXspeak;component/icon.ico" Background="Black">
|
||||||
|
<Grid>
|
||||||
|
<StackPanel>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Label Content="Product:" Foreground="White">
|
||||||
|
</Label>
|
||||||
|
<Label Content="Product Name" Name="lblProductName" Foreground="White"/>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Label Content="Version:" Foreground="White"/>
|
||||||
|
<Label Content="Version" Name="lblVersion" Foreground="White"/>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Label Content="Author:" Foreground="White"/>
|
||||||
|
<Label Content="Author:" Name="lblCompanyName" Foreground="White"/>
|
||||||
|
</StackPanel>
|
||||||
|
<Label Content="Copyright" Name="lblCopyright" Foreground="White"/>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="TextBlock" Name="description" Height="106" Margin="5,5,5,0" TextWrapping="Wrap" Width="175" Foreground="White"/>
|
||||||
|
<Image Source="/OpenTXspeak;component/icon.ico" Stretch="Uniform" />
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Text;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace OpenTXspeak
|
||||||
|
{
|
||||||
|
public partial class AboutWindow : Window
|
||||||
|
{
|
||||||
|
public AboutWindow()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
Assembly app = Assembly.GetExecutingAssembly();
|
||||||
|
|
||||||
|
AssemblyTitleAttribute title = (AssemblyTitleAttribute)app.GetCustomAttributes(typeof(AssemblyTitleAttribute), false)[0];
|
||||||
|
AssemblyProductAttribute product = (AssemblyProductAttribute)app.GetCustomAttributes(typeof(AssemblyProductAttribute), false)[0];
|
||||||
|
AssemblyCopyrightAttribute copyright = (AssemblyCopyrightAttribute)app.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0];
|
||||||
|
AssemblyCompanyAttribute company = (AssemblyCompanyAttribute)app.GetCustomAttributes(typeof(AssemblyCompanyAttribute), false)[0];
|
||||||
|
AssemblyDescriptionAttribute description = (AssemblyDescriptionAttribute)app.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false)[0];
|
||||||
|
Version version = app.GetName().Version;
|
||||||
|
|
||||||
|
this.Title = String.Format("About {0}", title.Title);
|
||||||
|
this.lblProductName.Content = product.Product;
|
||||||
|
this.lblVersion.Content = String.Format("Version {0}", version.ToString());
|
||||||
|
this.lblCopyright.Content = copyright.Copyright.ToString();
|
||||||
|
this.lblCompanyName.Content = company.Company;
|
||||||
|
this.description.Text = description.Description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 78 KiB |
@@ -0,0 +1,698 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Data;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace OpenTXspeak
|
||||||
|
{
|
||||||
|
public class SentenceTables
|
||||||
|
{
|
||||||
|
private static string[] default_en_system_strings =
|
||||||
|
{ "0000;0;0",
|
||||||
|
"0001;1;1",
|
||||||
|
"0002;2;2",
|
||||||
|
"0003;3;3",
|
||||||
|
"0004;4;4",
|
||||||
|
"0005;5;5",
|
||||||
|
"0006;6;6",
|
||||||
|
"0007;7;7",
|
||||||
|
"0008;8;8",
|
||||||
|
"0009;9;9",
|
||||||
|
"0010;10;10",
|
||||||
|
"0011;11;11",
|
||||||
|
"0012;12;12",
|
||||||
|
"0013;13;13",
|
||||||
|
"0014;14;14",
|
||||||
|
"0015;15;15",
|
||||||
|
"0016;16;16",
|
||||||
|
"0017;17;17",
|
||||||
|
"0018;18;18",
|
||||||
|
"0019;19;19",
|
||||||
|
"0020;20;20",
|
||||||
|
"0021;21;21",
|
||||||
|
"0022;22;24",
|
||||||
|
"0023;23;23",
|
||||||
|
"0024;24;24",
|
||||||
|
"0025;25;25",
|
||||||
|
"0026;26;26",
|
||||||
|
"0027;27;27",
|
||||||
|
"0028;28;28",
|
||||||
|
"0029;29;29",
|
||||||
|
"0030;30;30",
|
||||||
|
"0031;31;31",
|
||||||
|
"0032;32;32",
|
||||||
|
"0033;33;33",
|
||||||
|
"0034;34;34",
|
||||||
|
"0035;35;35",
|
||||||
|
"0036;36;36",
|
||||||
|
"0037;37;37",
|
||||||
|
"0038;38;38",
|
||||||
|
"0039;39;39",
|
||||||
|
"0040;40;40",
|
||||||
|
"0041;41;41",
|
||||||
|
"0042;42;42",
|
||||||
|
"0043;43;43",
|
||||||
|
"0044;44;44",
|
||||||
|
"0045;45;45",
|
||||||
|
"0046;46;46",
|
||||||
|
"0047;47;47",
|
||||||
|
"0048;48;48",
|
||||||
|
"0049;49;49",
|
||||||
|
"0050;50;50",
|
||||||
|
"0051;51;51",
|
||||||
|
"0052;52;52",
|
||||||
|
"0053;53;53",
|
||||||
|
"0054;54;54",
|
||||||
|
"0055;55;55",
|
||||||
|
"0056;56;56",
|
||||||
|
"0057;57;57",
|
||||||
|
"0058;58;58",
|
||||||
|
"0059;59;59",
|
||||||
|
"0060;60;60",
|
||||||
|
"0061;61;61",
|
||||||
|
"0062;62;62",
|
||||||
|
"0063;63;63",
|
||||||
|
"0064;64;64",
|
||||||
|
"0065;65;65",
|
||||||
|
"0066;66;66",
|
||||||
|
"0067;67;67",
|
||||||
|
"0068;68;68",
|
||||||
|
"0069;69;69",
|
||||||
|
"0070;70;70",
|
||||||
|
"0071;71;71",
|
||||||
|
"0072;72;72",
|
||||||
|
"0073;73;73",
|
||||||
|
"0074;74;74",
|
||||||
|
"0075;75;75",
|
||||||
|
"0076;76;76",
|
||||||
|
"0077;77;77",
|
||||||
|
"0078;78;78",
|
||||||
|
"0079;79;79",
|
||||||
|
"0080;80;80",
|
||||||
|
"0081;81;81",
|
||||||
|
"0082;82;82",
|
||||||
|
"0083;83;83",
|
||||||
|
"0084;84;84",
|
||||||
|
"0085;85;85",
|
||||||
|
"0086;86;86",
|
||||||
|
"0087;87;87",
|
||||||
|
"0088;88;88",
|
||||||
|
"0089;89;89",
|
||||||
|
"0090;90;90",
|
||||||
|
"0091;91;91",
|
||||||
|
"0092;92;92",
|
||||||
|
"0093;93;93",
|
||||||
|
"0094;94;94",
|
||||||
|
"0095;95;95",
|
||||||
|
"0096;96;96",
|
||||||
|
"0097;97;97",
|
||||||
|
"0098;98;98",
|
||||||
|
"0099;99;99",
|
||||||
|
"0100;100;100",
|
||||||
|
"0101;200;200",
|
||||||
|
"0102;300;300",
|
||||||
|
"0103;400;400",
|
||||||
|
"0104;500;500",
|
||||||
|
"0105;600;600",
|
||||||
|
"0106;700;700",
|
||||||
|
"0107;800;800",
|
||||||
|
"0108;900;900",
|
||||||
|
"0109;thousand;thousand",
|
||||||
|
"0111;minus;minus",
|
||||||
|
"0112;point;point",
|
||||||
|
"0115;volt;volt",
|
||||||
|
"0116;volts;volts",
|
||||||
|
"0117;amp;ampere",
|
||||||
|
"0118;amps;ampere",
|
||||||
|
"0119;meter per second;meter per second",
|
||||||
|
"0120;meters per second;meters per second",
|
||||||
|
"0123;kmh;k-m-h",
|
||||||
|
"0124;kmh;k-m-h",
|
||||||
|
"0125;meter;meter",
|
||||||
|
"0126;meters;meters",
|
||||||
|
"0127;degree;degree",
|
||||||
|
"0128;degrees;degrees",
|
||||||
|
"0129;percent;percent",
|
||||||
|
"0130;percent;percent",
|
||||||
|
"0131;milliamp;milliamp",
|
||||||
|
"0132;milliamps;milliamps",
|
||||||
|
"0133;mah;m-a-h",
|
||||||
|
"0134;mah;m-a-h",
|
||||||
|
"0135;watt;watt",
|
||||||
|
"0136;watts;watts",
|
||||||
|
"0137;db;db",
|
||||||
|
"0138;db;db",
|
||||||
|
"0140;feet;feet",
|
||||||
|
"0141;knot;knot",
|
||||||
|
"0142;knots;knots",
|
||||||
|
"0143;hour;hour",
|
||||||
|
"0144;hours;hours",
|
||||||
|
"0145;minute;minute",
|
||||||
|
"0146;minutes;minutes",
|
||||||
|
"0147;second;second",
|
||||||
|
"0148;seconds;seconds",
|
||||||
|
"0149;rpm;r-p-m",
|
||||||
|
"0150;rpm;r-p-m",
|
||||||
|
"0151;g;gee",
|
||||||
|
"0152;g;gees",
|
||||||
|
"0160;point zero;point zero",
|
||||||
|
"0161;point one;point one",
|
||||||
|
"0162;point two;point two",
|
||||||
|
"0163;point three;point three",
|
||||||
|
"0164;point four;point four",
|
||||||
|
"0165;point five;point five",
|
||||||
|
"0166;point six;point six",
|
||||||
|
"0167;point seven;point seven",
|
||||||
|
"0168;point eight;point eight",
|
||||||
|
"0169;point nine;point nine",
|
||||||
|
"a1_org;a1 low;a1 low",
|
||||||
|
"a1_red;a1 critical;a1 critical",
|
||||||
|
"a2_org;a2 low;a2 low",
|
||||||
|
"a2_red;a2 critical;a2 critical",
|
||||||
|
"endtrim;maximum trim reached;maximum trim reached",
|
||||||
|
"inactiv;inactivity alarm;inactivity alarm",
|
||||||
|
"lowbatt;radio battery low;radio battery low",
|
||||||
|
"midtrim;trim center;center",
|
||||||
|
"rssi_org;rf signal low;rf signal low",
|
||||||
|
"rssi_red;rf signal critical;rf signal critical",
|
||||||
|
"swalert;switch warning;switch warning",
|
||||||
|
"swr_red;radio antenna defective;radio antenna defective",
|
||||||
|
"tada;welcome to opentx;welcome to open T-X",
|
||||||
|
"telemko;telemetry lost;telemetry lost",
|
||||||
|
"telemok;telemetry recover;telemetry recover",
|
||||||
|
"thralert;throttle warning;throttle warning",
|
||||||
|
"timer10;10 seconds;10 seconds",
|
||||||
|
"timer20;20 seconds;20 seconds",
|
||||||
|
"timer30;30 seconds;30 seconds",
|
||||||
|
"timerlt3;timer sound;a a a a" };
|
||||||
|
|
||||||
|
private static string[] default_en_other_strings =
|
||||||
|
{ "atti;attitude;attitude",
|
||||||
|
"batcrit;battery critical;battery critical",
|
||||||
|
"batlow;low battery;low battery",
|
||||||
|
"camcenter;camera center;camera center",
|
||||||
|
"camfix;camera fixed;camera fixed",
|
||||||
|
"cammanual;camera manual;camera manual",
|
||||||
|
"capacity;capacity;capacity",
|
||||||
|
"engdis;engine disabled;engine disabled",
|
||||||
|
"engoff;engine off;engine off",
|
||||||
|
"engon;engine on;engine on",
|
||||||
|
"flaps1;flaps 1;flaps 1",
|
||||||
|
"flaps2;flaps 2;flaps 2",
|
||||||
|
"flapsdn;flaps down;flaps down",
|
||||||
|
"flapsup;flaps up;flaps up",
|
||||||
|
"fltmode1;flight mode one;flight mode one",
|
||||||
|
"fltmode2;flight mode two;flight mode two",
|
||||||
|
"fltmode3;flight mode three;flight mode three",
|
||||||
|
"fltmode4;flight mode four;flight mode four",
|
||||||
|
"fltmode5;flight mode five;flight mode five",
|
||||||
|
"fltmode6;flight mode six;flight mode six",
|
||||||
|
"fltmode7;flight mode seven;flight mode seven",
|
||||||
|
"fltmode8;flight mode eight;flight mode eight",
|
||||||
|
"fsoff;failsafe off;failsafe off",
|
||||||
|
"fson;failsafe on;failsafe on",
|
||||||
|
"geardn;gear down;gear down",
|
||||||
|
"gearup;gear upp;gear upp",
|
||||||
|
"gps;gps;G-P-S",
|
||||||
|
"horn;horn sound;eeeeeeeee",
|
||||||
|
"hirates;hi rates;hi rates",
|
||||||
|
"htoff;head tracker off;head tracker off",
|
||||||
|
"hton;head tracker on;head tracker on",
|
||||||
|
"ioc;ioc;ioc",
|
||||||
|
"iocoff;ioc off;ioc off",
|
||||||
|
"lowrates;lowrates;lowrates",
|
||||||
|
"manual;manual;manual",
|
||||||
|
"normal;normal;normal",
|
||||||
|
"nrmmod;normal mode;normal mode",
|
||||||
|
"pouet;small horn;ee , ee",
|
||||||
|
"shutter;camera shutter sound;klick",
|
||||||
|
"thrhold;throttle locked;throttle locked",
|
||||||
|
"thrrel;throttle released;throttle released",
|
||||||
|
"wizz;wizzing sound;shiss" };
|
||||||
|
|
||||||
|
private static string[] default_se_system_strings =
|
||||||
|
{ "0000;0;0",
|
||||||
|
"0001;1;en",
|
||||||
|
"0002;2;2",
|
||||||
|
"0003;3;3",
|
||||||
|
"0004;4;4",
|
||||||
|
"0005;5;5",
|
||||||
|
"0006;6;6",
|
||||||
|
"0007;7;7",
|
||||||
|
"0008;8;8",
|
||||||
|
"0009;9;9",
|
||||||
|
"0010;10;10",
|
||||||
|
"0011;11;11",
|
||||||
|
"0012;12;12",
|
||||||
|
"0013;13;13",
|
||||||
|
"0014;14;14",
|
||||||
|
"0015;15;15",
|
||||||
|
"0016;16;16",
|
||||||
|
"0017;17;17",
|
||||||
|
"0018;18;18",
|
||||||
|
"0019;19;19",
|
||||||
|
"0020;20;20",
|
||||||
|
"0021;21;tjugoen",
|
||||||
|
"0022;22;24",
|
||||||
|
"0023;23;23",
|
||||||
|
"0024;24;24",
|
||||||
|
"0025;25;25",
|
||||||
|
"0026;26;26",
|
||||||
|
"0027;27;27",
|
||||||
|
"0028;28;28",
|
||||||
|
"0029;29;29",
|
||||||
|
"0030;30;30",
|
||||||
|
"0031;31;trettioen",
|
||||||
|
"0032;32;32",
|
||||||
|
"0033;33;33",
|
||||||
|
"0034;34;34",
|
||||||
|
"0035;35;35",
|
||||||
|
"0036;36;36",
|
||||||
|
"0037;37;37",
|
||||||
|
"0038;38;38",
|
||||||
|
"0039;39;39",
|
||||||
|
"0040;40;40",
|
||||||
|
"0041;41;fyrtioen",
|
||||||
|
"0042;42;42",
|
||||||
|
"0043;43;43",
|
||||||
|
"0044;44;44",
|
||||||
|
"0045;45;45",
|
||||||
|
"0046;46;46",
|
||||||
|
"0047;47;47",
|
||||||
|
"0048;48;48",
|
||||||
|
"0049;49;49",
|
||||||
|
"0050;50;50",
|
||||||
|
"0051;51;femtioen",
|
||||||
|
"0052;52;52",
|
||||||
|
"0053;53;53",
|
||||||
|
"0054;54;54",
|
||||||
|
"0055;55;55",
|
||||||
|
"0056;56;56",
|
||||||
|
"0057;57;57",
|
||||||
|
"0058;58;58",
|
||||||
|
"0059;59;59",
|
||||||
|
"0060;60;60",
|
||||||
|
"0061;61;sextioen",
|
||||||
|
"0062;62;62",
|
||||||
|
"0063;63;63",
|
||||||
|
"0064;64;64",
|
||||||
|
"0065;65;65",
|
||||||
|
"0066;66;66",
|
||||||
|
"0067;67;67",
|
||||||
|
"0068;68;68",
|
||||||
|
"0069;69;69",
|
||||||
|
"0070;70;70",
|
||||||
|
"0071;71;sjuttioen",
|
||||||
|
"0072;72;72",
|
||||||
|
"0073;73;73",
|
||||||
|
"0074;74;74",
|
||||||
|
"0075;75;75",
|
||||||
|
"0076;76;76",
|
||||||
|
"0077;77;77",
|
||||||
|
"0078;78;78",
|
||||||
|
"0079;79;79",
|
||||||
|
"0080;80;80",
|
||||||
|
"0081;81;åttioen",
|
||||||
|
"0082;82;82",
|
||||||
|
"0083;83;83",
|
||||||
|
"0084;84;84",
|
||||||
|
"0085;85;85",
|
||||||
|
"0086;86;86",
|
||||||
|
"0087;87;87",
|
||||||
|
"0088;88;88",
|
||||||
|
"0089;89;89",
|
||||||
|
"0090;90;90",
|
||||||
|
"0091;91;nittioen",
|
||||||
|
"0092;92;92",
|
||||||
|
"0093;93;93",
|
||||||
|
"0094;94;94",
|
||||||
|
"0095;95;95",
|
||||||
|
"0096;96;96",
|
||||||
|
"0097;97;97",
|
||||||
|
"0098;98;98",
|
||||||
|
"0099;99;99",
|
||||||
|
"0100;100;100",
|
||||||
|
"0101;200;200",
|
||||||
|
"0102;300;300",
|
||||||
|
"0103;400;400",
|
||||||
|
"0104;500;500",
|
||||||
|
"0105;600;600",
|
||||||
|
"0106;700;700",
|
||||||
|
"0107;800;800",
|
||||||
|
"0108;900;900",
|
||||||
|
"0109;thousand;tusen",
|
||||||
|
"0111;minus;minus",
|
||||||
|
"0112;point;komma",
|
||||||
|
"0115;volt;volt",
|
||||||
|
"0116;volts;volt",
|
||||||
|
"0117;amp;ampere",
|
||||||
|
"0118;amps;ampere",
|
||||||
|
"0119;meter per second;meter per sekund",
|
||||||
|
"0120;meters per second;meter per sekund",
|
||||||
|
"0123;kmh;kilometer i timmen",
|
||||||
|
"0124;kmh;kilometer i timmen",
|
||||||
|
"0125;meter;meter",
|
||||||
|
"0126;meters;meter",
|
||||||
|
"0127;degree;grad",
|
||||||
|
"0128;degrees;grader",
|
||||||
|
"0129;percent;procent",
|
||||||
|
"0130;percent;procent",
|
||||||
|
"0131;milliamp;milliampere",
|
||||||
|
"0132;milliamps;milliampere",
|
||||||
|
"0133;mah;milliampere-timme",
|
||||||
|
"0134;mah;milliampere-timmar",
|
||||||
|
"0135;watt;watt",
|
||||||
|
"0136;watts;watt",
|
||||||
|
"0137;db;dessibell",
|
||||||
|
"0138;db;dessibell",
|
||||||
|
"0140;feet;fot",
|
||||||
|
"0141;knot;knop",
|
||||||
|
"0142;knots;knop",
|
||||||
|
"0143;hour;timme",
|
||||||
|
"0144;hours;timmar",
|
||||||
|
"0145;minute;minut",
|
||||||
|
"0146;minutes;minuter",
|
||||||
|
"0147;second;sekund",
|
||||||
|
"0148;seconds;sekunder",
|
||||||
|
"0149;rpm;varv i minuten",
|
||||||
|
"0150;rpm;varv i minuten",
|
||||||
|
"0151;g;g",
|
||||||
|
"0152;g;g",
|
||||||
|
"0160;point zero;komma noll",
|
||||||
|
"0161;point one;komma en",
|
||||||
|
"0162;point two;komma två",
|
||||||
|
"0163;point three;komma tre",
|
||||||
|
"0164;point four;komma fyra",
|
||||||
|
"0165;point five;komma fem",
|
||||||
|
"0166;point six;komma sex",
|
||||||
|
"0167;point seven;komma sju",
|
||||||
|
"0168;point eight;komma åtta",
|
||||||
|
"0169;point nine;komma nio",
|
||||||
|
"a1_org;a1 low;a1 låg",
|
||||||
|
"a1_red;a1 critical;a1 kritisk",
|
||||||
|
"a2_org;a2 low;a2 låg",
|
||||||
|
"a2_red;a2 critical;a2 kritisk",
|
||||||
|
"endtrim;maximum trim reached;maximum trim",
|
||||||
|
"inact;inactivity alarm;inaktivitets-larm",
|
||||||
|
"lowbat;radio battery low;Låg radiobatterispänning",
|
||||||
|
"midtrim;trim center;center",
|
||||||
|
"rssi_org;rf signal low;Svag radio-signal",
|
||||||
|
"rssi_red;rf signal critical;Kritisk radio-signal",
|
||||||
|
"swalert;switch warning;brytar-varning",
|
||||||
|
"swr_red;;radio-antennen är defekt",
|
||||||
|
"tada;;Välkommen till open Te Ex",
|
||||||
|
"telemko;;telemetri förlorad",
|
||||||
|
"telemok;;telemetri åter",
|
||||||
|
"thralert;;gas-varning",
|
||||||
|
"timer10;;10 sekunder",
|
||||||
|
"timer20;;20 sekunder",
|
||||||
|
"timer30;;30 sekunder",
|
||||||
|
"timerlt3;timer sound;a a a a" };
|
||||||
|
|
||||||
|
private static string[] default_se_other_strings =
|
||||||
|
{ "atti;;lutning",
|
||||||
|
"batcrit;;kritisk batteri-nivå",
|
||||||
|
"batlow;;låg batteri-nivå",
|
||||||
|
"camcenter;;kamera centrerad",
|
||||||
|
"cammanual;;manuell kamera-kontroll",
|
||||||
|
"capacity;;kapacitet",
|
||||||
|
"engdis;;motor säkrad",
|
||||||
|
"engoff;;motor avslagen",
|
||||||
|
"engon;;motor på",
|
||||||
|
"flaps1;;flaps läge, ett",
|
||||||
|
"flaps2;;flaps läge två",
|
||||||
|
"flapsdn;;flaps ned",
|
||||||
|
"flapsup;;flaps upp",
|
||||||
|
"fltmode1;;flyg-läge, ett",
|
||||||
|
"fltmode2;;flyg-läge två",
|
||||||
|
"fltmode3;;flyg-läge tre",
|
||||||
|
"fltmode4;;flyg-läge fyra",
|
||||||
|
"fltmode5;;flyg-läge fem",
|
||||||
|
"fltmode6;;flyg-läge sex",
|
||||||
|
"fltmode7;;flyg-läge sju",
|
||||||
|
"fltmode8;;flyg-läge åtta",
|
||||||
|
"fsoff;;fäjlsäif avslagen",
|
||||||
|
"fson;;fäjlsäif på",
|
||||||
|
"geardn;;landningsställ ned",
|
||||||
|
"gearup;;landningsställ upp",
|
||||||
|
"gps;;GPS",
|
||||||
|
"hirates;;höga nivåer",
|
||||||
|
"htoff;;head tracker avslagen",
|
||||||
|
"hton;;head tracker på",
|
||||||
|
"horn;horn sound;eeeeeeeee",
|
||||||
|
"ioc;;i o c",
|
||||||
|
"iocoff;;i o c avslagen",
|
||||||
|
"lowrates;;låga nivåer",
|
||||||
|
"manual;;manuell",
|
||||||
|
"normal;;normal",
|
||||||
|
"nrmmod;;normalt läge",
|
||||||
|
"pouet;small horn;ee , ee",
|
||||||
|
"shutter;camera shutter sound;klick",
|
||||||
|
"thrhold;;gas säkrad",
|
||||||
|
"thrrel;;gas osäkrad",
|
||||||
|
"speed;;hastighet",
|
||||||
|
"start;;start",
|
||||||
|
"thermal;;termik",
|
||||||
|
"wizz;wizzing sound;shiss" };
|
||||||
|
|
||||||
|
private static string[] default_it_system_strings =
|
||||||
|
{ "0000;0;0",
|
||||||
|
"0001;1;1",
|
||||||
|
"0002;2;2",
|
||||||
|
"0003;3;3",
|
||||||
|
"0004;4;4",
|
||||||
|
"0005;5;5",
|
||||||
|
"0006;6;6",
|
||||||
|
"0007;7;7",
|
||||||
|
"0008;8;8",
|
||||||
|
"0009;9;9",
|
||||||
|
"0010;10;10",
|
||||||
|
"0011;11;11",
|
||||||
|
"0012;12;12",
|
||||||
|
"0013;13;13",
|
||||||
|
"0014;14;14",
|
||||||
|
"0015;15;15",
|
||||||
|
"0016;16;16",
|
||||||
|
"0017;17;17",
|
||||||
|
"0018;18;18",
|
||||||
|
"0019;19;19",
|
||||||
|
"0020;20;20",
|
||||||
|
"0021;21;21",
|
||||||
|
"0022;22;24",
|
||||||
|
"0023;23;23",
|
||||||
|
"0024;24;24",
|
||||||
|
"0025;25;25",
|
||||||
|
"0026;26;26",
|
||||||
|
"0027;27;27",
|
||||||
|
"0028;28;28",
|
||||||
|
"0029;29;29",
|
||||||
|
"0030;30;30",
|
||||||
|
"0031;31;31",
|
||||||
|
"0032;32;32",
|
||||||
|
"0033;33;33",
|
||||||
|
"0034;34;34",
|
||||||
|
"0035;35;35",
|
||||||
|
"0036;36;36",
|
||||||
|
"0037;37;37",
|
||||||
|
"0038;38;38",
|
||||||
|
"0039;39;39",
|
||||||
|
"0040;40;40",
|
||||||
|
"0041;41;41",
|
||||||
|
"0042;42;42",
|
||||||
|
"0043;43;43",
|
||||||
|
"0044;44;44",
|
||||||
|
"0045;45;45",
|
||||||
|
"0046;46;46",
|
||||||
|
"0047;47;47",
|
||||||
|
"0048;48;48",
|
||||||
|
"0049;49;49",
|
||||||
|
"0050;50;50",
|
||||||
|
"0051;51;51",
|
||||||
|
"0052;52;52",
|
||||||
|
"0053;53;53",
|
||||||
|
"0054;54;54",
|
||||||
|
"0055;55;55",
|
||||||
|
"0056;56;56",
|
||||||
|
"0057;57;57",
|
||||||
|
"0058;58;58",
|
||||||
|
"0059;59;59",
|
||||||
|
"0060;60;60",
|
||||||
|
"0061;61;61",
|
||||||
|
"0062;62;62",
|
||||||
|
"0063;63;63",
|
||||||
|
"0064;64;64",
|
||||||
|
"0065;65;65",
|
||||||
|
"0066;66;66",
|
||||||
|
"0067;67;67",
|
||||||
|
"0068;68;68",
|
||||||
|
"0069;69;69",
|
||||||
|
"0070;70;70",
|
||||||
|
"0071;71;71",
|
||||||
|
"0072;72;72",
|
||||||
|
"0073;73;73",
|
||||||
|
"0074;74;74",
|
||||||
|
"0075;75;75",
|
||||||
|
"0076;76;76",
|
||||||
|
"0077;77;77",
|
||||||
|
"0078;78;78",
|
||||||
|
"0079;79;79",
|
||||||
|
"0080;80;80",
|
||||||
|
"0081;81;81",
|
||||||
|
"0082;82;82",
|
||||||
|
"0083;83;83",
|
||||||
|
"0084;84;84",
|
||||||
|
"0085;85;85",
|
||||||
|
"0086;86;86",
|
||||||
|
"0087;87;87",
|
||||||
|
"0088;88;88",
|
||||||
|
"0089;89;89",
|
||||||
|
"0090;90;90",
|
||||||
|
"0091;91;91",
|
||||||
|
"0092;92;92",
|
||||||
|
"0093;93;93",
|
||||||
|
"0094;94;94",
|
||||||
|
"0095;95;95",
|
||||||
|
"0096;96;96",
|
||||||
|
"0097;97;97",
|
||||||
|
"0098;98;98",
|
||||||
|
"0099;99;99",
|
||||||
|
"0100;100;100",
|
||||||
|
"0101;mila;mila",
|
||||||
|
"0102;mille;mille",
|
||||||
|
"0103;virgola;virgola",
|
||||||
|
"0104;un;un",
|
||||||
|
"0105;e;e",
|
||||||
|
"0106;meno;meno",
|
||||||
|
"0107;ora;ora",
|
||||||
|
"0108;ore;ore",
|
||||||
|
"0109;minuto;minuto",
|
||||||
|
"0110;minuti;minuti",
|
||||||
|
"0111;secondo;secondo",
|
||||||
|
"0112;secondi;secondi",
|
||||||
|
"0113;;volt",
|
||||||
|
"0114;;ampere",
|
||||||
|
"0115;;metri per secondo",
|
||||||
|
"0116;;",
|
||||||
|
"0117;;chilometri/ora",
|
||||||
|
"0118;;metri",
|
||||||
|
"0119;;gradi",
|
||||||
|
"0120;;percento",
|
||||||
|
"0121;;milliampere",
|
||||||
|
"0122;;milliampere/ora",
|
||||||
|
"0123;;watt",
|
||||||
|
"0124;;db",
|
||||||
|
"0125;;piedi",
|
||||||
|
"0126;;nodi",
|
||||||
|
"0127;;ore",
|
||||||
|
"0128;;minuti",
|
||||||
|
"0129;;secondi",
|
||||||
|
"0130;;R P M",
|
||||||
|
"0131;;g",
|
||||||
|
"0132;;timer",
|
||||||
|
"0133;;timer",
|
||||||
|
"0134;;trasmissione",
|
||||||
|
"0135;;ricezione",
|
||||||
|
"0136;;A1",
|
||||||
|
"0137;;A2",
|
||||||
|
"0138;;altitudine",
|
||||||
|
"0139;;motore",
|
||||||
|
"0140;;carburante",
|
||||||
|
"0141;;temperatura",
|
||||||
|
"0142;;temperatura",
|
||||||
|
"0143;;velocità",
|
||||||
|
"0144;;distanza",
|
||||||
|
"0145;;altitudine",
|
||||||
|
"0146;;cella lipo",
|
||||||
|
"0147;;totale lipo",
|
||||||
|
"0148;;tensione",
|
||||||
|
"0149;;corrente",
|
||||||
|
"0150;;consumo",
|
||||||
|
"0151;;potenza",
|
||||||
|
"0152;;accellerazione X",
|
||||||
|
"0153;;accellerazione Y",
|
||||||
|
"0154;;accellerazione Z",
|
||||||
|
"0155;;direzione",
|
||||||
|
"0156;;variometro",
|
||||||
|
"0157;;minimo",
|
||||||
|
"0158;;massimo",
|
||||||
|
"a1_org;A1 in allarme;A1 in allarme",
|
||||||
|
"a1_red;A1 critico;A1 critico",
|
||||||
|
"a2_org;A2 in allarme;A2 in allarme",
|
||||||
|
"a2_red;A2 critico;A2 critico",
|
||||||
|
"eebad;eeprom corrotta;eeprom corrotta",
|
||||||
|
"eeformat;formattazone eeprom in corso;formattazone eeprom in corso",
|
||||||
|
"endtrim;massimo trim raggiunto;massimo trim raggiunto",
|
||||||
|
"error;errore;errore",
|
||||||
|
"highmah;assorbimento elevato;assorbimento elevato",
|
||||||
|
"hightemp;temperatura elevata;temperatura elevata",
|
||||||
|
"inactiv;radio inattiva controllare;radio inattiva controllare",
|
||||||
|
"lowbatt;batteria della radio scarica;batteria della radio scarica",
|
||||||
|
"midpot;potenziometro centrato;potenziometro centrato",
|
||||||
|
"midtrim;trim centrato;trim centrato",
|
||||||
|
"rssi_org;Segnale radio basso;Segnale radio basso",
|
||||||
|
"rssi_red;Segnale radio critico;Segnale radio critico",
|
||||||
|
"swalert;interruttori non in posizione, verificare;interruttori non in posizione, verificare",
|
||||||
|
"swr_red;Problema all'antenna della radio;Problema all'antenna della radio",
|
||||||
|
"tada;;Benvenuto",
|
||||||
|
"telemko;Telemetria assente;Telemetria assente",
|
||||||
|
"telemok;Telemetria disponibile;Telemetria disponibile",
|
||||||
|
"thralert;controllo motore non in posizione, verificare;controllo motore non in posizione, verificare",
|
||||||
|
"timer10;dieci secondi;dieci secondi",
|
||||||
|
"timer20;venti secondi;venti secondi",
|
||||||
|
"timer30;trenta secondi;trenta secondi",
|
||||||
|
"timerlt3;timer sound;a a a a" };
|
||||||
|
|
||||||
|
private static string[] default_it_other_strings =
|
||||||
|
{ "attero;;atterraggiio",
|
||||||
|
"crowof;;crow off",
|
||||||
|
"crowon;;crow on",
|
||||||
|
"engoff;;motore spento",
|
||||||
|
"flapdn;;flap estesi",
|
||||||
|
"flapup;;flap rientrati",
|
||||||
|
"fltmd1;;fase di volo 1",
|
||||||
|
"fltmd2;;fase di volo 2",
|
||||||
|
"fltmd3;;fase di volo 3",
|
||||||
|
"fltmd4;;fase di volo 4",
|
||||||
|
"fltmd5;;fase di volo 5",
|
||||||
|
"fltmd6;;fase di volo 6",
|
||||||
|
"fltmd7;;fase di volo 7",
|
||||||
|
"fltmd8;;fase di volo 8",
|
||||||
|
"fltmd9;;fase di volo 9",
|
||||||
|
"geardn;;carrello aperto",
|
||||||
|
"gearup;;carrello chiuso",
|
||||||
|
"gps;;GPS",
|
||||||
|
"lowbat;;batteria scarica",
|
||||||
|
"nrmmod;;modo volo normale",
|
||||||
|
"spdmod;;modo velocità",
|
||||||
|
"thmmod;;modo termica",
|
||||||
|
"tohigh;;troppo alto",
|
||||||
|
"tolow;;troppo basso",
|
||||||
|
"trnoff;;modalità maestro disattiva",
|
||||||
|
"trnon;;modalità maestro attiva" };
|
||||||
|
|
||||||
|
|
||||||
|
public string[][] default_system_strings = new string[15][];
|
||||||
|
public string[][] default_other_strings = new string[15][];
|
||||||
|
|
||||||
|
public int toInt(string langStr)
|
||||||
|
{
|
||||||
|
if (langStr == "se") return 1;
|
||||||
|
if (langStr == "it") return 2;
|
||||||
|
else return 0; //English default
|
||||||
|
}
|
||||||
|
|
||||||
|
public SentenceTables()
|
||||||
|
{
|
||||||
|
default_other_strings[toInt("en")] = default_en_other_strings;
|
||||||
|
default_system_strings[toInt("en")] = default_en_system_strings;
|
||||||
|
|
||||||
|
default_other_strings[toInt("se")] = default_se_other_strings;
|
||||||
|
default_system_strings[toInt("se")] = default_se_system_strings;
|
||||||
|
|
||||||
|
default_other_strings[toInt("it")] = default_it_other_strings;
|
||||||
|
default_system_strings[toInt("it")] = default_it_system_strings;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user