111 lines
6.7 KiB
Plaintext
111 lines
6.7 KiB
Plaintext
<%@ Control Language="C#" Inherits="BaseContentUserControls" %>
|
|
<%@ Import Namespace="System.IO" %>
|
|
|
|
<script runat="server">
|
|
protected override void Init()
|
|
{
|
|
PageTitle = PageCaption = "Contattaci per segnalare un errore";
|
|
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>Hai trovato certi errori di traduzione?</h4>
|
|
<p>Ti preghiamo di compilare il modulo di sotto per segnalarlo:</p>
|
|
<div>Seleziona la <b>lingua</b> in cui hai trovato un errore*:</div>
|
|
|
|
<asp:DropDownList ID="LanguageTranslateError" CssClass="FieldReportError" runat="server">
|
|
<asp:ListItem Selected="True" Value="English">Inglese</asp:ListItem>
|
|
<asp:ListItem Value="German">Tedesco</asp:ListItem>
|
|
<asp:ListItem Value="French">Francese</asp:ListItem>
|
|
<asp:ListItem Value="Spanish">Spagnolo</asp:ListItem>
|
|
<asp:ListItem Value="Russian">Russo</asp:ListItem>
|
|
<asp:ListItem Value="Latvian">Lettone</asp:ListItem>
|
|
<asp:ListItem Value="Italian">Italiano</asp:ListItem>
|
|
<asp:ListItem Value="ChineseSimplified">Cinese semplificato</asp:ListItem>
|
|
<asp:ListItem Value="Ukrainian">Ukraino</asp:ListItem>
|
|
<asp:ListItem Value="Polish">Polacco</asp:ListItem>
|
|
<asp:ListItem Value="Brazilian">Portoghese (Brasiliano)</asp:ListItem>
|
|
<asp:ListItem Value="Greek">Greco</asp:ListItem>
|
|
<asp:ListItem Value="Turkish">Turco</asp:ListItem>
|
|
<asp:ListItem Value="Czech">Ceco</asp:ListItem>
|
|
<asp:ListItem Value="Vietnamese">Vietnamita</asp:ListItem>
|
|
</asp:DropDownList>
|
|
|
|
<div>Specifica la <b>sezione di online office</b> (modulo, strumento o sito) dove hai trovato un errore:</div>
|
|
|
|
<asp:DropDownList ID="SectionTranslateError" CssClass="FieldReportError" runat="server">
|
|
<asp:ListItem Selected="True" Value="Projects">Progetti</asp:ListItem>
|
|
<asp:ListItem Value="CRM">CRM</asp:ListItem>
|
|
<asp:ListItem Value="Documents">Documenti</asp:ListItem>
|
|
<asp:ListItem Value="Community">Comunità</asp:ListItem>
|
|
<asp:ListItem Value="Talk">Chat</asp:ListItem>
|
|
<asp:ListItem Value="Calendar">Calendario</asp:ListItem>
|
|
<asp:ListItem Value="mobile">ONLYOFFICE Mobile</asp:ListItem>
|
|
<asp:ListItem Value="website">Sito online office</asp:ListItem>
|
|
</asp:DropDownList>
|
|
<br/>
|
|
<span>Inserisci l'URL della pagina:</span>
|
|
<asp:RegularExpressionValidator Display="Dynamic" CssClass="errorBlockReportError" ID="RegularExpressionValidator1" runat="server" ControlToValidate="URLTranslateError" ErrorMessage="L'URL non è valido" ValidationExpression="^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?$">
|
|
</asp:RegularExpressionValidator>
|
|
<br/>
|
|
<asp:TextBox ID="URLTranslateError" CssClass="FieldReportError" runat="server" />
|
|
<br/>
|
|
<span>Inserisci la traduzione sbagliata*:</span>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" Display="Dynamic" CssClass="errorBlockReportError" ControlToValidate="WrongTranslateError" runat="server" ErrorMessage="Il campo è vuoto">
|
|
</asp:RequiredFieldValidator>
|
|
<asp:TextBox ID="WrongTranslateError" CssClass="FieldReportError" runat="server" TextMode="MultiLine" Rows="5" Columns="70" />
|
|
<br/>
|
|
<span>Inserisci la traduzione corretta*:</span>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" Display="Dynamic" CssClass="errorBlockReportError" ControlToValidate="CorrectTranslateError" runat="server" ErrorMessage="Il campo è vuoto">
|
|
</asp:RequiredFieldValidator>
|
|
<asp:TextBox ID="CorrectTranslateError" CssClass="FieldReportError" runat="server" TextMode="MultiLine" Rows="5" Columns="70" />
|
|
<div>Allega una cattura schermo, se possibile</div>
|
|
<asp:FileUpload id="FileUploadControl" CssClass="ScreenErrorUpload" runat="server" />
|
|
<div>Aggiungi un commento, se necessario</div>
|
|
<asp:TextBox ID="CommentTranslateError" CssClass="FieldReportError" runat="server" TextMode="MultiLine" Rows="5" Columns="70" />
|
|
<br/>
|
|
<asp:Button runat="server" id="ButtonReportError" text="Invia" CssClass="button blue" onclick="SendData" CausesValidation="true"/>
|
|
<asp:Label Visible="false" runat="server" ID="ThanksSending" CssClass="ThanksLableReportError">Grazie. Il tuo rapporto è stato inviato con successo.</asp:Label>
|
|
|
|
<p class="textReportError">Se desideri contribuire alla traduzione dei portali online office nella tua lingua madre ti preghiamo di riferirti alla guida <a href="<%=VirtualPathUtility.ToAbsolute("~/guides/become-translator.aspx")%>">Come diventare un traduttore di online office?</a>
|
|
per inviare la richiesta o contattarci all'indirizzo email <a href="mailto:documentation@onlyoffice.com">documentation@onlyoffice.com</a>.</p>
|
|
|