Django Book 翻译
菜单>:
TOC
返回
原文:
The main solution to these problems is the ``javascript_catalog`` view, which generates a JavaScript code library with functions that mimic the ``gettext`` interface, plus an array of translation strings. Those translation strings are taken from the application, project, or Django core, according to what you specify in either the ``info_dict`` or the URL.
翻译:
这些问题的主要解决方案就是 ``javascript_catalog`` 视图。该视图生成一个JavaScript代码库,包括模仿 ``gettext`` 接口的函数,和翻译字符串的数组。这些翻译字符串来自应用程序,项目,或者Django核心,具体由 ``info_dict`` 或URL来确定。
备注:
译者: