# Django 5.2.9 문서

# 국제화와 현지화

## 개요

The goal of internationalization and localization is to allow a single web application to offer its content in languages and formats tailored to the audience.

Django는 텍스트 번역, 날짜, 시간 및 숫자 형식 지정, 그리고 시간대 에 대하여 완전히 지원합니다.

Essentially, Django does two things:

- It allows developers and template authors to specify which parts of their apps should be translated or formatted for local languages and cultures.

- It uses these hooks to localize web apps for particular users according to their preferences.

Translation depends on the target language, and formatting usually depends on the target country. This information is provided by browsers in the `Accept-Language` header. However, the time zone isn’t readily available.

## 정의

“국제화” 와 “현지화”라는 단어는 종종 혼란을 일으킵니다; 여기에 간단한 정의가 있습니다:

internationalization

  현지화 할 소프트웨어를 준비하는것. 보통 개발자가 완료하게 됩니다.

localization

  번역과 현지의 형식을 작성하는 것. 보통 번역가가 완료하게 됩니다.

더 자세한 것은 W3C 국제화 자주 묻는 질문, the 위키피디아의 글 or the `GNU gettext 문서`_에서 찾아보실 수 있습니다.

경고

Translation is controlled by the `USE_I18N` setting. However, it involves internationalization and localization. The name of the setting is an unfortunate result of Django’s history.

Here are some other terms that will help us to handle a common language:

locale name

  A locale name, either a language specification of the form `ll` or a combined language and country specification of the form `ll_CC`. Examples: `it`, `de_AT`, `es`, `pt_BR`, `sr_Latn`. The language part is always in lowercase. The country part is in titlecase if it has more than 2 characters, otherwise it’s in uppercase. The separator is an underscore.

language code

  Represents the name of a language. Browsers send the names of the languages they accept in the `Accept-Language` HTTP header using this format. Examples: `it`, `de-at`, `es`, `pt-br`. Language codes are generally represented in lowercase, but the HTTP `Accept-Language` header is case-insensitive. The separator is a dash.

message file

  A message file is a plain-text file, representing a single language, that contains all available translation strings and how they should be represented in the given language. Message files have a `.po` file extension.

translation string

  번역될 수 있는 것

format file

  A format file is a Python module that defines the data formats for a given locale.