helpcenter/Web/Controls/Help/ErrorReport/ErrorReport.fr.ascx
alexandervnuchkov 71f171fb08 First commit
2016-08-29 16:51:20 +03:00

111 lines
6.7 KiB
Plaintext

<%@ Control Language="C#" Inherits="BaseContentUserControls" %>
<%@ Import Namespace="System.IO" %>
<script runat="server">
protected override void Init()
{
PageTitle = PageCaption = "Contactez-nous pour signaler une erreur";
ShowSubHeader = false;
ShowSubHeaderRegistrButton = true;
MetaKeyWords = "";
MetaDescription = "";
}
protected void SendData(object sender, EventArgs e)
{
string lng = HttpUtility.HtmlEncode(LanguageTranslateError.Text);
string section = HttpUtility.HtmlEncode(SectionTranslateError.Text);
string url = HttpUtility.HtmlEncode(URLTranslateError.Text);
string wrong = HttpUtility.HtmlEncode(WrongTranslateError.Text);
string correct = HttpUtility.HtmlEncode(CorrectTranslateError.Text);
string comment = HttpUtility.HtmlEncode(CommentTranslateError.Text);
string urlname ="";
if (!string.IsNullOrEmpty(wrong) && !string.IsNullOrEmpty(correct))
{if (FileUploadControl.HasFile)
{
try
{
string filename = Guid.NewGuid()+ Path.GetFileName(FileUploadControl.FileName);
string pathname = Server.MapPath("~/screens/") + filename;
FileUploadControl.SaveAs(pathname);
urlname = "http://onlyoffice.com/screens/" + filename;
}
catch
{
}
}
EMailSender.SendTranslateError(lng, section, url, wrong, correct, comment, urlname);
LanguageTranslateError.Text = "";
SectionTranslateError.Text = "";
URLTranslateError.Text = "";
WrongTranslateError.Text = "";
CorrectTranslateError.Text = "";
CommentTranslateError.Text = "";
ThanksSending.Visible = true;
}
}
</script>
<h4>Avez vous remarqué des erreurs dans la traduction ?</h4>
<p>Veuillez remplir le formulaire ci-dessous pour nous informer :</p>
<div>Choisissez la <b>langue</b> du portail dans laquelle vous avez trouvé l'erreur* :</div>
<asp:DropDownList ID="LanguageTranslateError" CssClass="FieldReportError" runat="server">
<asp:ListItem Selected="True" Value="English">Anglais</asp:ListItem>
<asp:ListItem Value="German">Allemand</asp:ListItem>
<asp:ListItem Value="French">Français</asp:ListItem>
<asp:ListItem Value="Spanish">Espagnol</asp:ListItem>
<asp:ListItem Value="Russian">Russe</asp:ListItem>
<asp:ListItem Value="Latvian">Letton</asp:ListItem>
<asp:ListItem Value="Italian">Italien</asp:ListItem>
<asp:ListItem Value="ChineseSimplified">Chinois simplifié</asp:ListItem>
<asp:ListItem Value="Ukrainian">Ukrainien</asp:ListItem>
<asp:ListItem Value="Polish">Polonais</asp:ListItem>
<asp:ListItem Value="Brazilian">Portugais (brésilien)</asp:ListItem>
<asp:ListItem Value="Greek">Grec</asp:ListItem>
<asp:ListItem Value="Turkish">Turc</asp:ListItem>
<asp:ListItem Value="Czech">Tchèque</asp:ListItem>
<asp:ListItem Value="Vietnamese">Vietnamien</asp:ListItem>
</asp:DropDownList>
<div>Spécifiez le <b>section de office en ligne</b> (module, outil ou site) où vous avez trouvé l'erreur :</div>
<asp:DropDownList ID="SectionTranslateError" CssClass="FieldReportError" runat="server">
<asp:ListItem Selected="True" Value="Projects">Projets</asp:ListItem>
<asp:ListItem Value="CRM">CRM</asp:ListItem>
<asp:ListItem Value="Documents">Documents</asp:ListItem>
<asp:ListItem Value="Community">Communauté</asp:ListItem>
<asp:ListItem Value="Talk">Chat</asp:ListItem>
<asp:ListItem Value="Calendar">Calendrier</asp:ListItem>
<asp:ListItem Value="mobile">ONLYOFFICE Mobile</asp:ListItem>
<asp:ListItem Value="website">Site de office en ligne</asp:ListItem>
</asp:DropDownList>
<br/>
<span>Entrez l'URL de la page :</span>
<asp:RegularExpressionValidator Display="Dynamic" CssClass="errorBlockReportError" ID="RegularExpressionValidator1" runat="server" ControlToValidate="URLTranslateError" ErrorMessage="The URL invalid" ValidationExpression="^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;%\$#_]*)?$">
</asp:RegularExpressionValidator>
<br/>
<asp:TextBox ID="URLTranslateError" CssClass="FieldReportError" runat="server" />
<br/>
<span>Entrez la traduction incorrecte* :</span>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" Display="Dynamic" CssClass="errorBlockReportError" ControlToValidate="WrongTranslateError" runat="server" ErrorMessage="The field is empty">
</asp:RequiredFieldValidator>
<asp:TextBox ID="WrongTranslateError" CssClass="FieldReportError" runat="server" TextMode="MultiLine" Rows="5" Columns="70" />
<br/>
<span>Entrez la traduction correcte* :</span>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" Display="Dynamic" CssClass="errorBlockReportError" ControlToValidate="CorrectTranslateError" runat="server" ErrorMessage="The field is empty">
</asp:RequiredFieldValidator>
<asp:TextBox ID="CorrectTranslateError" CssClass="FieldReportError" runat="server" TextMode="MultiLine" Rows="5" Columns="70" />
<div>Joignez une capture d'écran, si possible</div>
<asp:FileUpload id="FileUploadControl" CssClass="ScreenErrorUpload" runat="server" />
<div>Ajouter un commentaire, si nécessaire</div>
<asp:TextBox ID="CommentTranslateError" CssClass="FieldReportError" runat="server" TextMode="MultiLine" Rows="5" Columns="70" />
<br/>
<asp:Button runat="server" id="ButtonReportError" text="Envoyer" CssClass="button blue" onclick="SendData" CausesValidation="true"/>
<asp:Label Visible="false" runat="server" ID="ThanksSending" CssClass="ThanksLableReportError">Merci. Votre rapport a été envoyé avec succès.</asp:Label>
<p class="textReportError">Si vous souhaitez contribuer à la traduction des portails dans votre langue maternelle, référez-vous au guide <a href="<%=VirtualPathUtility.ToAbsolute("~/guides/become-translator.aspx")%>">Comment devenir traducteur de office en ligne ?</a>
pour envoyer votre demande ou contactez-nous directement à l'adresse : <a href="mailto:documentation@onlyoffice.com">documentation@onlyoffice.com</a>.</p>