Giter Club home page Giter Club logo

localized_docs's 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/>.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.