최근 워드프레스 커스터마이징을 하다보니 _(); 요런 함수에 'text' 값을 할당하면 _('text'); 함수가 "텍스트"를 리턴해주는 식의 localization 방식을 사용하길래 구글링 조회 후 간단한 구현을 해 보았다. 워드프레스에서 언어 관련하여 자주 보이는 주요 파일은 en_US.po en_US.mo 들인데 저 파일 중 텍스트에디터로 .po 파일을 열어보면 규칙성있는 내용이 나타난다. # 이것은 주석 msgid "text" msgstr "텍스트" 의 규칙을 가진 쌍으로 입력을 이어가면 된다는것을 알 수 있다. 그러면 워드프레스 환경이 아닌 순수한 PHP 에서는 어떻게 구현할 수 있는지 보자. PHP Extention 중 gettext 는 미리 탑재시켜야한다. 간단한 지역화 프로젝트를 아래와 같..
local> ssh username@remotemachine.comremote> cd path/to/projectremote/path/to/project> git initremote/path/to/project> exitlocal> cd path/to/local/projectlocal/path/to/local/project> git initlocal/path/to/local/project> git add .local/path/to/local/project> git commit -m "initial commit"local/path/to/local/project> git checkout mybranchlocal/path/to/local/project> git remote add origin username@..
http://biscuitpress.kr/503
http://biscuitpress.kr/518
http://codex.wordpress.org/ko:Plugin_API
http://codex.wordpress.org/ko:Function_Reference
http://toroid.org/ams/git-website-howto 필자: Abhijit Menon-Sen 내 웹사이트 HTML 소스가 내 로컬 작업머신의 Git 저장소에 존재. 이 페이지는 어떻게 "git push web" 명령 실행으로 변경을 설정하는지 기술한다.온라인 요약: 작업트리에서 분리된 원격 저장소에 push 하고, post-receive hook 에서 "git checkout -f" 실행.로컬 저장소$ mkdir website && cd website $ git init Initialized empty Git repository in /home/ams/website/.git/ $ echo 'Hello, world!' > index.html $ git add index.html $ git..
- Total
- Today
- Yesterday
- laravel
- CSS
- Docker
- PHP
- iphone
- API
- JQuery
- IE
- centos
- 안드로이드
- Debug
- Mac
- Prototype
- JSON
- javascript
- IOS
- sencha touch
- nodejs
- classic asp
- macos
- nginx
- Android
- git
- mssql
- 워드프레스
- iis
- Linux
- ASP
- 한글
- Wordpress
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |