~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to MoinMoin/i18n/strings.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: iso-8859-1 -*-
2
 
"""
3
 
    MoinMoin - lists of translateable strings
4
 
 
5
 
    MoinMoin uses some translateable strings that do not appear at other
6
 
    places in the source code (and thus, are not found by gettext when
7
 
    extracting translateable strings).
8
 
    Also, some strings need to be organized somehow.
9
 
 
10
 
    TODO i18n.strings / general:
11
 
    * fix other translations (can be done using ##master-page, but help
12
 
      from a native speaker would be the preferred solution)
13
 
    * delete other SystemPagesInXXXGroup if their po file is complete
14
 
 
15
 
    @copyright: 2009 MoinMoin:ThomasWaldmann
16
 
    @license: GNU GPL, see COPYING for details.
17
 
"""
18
 
 
19
 
_ = lambda x: x # dummy translation function
20
 
 
21
 
# Some basic pages used for every language, but we only need them once in English (don't translate!):
22
 
not_translated_system_pages = [
23
 
    'LanguageSetup',
24
 
    'InterWikiMap',
25
 
    'BadContent',
26
 
    'LocalBadContent',
27
 
    'EditedSystemPages',
28
 
    'LocalSpellingWords',
29
 
    'SystemAdmin',
30
 
    'SystemInfo',
31
 
    'ProjectTemplate',
32
 
    'ProjectGroupsTemplate',
33
 
    'PermissionDeniedPage',
34
 
]
35
 
 
36
 
essential_system_pages = [
37
 
    _('RecentChanges'),
38
 
    _('WikiTipOfTheDay'), # used by RecentChanges
39
 
    _('TitleIndex'),
40
 
    _('WordIndex'),
41
 
    _('FindPage'),
42
 
    _('MissingPage'),
43
 
    _('MissingHomePage'),
44
 
    _('WikiHomePage'), # used by CategoryHomepage
45
 
 
46
 
    # these are still in use, but should be killed:
47
 
    _('WikiName'), # linked from misc. help/tips pages
48
 
    _('WikiWikiWeb'), # used by FrontPage/WikiHomePage
49
 
]
50
 
 
51
 
optional_system_pages = [
52
 
    _('FrontPage'),
53
 
    _('WikiSandBox'),
54
 
    _('InterWiki'),
55
 
    _('AbandonedPages'),
56
 
    _('OrphanedPages'),
57
 
    _('WantedPages'),
58
 
    _('EventStats'),
59
 
    _('EventStats/HitCounts'),
60
 
    _('EventStats/Languages'),
61
 
    _('EventStats/UserAgents'),
62
 
    _('PageSize'),
63
 
    _('PageHits'),
64
 
    _('RandomPage'),
65
 
    _('XsltVersion'),
66
 
    _('FortuneCookies'), # use by RandomQuote macro
67
 
    _('WikiLicense'), # does not exist, but can be created by wiki admin
68
 
]
69
 
 
70
 
translated_system_pages = essential_system_pages + optional_system_pages
71
 
 
72
 
all_system_pages = not_translated_system_pages + translated_system_pages
73
 
 
74
 
essential_category_pages = [
75
 
    _('CategoryCategory'),
76
 
    _('CategoryHomepage'),
77
 
]
78
 
 
79
 
optional_category_pages = [
80
 
]
81
 
 
82
 
all_category_pages = essential_category_pages + optional_category_pages
83
 
 
84
 
essential_template_pages = [
85
 
    _('CategoryTemplate'),
86
 
    _('HomepageTemplate'),
87
 
]
88
 
 
89
 
optional_template_pages = [
90
 
    _('HelpTemplate'),
91
 
    _('HomepageReadWritePageTemplate'),
92
 
    _('HomepageReadPageTemplate'),
93
 
    _('HomepagePrivatePageTemplate'),
94
 
    _('HomepageGroupsTemplate'),
95
 
    _('SlideShowHandOutTemplate'),
96
 
    _('SlideShowTemplate'),
97
 
    _('SlideTemplate'),
98
 
    _('SyncJobTemplate'),
99
 
]
100
 
 
101
 
all_template_pages = essential_template_pages + optional_template_pages
102
 
 
103
 
# Installation / Configuration / Administration Help:
104
 
