Translate Toolkit & Pootle

Tools to help you make your software local

User Tools


Development Notes

On this page you will find some miscellaneous development notes that don't have a place on any of the other development-related pages. See the TODO in the project's root for more notes that would typically fit in here.

Coding Style

There is a lot to say about the style used in Spelt (mostly my personal preferences), but only a few points are made here. Inspect the code for the rest. :-)

Identifiers

The general coding style is the same as that of the rest of the Translate Toolkit: C-like identifiers (eg. with_underscores) with camel-cased class names (eg. SomeClass). Gtk widgets contain prefixes indicative of its type (or at least approximately). For example the name of a gtk.Button will start with btn_ and the name of a gtk.Dialog (or wrapper class thereof) starts with dlg_.

Spacing

Spelt was written with an indentation size of 4 spaces.

A blank line is left open after any indented block except cases where the indented block is very short (one or two lines) and where said block is logically part of its surrounding statements.

Alignment

In various places, where appropriate, parts of lines has been vertically aligned to improve readability. Examples are alignment on =s where there are a bunch of assignments or on imports for a bunch of from x import y lines.