From: Petr Viktorin Date: Sat, 12 Mar 2011 15:59:01 +0000 (+0200) Subject: I18n for the database schema X-Git-Tag: veekun-promotions/2011041101~35^2~18 X-Git-Url: http://git.veekun.com/zzz-pokedex.git/commitdiff_plain/31634e7159d8c385b5382ed47037972e88478358?hp=31634e7159d8c385b5382ed47037972e88478358 I18n for the database schema - Helper base class: Named Subclasses: OfficiallyNamed, UnofficiallyNamed for these, a 'name' column is created in the appropriate text table also, they get automatic __str__/__repr__/__unicode__ - Faux columns: ProseColumn, TextColumn these become columns in the appropriate text tables these text tables (*_text, *_prose) are auto-generated at the end the main table gets one property (singular name) that gets the English text and one (plural name) with dict of texts keyed by language - Every named table gets 'identifier' - Languages compare & hash equal to their identifiers - Existing foreign-name tables replaced by the autogenerated ones - order_by: names replaced by identifiers - New function: all_tables(), yields all tables - Markdown move properties removed for now - Schema test suite ---