• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

phpmyadmin/localized_docs: Localized documentation

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

phpmyadmin/localized_docs

开源软件地址(OpenSource Url):

https://github.com/phpmyadmin/localized_docs

开源编程语言(OpenSource Language):

Makefile 87.9%

开源软件介绍(OpenSource Introduction):

phpMyAdmin - localized documentation

This repository contains localized documentation for phpMyAdmin. It is based on master document placed in phpmyadmin repository.

To translate edit your language file in po directory, changes will be propagated to generated documents. You can also translate online at <https://hosted.weblate.org/projects/phpmyadmin/documentation/> and your changes will be merged to Git.

Translation status Build documentation Documentation Status

Requirements

For manipulating with translations, you need gettext and sphinx installed.

Usage

To start new translation,

  • Add it to the LANGUAGES section of the Makefile.
  • Copy one of the language folders in ./docs/ to a new folder (named with the proper language code). This will maintain many symlinked files in that folder and one regular file config.py.
  • Edit config.py to change the language = section with the correct language name.
  • In the ./po/ folder, copy documentation.pot to create a new .po file. You may have to also create a .mo file, but I think that happens automatically on the build server.
  • Copy one of the folders in ./translated/ to a new folder. This again creates many symlinks.

To regenerate mofiles run:

make

To obtain statistics about current translations run:

./locales-stats

To update documentation run:

# Force Weblate to commit changes, requires wlc to be installed
wlc commit
# Pull changes from Weblate
git pull
# Update phpMyAdmin submodule
git submodule update --remote
# Update po files to match current docs
make

This automatically updates po files, generates mo files and synchronizes sources of the documentation. Review changes and commit them using:

git commit -a -m 'Update documentation to match master'

To build documentation in given language (for example Czech):

make html-cs

You can also invoke sphinx-build manually:

sphinx-build docs/cs/ output/cs/

You can also build all documentation at once:

make html

You can also browse translated documentation online at <https://docs.phpmyadmin.net/>.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap