Back to index

moin  1.9.0~rc2
strings.py
Go to the documentation of this file.
00001 # -*- coding: iso-8859-1 -*-
00002 """
00003     MoinMoin - lists of translateable strings
00004 
00005     MoinMoin uses some translateable strings that do not appear at other
00006     places in the source code (and thus, are not found by gettext when
00007     extracting translateable strings).
00008     Also, some strings need to be organized somehow.
00009 
00010     TODO i18n.strings / general:
00011     * fix other translations (can be done using ##master-page, but help
00012       from a native speaker would be the preferred solution)
00013     * delete other SystemPagesInXXXGroup if their po file is complete
00014 
00015     @copyright: 2009 MoinMoin:ThomasWaldmann
00016     @license: GNU GPL, see COPYING for details.
00017 """
00018 
00019 _ = lambda x: x # dummy translation function
00020 
00021 # Some basic pages used for every language, but we only need them once in English (don't translate!):
00022 not_translated_system_pages = [
00023     'LanguageSetup',
00024     'InterWikiMap',
00025     'BadContent',
00026     'LocalBadContent',
00027     'EditedSystemPages',
00028     'LocalSpellingWords',
00029     'SystemAdmin',
00030     'SystemInfo',
00031     'ProjectTemplate',
00032     'ProjectGroupsTemplate',
00033     'PermissionDeniedPage',
00034 ]
00035 
00036 essential_system_pages = [
00037     _('RecentChanges'),
00038     _('WikiTipOfTheDay'), # used by RecentChanges
00039     _('TitleIndex'),
00040     _('WordIndex'),
00041     _('FindPage'),
00042     _('MissingPage'),
00043     _('MissingHomePage'),
00044     _('WikiHomePage'), # used by CategoryHomepage
00045 
00046     # these are still in use, but should be killed:
00047     _('WikiName'), # linked from misc. help/tips pages
00048     _('WikiWikiWeb'), # used by FrontPage/WikiHomePage
00049 ]
00050 
00051 optional_system_pages = [
00052     _('FrontPage'),
00053     _('WikiSandBox'),
00054     _('InterWiki'),
00055     _('AbandonedPages'),
00056     _('OrphanedPages'),
00057     _('WantedPages'),
00058     _('EventStats'),
00059     _('EventStats/HitCounts'),
00060     _('EventStats/Languages'),
00061     _('EventStats/UserAgents'),
00062     _('PageSize'),
00063     _('PageHits'),
00064     _('RandomPage'),
00065     _('XsltVersion'),
00066     _('FortuneCookies'), # use by RandomQuote macro
00067     _('WikiLicense'), # does not exist, but can be created by wiki admin
00068 ]
00069 
00070 translated_system_pages = essential_system_pages + optional_system_pages
00071 
00072 all_system_pages = not_translated_system_pages + translated_system_pages
00073 
00074 essential_category_pages = [
00075     _('CategoryCategory'),
00076     _('CategoryHomepage'),
00077 ]
00078 
00079 optional_category_pages = [
00080 ]
00081 
00082 all_category_pages = essential_category_pages + optional_category_pages
00083 
00084 essential_template_pages = [
00085     _('CategoryTemplate'),
00086     _('HomepageTemplate'),
00087 ]
00088 
00089 optional_template_pages = [
00090     _('HelpTemplate'),
00091     _('HomepageReadWritePageTemplate'),
00092     _('HomepageReadPageTemplate'),
00093     _('HomepagePrivatePageTemplate'),
00094     _('HomepageGroupsTemplate'),
00095     _('SlideShowHandOutTemplate'),
00096     _('SlideShowTemplate'),
00097     _('SlideTemplate'),
00098     _('SyncJobTemplate'),
00099 ]
00100 
00101 all_template_pages = essential_template_pages + optional_template_pages
00102 
00103 # Installation / Configuration / Administration Help:
00104 admin_pages = [
00105     _('HelpOnConfiguration'),
00106     _('HelpOnConfiguration/EmailSupport'),
00107     _('HelpOnConfiguration/SecurityPolicy'),
00108     _('HelpOnConfiguration/FileAttachments'),
00109     _('HelpOnConfiguration/SupplementationPage'),
00110     _('HelpOnConfiguration/SurgeProtection'),
00111     _('HelpOnConfiguration/UserPreferences'),
00112     _('HelpOnPackageInstaller'),
00113     _('HelpOnUpdatingPython'),
00114     _('HelpOnAdministration'),
00115     _('HelpOnAuthentication'),
00116     _('HelpOnAuthentication/ExternalCookie'),
00117     _('HelpOnMoinCommand'),
00118     _('HelpOnMoinCommand/ExportDump'),
00119     _('HelpOnNotification'),
00120     _('HelpOnSessions'),
00121     _('HelpOnUserHandling'),
00122     _('HelpOnXapian'),
00123 ]
00124 
00125 # Stuff that should live on moinmo.in wiki:
00126 obsolete_pages = [
00127 ]
00128 
00129 essential_help_pages = [
00130     _('HelpOnMoinWikiSyntax'), # used by edit action
00131     _('HelpOnCreoleSyntax'), # used by edit action
00132     # HelpOnParsers/ReStructuredText/RstPrimer could be renamed and used in a similar way
00133 ]
00134 
00135 optional_help_pages = [
00136     _('HelpOnFormatting'), # still needed?
00137     _('MoinMoin'),
00138     _('HelpContents'),
00139     _('HelpForBeginners'),
00140     _('HelpForUsers'),
00141     _('HelpIndex'),
00142     _('HelpOnAccessControlLists'),
00143     _('HelpOnActions'),
00144     _('HelpOnActions/AttachFile'),
00145     _('HelpOnAdmonitions'),
00146     _('HelpOnAutoAdmin'),
00147     _('HelpOnCategories'),
00148     _('HelpOnDictionaries'),
00149     _('HelpOnDrawings'),
00150     _('HelpOnEditLocks'),
00151     _('HelpOnEditing'), # used by edit action!
00152     _('HelpOnEditing/SubPages'),
00153     _('HelpOnGraphicalEditor'),
00154     _('HelpOnGroups'),
00155     _('HelpOnHeadlines'),
00156     _('HelpOnImages'),
00157     _('HelpOnLanguages'),
00158     _('HelpOnLinking'),
00159     _('HelpOnLinking/NotesLinks'),
00160     _('HelpOnLists'),
00161     _('HelpOnLogin'),
00162     _('HelpOnMacros'),
00163     _('HelpOnMacros/EmbedObject'),
00164     _('HelpOnMacros/Include'),
00165     _('HelpOnMacros/MailTo'),
00166     _('HelpOnMacros/MonthCalendar'),
00167     _('HelpOnNavigation'),
00168     _('HelpOnOpenIDProvider'),
00169     _('HelpOnPageCreation'),
00170     _('HelpOnPageDeletion'),
00171     _('HelpOnParsers'),
00172     _('HelpOnParsers/ReStructuredText'),
00173     _('HelpOnParsers/ReStructuredText/RstPrimer'),
00174     _('HelpOnProcessingInstructions'),
00175     _('HelpOnRules'),
00176     _('HelpOnSearching'),
00177     _('HelpOnSlideShows'),
00178     _('HelpOnSlideShows/000 Introduction'),
00179     _('HelpOnSlideShows/100 Creating the slides'),
00180     _('HelpOnSlideShows/900 Last but not least: Running your presentation'),
00181     _('HelpOnSmileys'),
00182     _('HelpOnSpam'),
00183     _('HelpOnSpellCheck'),
00184     _('HelpOnSuperUser'),
00185     _('HelpOnSynchronisation'),
00186     _('HelpOnTables'),
00187     _('HelpOnTemplates'),
00188     _('HelpOnThemes'),
00189     _('HelpOnUserPreferences'),
00190     _('HelpOnVariables'),
00191     _('HelpOnXmlPages'),
00192     _('HelpOnComments'),
00193     _('HelpOnSubscribing'),
00194 
00195     # these are still in use, but should be killed:
00196     _('CamelCase'), # linked from misc. help/course pages
00197 ]
00198 
00199 all_help_pages = essential_help_pages + optional_help_pages
00200 
00201 # Wiki Course:
00202 course_pages = [
00203     _('WikiCourse'),
00204     _('WikiCourse/01 What is a MoinMoin wiki?'),
00205     _('WikiCourse/02 Finding information'),
00206     _('WikiCourse/03 Staying up to date'),
00207     _('WikiCourse/04 Creating a wiki account'),
00208     _('WikiCourse/05 User preferences'),
00209     _('WikiCourse/06 Your own wiki homepage'),
00210     _('WikiCourse/07 The text editor'),
00211     _('WikiCourse/08 Hot Keys'),
00212     _('WikiCourse/10 Text layout with wiki markup'),
00213     _('WikiCourse/11 Paragraphs'),
00214     _('WikiCourse/12 Headlines'),
00215     _('WikiCourse/13 Lists'),
00216     _('WikiCourse/14 Text styles'),
00217     _('WikiCourse/15 Tables'),
00218     _('WikiCourse/16 Wiki internal links'),
00219     _('WikiCourse/17 External links'),
00220     _('WikiCourse/18 Attachments'),
00221     _('WikiCourse/19 Symbols'),
00222     _('WikiCourse/20 Dynamic content'),
00223     _('WikiCourse/21 Macros'),
00224     _('WikiCourse/22 Parsers'),
00225     _('WikiCourse/23 Actions'),
00226     _('WikiCourse/30 The graphical editor'),
00227     _('WikiCourse/40 Creating more pages'),
00228     _('WikiCourse/50 Wiki etiquette'),
00229     _('WikiCourse/51 Applications'),
00230     _('WikiCourse/52 Structure in the wiki'),
00231     _('WikiCourseHandOut'),
00232 ]
00233 
00234 essential_pages = (
00235     essential_system_pages +
00236     essential_category_pages +
00237     essential_template_pages +
00238     essential_help_pages
00239 )
00240 
00241 optional_pages = (
00242     optional_system_pages +
00243     optional_category_pages +
00244     optional_template_pages +
00245     optional_help_pages
00246 )
00247 
00248 all_pages = (
00249     all_system_pages +
00250     all_category_pages +
00251     all_template_pages +
00252     all_help_pages +
00253     admin_pages +
00254     obsolete_pages +
00255     course_pages
00256 )
00257 
00258 # an list of page sets translators should look at,
00259 # ordered in the order translators should look at them
00260 pagesets = [
00261     'not_translated_system_pages',
00262     'essential_system_pages',
00263     'essential_help_pages',
00264     'essential_category_pages',
00265     'essential_template_pages',
00266     'essential_pages',
00267     'optional_system_pages',
00268     'optional_help_pages',
00269     'optional_category_pages',
00270     'optional_template_pages',
00271     'optional_pages',
00272     'translated_system_pages',
00273     'all_system_pages',
00274     'all_help_pages',
00275     'all_category_pages',
00276     'all_template_pages',
00277     'admin_pages',
00278     'course_pages',
00279     'obsolete_pages',
00280     'all_pages',
00281 ]
00282 
00283 # we use Sun at index 0 and 7 to be compatible with EU and US day indexing
00284 # schemes, like it is also done within crontab entries:
00285 weekdays = [_('Sun'), _('Mon'), _('Tue'), _('Wed'), _('Thu'), _('Fri'), _('Sat'), _('Sun')]
00286 
00287 actions = [
00288     _('AttachFile'),
00289     _('DeletePage'),
00290     _('LikePages'),
00291     _('LocalSiteMap'),
00292     _('RenamePage'),
00293     _('SpellCheck'),
00294 ]
00295 
00296 misc = [
00297     # the editbar link text of the default supplementation page link:
00298     _('Discussion'),
00299 ]
00300 
00301 del _ # delete the dummy translation function
00302