안녕하세요.
워드프레스 기본 언어는 한국어로 설정되어 있습니다.
kboard의 언어 폴더에 일본어 mo,po 파일명을 ko_KR로 변경해서 적용해보았습니다.
그랬더니 거의 다 일본어로 나오는데 몇 군데가 한글로 나오네요. 수정법을 알 수 있을까요?
po파일을 확인해보았는데 목록에 없습니다. pic-gallery 스킨을 사용하고 있습니다.
음...
FTP로 서버 접속해서 스킨파일을 수정해주셔야 할 듯합니다.
/wp-content/plugins/kboard/skin/pic-gallery/editor.php 파일을 에디터로 열어서
<label class="attr-name"><?php echo __('Title')?></label>
위 코드를 아래처럼 변경해보세요.
<label class="attr-name"><?php echo __('Title', 'kboard')?></label>
그래도 안되면 그냥 일본어로 써주세요.
<label class="attr-name">タイトル</label>
<label class="attr-name">이미지</label>
위 코드는 그냥 일본어로 써주세요.
<label class="attr-name">イメージ</label>
해당 스킨의 editor.php 파일을 잘 보시면
<label class="attr-name">이미지</label> 이 코드가 2개가 있습니다.
모두 바꿔주시면 될 듯합니다.
그래도 안되시면 전체 코드를 올려주시겠어요?
네, 알려주신 코드는 모두 적용한 상태로 올리겠습니다.
<div id="kboard-pic-gallery-editor">
<form method="post" action="<?php echo $url->getContentEditorExecute()?>" enctype="multipart/form-data" onsubmit="return kboard_editor_execute(this);">
<?php wp_nonce_field('kboard-editor-execute', 'kboard-editor-execute-nonce');?>
<input type="hidden" name="action" value="kboard_editor_execute">
<input type="hidden" name="mod" value="editor">
<input type="hidden" name="uid" value="<?php echo $content->uid?>">
<input type="hidden" name="board_id" value="<?php echo $content->board_id?>">
<input type="hidden" name="parent_uid" value="<?php echo $content->parent_uid?>">
<input type="hidden" name="member_uid" value="<?php echo $content->member_uid?>">
<input type="hidden" name="member_display" value="<?php echo $content->member_display?>">
<input type="hidden" name="date" value="<?php echo $content->date?>">
<div class="kboard-header"></div>
<div class="kboard-attr-row kboard-attr-title">
<label class="attr-name"><?php echo __('Title', 'kboard')?></label>
<div class="attr-value"><input type="text" name="title" value="<?php echo $content->title?>"></div>
</div>
<?php if($board->use_category):?>
<?php if($board->initCategory1()):?>
<div class="kboard-attr-row">
<label class="attr-name"><?php echo __('Category', 'kboard')?>1</label>
<div class="attr-value">
<select name="category1">
<?php while($board->hasNextCategory()):?>
<option value="<?php echo $board->currentCategory()?>"<?php if($content->category1 == $board->currentCategory()):?> selected="selected" <?php endif?>><?php echo $board->currentCategory()?></option>
<?php endwhile?>
</select>
</div>
</div>
<?php endif?>
<?php if($board->initCategory2()):?>
<div class="kboard-attr-row">
<label class="attr-name"><?php echo __('Category', 'kboard')?>2</label>
<div class="attr-value">
<select name="category2">
<?php while($board->hasNextCategory()):?>
<option value="<?php echo $board->currentCategory()?>"<?php if($content->category2 == $board->currentCategory()):?> selected="selected" <?php endif?>><?php echo $board->currentCategory()?></option>
<?php endwhile?>
</select>
</div>
</div>
<?php endif?>
<?php endif?>
<div class="kboard-attr-row">
<label class="attr-name"><?php echo __('Secret', 'kboard')?></label>
<div class="attr-value"><input type="checkbox" name="secret" value="true"<?php if($content->secret):?> checked<?php endif?>></div>
</div>
<?php if($board->isAdmin()):?>
<?php elseif(!is_user_logged_in()):?>
<div class="kboard-attr-row">
<label class="attr-name"><?php echo __('Author', 'kboard')?></label>
<div class="attr-value"><input type="text" name="member_display" value="<?php echo $content->member_display?>"></div>
</div>
<div class="kboard-attr-row">
<label class="attr-name"><?php echo __('Password', 'kboard')?></label>
<div class="attr-value"><input type="password" name="password" value="<?php echo $content->password?>"></div>
</div>
<div class="kboard-attr-row">
<label class="attr-name"><img src="<?php echo kboard_captcha()?>" alt=""></label>
<div class="attr-value"><input type="text" name="captcha" value=""></div>
</div>
<?php endif?>
<div class="kboard-content">
<?php if($board->use_editor):?>
<?php wp_editor($content->content, 'kboard_content'); ?>
<?php else:?>
<textarea name="kboard_content" id="kboard_content"><?php echo $content->content?></textarea>
<?php endif?>
</div>
<div class="kboard-attr-file-wrap">
<?php $attach_index = '1'; if(!$content->attach) $content->attach=array(); foreach($content->attach as $key => $attach):?>
<div class="kboard-attr-row">
<label class="attr-name">イメージ</label>
<div class="attr-value">
<?php if($content->attach->{$key}[0]):?><?php echo $content->attach->{$key}[1]?> - <a href="<?php echo $url->getDeleteURLWithAttach($content->uid, $key);?>" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete file', 'kboard')?></a><?php endif?>
<input type="file" name="kboard_attach_<?php echo $key?>">
</div>
</div>
<?php $attach_index = intval(str_replace('file', '', $key)); $attach_index++; endforeach; ?>
<div class="kboard-attr-row">
<label class="attr-name">イメージ</label>
<div class="attr-value">
<?php if(isset($content->attach->{'file'.$attach_index}[0]) && $content->attach->{'file'.$attach_index}[0]):?><?php echo $content->attach->{'file'.$attach_index}[1]?> - <a href="<?php echo $url->getDeleteURLWithAttach($content->uid, 'file'.$attach_index);?>" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete file', 'kboard')?></a><?php endif?>
<input type="file" name="kboard_attach_file<?php echo $attach_index?>" onchange="add_input_file()">
</div>
</div>
</div>
<div class="kboard-attr-row">
<label class="attr-name"><?php echo __('WP Search', 'kboard')?></label>
<div class="attr-value">
<select name="wordpress_search">
<option value="1"<?php if($content->search == '1'):?> selected<?php endif?>><?php echo __('Public', 'kboard')?></option>
<option value="2"<?php if($content->search == '2'):?> selected<?php endif?>><?php echo __('Only title (secret document)', 'kboard')?></option>
<option value="3"<?php if($content->search == '3'):?> selected<?php endif?>><?php echo __('Exclusion', 'kboard')?></option>
</select>
</div>
</div>
<div class="kboard-control">
<div class="left">
<?php if($content->uid):?>
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>" class="kboard-pic-gallery-button-small"><?php echo __('Back', 'kboard')?></a>
<a href="<?php echo $url->toString()?>" class="kboard-pic-gallery-button-small"><?php echo __('List', 'kboard')?></a>
<?php else:?>
<a href="<?php echo $url->toString()?>" class="kboard-pic-gallery-button-small"><?php echo __('Back', 'kboard')?></a>
<?php endif?>
</div>
<div class="right">
<?php if($board->isWriter()):?>
<button type="submit" class="kboard-pic-gallery-button-small"><?php echo __('Save', 'kboard')?></button>
<?php endif?>
</div>
</div>
</form>
</div>
<script type="text/javascript">
var kboard_attach_index = <?php echo $attach_index+1?>;
var kboard_localize = {
please_enter_a_title:'<?php echo __('Please enter a title.', 'kboard')?>',
please_enter_a_author:'<?php echo __('Please enter a author.', 'kboard')?>',
please_enter_a_password:'<?php echo __('Please enter a password.', 'kboard')?>',
please_enter_the_CAPTCHA_code:'<?php echo __('Please enter the CAPTCHA code.', 'kboard')?>',
attachment:'<?php echo __('Attachment', 'kboard')?>'
}
</script>
<script type="text/javascript" src="<?php echo $skin_path?>/script.js"></script>
음 뭐죠..
보기에는 전부 변경했는데, 이상하군요.
확인 가능한 페이지 주소도 알려주시겠어요?
이상하네요.
<label class="attr-name">イメージ</label>
전부 이렇게 바꾸셨다면 일본어로 나와야 하는데요.
파일을 다시 다운받아서 데이터로 수정한 다음 다시 업로드 해보시겠어요?
그리고 하단에 아래 부분도 변경해주세요.
attachment:'<?php echo __('Attachment', 'kboard')?>'
위 코드를 아래처럼 바꿔주세요.
attachment:'イメージ'
알려주신대로
attachment:'<?php echo __('Attachment', 'kboard')?>'
위 코드를 attachment:'イメージ' 로 바꾸니 일본어로 되었습니다. ^^
도와주셔서 진심으로 감사드립니다. ^^