2013-02-24 90 views
2

我正在使用ajaxfileupload,但我無法更改控件按鈕文本。我需要轉換土耳其語。我怎樣才能做到這一點?Asp.net AjaxFileUpload更改按鈕文本

的外觀,

例如 「將文件拖到此處」 必應 「Dosyalarıburayasürükleyin」

+0

如何搜索文本並替換它? – MUG4N 2013-02-24 16:24:18

+0

哇!你的Chrome發生了一些可怕的事情(或類似的事情),你知道嗎? – 2013-02-24 16:25:55

+0

MUG4N - 我會搜索,但在哪裏? GrantThomas - 這是comodo龍。與鉻一樣。 – 2013-02-24 18:40:34

回答

0

你爲什麼不使用用於這一目的的控制本地化?

通過本地化支持,控件現在使用翻譯成該語言環境語言的字符串。所以,如果你的網站有區分區域性的設置打開,那麼工具包的控制將工作開箱沒有對網站提交的任何額外努力,對其他語言的

Reference

+0

我試過但是一樣。沒有什麼變化。 – 2013-02-25 18:11:16

1
單獨建
<script type="text/javascript"> 

    $(document).ready(function() { 
     AjaxFileUpload_change_text(); 
    }); 

    function AjaxFileUpload_change_text() { 

     document.getElementsByClassName('ajax__fileupload_selectFileButton')[0].innerHTML = "Abrir"; 
     document.getElementsByClassName('ajax__fileupload_dropzone')[0].innerHTML = "Arrastre archivo aquí"; 
     document.getElementsByClassName('ajax__fileupload_uploadbutton')[0].innerHTML = "Subir"; 
     document.getElementById("ctl00_MainContent_AjaxFileUpload1_FileStatusContainer").innerHTML = "Seleccione archivo(s) a subir."; 

     Sys.Extended.UI.Resources.AjaxFileUpload_Pending = "Pendiente"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_Pending = "Pendiente"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_Remove = "Quitar"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_Upload = "Subir"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_Uploaded = "Subido"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_UploadedPercentage = "{0} %"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_Uploading = "Subiendo"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_FileInQueue = "{0} archivos(s) en espera."; 
     Sys.Extended.UI.Resources.AjaxFileUpload_AllFilesUploaded = "Completado."; 
     Sys.Extended.UI.Resources.AjaxFileUpload_FileList = "Archivos subidos:"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_Cancelling = "Cancelando..."; 
     Sys.Extended.UI.Resources.AjaxFileUpload_UploadError = "error"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_CancellingUpload = "Cancelando..."; 
     Sys.Extended.UI.Resources.AjaxFileUpload_UploadingInputFile = "Subiendo: {0}."; 
     Sys.Extended.UI.Resources.AjaxFileUpload_Cancel = "Cancelar"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_Canceled = "cancelado"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_UploadCanceled = "Subida cancelada"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_DefaultError = "Error"; 
     Sys.Extended.UI.Resources.AjaxFileUpload_UploadingHtml5File = "Subiendo: {0}, peso: {1} bytes."; 
     Sys.Extended.UI.Resources.AjaxFileUpload_error = "error"; 
    } 

</script>