| Àå°í - i18n. ¸ðµ¨¿¡¼ ´Ù±¹¾î µ¥ÀÌÅ͸¦ ´ú °íÅ뽺·´°Ô ¸¸µé·Á´Â Django ÀÀ¿ë ÇÁ·Î±×·¥ |
Áö±Ý ´Ù¿î·Îµå |
Àå°í - i18n. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Gonzalo Saavedra, Matias Aguirre and Juan Pablo Martinez
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://github.com/juanpex/
Àå°í - i18n. ű×
Àå°í - i18n. ¼³¸í
Django-Model-i18nÀº ¸ðµ¨¿¡¼ ´Ù±¹¾î µ¥ÀÌÅ͸¦ ´ú °íÅ뽺·´°Ô ¸¸µé·Á´Â Django ¾ÛÀÔ´Ï´Ù. * repositoryConfigurationGo¸¦ ·çÆ® ÇÁ·ÎÁ§Æ® µð·ºÅ丮¿¡ urls.py·Î º¹Á¦ÇÏ°í model_i18n °¡Á® ¿À±â ·Î´õ ·Î´õ ()¿¡¼ 'django.middleware .locale.localeMiddleWare 'middleware_classes :: middleware_classes = ('django.middleware.common.commonmiddleware ','django.contrib.sessions.middleware.sessionmiddleware ', ## ij½Ã ¹Ìµé¿þ¾î°¡ ¿©±â¿¡ ¼³Á¤µÈ °æ¿ì'django.middleware.locale localEmiddleware ','django.middleware.csrf.csrfviewMiddleware ','django.contrib.auth.middleware.authenticationmiddleware ','django.contrib.messages.middleware.messagemiddleware ','django.contrib.flatpages.middleware.flatpagefallbaillware ',) ±×¸®°í ¸¶Áö¸·À¸·Î installated_apps :: installation_apps = ( 'model_i18n', ... 'django.contrib.admin') ** model_i18nÀ» ÆÛÆà ÇÒ ¶§ model_i18nÀÌ ¸ÕÀú installed_apps ¸ñ·Ï¿¡ ÀÖ¾î¾ßÇÕ´Ï´Ù. ** Usage1) µð·ºÅ丮 ÀÀ¿ë ÇÁ·Î±×·¥ÀÇ TRÀ» ¸¸µì´Ï´Ù anslations.py2)ÀÌ ¿¹Á¦¿Í °°Àº º¯È¯À» µî·Ï ÇؾßÇÏ´Â ÆÄÀÏ ³»ºÎ ::¿¡¼ model_i18n¿¡¼ app.models¿¡¼ translator °¡Á® ¿À±â Ç׸ñ Ŭ·¡½º Ŭ·¡½º itemTranslation (translator.modeltranslation) : fields = ( 'title',) translator.register (Ç׸ñ, itemTranslation) ) Á¦Ç° ȨÆäÀÌÁö
Àå°í - i18n. °ü·Ã ¼ÒÇÁÆ®¿þ¾î