admin_pages = [
105
 
    _('HelpOnConfiguration'),
106
 
    _('HelpOnConfiguration/EmailSupport'),
107
 
    _('HelpOnConfiguration/SecurityPolicy'),
108
 
    _('HelpOnConfiguration/FileAttachments'),
109
 
    _('HelpOnConfiguration/SupplementationPage'),
110
 
    _('HelpOnConfiguration/SurgeProtection'),
111
 
    _('HelpOnConfiguration/UserPreferences'),
112
 
    _('HelpOnPackageInstaller'),
113
 
    _('HelpOnUpdatingPython'),
114
 
    _('HelpOnAdministration'),
115
 
    _('HelpOnAuthentication'),
116
 
    _('HelpOnAuthentication/ExternalCookie'),
117
 
    _('HelpOnMoinCommand'),
118
 
    _('HelpOnMoinCommand/ExportDump'),
119
 
    _('HelpOnNotification'),
120
 
    _('HelpOnSessions'),
121
 
    _('HelpOnUserHandling'),
122
 
    _('HelpOnXapian'),
123
 
]
124
 
 
125
 
# Stuff that should live on moinmo.in wiki:
126
 
obsolete_pages = [
127
 
]
128
 
 
129
 
essential_help_pages = [
130
 
    _('HelpOnMoinWikiSyntax'), # used by edit action
131
 
    _('HelpOnCreoleSyntax'), # used by edit action
132
 
    # HelpOnParsers/ReStructuredText/RstPrimer could be renamed and used in a similar way
133
 
]
134
 
 
135
 
optional_help_pages = [
136
 
    _('HelpOnFormatting'), # still needed?
137
 
    _('MoinMoin'),
138
 
    _('HelpContents'),
139
 
    _('HelpForBeginners'),
140
 
    _('HelpForUsers'),
141
 
    _('HelpIndex'),
142
 
    _('HelpOnAccessControlLists'),
143
 
    _('HelpOnActions'),
144
 
    _('HelpOnActions/AttachFile'),
145
 
    _('HelpOnAdmonitions'),
146
 
    _('HelpOnAutoAdmin'),
147
 
    _('HelpOnCategories'),
148
 
    _('HelpOnDictionaries'),
149
 
    _('HelpOnDrawings'),
150
 
    _('HelpOnEditLocks'),
151
 
    _('HelpOnEditing'), # used by edit action!
152
 
    _('HelpOnEditing/SubPages'),
153
 
    _('HelpOnGraphicalEditor'),
154
 
    _('HelpOnGroups'),
155
 
    _('HelpOnHeadlines'),
156
 
    _('HelpOnImages'),
157
 
    _('HelpOnLanguages'),
158
 
    _('HelpOnLinking'),
159
 
    _('HelpOnLinking/NotesLinks'),
160
 
    _('HelpOnLists'),
161
 
    _('HelpOnLogin'),
162
 
    _('HelpOnMacros'),
163
 
    _('HelpOnMacros/EmbedObject'),
164
 
    _('HelpOnMacros/Include'),
165
 
    _('HelpOnMacros/MailTo'),
166
 
    _('HelpOnMacros/MonthCalendar'),
167
 
    _('HelpOnNavigation'),
168
 
    _('HelpOnOpenIDProvider'),
169
 
    _('HelpOnPageCreation'),
170
 
    _('HelpOnPageDeletion'),
171
 
    _('HelpOnParsers'),
172
 
    _('HelpOnParsers/ReStructuredText'),
173
 
    _('HelpOnParsers/ReStructuredText/RstPrimer'),
174
 
    _('HelpOnProcessingInstructions'),
175
 
    _('HelpOnRules'),
176
 
    _('HelpOnSearching'),
177
 
    _('HelpOnSlideShows'),
178
 
    _('HelpOnSlideShows/000 Introduction'),
179
 
    _('HelpOnSlideShows/100 Creating the slides'),
180
 
    _('HelpOnSlideShows/900 Last but not least: Running your presentation'),
181
 
    _('HelpOnSmileys'),
182
 
    _('HelpOnSpam'),
183
 
    _('HelpOnSpellCheck'),
184
 
    _('HelpOnSuperUser'),
185
 
    _('HelpOnSynchronisation'),
186
 
    _('HelpOnTables'),
187
 
    _('HelpOnTemplates'),
188
 
    _('HelpOnThemes'),
189
 
    _('HelpOnUserPreferences'),
190
 
    _('HelpOnVariables'),
191
 
    _('HelpOnXmlPages'),
192
 
    _('HelpOnComments'),
193
 
    _('HelpOnSubscribing'),
194
 
 
195
 
    # these are still in use, but should be killed:
196
 
    _('CamelCase'), # linked from misc. help/course pages
197
 
]
198
 
 
199
 
