Coder Social home page Coder Social logo

qgis-sphinx-doc's Introduction

QGIS Documentation

Introduction

View Online (html) (only in English, ReadTheDocs does not support Internationalization at this time)

This repository stores official QGIS documentation.

http://qgis.org

Paolo Corti April, 2012

Setup

  1. create a virtualenv and activate it (I generally mantain all the virtualenvs in a ~/virtualenv but you may create it in your preferred location):

    $ virtualenv --no-site-packages sphinx-env
    $ source sphinx-env/bin/activate
    
  2. install sphinx in the virtualenv:

    (sphinx-env)$ pip install sphinx
    
  3. clone the github project:

    (sphinx-env)$ git clone https://[email protected]/capooti/qgis-sphinx-doc.git
    
  4. build the sphinx project with the build.sh script:

    (sphinx-env)./build.sh
    

Some quick note on internationalization

Project administrators must have generated .pot files:

$ sphinx-build -b gettext source/ source/translated/pot/

To add a new language

  1. copy the source/translated/pot directory to source/transated/your-language-code directory, where your-language-code is the ISO language code with 2 digits

  2. rename the files .pot to .po and edit them

  3. compile the .po files you have edited:

    $ msgfmt introduction.po -o translated/it/LC_MESSAGES/introduction.mo
    
  4. to build/rebuild all the template files:

    $ sphinx-build -b gettext source/ source/translated/pot/
    
  5. This will check if a .po file needs to be updated:

    $ msgmerge source/translated/it/introduction.po
    source/translated/pot/introduction.pot -U
    
  6. At this point the translator can check the introduction.po file and check the paragraphs that need to be updated, marked with a #fuzzy tag

Editors

  1. Check out Gtranslator
  2. ...

TODO

qgis-sphinx-doc's People

Contributors

capooti avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

xiaohaoyang

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.