Skip to content

Commit cf669b7

Browse files
author
tchap
committed
Add i18n (FR)
Tweaks
1 parent 7ccc4ea commit cf669b7

35 files changed

+273
-12
lines changed

PrintrBotPlugin.v11.suo

1 KB
Binary file not shown.

PrintrBotPlugin/PrintrBotPanel.Designer.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PrintrBotPlugin/PrintrBotPanel.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020

2121
namespace PrintrBotPlugin
2222
{
23+
2324
public partial class PrintrBotPanel : UserControl,IHostComponent
2425
{
26+
const int _NOT_CALIBRATED = 100;
27+
2528
private IHost host;
2629
private Boolean preheating = false;
2730
private Boolean calibrating = false;
@@ -31,11 +34,12 @@ public partial class PrintrBotPanel : UserControl,IHostComponent
3134
private int loadingTemperature = 215;
3235
private int temperatureBias = 3;
3336

34-
private double M212_Z_Offset = 1000;
37+
private double M212_Z_Offset = _NOT_CALIBRATED; // Means : not calibrated yet
3538

3639
public PrintrBotPanel()
3740
{
3841
InitializeComponent();
42+
// DEBUG : System.Threading.Thread.CurrentThread.CurrentUICulture = System.Globalization.CultureInfo.GetCultureInfo("fr-FR");
3943
this.InitializeStrings();
4044
}
4145

@@ -476,7 +480,7 @@ private void Connection_eventResponse(string response, ref RepetierHostExtender.
476480

477481
private void changeZProbeOffset(double offset)
478482
{
479-
if (this.M212_Z_Offset != 1000 ) // <> not probed yet
483+
if (this.M212_Z_Offset != _NOT_CALIBRATED ) // <> not probed yet
480484
{
481485
// Change offset by "offset" -1 < Z < 1
482486
this.injectCommand(String.Format("M212 Z{0:f1}", Math.Min(1,Math.Max(this.M212_Z_Offset + offset, -1.0))));

PrintrBotPlugin/PrintrBotPlugin.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@
7272
<DesignTime>True</DesignTime>
7373
<DependentUpon>Resources.resx</DependentUpon>
7474
</Compile>
75+
<Compile Include="Properties\Resources.fr-FR.Designer.cs">
76+
<AutoGen>True</AutoGen>
77+
<DesignTime>True</DesignTime>
78+
<DependentUpon>Resources.fr-FR.resx</DependentUpon>
79+
</Compile>
7580
</ItemGroup>
7681
<ItemGroup>
7782
<EmbeddedResource Include="PrintrBotPanel.resx">
@@ -81,6 +86,10 @@
8186
<Generator>ResXFileCodeGenerator</Generator>
8287
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
8388
</EmbeddedResource>
89+
<EmbeddedResource Include="Properties\Resources.fr-FR.resx">
90+
<Generator>ResXFileCodeGenerator</Generator>
91+
<LastGenOutput>Resources.fr-FR.Designer.cs</LastGenOutput>
92+
</EmbeddedResource>
8493
</ItemGroup>
8594
<ItemGroup>
8695
<None Include="Resources\calibration_cube.gcode" />

PrintrBotPlugin/Properties/Resources.Designer.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PrintrBotPlugin/Properties/Resources.fr-FR.Designer.cs

Whitespace-only changes.
Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,234 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<!--
4+
Microsoft ResX Schema
5+
6+
Version 2.0
7+
8+
The primary goals of this format is to allow a simple XML format
9+
that is mostly human readable. The generation and parsing of the
10+
various data types are done through the TypeConverter classes
11+
associated with the data types.
12+
13+
Example:
14+
15+
... ado.net/XML headers & schema ...
16+
<resheader name="resmimetype">text/microsoft-resx</resheader>
17+
<resheader name="version">2.0</resheader>
18+
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19+
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20+
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21+
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22+
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23+
<value>[base64 mime encoded serialized .NET Framework object]</value>
24+
</data>
25+
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26+
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27+
<comment>This is a comment</comment>
28+
</data>
29+
30+
There are any number of "resheader" rows that contain simple
31+
name/value pairs.
32+
33+
Each data row contains a name, and value. The row also contains a
34+
type or mimetype. Type corresponds to a .NET class that support
35+
text/value conversion through the TypeConverter architecture.
36+
Classes that don't support this are serialized and stored with the
37+
mimetype set.
38+
39+
The mimetype is used for serialized objects, and tells the
40+
ResXResourceReader how to depersist the object. This is currently not
41+
extensible. For a given mimetype the value must be set accordingly:
42+
43+
Note - application/x-microsoft.net.object.binary.base64 is the format
44+
that the ResXResourceWriter will generate, however the reader can
45+
read any of the formats listed below.
46+
47+
mimetype: application/x-microsoft.net.object.binary.base64
48+
value : The object must be serialized with
49+
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50+
: and then encoded with base64 encoding.
51+
52+
mimetype: application/x-microsoft.net.object.soap.base64
53+
value : The object must be serialized with
54+
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55+
: and then encoded with base64 encoding.
56+
57+
mimetype: application/x-microsoft.net.object.bytearray.base64
58+
value : The object must be serialized into a byte array
59+
: using a System.ComponentModel.TypeConverter
60+
: and then encoded with base64 encoding.
61+
-->
62+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64+
<xsd:element name="root" msdata:IsDataSet="true">
65+
<xsd:complexType>
66+
<xsd:choice maxOccurs="unbounded">
67+
<xsd:element name="metadata">
68+
<xsd:complexType>
69+
<xsd:sequence>
70+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
71+
</xsd:sequence>
72+
<xsd:attribute name="name" use="required" type="xsd:string" />
73+
<xsd:attribute name="type" type="xsd:string" />
74+
<xsd:attribute name="mimetype" type="xsd:string" />
75+
<xsd:attribute ref="xml:space" />
76+
</xsd:complexType>
77+
</xsd:element>
78+
<xsd:element name="assembly">
79+
<xsd:complexType>
80+
<xsd:attribute name="alias" type="xsd:string" />
81+
<xsd:attribute name="name" type="xsd:string" />
82+
</xsd:complexType>
83+
</xsd:element>
84+
<xsd:element name="data">
85+
<xsd:complexType>
86+
<xsd:sequence>
87+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89+
</xsd:sequence>
90+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93+
<xsd:attribute ref="xml:space" />
94+
</xsd:complexType>
95+
</xsd:element>
96+
<xsd:element name="resheader">
97+
<xsd:complexType>
98+
<xsd:sequence>
99+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100+
</xsd:sequence>
101+
<xsd:attribute name="name" type="xsd:string" use="required" />
102+
</xsd:complexType>
103+
</xsd:element>
104+
</xsd:choice>
105+
</xsd:complexType>
106+
</xsd:element>
107+
</xsd:schema>
108+
<resheader name="resmimetype">
109+
<value>text/microsoft-resx</value>
110+
</resheader>
111+
<resheader name="version">
112+
<value>2.0</value>
113+
</resheader>
114+
<resheader name="reader">
115+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116+
</resheader>
117+
<resheader name="writer">
118+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119+
</resheader>
120+
<data name="CalibrateButton_Cancel" xml:space="preserve">
121+
<value>Annuler</value>
122+
</data>
123+
<data name="CalibrateButton_Do" xml:space="preserve">
124+
<value>Calibrer</value>
125+
</data>
126+
<data name="CalibrateHelp" xml:space="preserve">
127+
<value>Le processus de calibration va d'abord trouver la position d'origine de la machine. Puis, l'imprimante va imprimer une couche de calibration; une fois ceci fait, vous pourrez dire si l'impression est trop prêt ou trop loin du plateau. Vous devez recommencer la calibration jusqu'à ce que l'impression soit à la bonne distance du plateau.</value>
128+
</data>
129+
<data name="CalibratePanelTitle" xml:space="preserve">
130+
<value>Calibration</value>
131+
</data>
132+
<data name="Calibrate_Step1" xml:space="preserve">
133+
<value>Recherche des origines en X, Y et Z en cours</value>
134+
</data>
135+
<data name="Calibrate_Step2" xml:space="preserve">
136+
<value>Impression de la couche de calibration</value>
137+
</data>
138+
<data name="Calibrate_Step2Done" xml:space="preserve">
139+
<value>Impression terminée. Si la couche imprimée est trop ecrasée, cliquez sur "Buse trop prêt", sinon au contraire la couche ne tient pas au plateau, cliquez sur "Buse trop loin". Enfin, cliquez sur "Tout est bon" si la couche est bien imprimée. Refaites la calibration jusqu'à ce que tout soit bon.</value>
140+
</data>
141+
<data name="Calibrate_Step3_OK" xml:space="preserve">
142+
<value>Tout est bon</value>
143+
</data>
144+
<data name="Calibrate_Step3_TooClose" xml:space="preserve">
145+
<value>Buse trop prêt</value>
146+
</data>
147+
<data name="Calibrate_Step3_TooFar" xml:space="preserve">
148+
<value>Buse trop loin</value>
149+
</data>
150+
<data name="FilamentPanelTitle" xml:space="preserve">
151+
<value>Filament</value>
152+
</data>
153+
<data name="LabelPreheating" xml:space="preserve">
154+
<value>Température préchauffe :</value>
155+
</data>
156+
<data name="LoadingButton_Cancel" xml:space="preserve">
157+
<value>Annuler</value>
158+
</data>
159+
<data name="LoadingButton_Load" xml:space="preserve">
160+
<value>Charger</value>
161+
</data>
162+
<data name="LoadingButton_Unload" xml:space="preserve">
163+
<value>Décharger</value>
164+
</data>
165+
<data name="LoadingLabel_FanOff" xml:space="preserve">
166+
<value>Arrêt du ventilateur</value>
167+
</data>
168+
<data name="LoadingLabel_FanOn" xml:space="preserve">
169+
<value>Démarrage du ventilateur</value>
170+
</data>
171+
<data name="LoadingLabel_Heating" xml:space="preserve">
172+
<value>Chauffe</value>
173+
</data>
174+
<data name="LoadingLabel_Loading" xml:space="preserve">
175+
<value>Chargement en cours</value>
176+
</data>
177+
<data name="LoadingLabel_MovingAway" xml:space="preserve">
178+
<value>Je remonte légèrement la tête</value>
179+
</data>
180+
<data name="LoadingLabel_Unloading" xml:space="preserve">
181+
<value>Déchargement en cours</value>
182+
</data>
183+
<data name="LoadingMessageBox_Text" xml:space="preserve">
184+
<value>Vous pouvez maintenant insérer le filament dans la tête et vérifier qu'il extrude correctement.</value>
185+
</data>
186+
<data name="LoadingMessageBox_Title" xml:space="preserve">
187+
<value>Chargement du filament</value>
188+
</data>
189+
<data name="NewCalibrationOrNot_Text" xml:space="preserve">
190+
<value>Voulez-vous commencer une nouvelle calibration ? Si vous n'avez pas calibré votre machine avec cet utilitaire par le passé, cliquez sur Oui. Si vous avez déjà calibré votre machine, et que vous voulez affiner la calibration, cliquez sur Non.</value>
191+
</data>
192+
<data name="NewCalibrationOrNot_Title" xml:space="preserve">
193+
<value>Nouvelle Calibration</value>
194+
</data>
195+
<data name="NumberOfLinesInCalibrationGCODE" xml:space="preserve">
196+
<value>210.0</value>
197+
</data>
198+
<data name="PreheatButton_Cancel" xml:space="preserve">
199+
<value>Arrêter</value>
200+
</data>
201+
<data name="PreheatButton_Do" xml:space="preserve">
202+
<value>Démarrer</value>
203+
</data>
204+
<data name="PreheatLabel_Heating" xml:space="preserve">
205+
<value>Chauffe ...</value>
206+
</data>
207+
<data name="PreheatLabel_NotHeating" xml:space="preserve">
208+
<value>Pas de chauffe</value>
209+
</data>
210+
<data name="PreheatPanelTitle" xml:space="preserve">
211+
<value>Préchauffe</value>
212+
</data>
213+
<data name="PrinterDisconnected_Button" xml:space="preserve">
214+
<value>Vérifier la connection</value>
215+
</data>
216+
<data name="PrinterDisconnected_Label" xml:space="preserve">
217+
<value>Votre imprimante n'a pas l'air connectée. Connectez-là, puis cliquez sur Connecter en haut à droite de l'interface de Repetier-Host.</value>
218+
</data>
219+
<data name="PrinterDisconnected_Text" xml:space="preserve">
220+
<value>Votre imprimante a été deconnectée. Connectez-là, puis cliquez sur Connecter en haut à droite de l'interface de Repetier-Host.</value>
221+
</data>
222+
<data name="PrinterDisconnected_Title" xml:space="preserve">
223+
<value>Imprimante déconnectée</value>
224+
</data>
225+
<data name="Title" xml:space="preserve">
226+
<value>Panneau de contrôle PrintrBot par CKAB</value>
227+
</data>
228+
<data name="UnloadingMessageBox_Text" xml:space="preserve">
229+
<value>Vous pouvez maintenant enlever délicatement le filament de l'extrudeur, en prenant soin d'enlever tous les résidus si nécessaire.</value>
230+
</data>
231+
<data name="UnloadingMessageBox_Title" xml:space="preserve">
232+
<value>Déchargement du filament</value>
233+
</data>
234+
</root>

PrintrBotPlugin/Properties/Resources.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@
175175
<value>Check Connection</value>
176176
</data>
177177
<data name="PrinterDisconnected_Label" xml:space="preserve">
178-
<value>The PrintrBot seems not connected. Connect it and press the button below to start.</value>
178+
<value>The PrintrBot seems not connected. Connect it again, and click Connect in the upper left corner of the interface.</value>
179179
</data>
180180
<data name="PrinterDisconnected_Text" xml:space="preserve">
181-
<value>The PrintrBot seems to be disconnected. Connect it again or check the connection and try again.</value>
181+
<value>The PrintrBot seems to be disconnected. Connect it again, and click Connect in the upper left corner of the interface.</value>
182182
</data>
183183
<data name="PrinterDisconnected_Title" xml:space="preserve">
184184
<value>Printer disconnected</value>
@@ -215,7 +215,7 @@
215215
<value>Unloading filament</value>
216216
</data>
217217
<data name="Calibrate_Step2Done" xml:space="preserve">
218-
<value>Printing done. If the layers printed are too squashed, click on "Nozzle too close", else, click on "Nozzle too far"</value>
218+
<value>Printing done. If the layer printed is too squashed, click on "Nozzle too close", if the layer is not sticking, click on "Nozzle too far". If it's fine, click on "All is OK". You have to redo this calibration process until the layer is at the good height.</value>
219219
</data>
220220
<data name="Calibrate_Step3_TooClose" xml:space="preserve">
221221
<value>Nozzle Too Close</value>
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)