本文整理汇总了Python中zoundry.blogapp.messages._extstr函数的典型用法代码示例。如果您正苦于以下问题:Python _extstr函数的具体用法?Python _extstr怎么用?Python _extstr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_extstr函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: _createImportMenuModel
def _createImportMenuModel(self):
menuModel = ZMenuModel()
zbwId = menuModel.addMenuItemWithAction(_extstr(u"manager.FromZBW"), 0, ZImportFromZBWAction(self, self.model), None) #$NON-NLS-1$
menuModel.setMenuItemBitmap(zbwId, getResourceRegistry().getBitmap(u"images/common/zbw/BlogWriter.ico")) #$NON-NLS-1$
wlwId = menuModel.addMenuItemWithAction(_extstr(u"manager.FromWLW"), 0, ZImportFromWLWAction(self, self.model), None) #$NON-NLS-1$
menuModel.setMenuItemBitmap(wlwId, getResourceRegistry().getBitmap(u"images/common/wlw/LiveWriter.png")) #$NON-NLS-1$
return menuModel
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:7,代码来源:manager.py
示例2: __init__
def __init__(self, rvalMap, model, systemProfile):
self.rvalMap = rvalMap
self.model = model
self.systemProfile = systemProfile
self.selectedIndex = -1
self.importMenuModel = self._createImportMenuModel()
title = _extstr(u"manager.WindowTitle") #$NON-NLS-1$
portable = _extstr(u"manager.Portable") #$NON-NLS-1$
if isPortableEnabled():
title = u"%s (%s)" % (title, portable) #$NON-NLS-1$
wx.Frame.__init__(self, None, wx.ID_ANY, title, size=wx.Size(400, 325),
style = wx.DEFAULT_FRAME_STYLE)
self._createWidgets()
self._populateWidgets()
self._layoutWidgets()
self._bindWidgetEvents()
self.CentreOnScreen()
self.SetIcons(getResourceRegistry().getIconBundle(ICON_IMAGES))
self.Show(True)
# Auto-select the 'default' profile.
defaultName = self.model.getDefaultProfileName()
if defaultName:
self.profilesListView.Select(self._getProfileIndex(defaultName), True)
# Now set focus on the profileListView
self.profilesListView.SetFocus()
# Fire a UI exec event - detect ZBW or WLW on startup
fireUIExecEvent(ZMethodRunnable(self.onDetectImport), self)
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:31,代码来源:manager.py
示例3: _createColumnInfo
def _createColumnInfo(self):
cstyle = wx.LIST_FORMAT_LEFT
columnInfo = [
(_extstr(u"translationeditor.BundleKey"), None, cstyle, ZListViewEx.COLUMN_RELATIVE, 40), #$NON-NLS-1$
(_extstr(u"translationeditor.TranslatedValue"), None, cstyle, ZListViewEx.COLUMN_RELATIVE, 60) #$NON-NLS-1$
]
return columnInfo
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:7,代码来源:translationeditor.py
示例4: _createNonHeaderWidgets
def _createNonHeaderWidgets(self):
self.staticBox = wx.StaticBox(self, wx.ID_ANY, _extstr(u"accountblogs.BlogList")) #$NON-NLS-1$
self.blogListProvider = ZBlogCheckboxListContentProvider()
self.blogListControl = ZCheckBoxListViewWithButtons(self.blogListProvider, self)
self.blogListControl.SetSizeHints(-1, 150)
self.refreshButton = wx.Button(self, wx.ID_ANY, _extstr(u"synchronizeaccountdialog.RefreshBlogList")) #$NON-NLS-1$
self.animateControl = ZProgressLabelCtrl(self)
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:7,代码来源:accountsynchdialog.py
示例5: _getWpPublishChoices
def _getWpPublishChoices(self):
return [
_extstr(u"pubdatawidgets.WpPublishStatus_published"), #$NON-NLS-1$
_extstr(u"pubdatawidgets.WpPublishStatus_pending"), #$NON-NLS-1$
_extstr(u"pubdatawidgets.WpPublishStatus_unpublished"), #$NON-NLS-1$
_extstr(u"pubdatawidgets.WpPublishStatus_private")#$NON-NLS-1$
]
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:7,代码来源:pubdatawidgets.py
示例6: _createEditorWidgets
def _createEditorWidgets(self):
self._createAcceleratorTable()
self.notebook = fnb.FlatNotebook(self, wx.ID_ANY, style = fnb.FNB_BOTTOM | fnb.FNB_NO_NAV_BUTTONS | fnb.FNB_NO_X_BUTTON | fnb.FNB_NODRAG)
self.notebook.AddPage(self._createWysiwygPage(), _extstr(u"blogeditor.Design"), True, -1) #$NON-NLS-1$
self.notebook.AddPage(self._createXHTMLPage(), _extstr(u"blogeditor.XHTML"), False, -1) #$NON-NLS-1$
self.notebook.AddPage(self._createPreviewPage(), _extstr(u"blogeditor.Preview"), False, -1) #$NON-NLS-1$
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:7,代码来源:blogeditor.py
示例7: buildInsertImageMenuItems
def buildInsertImageMenuItems(self, menuModel, gravity, parentId): #@UnusedVariable
resourceReg = getResourceRegistry()
mid = menuModel.addMenuItemWithAction(_extstr(u"blogcontenteditorimagemenumodel.InsertImageFile"), gravity+1, ZBlogPostInsertImageAction(), parentId ) #$NON-NLS-1$
menuModel.setMenuItemBitmap(mid, resourceReg.getBitmap(u"images/editors/blogeditor/designer/toolbar/16x16/insert_link.png")) #$NON-NLS-1$
mid = menuModel.addMenuItemWithAction(_extstr(u"blogcontenteditorimagemenumodel.InsertImageTag"), gravity+2, ZBlogPostInsertImgTagAction(), parentId ) #$NON-NLS-1$
menuModel.setMenuItemBitmap(mid, resourceReg.getBitmap(u"images/editors/blogeditor/designer/toolbar/16x16/insert_link.png")) #$NON-NLS-1$
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:7,代码来源:imagemenumodel.py
示例8: _createWindowWidgets
def _createWindowWidgets(self, parent):
self.headerPanel = self._createHeaderPanel(parent)
self.headerStaticLine = wx.StaticLine(parent, wx.ID_ANY)
self.splitterWindow = ZSplitterWindow(parent)
self.splitterWindow.SetSizeHints(700, 600)
self.topPanel = ZTransparentPanel(self.splitterWindow, wx.ID_ANY)
self.topStaticBox = wx.StaticBox(self.topPanel, wx.ID_ANY, _extstr(u"templatemanager.Templates")) #$NON-NLS-1$
provider = ZTemplateListProvider(self.model)
self.templateList = ZListViewEx(provider, self.topPanel)
self.addButton = wx.Button(self.topPanel, wx.ID_ANY, _extstr(u"templatemanager.Add")) #$NON-NLS-1$
self.removeButton = wx.Button(self.topPanel, wx.ID_ANY, _extstr(u"templatemanager.Remove")) #$NON-NLS-1$
self.removeButton.Enable(False)
self.preview = ZHTMLViewControl(self.splitterWindow, wx.ID_ANY, style = wx.NO_FULL_REPAINT_ON_RESIZE | wx.SIMPLE_BORDER)
self.splitterWindow.SetSashSize(10)
self.splitterWindow.SplitHorizontally(self.topPanel, self.preview, 150)
self.splitterWindow.SetMinimumPaneSize(100)
self.statusBar = self._createStatusBar()
self.SetStatusBar(self.statusBar)
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:25,代码来源:templatemanager.py
示例9: _createSplashPanel
def _createSplashPanel(self, parent):
ver = version.ZVersion()
verDate = ZSchemaDateTime(ver.getBuildDate())
panel = wx.Panel(parent, wx.ID_ANY)
panel.SetBackgroundColour(wx.WHITE)
splashFilename = u"splash.png" #$NON-NLS-1$
if isPortableEnabled():
splashFilename = u"splash_portable.png" #$NON-NLS-1$
bitmap = getResourceRegistry().getBitmap(u"images/splash/%s" % splashFilename) #$NON-NLS-1$
splashImage = ZStaticBitmap(panel, bitmap)
versionLabelLabel = wx.StaticText(panel, wx.ID_ANY, u"%s: " % _extstr(u"splash.Version")) #$NON-NLS-1$ #$NON-NLS-2$
versionLabelLabel.SetFont(getDefaultFontBold())
versionLabel = wx.StaticText(panel, wx.ID_ANY, ver.getFullVersionString())
dateLabelLabel = wx.StaticText(panel, wx.ID_ANY, u"%s: " % _extstr(u"splash.BuiltOn")) #$NON-NLS-1$ #$NON-NLS-2$
dateLabelLabel.SetFont(getDefaultFontBold())
dateLabel = wx.StaticText(panel, wx.ID_ANY, verDate.toString(localTime = True))
verAndDateSizer = wx.BoxSizer(wx.HORIZONTAL)
verAndDateSizer.Add(versionLabelLabel, 0, wx.EXPAND | wx.RIGHT, 2)
verAndDateSizer.Add(versionLabel, 0, wx.EXPAND | wx.RIGHT, 10)
verAndDateSizer.Add(dateLabelLabel, 0, wx.EXPAND | wx.RIGHT, 2)
verAndDateSizer.Add(dateLabel, 0, wx.EXPAND)
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(splashImage, 0, wx.EXPAND)
sizer.AddSizer(verAndDateSizer, 0, wx.EXPAND | wx.ALL, 5)
panel.SetSizer(sizer)
panel.SetAutoLayout(True)
return panel
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:33,代码来源:splash.py
示例10: runAction
def runAction(self, actionContext): # @UnusedVariable
try:
dialog = ZImportZBWProfileDialog(self.manager, self.model)
dialog.setProfileName(_extstr(u"importactions.ImportedZBWProfile")) # $NON-NLS-1$
dialog.setJoeyProfilePath(self._detectZBWProfilePath())
defaultProfilePath = self.manager._createProfilePath(u"ImportedProfileZBW") # $NON-NLS-1$
if not os.path.exists(defaultProfilePath):
dialog.setProfilePath(defaultProfilePath)
dialog.CentreOnParent()
if dialog.ShowModal() == wx.ID_OK:
profileInfo = dialog.getProfileInfo()
joeyProfilePath = dialog.getPathToJoeyProfile()
importer = ZBlogWriterProfileImporter(joeyProfilePath, profileInfo[1], self.manager.systemProfile)
if (
ZShowProgressDialog(self.manager, _extstr(u"manager.ImportingZBW1XProfile"), importer) == wx.ID_OK
): # $NON-NLS-1$
self.model.createProfile(profileInfo)
self.manager.profilesListView.refresh()
self.manager.profilesListView.Select(self.manager._getProfileIndex(profileInfo[0]), True)
else:
# Cancelled - remove any files we may have created.
fileutil.deleteDirectory(profileInfo[1], False)
dialog.Destroy()
except Exception, e:
ZShowExceptionMessage(self.manager, e)
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:25,代码来源:importactions.py
示例11: buildModel
def buildModel(self):
resourceReg = getResourceRegistry()
# Font
toolId = self.addItemWithAction(_extstr(u"blogeditortoolbarmodel.Font"), 10, ZBlogPostFontSettingsAction()) #$NON-NLS-1$
self.setToolDescription(toolId, _extstr(u"blogeditortoolbarmodel.Font_Settings")) #$NON-NLS-1$
self.addToolBitmap(toolId, 16, resourceReg.getBitmap(u"images/editors/blogeditor/designer/toolbar/16x16/text_font.png")) #$NON-NLS-1$
self.addToolDisabledBitmap(toolId, 16, resourceReg.getBitmap(u"images/editors/blogeditor/designer/toolbar/16x16/text_font_disabled.png")) #$NON-NLS-1$
self.addSeparator(15)
# Bold, Italic, Underline, Strike
toolId = self.addToggleItemWithAction(_extstr(u"blogeditortoolbarmodel.Bold"), 20, ZBlogRichTextFormatAction(IZRichTextEditControl.ZCAPABILITY_BOLD) ) #$NON-NLS-1$
self.setToolDescription(toolId, _extstr(u"blogeditortoolbarmodel.Bold")) #$NON-NLS-1$
self.addToolBitmap(toolId, 16, resourceReg.getBitmap(u"images/editors/blogeditor/designer/toolbar/16x16/text_bold.png")) #$NON-NLS-1$
self.addToolDisabledBitmap(toolId, 16, resourceReg.getBitmap(u"images/editors/blogeditor/designer/toolbar/16x16/text_bold_disabled.png")) #$NON-NLS-1$
toolId = self.addToggleItemWithAction(_extstr(u"blogeditortoolbarmodel.Italic"), 25, ZBlogRichTextFormatAction(IZRichTextEditControl.ZCAPABILITY_ITALIC) ) #$NON-NLS-1$
self.setToolDescription(toolId, _extstr(u"blogeditortoolbarmodel.Italic")) #$NON-NLS-1$
self.addToolBitmap(toolId, 16, resourceReg.getBitmap(u"images/editors/blogeditor/designer/toolbar/16x16/text_italic.png")) #$NON-NLS-1$
self.addToolDisabledBitmap(toolId, 16, resourceReg.getBitmap(u"images/editors/blogeditor/designer/toolbar/16x16/text_italic_disabled.png")) #$NON-NLS-1$
toolId = self.addToggleItemWithAction(_extstr(u"blogeditortoolbarmodel.Underline"), 30, ZBlogRichTextFormatAction(IZRichTextEditControl.ZCAPABILITY_UNDERLINE) ) #$NON-NLS-1$
self.setToolDescription(toolId, _extstr(u"blogeditortoolbarmodel.Underline")) #$NON-NLS-1$
self.addToolBitmap(toolId, 16, resourceReg.getBitmap(u"images/editors/blogeditor/designer/toolbar/16x16/text_underline.png")) #$NON-NLS-1$
self.addToolDisabledBitmap(toolId, 16, resourceReg.getBitmap(u"images/editors/blogeditor/designer/toolbar/16x16/text_underline_disabled.png")) #$NON-NLS-1$
toolId = self.addToggleItemWithAction(_extstr(u"blogeditortoolbarmodel.Strikethrough"), 35, ZBlogRichTextFormatAction(IZRichTextEditControl.ZCAPABILITY_STRIKETHRU) ) #$NON-NLS-1$
self.setToolDescription(toolId, _extstr(u"blogeditortoolbarmodel.Strikethrough")) #$NON-NLS-1$
self.addToolBitmap(toolId, 16, resourceReg.getBitmap(u"images/editors/blogeditor/designer/toolbar/16x16/text_strikethrough.png")) #$NON-NLS-1$
self.addToolDisabledBitmap(toolId, 16, resourceReg.getBitmap(u"images/editors/blogeditor/designer/toolbar/16x16/text_strikethrough_disabled.png")) #$NON-NLS-1$
self.addSeparator(40)
if self.wysiwyg:
self._buildWysiwygEditorModel(resourceReg)
else:
self._buildXhtmlEditorModel(resourceReg)
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:33,代码来源:blogeditortoolbarmodel.py
示例12: createWidgets
def createWidgets(self):
self.staticBox = wx.StaticBox(self, wx.ID_ANY, _extstr(u"affiliatelinksprefpage.Affiliate_Links")) #$NON-NLS-1$
self.affiliateLinksCB = wx.CheckBox(self, wx.ID_ANY, _extstr(u"affiliatelinksprefpage.DontTouchLinks")) #$NON-NLS-1$
descPart1 = _extstr(u"affiliatelinksprefpage.AffiliateLinksDesc1") #$NON-NLS-1$
descPart2 = _extstr(u"affiliatelinksprefpage.AffiliateLinksDesc2") #$NON-NLS-1$
descPart3 = _extstr(u"affiliatelinksprefpage.AffiliateLinksDesc3") #$NON-NLS-1$
self.descriptionLabel = wx.StaticText(self, wx.ID_ANY, u"\n%s\n\n%s\n\n%s" % (descPart1, descPart2, descPart3)) #$NON-NLS-1$
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:7,代码来源:affiliatelinksprefpage.py
示例13: __init__
def __init__(self, parent, model):
self.model = model
title = _extstr(u"newtranslationdl.CreateNewTranslation") #$NON-NLS-1$
label = _extstr(u"newtranslationdl.LanguageLabel") #$NON-NLS-1$
ZDataEntryDialog.__init__(self, parent, title, label)
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:7,代码来源:newtranslationdl.py
示例14: _createTreeButtons
def _createTreeButtons(self, parent):
self.addAccountButton = wx.Button(parent, wx.ID_ANY, _extstr(u"accountprefsdialog.AddAccount")) # $NON-NLS-1$
self.removeAccountButton = wx.Button(
parent, wx.ID_ANY, _extstr(u"accountprefsdialog.RemoveAccount")
) # $NON-NLS-1$
self.removeAccountButton.Enable(False)
return [self.addAccountButton, self.removeAccountButton]
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:7,代码来源:accountprefsdialog.py
示例15: _createColumnInfo
def _createColumnInfo(self):
cstyle = wx.LIST_FORMAT_LEFT
# FIXME (PJ / EPW) cols should be: Title, LastModified, Post/PublishedDate and CreatedDate (the post/published date is imported when viewing published entries)
columnInfo = [
(_extstr(u"blogpostslist.Title"), None, cstyle, ZListViewEx.COLUMN_RELATIVE, 70), #$NON-NLS-1$
(_extstr(u"blogpostslist.Created"), None, cstyle, ZListViewEx.COLUMN_RELATIVE, 30) #$NON-NLS-1$
]
return columnInfo
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:8,代码来源:blogpostswidgets.py
示例16: _updateCategories
def _updateCategories(self):
if self.isCancelled():
return
self._incrementWork(_extstr(u"publishersynch.updatingcategories"), 1, True) #$NON-NLS-1$
syncher = ZPublisherSiteSynchronizer()
blogs = [ self.blog ]
syncher.updateCategories(self.getAccount(), blogs, self)
self._incrementWork(_extstr(u"publishersynch.updatingcategories"), 19, False) #$NON-NLS-1$
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:8,代码来源:publisherutil.py
示例17: __init__
def __init__(self):
self.columns = [
(_extstr(u"pubdatawidgets.Service"), None, 0, ZListViewEx.COLUMN_RELATIVE, 40), #$NON-NLS-1$
(_extstr(u"pubdatawidgets.URL"), None, 0, ZListViewEx.COLUMN_RELATIVE, 60) #$NON-NLS-1$
]
publisherService = getApplicationModel().getService(IZBlogAppServiceIDs.PUBLISHING_SERVICE_ID)
self.pingSites = publisherService.listWeblogPingSites()
self.selectedPingSites = []
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:8,代码来源:pubdatawidgets.py
示例18: _createNonHeaderWidgets
def _createNonHeaderWidgets(self):
self.profileInfoStaticBox = wx.StaticBox(self, label = _extstr(u"newprofile.ProfileInfo")) #$NON-NLS-1$
self.profileNameLabel = wx.StaticText(self, wx.ID_ANY, _extstr(u"newprofile.Name:")) #$NON-NLS-1$
self.profileNameText = ZValidatingTextCtrl(ZProfileNameValidator(self.profilesModel), self, wx.ID_ANY, size = wx.Size(325, -1))
self.profileNameText.SetToolTipString(_extstr(u"newprofile.ProfileNameTooltip")) #$NON-NLS-1$
self.profilePathLabel = wx.StaticText(self, wx.ID_ANY, _extstr(u"newprofile.Path:")) #$NON-NLS-1$
self.profilePathCtrl = ZValidatingFileChooserCtrl(ZProfilePathValidator(), self, ZFCC_DIRECTORY_TYPE, _extstr(u"newprofile.ChooseAProfileLocation")) #$NON-NLS-1$
self.profilePathCtrl.SetToolTipString(_extstr(u"newprofile.ProfilePathTooltip")) #$NON-NLS-1$
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:8,代码来源:newprofile.py
示例19: _createWidgets
def _createWidgets(self):
self.blogsLabel = wx.StaticText(self, wx.ID_ANY, _extstr(u"metadata.Blogs")) #$NON-NLS-1$
self.blogsCtrl = ZBlogInfoChooser(self, self.model)
self.titleLabel = wx.StaticText(self, wx.ID_ANY, _extstr(u"metadata.Title")) #$NON-NLS-1$
self.titleText = wx.TextCtrl(self, wx.ID_ANY)
self.tagwordsLabel = wx.StaticText(self, wx.ID_ANY, _extstr(u"metadata.Tagwords")) #$NON-NLS-1$
self.tagwordsText = wx.TextCtrl(self, wx.ID_ANY)
self.staticLine = wx.StaticLine(self, wx.HORIZONTAL)
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:8,代码来源:metadata.py
示例20: refresh
def refresh(self):
# Folders is list of tuples: (folderName, folderIcon, folderType)
self.folders = []
if self.accountId == UNPUBLISHED_ACCOUNT_ID or self.blogId is not None:
self.folders.append( (_extstr(u"foldersbrowser.Posts"), u"posts", IZViewSelectionTypes.BLOG_POSTS_SELECTION) ) #$NON-NLS-2$ #$NON-NLS-1$
self.folders.append( (_extstr(u"foldersbrowser.Links"), u"links", IZViewSelectionTypes.BLOG_LINKS_SELECTION) ) #$NON-NLS-2$ #$NON-NLS-1$
self.folders.append( (_extstr(u"foldersbrowser.Images"), u"images", IZViewSelectionTypes.BLOG_IMAGES_SELECTION) ) #$NON-NLS-2$ #$NON-NLS-1$
self.folders.append( (_extstr(u"foldersbrowser.Tags"), u"tags", IZViewSelectionTypes.BLOG_TAGS_SELECTION) ) #$NON-NLS-2$ #$NON-NLS-1$
开发者ID:Tidosho,项目名称:zoundryraven,代码行数:8,代码来源:foldersbrowser.py
注:本文中的zoundry.blogapp.messages._extstr函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论