Bonjour,
Je développe actuellement une application avec de la reconnaissance vocale. L'application est disponible en Anglais-US et Français-Canadien.
Là où mon problème intervient, est pour le français-canadien.
En effet, il n'existe pas de reconnaissance vocale pour les canadiens. Et le fait de passer toutes les interfaces en français-français n'est pas envisageable.
Pouvez-vous m'aider svp ?
Pour illustrer mon exemple, j'ai créé une petite application qui génère l'exception :
Form1.cs :
Code C# : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Speech.Recognition; namespace ProtoUI { public partial class Form1 : Form { SpeechRecognitionEngine recognizer; public Form1() { InitializeComponent(); labelRegonizerLangue.Text += Application.CurrentCulture.Name.ToString(); } private void recognizer_SpeechRecognized(object sender, SpeechRecognizedEventArgs e) { txtBoxSpeechRecognized.Text = e.Result.Text; } private void checkBoxActivateSpeechRecogninzer_CheckedChanged(object sender, EventArgs e) { if (checkBoxActivateSpeechRecogninzer.Checked) { InitSpeechRecognition(); } else { StopSpeechRecognition(); } } private void StopSpeechRecognition() { textBoxRecognizerState.Text = recognizer.AudioState.ToString(); recognizer.UnloadAllGrammars(); recognizer.SpeechRecognized -= new EventHandler<SpeechRecognizedEventArgs>(recognizer_SpeechRecognized); recognizer = null; } private void InitSpeechRecognition() { recognizer = new SpeechRecognitionEngine(new System.Globalization.CultureInfo("fr-CA")); recognizer.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(recognizer_SpeechRecognized); Choices termList = new Choices(); termList.Add(new string[] { "Green, Blue, Red, Vert, Bleu, Rouge" }); //Create grammar builder. GrammarBuilder grammarBuilder = new GrammarBuilder(); grammarBuilder.Append(termList); // Create and load a dictation grammar. Grammar grammar = new Grammar(grammarBuilder); recognizer.LoadGrammar(grammar); // Configure input to the speech recognizer. recognizer.SetInputToDefaultAudioDevice(); // Start asynchronous, continuous speech recognition. recognizer.RecognizeAsync(RecognizeMode.Multiple); textBoxRecognizerState.Text = recognizer.AudioState.ToString(); } } }
Program.cs :
Code C# : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Threading; using System.Globalization; namespace ProtoUI { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.CurrentCulture = new CultureInfo("fr-CA"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-CA"); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } }
Form1.designer.cs :
Code C# : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123 namespace ProtoUI { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.txtBoxSpeechRecognized = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.textBoxRecognizerState = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.labelRegonizerLangue = new System.Windows.Forms.Label(); this.checkBoxActivateSpeechRecogninzer = new System.Windows.Forms.CheckBox(); this.SuspendLayout(); // // txtBoxSpeechRecognized // this.txtBoxSpeechRecognized.AccessibleDescription = null; this.txtBoxSpeechRecognized.AccessibleName = null; resources.ApplyResources(this.txtBoxSpeechRecognized, "txtBoxSpeechRecognized"); this.txtBoxSpeechRecognized.BackgroundImage = null; this.txtBoxSpeechRecognized.Font = null; this.txtBoxSpeechRecognized.Name = "txtBoxSpeechRecognized"; // // label2 // this.label2.AccessibleDescription = null; this.label2.AccessibleName = null; resources.ApplyResources(this.label2, "label2"); this.label2.Font = null; this.label2.Name = "label2"; // // textBoxRecognizerState // this.textBoxRecognizerState.AccessibleDescription = null; this.textBoxRecognizerState.AccessibleName = null; resources.ApplyResources(this.textBoxRecognizerState, "textBoxRecognizerState"); this.textBoxRecognizerState.BackgroundImage = null; this.textBoxRecognizerState.Font = null; this.textBoxRecognizerState.Name = "textBoxRecognizerState"; // // label1 // this.label1.AccessibleDescription = null; this.label1.AccessibleName = null; resources.ApplyResources(this.label1, "label1"); this.label1.Font = null; this.label1.Name = "label1"; // // labelRegonizerLangue // this.labelRegonizerLangue.AccessibleDescription = null; this.labelRegonizerLangue.AccessibleName = null; resources.ApplyResources(this.labelRegonizerLangue, "labelRegonizerLangue"); this.labelRegonizerLangue.Name = "labelRegonizerLangue"; // // checkBoxActivateSpeechRecogninzer // this.checkBoxActivateSpeechRecogninzer.AccessibleDescription = null; this.checkBoxActivateSpeechRecogninzer.AccessibleName = null; resources.ApplyResources(this.checkBoxActivateSpeechRecogninzer, "checkBoxActivateSpeechRecogninzer"); this.checkBoxActivateSpeechRecogninzer.BackgroundImage = null; this.checkBoxActivateSpeechRecogninzer.Font = null; this.checkBoxActivateSpeechRecogninzer.Name = "checkBoxActivateSpeechRecogninzer"; this.checkBoxActivateSpeechRecogninzer.UseVisualStyleBackColor = true; this.checkBoxActivateSpeechRecogninzer.CheckedChanged += new System.EventHandler(this.checkBoxActivateSpeechRecogninzer_CheckedChanged); // // Form1 // this.AccessibleDescription = null; this.AccessibleName = null; resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackgroundImage = null; this.Controls.Add(this.checkBoxActivateSpeechRecogninzer); this.Controls.Add(this.labelRegonizerLangue); this.Controls.Add(this.label1); this.Controls.Add(this.textBoxRecognizerState); this.Controls.Add(this.txtBoxSpeechRecognized); this.Controls.Add(this.label2); this.Font = null; this.Icon = null; this.Name = "Form1"; this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.TextBox txtBoxSpeechRecognized; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox textBoxRecognizerState; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label labelRegonizerLangue; private System.Windows.Forms.CheckBox checkBoxActivateSpeechRecogninzer; } }
Resx de base :
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304 <?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=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> <assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <data name="checkBoxActivateSpeechRecogninzer.AutoSize" type="System.Boolean, mscorlib"> <value>True</value> </data> <data name=">>label2.Name" xml:space="preserve"> <value>label2</value> </data> <data name=">>$this.Name" xml:space="preserve"> <value>Form1</value> </data> <data name=">>labelRegonizerLangue.Name" xml:space="preserve"> <value>labelRegonizerLangue</value> </data> <data name=">>label1.ZOrder" xml:space="preserve"> <value>2</value> </data> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <data name="labelRegonizerLangue.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms"> <value>NoControl</value> </data> <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <data name="label1.Size" type="System.Drawing.Size, System.Drawing"> <value>93, 13</value> </data> <data name="label2.Text" xml:space="preserve"> <value>Text recognized :</value> </data> <data name="label2.TabIndex" type="System.Int32, mscorlib"> <value>3</value> </data> <data name="label2.AutoSize" type="System.Boolean, mscorlib"> <value>True</value> </data> <data name="txtBoxSpeechRecognized.Location" type="System.Drawing.Point, System.Drawing"> <value>133, 253</value> </data> <data name="label1.Text" xml:space="preserve"> <value>Recognizer state :</value> </data> <data name=">>textBoxRecognizerState.Name" xml:space="preserve"> <value>textBoxRecognizerState</value> </data> <data name="label1.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms"> <value>NoControl</value> </data> <data name="checkBoxActivateSpeechRecogninzer.Text" xml:space="preserve"> <value>Active speech recognizer</value> </data> <data name="$this.Text" xml:space="preserve"> <value>English window</value> </data> <data name=">>textBoxRecognizerState.Type" xml:space="preserve"> <value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </data> <data name="label2.Location" type="System.Drawing.Point, System.Drawing"> <value>148, 222</value> </data> <data name=">>txtBoxSpeechRecognized.ZOrder" xml:space="preserve"> <value>4</value> </data> <data name=">>textBoxRecognizerState.ZOrder" xml:space="preserve"> <value>3</value> </data> <data name=">>label2.Type" xml:space="preserve"> <value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </data> <data name=">>checkBoxActivateSpeechRecogninzer.Type" xml:space="preserve"> <value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </data> <data name=">>checkBoxActivateSpeechRecogninzer.ZOrder" xml:space="preserve"> <value>0</value> </data> <data name="checkBoxActivateSpeechRecogninzer.TabIndex" type="System.Int32, mscorlib"> <value>11</value> </data> <data name=">>txtBoxSpeechRecognized.Parent" xml:space="preserve"> <value>$this</value> </data> <data name=">>$this.Type" xml:space="preserve"> <value>System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </data> <data name=">>label1.Type" xml:space="preserve"> <value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </data> <data name=">>labelRegonizerLangue.Parent" xml:space="preserve"> <value>$this</value> </data> <data name=">>labelRegonizerLangue.Type" xml:space="preserve"> <value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </data> <data name="textBoxRecognizerState.TabIndex" type="System.Int32, mscorlib"> <value>7</value> </data> <data name="textBoxRecognizerState.Location" type="System.Drawing.Point, System.Drawing"> <value>224, 155</value> </data> <data name="label1.TabIndex" type="System.Int32, mscorlib"> <value>8</value> </data> <data name="labelRegonizerLangue.AutoSize" type="System.Boolean, mscorlib"> <value>True</value> </data> <data name="labelRegonizerLangue.TabIndex" type="System.Int32, mscorlib"> <value>10</value> </data> <data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing"> <value>440, 320</value> </data> <data name="txtBoxSpeechRecognized.Size" type="System.Drawing.Size, System.Drawing"> <value>120, 20</value> </data> <data name="checkBoxActivateSpeechRecogninzer.Size" type="System.Drawing.Size, System.Drawing"> <value>146, 17</value> </data> <data name=">>label1.Parent" xml:space="preserve"> <value>$this</value> </data> <data name="label1.Location" type="System.Drawing.Point, System.Drawing"> <value>270, 128</value> </data> <data name="labelRegonizerLangue.Location" type="System.Drawing.Point, System.Drawing"> <value>109, 42</value> </data> <data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing"> <value>6, 13</value> </data> <data name=">>checkBoxActivateSpeechRecogninzer.Name" xml:space="preserve"> <value>checkBoxActivateSpeechRecogninzer</value> </data> <data name=">>label1.Name" xml:space="preserve"> <value>label1</value> </data> <data name=">>label2.ZOrder" xml:space="preserve"> <value>5</value> </data> <data name="labelRegonizerLangue.Size" type="System.Drawing.Size, System.Drawing"> <value>176, 20</value> </data> <data name=">>txtBoxSpeechRecognized.Type" xml:space="preserve"> <value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </data> <data name="label1.AutoSize" type="System.Boolean, mscorlib"> <value>True</value> </data> <data name="labelRegonizerLangue.Font" type="System.Drawing.Font, System.Drawing"> <value>Microsoft Sans Serif, 12.25pt</value> </data> <data name="textBoxRecognizerState.Size" type="System.Drawing.Size, System.Drawing"> <value>176, 20</value> </data> <data name=">>txtBoxSpeechRecognized.Name" xml:space="preserve"> <value>txtBoxSpeechRecognized</value> </data> <data name="checkBoxActivateSpeechRecogninzer.Location" type="System.Drawing.Point, System.Drawing"> <value>25, 137</value> </data> <data name="txtBoxSpeechRecognized.TabIndex" type="System.Int32, mscorlib"> <value>6</value> </data> <data name="labelRegonizerLangue.Text" xml:space="preserve"> <value>Recognizer language :</value> </data> <data name=">>label2.Parent" xml:space="preserve"> <value>$this</value> </data> <data name=">>checkBoxActivateSpeechRecogninzer.Parent" xml:space="preserve"> <value>$this</value> </data> <data name=">>labelRegonizerLangue.ZOrder" xml:space="preserve"> <value>1</value> </data> <data name="label2.Size" type="System.Drawing.Size, System.Drawing"> <value>89, 13</value> </data> <data name=">>textBoxRecognizerState.Parent" xml:space="preserve"> <value>$this</value> </data> <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>True</value> </metadata> <metadata name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>French (Canada)</value> </metadata> </root>
Resx.fr-CA :
le resx est un peu plus long, je vais éviter de trop charger la conversation.
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162 <?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=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> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <data name="label2.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms"> <value>NoControl</value> </data> <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <data name="label2.Location" type="System.Drawing.Point, System.Drawing"> <value>169, 222</value> </data> <data name="label2.Size" type="System.Drawing.Size, System.Drawing"> <value>82, 13</value> </data> <data name="label2.Text" xml:space="preserve"> <value>Texte reconnu :</value> </data> <data name="label1.Location" type="System.Drawing.Point, System.Drawing"> <value>243, 125</value> </data> <data name="label1.Size" type="System.Drawing.Size, System.Drawing"> <value>136, 13</value> </data> <data name="label1.Text" xml:space="preserve"> <value>Etat de la reconnaissance :</value> </data> <data name="labelRegonizerLangue.Size" type="System.Drawing.Size, System.Drawing"> <value>208, 20</value> </data> <data name="labelRegonizerLangue.Text" xml:space="preserve"> <value>Language de l'application :</value> </data> <data name="checkBoxActivateSpeechRecogninzer.Size" type="System.Drawing.Size, System.Drawing"> <value>183, 17</value> </data> <data name="checkBoxActivateSpeechRecogninzer.Text" xml:space="preserve"> <value>Activer la reconnaissance vocale</value> </data> <data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing"> <value>435, 332</value> </data> <data name="$this.Text" xml:space="preserve"> <value>Canadian window</value> </data> </root>
J'ai également tenté de télécharger Microsoft Platform SDK 11, seulement je n'arrive pas à l'utiliser...
Cordialement,
Merci pour votre aide.
Pierre
Partager