블로그

Uncategorized

워드프레스의 비비프레스를 한글형태로 커스터마이징 하는 방법. bbpress@WordPress-> 한글화 작업

심포니 형태의 bbpress로 커스터마이징 하는 방법 – bbpress 2.3.x
최종커스터마이징 본은 symphony 홈페이지의 /www/wp-content/plugins/iphorm-form-builder
를 이용함.
선언:
a. {mytheme} : /wp-content/themes/[mytheme] folder
b. {bbpress} : /wp-content/plugins/bbpress folder
A. bbpress plugin 설치
B. gb-bbpress-attachment plugin 설치
C. bbpress 언어화일 설치
1. http://translate.wordpress.org/projects/bbpress/2.3.x/ko/default
에서 언어화일을 다운로드 한다.
방법 ) [맨 아래 셀렉트 박스를] ’all current‘ as ‘.po‘로 맞추고, ‘export‘를 누른다.
파일을 내려받았다면, ‘all current‘ as ‘.mo‘로 다시 맞추고 또 ‘export‘를 누른다.
여기서 mo 화일은 편집할 수 있는 po 화일을 complile하면 mo 가 반들어진다.
http://sourceforge.net/projects/betterpoeditor/ 는 poeditor 가 있는 링크인데
po – poEditor -> mo 화일로 만들어지고 역 complie도 가능하다.
Differences Between PO and MO Files 는 아래를 참조한다.
http://weblogtoolscollection.com/archives/2007/03/06/wp-translations-mo-and-po-files/
poEditor 는 http://sourceforge.net/projects/betterpoeditor/ 를 참조한다.
2. 각 파일의 이름을 bbpress-language_COUNTRY.extension 형식으로 바꾼다.
예컨대, bbpress-plugin-ko.po는 bbpress-ko_KR.po로,
bbpress-plugin-ko.mo는 bbpress-ko_KR.mo로. —- !! 중요 : 바로 화일명 수정없이 올리면 작동안함.
FTP로 .po와 .mo 파일을 모두 /wp-content/languages/bbpress/ 폴더에 업로드한다.
만약 /wp-content/languages/bbpress/ 폴더가 없으면 만든다.
D. 커스터마이즈된 bbpress template 를 설치한다.
1. Child template 화일 설치
원래는 {bbpress}/templates/default/bbpress 폴더의 화일을 {mytheme}/bbpress의 폴더를 만들고
그 밑에 복사하면 되지만 심포니는 이미 커스터마이즈된 template를 가지고 있으므로 그것을
{mytheme}/bbpress 에 업로드한다.
2. Child css 화일 설치
원래는 {bbpress}/templates/default/css/bbpress.css 화일을 {mytheme}/css의 폴더에 복사하면 되지만
심포니는 이미 커스터마이즈된 bbpress.css 화일을 를 가지고 있으므로 그것을{mytheme}/css 에 업도드한다.
D. bbpress fancy editor 바꾼다.
1. 단순 에디터로 바꾸는 방법
관리자모드에서 설정->게시판(Forum) -> 팬시 편집기 (fancy editor) 의 체크박스를 체크로 만들고 저장한다.
2. Visual Editor로 바꾸는 방법
원래는bbPress 2.3.1 에서는 visual editor가 default 였는데 Html mode로 전환해야하는 것이 이슈가 되어
누락되었는데 복원하는 방법은 {mytheme}/functions.php 에 다음과 같은 내용을 추가하고 저장한다.
function bbp_enable_visual_editor( $args = array() ) {
$args[‘tinymce’] = true;
return $args;
}
add_filter( ‘bbp_after_get_the_content_parse_args’, ‘bbp_enable_visual_editor’ );