ROR 응용 프로그램에 Colorbox를 설치했습니다. 하지만 현지화가 필요합니다. 스크립트에서 내가 가진 :어떻게하면 colorbox를 현지화 할 수 있습니까?
파일 images.js.coffee {현재}는 현재 이미지와 {총}있는 총 이미지입니다
$(document).ready ->
$(".group1").colorbox({rel:'group1',
transition:"none", maxWidth:"85%", maxHeight:"85%",
current: "{current} <%= t('views.image.of') %> {total}"})
.
yml-file (app/config/locales/**. yml)에서 데이터를 붙여 넣는 방법은 무엇입니까?
"{} t 전류 ('views.image.of') {} 전체"와 "현재 {}"+ t ('와 views.image.of ') + "{total}"및 "{current} i18n.t ('views.image.of ') {total}'및 '{current}'+ i18n.t ('views.image.of') + {합계}" – user1466717