在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):creativecommons/cc.i18n开源软件地址(OpenSource Url):https://github.com/creativecommons/cc.i18n开源编程语言(OpenSource Language):Python 93.2%开源软件介绍(OpenSource Introduction):Creative Commons i18n Tools
Package ContentsThis package provides the localization dataset for the Creative Commons website, along with a set of tools to manage translations. For historical reasons the CC site templates use abstract string identifiers (ie, "deed.by") instead of the customary English text. Many tools are available for gettext catalogs which assume that the English text is the identifier; the tools included convert between the different formats. In addition to the tools, the dataset is maintained in two different formats.
The InstallationThe toolset uses zc.buildout to assemble the software and its dependencies. Buildout will download and install any dependencies needed and install them in the local checkout directory. To prepare the tools for use:
After the buildout process completes the tools will be available in a Managing TranslationsTranslations are managed through the To add or change translations, edit ./bin/sync This script will update all files in the Deploying Updated TranslationsIn order to deploy updated translations, the "normal" .po files need to be converted to CC style files. This is handled by the po2cc script: ./bin/po2cc Updating Translations
Deed Translations DisplayedThe threshold for whether deed translations are displayed is configured in
# Percent translated that languages should be at or above
TRANSLATION_THRESHOLD = 80 The threshold is used with the percentages computed by the |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论