Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.

Commit

Permalink
second commit
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe committed Oct 10, 2011
1 parent e011990 commit e8943c9
Show file tree
Hide file tree
Showing 8 changed files with 672 additions and 3 deletions.
590 changes: 590 additions & 0 deletions all.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added databasediagram.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added databasediagram_1000x945.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 8 additions & 3 deletions index.rst
Expand Up @@ -15,15 +15,21 @@ localizers to navigate to get stuff done.

This documentation is about the `elmo django application
<https://github.com/mozilla/elmo>`_ and how it works and why it works
like it works.
like it works.

All code is available here: https://github.com/mozilla/elmo

The production is available here: https://l10n-stage-sj.mozilla.org/

Contents:

.. toctree::
:maxdepth: 2


overview
life
shipping
l10nstats


Indices and tables
Expand All @@ -32,4 +38,3 @@ Indices and tables
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

8 changes: 8 additions & 0 deletions l10nstats.rst
@@ -0,0 +1,8 @@
.. index:: l10nstats

.. _l10nstats-chapter:

L10nstats
=========


20 changes: 20 additions & 0 deletions life.rst
Expand Up @@ -10,3 +10,23 @@ app that defines the most fundamental models of elmo. It basically
reflects the state of translation work done and to be done. All other
applications depend on this app for interactions.

Let's delve into some of the key models:

Locale
------

Key fields:

* ``code`` - e.g. "nn-NO"
* ``name`` - e.g. "Norweigian (Nynorsk)"
* ``native`` - e.g. "Norsk nynorsk"

Every repository and every shipping signoff references a locale. It's

Changeset
---------

Key fields:

* ``revision`` - e.g. "9b2a99adc05e53cd4010de512f50118594756650"
* (TODO: any more "key" fields here?)
39 changes: 39 additions & 0 deletions overview.rst
@@ -0,0 +1,39 @@
.. index:: overview

.. _overview-chapter:

Overview
========

.. image:: databasediagram_1000x945.png

(image originally from http://people.mozilla.org/~axel/all.svg)


As you can see in this database diagram, Elmo consists of 3 major parts:

* :ref:`life-chapter`
* :ref:`shipping-chapter`
* :ref:`l10nstats-chapter`

Their names imply what they each do and deal with. There are other
various tools that aren't directly part of these major apps but are
also important. For example, the privacy app (TODO: figure out whether
to bother documenting this).

Basically the whole database model is based around the structure that
is used in Mozilla to develop Firefox, Thunderbird, etc. but instead
of source code to the running programs, it's definition files
containing translatable strings. An example of a translatable string
file can for example look like this::

<!-- Tab context menu -->
<!ENTITY reloadTab.label "Oppdater fane">
<!ENTITY reloadTab.accesskey "O">
<!ENTITY reloadAllTabs.label "Oppdater alle fanene">
<!ENTITY reloadAllTabs.accesskey "d">
<!ENTITY closeOtherTabs.label "Lat att andre faner">
<!ENTITY closeOtherTabs.accesskey "a">

(this is the `Norwegian (nn-NO) source for browser.dtd
<http://hg.mozilla.org/l10n-central/nn-NO/file/d2b41af23354/browser/chrome/browser/browser.dtd>`_)
7 changes: 7 additions & 0 deletions shipping.rst
@@ -0,0 +1,7 @@
.. index:: shipping

.. _shipping-chapter:

Shipping
========

0 comments on commit e8943c9

Please sign in to comment.