GithubHelp home page GithubHelp logo

texta-tk.github.io's Introduction

Sphinx documentation for TEXTA Toolkit 2

Documentation is built and uploaded automatically to docs.texta.ee website.

For testing the documentation locally, use following command to build HTML:

sphinx-build source public

If Sphinx not installed:

pip install sphinx

How to translate or change things?

Everyone, who adds something to our docs are required to translate the changes as well.

Translating:

  • Under locale/et/LC_MESSAGES/ you'll find .po files to translate. These files have sentences from the English files. You just have to translate the sentences like so:
#: ../../source/api.rst:4
msgid "This is an amazing sentence in English :ref:`API reference <api_reference>`."
msgstr "See on vägev lause eesti keeles :ref:`API reference <api_reference>`."

("#, fuzzy" shows that this part was changed and needs to be retranslated)

  • save your changes.
  • push to git. Currently you can see your changes under 'https://docs.texta.ee/et/' addresses (e.g. +"index.html").

Changing in English version and translating:

  • have good writing skills
  • our main page is still in English, so you can do your changes in source dir
  • refresh your stuff with make gettext and sphinx-intl update -p build/gettext -l en -l et (this adds the changes you made in English files to the Estonian .po files, but does not delete translations made before in case those were not changed in English. The changed texts are marked with "#, fuzzy")
  • translate Estonian with going to locale/et/LC_MESSAGES and adding translations in .po files.
  • push it to git

If you want to check your translations or English versions, use:

sphinx-build -b html -D language=en source public and sphinx-build -b html -D language=et source public/et

texta-tk.github.io's People

Contributors

asula avatar gpaimla avatar helehh avatar kristiinavaik avatar lindafr avatar mrkkollo avatar ranetp avatar rsirel avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

cbentes

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.