Gettext

GNU gettext
원저자썬 마이크로시스템즈
개발자GNU 프로젝트
발표일1990년(36년 전)(1990)[1]
안정화 버전
1.0[2] 위키데이터에서 편집하기 / 2026년 1월 28일(6개월 전)(2026년 1월 28일)
저장소
운영 체제크로스 플랫폼
종류국제화와 지역화
라이선스다양한 자유 소프트웨어 라이선스
웹사이트www.gnu.org/software/gettext/

컴퓨팅에서 gettext유닉스 계열 컴퓨터 운영 체제의 다국어 프로그램을 작성할 목적으로 흔히 쓰이는 국제화와 지역화(i18n, L10n) 시스템이다. 가장 널리 쓰이는 gettext 구현물은 1995년 GNU 프로젝트가 공개한 GNU gettext이다.

역사

gettext는 본래 1990년대 초 썬 마이크로시스템즈가 작성하였다. GNU 프로젝트는 1995년에 이 시스템의 자유 소프트웨어 구현물인 GNU gettext를 공개하였다.[3]

동작

프로그래밍

소스 코드는 GNU gettext 호출을 사용하기 위해 처음 수정되어 있다. 대부분의 프로그래밍 언어의 경우 이것은 사용자가 gettext 함수 안에서 참조할 문자열을 래핑함으로써 처리된다. 입력 시간을 절약하기 위해, 또 코드의 어수선함을 줄이기 위해 이 함수는 _로 엘리어스 처리되는데, C 코드에서 이것은:

printf(gettext("My name is %s.\n"), my_name);

다음과 같이 된다:

printf(_("My name is %s.\n"), my_name);

같이 보기

각주

  1. “History of gettext() et al? - comp.unix.solaris”. 《Compgroups.net》. 2012년 3월 23일에 원본 문서에서 보존된 문서. 2016년 4월 3일에 확인함. 
  2. Bruno Haible (2026년 1월 29일). “gettext-1.0 released [stable]” (영어). 2026년 1월 29일에 확인함. 
  3. “보관된 사본”. 2012년 3월 23일에 원본 문서에서 보존된 문서. 2013년 11월 3일에 확인함. 

외부 링크

  • 위키미디어 공용에 Gettext 관련 미디어 분류가 있습니다.
  • (영어) Gettext - 공식 웹사이트

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.