Skip to content

Commit

Permalink
Add i18n (FR)
Browse files Browse the repository at this point in the history
Tweaks
  • Loading branch information
tchap committed Sep 18, 2014
1 parent 7ccc4ea commit cf669b7
Show file tree
Hide file tree
Showing 35 changed files with 273 additions and 12 deletions.
Binary file modified PrintrBotPlugin.v11.suo
Binary file not shown.
6 changes: 3 additions & 3 deletions PrintrBotPlugin/PrintrBotPanel.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions PrintrBotPlugin/PrintrBotPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@

namespace PrintrBotPlugin
{

public partial class PrintrBotPanel : UserControl,IHostComponent
{
const int _NOT_CALIBRATED = 100;

private IHost host;
private Boolean preheating = false;
private Boolean calibrating = false;
Expand All @@ -31,11 +34,12 @@ public partial class PrintrBotPanel : UserControl,IHostComponent
private int loadingTemperature = 215;
private int temperatureBias = 3;

private double M212_Z_Offset = 1000;
private double M212_Z_Offset = _NOT_CALIBRATED; // Means : not calibrated yet

public PrintrBotPanel()
{
InitializeComponent();
// DEBUG : System.Threading.Thread.CurrentThread.CurrentUICulture = System.Globalization.CultureInfo.GetCultureInfo("fr-FR");
this.InitializeStrings();
}

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

private void changeZProbeOffset(double offset)
{
if (this.M212_Z_Offset != 1000 ) // <> not probed yet
if (this.M212_Z_Offset != _NOT_CALIBRATED ) // <> not probed yet
{
// Change offset by "offset" -1 < Z < 1
this.injectCommand(String.Format("M212 Z{0:f1}", Math.Min(1,Math.Max(this.M212_Z_Offset + offset, -1.0))));
Expand Down
9 changes: 9 additions & 0 deletions PrintrBotPlugin/PrintrBotPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Resources.fr-FR.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.fr-FR.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="PrintrBotPanel.resx">
Expand All @@ -81,6 +86,10 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.fr-FR.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.fr-FR.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="Resources\calibration_cube.gcode" />
Expand Down
6 changes: 3 additions & 3 deletions PrintrBotPlugin/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
234 changes: 234 additions & 0 deletions PrintrBotPlugin/Properties/Resources.fr-FR.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="CalibrateButton_Cancel" xml:space="preserve">
<value>Annuler</value>
</data>
<data name="CalibrateButton_Do" xml:space="preserve">
<value>Calibrer</value>
</data>
<data name="CalibrateHelp" xml:space="preserve">
<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>
</data>
<data name="CalibratePanelTitle" xml:space="preserve">
<value>Calibration</value>
</data>
<data name="Calibrate_Step1" xml:space="preserve">
<value>Recherche des origines en X, Y et Z en cours</value>
</data>
<data name="Calibrate_Step2" xml:space="preserve">
<value>Impression de la couche de calibration</value>
</data>
<data name="Calibrate_Step2Done" xml:space="preserve">
<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>
</data>
<data name="Calibrate_Step3_OK" xml:space="preserve">
<value>Tout est bon</value>
</data>
<data name="Calibrate_Step3_TooClose" xml:space="preserve">
<value>Buse trop prêt</value>
</data>
<data name="Calibrate_Step3_TooFar" xml:space="preserve">
<value>Buse trop loin</value>
</data>
<data name="FilamentPanelTitle" xml:space="preserve">
<value>Filament</value>
</data>
<data name="LabelPreheating" xml:space="preserve">
<value>Température préchauffe :</value>
</data>
<data name="LoadingButton_Cancel" xml:space="preserve">
<value>Annuler</value>
</data>
<data name="LoadingButton_Load" xml:space="preserve">
<value>Charger</value>
</data>
<data name="LoadingButton_Unload" xml:space="preserve">
<value>Décharger</value>
</data>
<data name="LoadingLabel_FanOff" xml:space="preserve">
<value>Arrêt du ventilateur</value>
</data>
<data name="LoadingLabel_FanOn" xml:space="preserve">
<value>Démarrage du ventilateur</value>
</data>
<data name="LoadingLabel_Heating" xml:space="preserve">
<value>Chauffe</value>
</data>
<data name="LoadingLabel_Loading" xml:space="preserve">
<value>Chargement en cours</value>
</data>
<data name="LoadingLabel_MovingAway" xml:space="preserve">
<value>Je remonte légèrement la tête</value>
</data>
<data name="LoadingLabel_Unloading" xml:space="preserve">
<value>Déchargement en cours</value>
</data>
<data name="LoadingMessageBox_Text" xml:space="preserve">
<value>Vous pouvez maintenant insérer le filament dans la tête et vérifier qu'il extrude correctement.</value>
</data>
<data name="LoadingMessageBox_Title" xml:space="preserve">
<value>Chargement du filament</value>
</data>
<data name="NewCalibrationOrNot_Text" xml:space="preserve">
<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>
</data>
<data name="NewCalibrationOrNot_Title" xml:space="preserve">
<value>Nouvelle Calibration</value>
</data>
<data name="NumberOfLinesInCalibrationGCODE" xml:space="preserve">
<value>210.0</value>
</data>
<data name="PreheatButton_Cancel" xml:space="preserve">
<value>Arrêter</value>
</data>
<data name="PreheatButton_Do" xml:space="preserve">
<value>Démarrer</value>
</data>
<data name="PreheatLabel_Heating" xml:space="preserve">
<value>Chauffe ...</value>
</data>
<data name="PreheatLabel_NotHeating" xml:space="preserve">
<value>Pas de chauffe</value>
</data>
<data name="PreheatPanelTitle" xml:space="preserve">
<value>Préchauffe</value>
</data>
<data name="PrinterDisconnected_Button" xml:space="preserve">
<value>Vérifier la connection</value>
</data>
<data name="PrinterDisconnected_Label" xml:space="preserve">
<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>
</data>
<data name="PrinterDisconnected_Text" xml:space="preserve">
<value>Votre imprimante a été deconnectée. Connectez-là, puis cliquez sur Connecter en haut à droite de l'interface de Repetier-Host.</value>
</data>
<data name="PrinterDisconnected_Title" xml:space="preserve">
<value>Imprimante déconnectée</value>
</data>
<data name="Title" xml:space="preserve">
<value>Panneau de contrôle PrintrBot par CKAB</value>
</data>
<data name="UnloadingMessageBox_Text" xml:space="preserve">
<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>
</data>
<data name="UnloadingMessageBox_Title" xml:space="preserve">
<value>Déchargement du filament</value>
</data>
</root>
6 changes: 3 additions & 3 deletions PrintrBotPlugin/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@
<value>Check Connection</value>
</data>
<data name="PrinterDisconnected_Label" xml:space="preserve">
<value>The PrintrBot seems not connected. Connect it and press the button below to start.</value>
<value>The PrintrBot seems not connected. Connect it again, and click Connect in the upper left corner of the interface.</value>
</data>
<data name="PrinterDisconnected_Text" xml:space="preserve">
<value>The PrintrBot seems to be disconnected. Connect it again or check the connection and try again.</value>
<value>The PrintrBot seems to be disconnected. Connect it again, and click Connect in the upper left corner of the interface.</value>
</data>
<data name="PrinterDisconnected_Title" xml:space="preserve">
<value>Printer disconnected</value>
Expand Down Expand Up @@ -215,7 +215,7 @@
<value>Unloading filament</value>
</data>
<data name="Calibrate_Step2Done" xml:space="preserve">
<value>Printing done. If the layers printed are too squashed, click on "Nozzle too close", else, click on "Nozzle too far"</value>
<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>
</data>
<data name="Calibrate_Step3_TooClose" xml:space="preserve">
<value>Nozzle Too Close</value>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
C:\Program Files\Repetier-Host\plugins\PrintrBotPlugin\PrintrBotPlugin.dll
C:\Program Files\Repetier-Host\plugins\PrintrBotPlugin\PrintrBotPlugin.pdb
C:\Users\tchap\Documents\GitHub\printrbot-plugin\PrintrBotPlugin\obj\Debug Repetier\PrintrBotPlugin.csprojResolveAssemblyReference.cache
C:\Program Files\Repetier-Host\plugins\PrintrBotPlugin\fr-FR\PrintrBotPlugin.resources.dll
C:\Users\tchap\Documents\GitHub\printrbot-plugin\PrintrBotPlugin\obj\Debug Repetier\PrintrBotPlugin.PrintrBotPanel.resources
C:\Users\tchap\Documents\GitHub\printrbot-plugin\PrintrBotPlugin\obj\Debug Repetier\PrintrBotPlugin.Properties.Resources.resources
C:\Users\tchap\Documents\GitHub\printrbot-plugin\PrintrBotPlugin\obj\Debug Repetier\PrintrBotPlugin.Properties.Resources.fr-FR.resources
C:\Users\tchap\Documents\GitHub\printrbot-plugin\PrintrBotPlugin\obj\Debug Repetier\PrintrBotPlugin.csproj.GenerateResource.Cache
C:\Users\tchap\Documents\GitHub\printrbot-plugin\PrintrBotPlugin\obj\Debug Repetier\fr-FR\PrintrBotPlugin.resources.dll
C:\Users\tchap\Documents\GitHub\printrbot-plugin\PrintrBotPlugin\obj\Debug Repetier\PrintrBotPlugin.dll
C:\Users\tchap\Documents\GitHub\printrbot-plugin\PrintrBotPlugin\obj\Debug Repetier\PrintrBotPlugin.pdb
C:\Users\tchap\Documents\GitHub\printrbot-plugin\PrintrBotPlugin\obj\Debug Repetier\PrintrBotPlugin.csprojResolveAssemblyReference.cache
Binary file not shown.
Binary file modified PrintrBotPlugin/obj/Debug Repetier/PrintrBotPlugin.dll
Binary file not shown.
Binary file modified PrintrBotPlugin/obj/Debug Repetier/PrintrBotPlugin.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit cf669b7

Please sign in to comment.