all_help_pages = essential_help_pages + optional_help_pages
200
 
 
201
 
# Wiki Course:
202
 
course_pages = [
203
 
    _('WikiCourse'),
204
 
    _('WikiCourse/01 What is a MoinMoin wiki?'),
205
 
    _('WikiCourse/02 Finding information'),
206
 
    _('WikiCourse/03 Staying up to date'),
207
 
    _('WikiCourse/04 Creating a wiki account'),
208
 
    _('WikiCourse/05 User preferences'),
209
 
    _('WikiCourse/06 Your own wiki homepage'),
210
 
    _('WikiCourse/07 The text editor'),
211
 
    _('WikiCourse/08 Hot Keys'),
212
 
    _('WikiCourse/10 Text layout with wiki markup'),
213
 
    _('WikiCourse/11 Paragraphs'),
214
 
    _('WikiCourse/12 Headlines'),
215
 
    _('WikiCourse/13 Lists'),
216
 
    _('WikiCourse/14 Text styles'),
217
 
    _('WikiCourse/15 Tables'),
218
 
    _('WikiCourse/16 Wiki internal links'),
219
 
    _('WikiCourse/17 External links'),
220
 
    _('WikiCourse/18 Attachments'),
221
 
    _('WikiCourse/19 Symbols'),
222
 
    _('WikiCourse/20 Dynamic content'),
223
 
    _('WikiCourse/21 Macros'),
224
 
    _('WikiCourse/22 Parsers'),
225
 
    _('WikiCourse/23 Actions'),
226
 
    _('WikiCourse/30 The graphical editor'),
227
 
    _('WikiCourse/40 Creating more pages'),
228
 
    _('WikiCourse/50 Wiki etiquette'),
229
 
    _('WikiCourse/51 Applications'),
230
 
    _('WikiCourse/52 Structure in the wiki'),
231
 
    _('WikiCourseHandOut'),
232
 
]
233
 
 
234
 
essential_pages = (
235
 
    essential_system_pages +
236
 
    essential_category_pages +
237
 
    essential_template_pages +
238
 
    essential_help_pages
239
 
)
240
 
 
241
 
optional_pages = (
242
 
    optional_system_pages +
243
 
    optional_category_pages +
244
 
    optional_template_pages +
245
 
    optional_help_pages
246
 
)
247
 
 
248
 
all_pages = (
249
 
    all_system_pages +
250
 
    all_category_pages +
251
 
    all_template_pages +
252
 
    all_help_pages +
253
 
    admin_pages +
254
 
    obsolete_pages +
255
 
    course_pages
256
 
)
257
 
 
258
 
# an list of page sets translators should look at,
259
 
# ordered in the order translators should look at them
260
 
pagesets = [
261
 
    'not_translated_system_pages',
262
 
    'essential_system_pages',
263
 
    'essential_help_pages',
264
 
    'essential_category_pages',
265
 
    'essential_template_pages',
266
 
    'essential_pages',
267
 
    'optional_system_pages',
268
 
    'optional_help_pages',
269
 
    'optional_category_pages',
270
 
    'optional_template_pages',
271
 
    'optional_pages',
272
 
    'translated_system_pages',
273
 
    'all_system_pages',
274
 
    'all_help_pages',
275
 
    'all_category_pages',
276
 
    'all_template_pages',
277
 
    'admin_pages',
278
 
    'course_pages',
279
 
    'obsolete_pages',
280
 
    'all_pages',
281
 
]
282
 
 
283
 
# we use Sun at index 0 and 7 to be compatible with EU and US day indexing
284
 
# schemes, like it is also done within crontab entries:
285
 
weekdays = [_('Sun'), _('Mon'), _('Tue'), _('Wed'), _('Thu'), _('Fri'), _('Sat'), _('Sun')]
286
 
 
287
 
actions = [
288
 
    _('AttachFile'),
289
 
    _('DeletePage'),
290
 
    _('LikePages'),
291
 
    _('LocalSiteMap'),
292
 
    _('RenamePage'),
293
 
    _('SpellCheck'),
294
 
]
295
 
 
296
 
misc = [
297
 
    # the editbar link text of the default supplementation page link:
298
 
    _('Discussion'),
299
 
]
300
 
 
301
 
del _ # delete the dummy translation function
302