annotate MoinMoin/i18n/strings.py @ 4682:088e291e6a21

rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 13 Apr 2009 23:05:56 +0200
parents MoinMoin/i18n/dummy.py@4f49f6e762a8
children 2f5fa1f9aa32
rev   line source
4682
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
1 # -*- coding: iso-8859-1 -*-
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
2 """
4682
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
3 MoinMoin - lists of translateable strings
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
4
4682
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
5 MoinMoin uses some translateable strings that do not appear at other
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
6 places in the source code (and thus, are not found by gettext when
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
7 extracting translateable strings).
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
8 Also, some strings need to be organized somehow.
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
9
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
10 @copyright: 2009 MoinMoin:ThomasWaldmann
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
11 @license: GNU GPL, see COPYING for details.
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
12 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
13
4682
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
14 _ = lambda x: x # dummy translation function
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
15
4682
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
16 # TODO: check lists against SystemPagesInEnglishGroup
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
17
4682
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
18 essential_system_pages = [
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
19 _('FrontPage'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
20 _('RecentChanges'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
21 _('TitleIndex'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
22 _('WordIndex'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
23 _('FindPage'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
24 _('SiteNavigation'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
25 _('HelpContents'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
26 _('HelpOnFormatting'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
27 _('WikiLicense'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
28 _('MissingPage'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
29 _('MissingHomePage'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
30 ]
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
31
4682
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
32 optional_system_pages = [
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
33 ]
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
34
4682
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
35 system_pages = essential_system_pages + optional_system_pages
3458
4f49f6e762a8 removed references to UserPreferences PAGE (now userprefs action), removed reference to SendMyPassword PAGE (gone), add dummy translation for 'Discussion'
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3333
diff changeset
36
4682
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
37 # we use Sun at index 0 and 7 to be compatible with EU/US day indexing scheme,
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
38 # like it is also done by crontab entries etc.
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
39 weekdays = [_('Sun'), _('Mon'), _('Tue'), _('Wed'), _('Thu'), _('Fri'), _('Sat'), _('Sun')]
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
40
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
41 actions = [
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
42 _('AttachFile'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
43 _('DeletePage'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
44 _('LikePages'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
45 _('LocalSiteMap'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
46 _('RenamePage'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
47 _('SpellCheck'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
48 ]
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
49
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
50 misc = [
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
51 # the editbar link text of the default supplementation page link:
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
52 _('Discussion'),
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
53 ]
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
54
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
55 del _ # delete the dummy translation function
088e291e6a21 rename i18n/dummy to i18n/strings, use it for new approach for SystemPages later
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3458
diff changeset
56