2014-01-26 3 views
1

파인 업로더가 최종 사용자에게 보내는 대부분의 문자열 (파인더 업 로더 포함 버그를 수정하지 않은 개발자)은 템플리트에서 왔으며 이로 인해 해당 템플리트를 작성하는 서버 측에서 쉽게 번역 할 수 있으며 일부 장소를 발견했습니다 이 기원을 갖고 있지 않은 것 같습니까?파인 업 데이트 및 i18n

사용하는 동안 나에게 온 장소 :

이 fineuploader-4.2.1.js를 통해 grepping 때 다른 문자열의 몇 가지를 찾을 수
confirmMessage: "Are you sure you want to delete {filename}?", 

: 내가 뭔가를 그리워

qq.status = { 
SUBMITTING: "submitting", 
SUBMITTED: "submitted", 
REJECTED: "rejected", 
QUEUED: "queued", 
CANCELED: "canceled", 
PAUSED: "paused", 
UPLOADING: "uploading", 
UPLOAD_RETRYING: "retrying upload", 
UPLOAD_SUCCESSFUL: "upload successful", 
UPLOAD_FAILED: "upload failed", 
DELETE_FAILED: "delete failed", 
DELETING: "deleting", 
DELETED: "deleted" 
       return new qq.Promise().failure(imgOrCanvas, "File or URL not found."); 
       "due to CORS on a user agent that does not support pre-flighting.", "warn"); 
       this._options.callbacks.onError(id, name, "Delete request failed", xhrOrXdr); 
       this._options.callbacks.onError(id, name, "Delete request failed with response code " + xhrOrXdr.status, xhrOrXdr); 
       this._options.callbacks.onError(id, name, "XHR returned response code " + xhr.status, xhr); 
      typeError: "{file} has an invalid extension. Valid extension(s): {extensions}.", 
      sizeError: "{file} is too large, maximum file size is {sizeLimit}.", 
      minSizeError: "{file} is too small, minimum file size is {minSizeLimit}.", 
      emptyError: "{file} is empty, please select files again without it.", 
      noFilesError: "No files to upload.", 
      tooManyItemsError: "Too many items ({netItems}) would be uploaded. Item limit is {itemLimit}.", 
      maxHeightImageError: "Image is too tall.", 
      maxWidthImageError: "Image is too wide.", 
      minHeightImageError: "Image is not tall enough.", 
      minWidthImageError: "Image is not wide enough.", 
      retryFailTooManyItems: "Retry failed - you have reached your file limit.", 
      onLeave: "The files are being uploaded, if you leave now the upload will be canceled." 
     responseProperty: "error", 
     tooManyFilesError: "You may only drop one file", 
     unsupportedBrowser: "Unrecoverable error - this browser does not permit file uploading of any kind." 
     autoRetryNote: "Retrying {retryNum}/{maxAuto}..." 
     confirmMessage: "Are you sure you want to delete {filename}?", 
     deletingStatusText: "Deleting...", 
     deletingFailedText: "Delete failed" 
     namePromptMessage: "Please name this image" 
      throw new Error("file with passed id was not added, or already uploaded or canceled"); 
     promise.failure(img, "Problem drawing thumbnail!"); 
      drawPreview.failure(container, "Browser cannot render image!"); 
      drawPreview.failure(container, "Not previewable"); 
      thePromise.failure("No EXIF header to be found!"); 

는 않았다 여기에 문서가 있습니까? THIA - 환호, 윌

답변

1

위에서 언급 한 확인 메시지는 Fine Uploader UI 모드 deleteFile options에서 변경할 수 있습니다.

질문에 나열된 다른 많은 항목은 설명서에 정의 된 옵션을 통해 쉽게 사용자 지정할 수 있습니다. 예를 들어 core messages option 및 추가 messages option for UI mode을 참조하십시오. 또한 위에 나열된 항목 중 많은 수가 메시지가 아니며 사용자에게 직접 전달되지 않습니다 (예 : responseProperty, qq.status 등). 오버라이드해야하는 특정 텍스트 항목이 있지만 도서관에서 감독 할 수 없기 때문에 기능 요청을하십시오.

+0

아, 중대하다. 아마도 {filename}도 잘 작동 할 것입니다. 현재 요새 릴리스는 번역 할 필요없이 생방송으로 살아야 할 것입니다. 지금 변경하겠습니다. – dothebart

+0

{filename}은 실제 파일 이름으로 파인 업 데이트로 대체됩니다. –

+0

설명서에 스왑되어 있습니까? 그들의 이름은 나를 위해 그것을 암시합니다 ... deletingFailedText 삭제가 보류중인 파일 옆에 나타나는 상태 메시지. deletingStatusText 삭제하지 못한 파일 옆에 나타나는 상태 메시지입니다. – dothebart

관련 문제