SSamTure.net

워드프레스

워드프레스 언어팩(mo파일) 수정 방법

오늘은 워드프레스 언어팩 수정하는 방법에 대하여 포스팅 하도록 하겠습니다.

워드프레스에서 기본적으로 번역된 언어팩을 제공하지만 그대로 사용하기에는 자신에게 맞지 않은 번역문들이 있을겁니다.

워드프레스에서 언어팩 디렉토리(/wp-content/languages/)로 가보면 확장자가 “.po”와 “.mo”파일이 있습니다.

“.po”파일을 수정하여 “.mo”파일을 생성하게 되는데요. 참고로  “.mo”파일은 직접 수정할수는 없습니다.

“.po”파일을 수정하기 위해서는 “po에디터“라는 툴이 필요합니다.

자신이 수정하고자 하는 “.po”파일을 po에디터 또는 텍스트 편집기를 이용하여 오픈 한 후 수정을 하면 됩니다.

내용을 수정한 후 po에디터에서 저장을 하게 되면 “.mo”파일이 생성되는데, 해당 파일을 워드프레스에 덮어쓰게 되면
새로 변경된 내용을 보실 수 있습니다.

파일을 수정하거나 번역문을 추가할때에는 php소스에 있는 내용을 그래도 작성한 후 번역문을 쓰시면 됩니다.

글로 설명하는 것보다 스크린샷을 보시면 이해가 되실겁니다.

궁금하신점 있으면 얼마든지 질문 환영합니다.^^

9 Comments

  1. 시티 카 드라이
    2012/05/28 at 01:47 · Reply

    제가 위 이름처럼 시티 카 드라이빙이라는 게임을 한글화 하려고 했는데 마침 언어파일이 mo파일로 되어 있어서 po파일로 컴파일하고 안을 봤는데 원문은 러시아어로 돼어있고 번역문은 영어로 되어있어서 영어부분만 고칠 수 있길래 영어를 한글로 고치고 다시 mo파일로 컴파일 시켰는데 정작 게임 내부에선 한글번역한 부분만 공백으로 뜹니다… 그리고 po파일 저장할때 "파일경로 ~ some header fields still have the initial default value" 이런 경고문이 뜨더군요. 뭐 저장하는덴 별 문제가 없어서 무시했는데 이것 때문에 그런건지 잘 모르겠더군요. 현재 이 문제에 대한 지식이 부족해서 여기저기 질문하고 다니는데 아직까지 답변도 제대로 안오는 상태여서 힘드네요… 뭐 이 문제에 대해 잘 모르시면 굳이 답변해주실 필요는 없습니다.

    • 임민형
      2012/05/29 at 17:49 · Reply

      @시티 카 드라이빙
      안녕하세요.

      저장할 때 뜨는 경고문을 봤을때, po 파일 상단에 정의해주는 부분이 잘못된것으로 보여집니다.
      해당 부분에 누락되거나 잘못 되었는지 확인이 필요 할 것 같습니다.
      정상적으로 저장이 되면 경고문이 뜨지 않습니다.^^

      직접 파일을 보지 않아, 정확한 답변을 드릴 수 없겠네요.ㅠㅠ

  2. 워프사랑
    2013/12/17 at 11:03 · Reply

    po에디터가 어떤게 있나요;;

    • joinusworld
      2015/05/07 at 11:07 · Reply

      poedit.net 가 있습니다.

      • Lavinia
        2017/01/05 at 04:20 · Reply

        Waanzinnige collecties! In deze lijst zou ik zo graag het jumpsuit van Margela, de zilveren broek van Topshop Unique en de trui van Kenzo willen! wwobtreativicyandchocolate..logspwt.com

      • http://www./
        2017/03/01 at 20:06 · Reply

        Oh man! I read the local newspaper everyday and there is more bad news in it than good news.Great insights here man. Now, I feel truly blessed to be alive and being able to enjoy every second of the day. Everyday is a gift – no doubt.You know Benny, I feel real good after reading your post and thanks for the reminder as to why I should forget the past and start on what is important this instant!Very much appreciated brother!

      • quick lane coupons
        2017/03/31 at 03:03 · Reply

        Dani,I saw you and immediately recognized you on The Secret Millionaire show. Very touching and inspiring! You are a hero and keep doing what you are doing.God Bless!Ha Bui

    • Lovie
      2017/01/05 at 04:36 · Reply

      K so in careers, I am doing a praotneetisn on the career of being a graphics designer. I want to make the presentation creative. I basically have to show why this careers is the best. Some people are doing plays and acting as cops because the career they choose is being a cop, anyone got any creative ideas to make a presentation about graphics designers unique, creative and fun?

    • http://www.ihrkreditrechner.club/
      2017/02/10 at 04:14 · Reply

      Living in a loft would definitely take some special planning in terms of finding the right way to decorate- but the trade off- all that space- would definitely be worth it!

Leave a Reply to quick lane coupons Cancel reply

Your email address will not be published. Required fields are marked *