1 new commit in nvda: https://bitbucket.org/nvdaaddonteam/nvda/commits/732ef7853b7a/ Changeset: 732ef7853b7a Branch: t1410 User: josephsl Date: 2014-02-23 09:11:39 Summary: T1410 - almost 1300 messages have translator comments. The line endings are in MS-DOS format due to the fact that I cloned this via cmd.exe instead of Cygwin due to permission issue. The origina t1410 branch has more translatable messages; this is first of a series of transfer work from my repo to nvdaaddonteam repo. Affected #: 11 files diff --git a/source/NVDAObjects/IAccessible/__init__.py b/source/NVDAObjects/IAccessible/__init__.py index 2ac2130..825b97c 100644 --- a/source/NVDAObjects/IAccessible/__init__.py +++ b/source/NVDAObjects/IAccessible/__init__.py @@ -1643,6 +1643,7 @@ class MenuItem(IAccessible): super(MenuItem, self).event_gainFocus() class Taskbar(IAccessible): + # Translators: Indicates Taskbar. name = _("Taskbar") class Button(IAccessible): diff --git a/source/NVDAObjects/IAccessible/sysTreeView32.py b/source/NVDAObjects/IAccessible/sysTreeView32.py index 90b6080..eeb33cb 100755 --- a/source/NVDAObjects/IAccessible/sysTreeView32.py +++ b/source/NVDAObjects/IAccessible/sysTreeView32.py @@ -199,6 +199,7 @@ class TreeViewItem(IAccessible): announceContains = self is api.getFocusObject() and controlTypes.STATE_EXPANDED in self.states and controlTypes.STATE_EXPANDED not in getattr(self,'_speakObjectPropertiesCache',{}).get('states',frozenset()) super(TreeViewItem,self).event_stateChange() if announceContains: + # Translators: Indicates number of items in a tree view (example output: "3 items") speech.speakMessage(_("%s items")%self.childCount) class BrokenCommctrl5Item(IAccessible): diff --git a/source/NVDAObjects/UIA/__init__.py b/source/NVDAObjects/UIA/__init__.py index ee71843..d6fe07c 100644 --- a/source/NVDAObjects/UIA/__init__.py +++ b/source/NVDAObjects/UIA/__init__.py @@ -598,6 +598,7 @@ class UIA(Window): if not index: index=self.defaultActionIndex if index==0 and self.UIAInvokePattern: + # Translators: Name of a default action for objects. return _("invoke") raise NotImplementedError diff --git a/source/NVDAObjects/window/__init__.py b/source/NVDAObjects/window/__init__.py index 780dbea..0f6c2cc 100644 --- a/source/NVDAObjects/window/__init__.py +++ b/source/NVDAObjects/window/__init__.py @@ -374,6 +374,7 @@ class Desktop(Window): isPresentableFocusAncestor = False def _get_name(self): + # Translators: The name of the Desktop window. return _("Desktop") class DisplayModelEditableText(EditableText, Window): diff --git a/source/NVDAObjects/window/edit.py b/source/NVDAObjects/window/edit.py index 2cc9000..fd4aa6f 100644 --- a/source/NVDAObjects/window/edit.py +++ b/source/NVDAObjects/window/edit.py @@ -257,6 +257,7 @@ class EditTextInfo(textInfos.offsets.OffsetsTextInfo): formatField["text-position"]="super" if formatConfig["reportColor"]: if charFormat is None: charFormat=self._getCharFormat(offset) + # Translators: The name of a color when no color information is available for the text. formatField["color"]=colors.RGB.fromCOLORREF(charFormat.crTextColor) if not charFormat.dwEffects&CFE_AUTOCOLOR else _("default color") formatField["background-color"]=colors.RGB.fromCOLORREF(charFormat.crBackColor) if not charFormat.dwEffects&CFE_AUTOBACKCOLOR else _("default color") if formatConfig["reportLineNumber"]: diff --git a/source/NVDAObjects/window/excel.py b/source/NVDAObjects/window/excel.py index 2d8040a..f9db53c 100755 --- a/source/NVDAObjects/window/excel.py +++ b/source/NVDAObjects/window/excel.py @@ -266,6 +266,7 @@ class ExcelCell(ExcelBase): del self.columnHeaderRows[tableID] # Translators: a message reported in the SetColumnHeaderRow script for Excel. ui.message(_("Cleared column header row")) + # Translators: Input help mode message for an NVDA command in Microsoft Excel. script_setColumnHeaderRow.__doc__=_("Pressing once will set the current row as the row where column headers should be found. Pressing twice clears the setting.") def script_setRowHeaderColumn(self,gesture): @@ -283,6 +284,7 @@ class ExcelCell(ExcelBase): del self.rowHeaderColumns[tableID] # Translators: a message reported in the SetRowHeaderColumn script for Excel. ui.message(_("Cleared row header column")) + # Translators: Input help mode message for an NVDA command in Microsoft Excel. script_setRowHeaderColumn.__doc__=_("Pressing once will set the current column as the column where row headers should be found. Pressing twice clears the setting.") @classmethod diff --git a/source/brailleDisplayDrivers/handyTech.py b/source/brailleDisplayDrivers/handyTech.py index 15d7f3a..2649aa5 100644 --- a/source/brailleDisplayDrivers/handyTech.py +++ b/source/brailleDisplayDrivers/handyTech.py @@ -83,6 +83,7 @@ class BrailleDisplayDriver(braille.BrailleDisplayDriver, ScriptableObject): def script_showConfig(self, gesture): self._server.startConfigDialog(False) + # Translators: Input help mode message for a braille display command for a braille display. script_showConfig.__doc__ = _("Show the Handy Tech driver configuration window.") gestureMap = inputCore.GlobalGestureMap({ diff --git a/source/cursorManager.py b/source/cursorManager.py index 492b36c..9faba2f 100644 --- a/source/cursorManager.py +++ b/source/cursorManager.py @@ -107,7 +107,10 @@ class CursorManager(baseObject.ScriptableObject): info.move(textInfos.UNIT_LINE,1,endPoint="end") speech.speakTextInfo(info,reason=controlTypes.REASON_CARET) else: - wx.CallAfter(gui.messageBox,_('text "%s" not found')%text,_("Find Error"),wx.OK|wx.ICON_ERROR) + # Translators: Presented when the text is not found (example output: "text article content not found"). + wx.CallAfter(gui.messageBox,_('text "%s" not found')%text, + # Translators: The title of the dialog when text is not found. + _("Find Error"),wx.OK|wx.ICON_ERROR) CursorManager._lastFindText=text def script_find(self,gesture): diff --git a/source/globalCommands.py b/source/globalCommands.py index 9f4c86a..00d530a 100755 --- a/source/globalCommands.py +++ b/source/globalCommands.py @@ -682,6 +682,9 @@ class GlobalCommands(ScriptableObject): info.collapse() api.setReviewPosition(info) info.expand(textInfos.UNIT_CHARACTER) + # Translators: a message reported when: + # Review cursor is at the leftmost character for the current line in the navigator object. + # When a file list is collapsed in total commander. speech.speakMessage(_("left")) speech.speakTextInfo(info,unit=textInfos.UNIT_CHARACTER,reason=controlTypes.REASON_CARET) # Translators: Input help mode message for move review cursor to start of current line command. @@ -735,6 +738,9 @@ class GlobalCommands(ScriptableObject): charInfo.collapse() res=charInfo.move(textInfos.UNIT_CHARACTER,1) if res==0 or charInfo.compareEndPoints(lineInfo,"endToEnd")>=0: + # Translators: a message reported when: + # Review cursor is at the rightmost character for the current line in the navigator object. + # When a file list is expanded in total commander. speech.speakMessage(_("right")) reviewInfo=api.getReviewPosition().copy() reviewInfo.expand(textInfos.UNIT_CHARACTER) diff --git a/source/gui/__init__.py b/source/gui/__init__.py index 5929f08..0a6aef2 100644 --- a/source/gui/__init__.py +++ b/source/gui/__init__.py @@ -197,7 +197,9 @@ class MainFrame(wx.Frame): if isInMessageBox: return # Translators: Message shown to ask if user really wishes to quit NVDA. - if messageBox(_("Are you sure you want to quit NVDA?"), _("Exit NVDA"), wx.YES_NO|wx.ICON_WARNING) == wx.YES: + if messageBox(_("Are you sure you want to quit NVDA?"), + # Translators: The title of the dialog asking if the user really wishes to quit NvDA. + _("Exit NVDA"), wx.YES_NO|wx.ICON_WARNING) == wx.YES: canExit=True else: canExit=True @@ -319,48 +321,74 @@ class SysTrayIcon(wx.TaskBarIcon): self.menu=wx.Menu() menu_preferences=self.preferencesMenu=wx.Menu() # Translators: The label for the menu item to open general Settings dialog. - item = menu_preferences.Append(wx.ID_ANY,_("&General settings..."),_("General settings")) + item = menu_preferences.Append(wx.ID_ANY,_("&General settings..."), + # Translators: The tooltip text for general settings dialog. + _("General settings")) self.Bind(wx.EVT_MENU, frame.onGeneralSettingsCommand, item) # Translators: The label for the menu item to open Synthesizer settings dialog. - item = menu_preferences.Append(wx.ID_ANY,_("&Synthesizer..."),_("Change the synthesizer to be used")) + item = menu_preferences.Append(wx.ID_ANY,_("&Synthesizer..."), + # Translators: The tooltip text for synthesizer dialog. + _("Change the synthesizer to be used")) self.Bind(wx.EVT_MENU, frame.onSynthesizerCommand, item) # Translators: The label for the menu item to open Voice Settings dialog. - item = menu_preferences.Append(wx.ID_ANY,_("&Voice settings..."),_("Choose the voice, rate, pitch and volume to use")) + item = menu_preferences.Append(wx.ID_ANY,_("&Voice settings..."), + # Translators: The tooltip text for voice settings dialog. + _("Choose the voice, rate, pitch and volume to use")) self.Bind(wx.EVT_MENU, frame.onVoiceCommand, item) # Translators: The label for the menu item to open Braille Settings dialog. item = menu_preferences.Append(wx.ID_ANY,_("B&raille settings...")) self.Bind(wx.EVT_MENU, frame.onBrailleCommand, item) # Translators: The label for the menu item to open Keyboard Settings dialog. - item = menu_preferences.Append(wx.ID_ANY,_("&Keyboard settings..."),_("Configure keyboard layout, speaking of typed characters, words or command keys")) + item = menu_preferences.Append(wx.ID_ANY,_("&Keyboard settings..."), + # Translators: The tooltip text for keyboard settings dialog. + _("Configure keyboard layout, speaking of typed characters, words or command keys")) self.Bind(wx.EVT_MENU, frame.onKeyboardSettingsCommand, item) # Translators: The label for the menu item to open Mouse Settings dialog. - item = menu_preferences.Append(wx.ID_ANY, _("&Mouse settings..."),_("Change reporting of mouse shape and object under mouse")) + item = menu_preferences.Append(wx.ID_ANY, _("&Mouse settings..."), + # Translators: The tooltip text for mouse settings dialog. + _("Change reporting of mouse shape and object under mouse")) self.Bind(wx.EVT_MENU, frame.onMouseSettingsCommand, item) # Translators: The label for the menu item to open Review Cursor dialog. - item = menu_preferences.Append(wx.ID_ANY,_("Review &cursor..."),_("Configure how and when the review cursor moves")) + item = menu_preferences.Append(wx.ID_ANY,_("Review &cursor..."), + # Translators: The tooltip text for review cursor settings dialog. + _("Configure how and when the review cursor moves")) self.Bind(wx.EVT_MENU, frame.onReviewCursorCommand, item) # Translators: The label for the menu item to open Input Composition Settings dialog. - item = menu_preferences.Append(wx.ID_ANY,_("&Input composition settings..."),_("Configure how NVDA reports input composition and candidate selection for certain languages")) + item = menu_preferences.Append(wx.ID_ANY,_("&Input composition settings..."), + # Translators: The tooltip text for input composition settings dialog. + _("Configure how NVDA reports input composition and candidate selection for certain languages")) self.Bind(wx.EVT_MENU, frame.onInputCompositionCommand, item) # Translators: The label for the menu item to open Object Presentation dialog. - item = menu_preferences.Append(wx.ID_ANY,_("&Object presentation..."),_("Change reporting of objects")) + item = menu_preferences.Append(wx.ID_ANY,_("&Object presentation..."), + # Translators: The tooltip text for object presentation dialog. + _("Change reporting of objects")) self.Bind(wx.EVT_MENU, frame.onObjectPresentationCommand, item) # Translators: The label for the menu item to open Browse Mode settings dialog. - item = menu_preferences.Append(wx.ID_ANY,_("&Browse mode..."),_("Change virtual buffers specific settings")) + item = menu_preferences.Append(wx.ID_ANY,_("&Browse mode..."), + # Translators: The tooltip text for browse mode settings dialog. + _("Change virtual buffers specific settings")) self.Bind(wx.EVT_MENU, frame.onBrowseModeCommand, item) # Translators: The label for the menu item to open Document Formatting settings dialog. - item = menu_preferences.Append(wx.ID_ANY,_("Document &formatting..."),_("Change settings of document properties")) + item = menu_preferences.Append(wx.ID_ANY,_("Document &formatting..."), + # Translators: The tooltip text for document formatting settings dialog. + _("Change settings of document properties")) self.Bind(wx.EVT_MENU, frame.onDocumentFormattingCommand, item) subMenu_speechDicts = wx.Menu() if not globalVars.appArgs.secure: # Translators: The label for the menu item to open Default speech dictionary dialog. - item = subMenu_speechDicts.Append(wx.ID_ANY,_("&Default dictionary..."),_("A dialog where you can set default dictionary by adding dictionary entries to the list")) + item = subMenu_speechDicts.Append(wx.ID_ANY,_("&Default dictionary..."), + # Translators: The tooltip text for default speech dictionary dialog. + _("A dialog where you can set default dictionary by adding dictionary entries to the list")) self.Bind(wx.EVT_MENU, frame.onDefaultDictionaryCommand, item) # Translators: The label for the menu item to open Voice specific speech dictionary dialog. - item = subMenu_speechDicts.Append(wx.ID_ANY,_("&Voice dictionary..."),_("A dialog where you can set voice-specific dictionary by adding dictionary entries to the list")) + item = subMenu_speechDicts.Append(wx.ID_ANY,_("&Voice dictionary..."), + # Translators: The tooltip text for voice speech dictionary dialog. + _("A dialog where you can set voice-specific dictionary by adding dictionary entries to the list")) self.Bind(wx.EVT_MENU, frame.onVoiceDictionaryCommand, item) # Translators: The label for the menu item to open Temporary speech dictionary dialog. - item = subMenu_speechDicts.Append(wx.ID_ANY,_("&Temporary dictionary..."),_("A dialog where you can set temporary dictionary by adding dictionary entries to the edit box")) + item = subMenu_speechDicts.Append(wx.ID_ANY,_("&Temporary dictionary..."), + # Translators: The tooltip text for temporary speech dictionary dialog. + _("A dialog where you can set temporary dictionary by adding dictionary entries to the edit box")) self.Bind(wx.EVT_MENU, frame.onTemporaryDictionaryCommand, item) # Translators: The label for a submenu under NvDA Preferences menu to select speech dictionaries. menu_preferences.AppendMenu(wx.ID_ANY,_("Speech &dictionaries"),subMenu_speechDicts) @@ -413,6 +441,7 @@ class SysTrayIcon(wx.TaskBarIcon): # Translators: The label for the menu item to open What's New document. item = menu_help.Append(wx.ID_ANY, _("What's &new")) self.Bind(wx.EVT_MENU, lambda evt: os.startfile(getDocFilePath("changes.html")), item) + # Translators: The label for the menu item to go to NVDA website. item = menu_help.Append(wx.ID_ANY, _("NVDA &web site")) self.Bind(wx.EVT_MENU, lambda evt: os.startfile("http://www.nvda-project.org/";), item) # Translators: The label for the menu item to view NVDA License document. @@ -439,15 +468,21 @@ class SysTrayIcon(wx.TaskBarIcon): item = self.menu.Append(wx.ID_ANY, _("&Configuration profiles...")) self.Bind(wx.EVT_MENU, frame.onConfigProfilesCommand, item) # Translators: The label for the menu item to revert to saved configuration. - item = self.menu.Append(wx.ID_ANY, _("&Revert to saved configuration"),_("Reset all settings to saved state")) + item = self.menu.Append(wx.ID_ANY, _("&Revert to saved configuration"), + # Translators: The tooltip text for revert to saved configuration. + _("Reset all settings to saved state")) self.Bind(wx.EVT_MENU, frame.onRevertToSavedConfigurationCommand, item) if not globalVars.appArgs.secure: # Translators: The label for the menu item to reset settings to default settings. # Here, default settings means settings that were there when the user first used NVDA. - item = self.menu.Append(wx.ID_ANY, _("&Reset configuration to factory defaults"),_("Reset all settings to default state")) + item = self.menu.Append(wx.ID_ANY, _("&Reset configuration to factory defaults"), + # Translators: The tooltip text for reset to factory defaults. + _("Reset all settings to default state")) self.Bind(wx.EVT_MENU, frame.onRevertToDefaultConfigurationCommand, item) # Translators: The label for the menu item to save current settings. - item = self.menu.Append(wx.ID_SAVE, _("&Save configuration"), _("Write the current configuration to nvda.ini")) + item = self.menu.Append(wx.ID_SAVE, _("&Save configuration"), + # Translators: The tooltip text for save configuration. + _("Write the current configuration to nvda.ini")) self.Bind(wx.EVT_MENU, frame.onSaveConfigurationCommand, item) if not globalVars.appArgs.secure: self.menu.AppendSeparator() @@ -455,6 +490,10 @@ class SysTrayIcon(wx.TaskBarIcon): item = self.menu.Append(wx.ID_ANY, _("Donate")) self.Bind(wx.EVT_MENU, lambda evt: os.startfile(DONATE_URL), item) self.menu.AppendSeparator() + # Translators: The label for the menu item to: + # Exit NVDA in NVDA menu. + # Exit NVDA installation program. + # Exit Log viewer window. item = self.menu.Append(wx.ID_EXIT, _("E&xit"),_("Exit NVDA")) self.Bind(wx.EVT_MENU, frame.onExitCommand, item) @@ -546,6 +585,7 @@ class WelcomeDialog(wx.Dialog): """ WELCOME_MESSAGE = _( + # Translators: The text of the welcome dialog shown when starting NVDA for the very first time. "Welcome to NVDA!\n" "Most commands for controlling NVDA require you to hold down the NVDA key while pressing other keys.\n" "By default, the numpad insert and main insert keys may both be used as the NVDA key.\n" @@ -560,6 +600,7 @@ class WelcomeDialog(wx.Dialog): mainSizer=wx.BoxSizer(wx.VERTICAL) welcomeText = wx.StaticText(self, wx.ID_ANY, self.WELCOME_MESSAGE) mainSizer.Add(welcomeText,border=20,flag=wx.LEFT|wx.RIGHT|wx.TOP) + # Translators: The label for a group of options in NVDA Welcome Dialog. optionsSizer = wx.StaticBoxSizer(wx.StaticBox(self, wx.ID_ANY, _("Options")), wx.VERTICAL) self.capsAsNVDAModifierCheckBox = wx.CheckBox(self, wx.ID_ANY, _("Use CapsLock as an NVDA modifier key")) self.capsAsNVDAModifierCheckBox.SetValue(config.conf["keyboard"]["useCapsLockAsNVDAModifierKey"]) diff --git a/source/versionInfo.py b/source/versionInfo.py index a419fea..8af3399 100644 --- a/source/versionInfo.py +++ b/source/versionInfo.py @@ -28,6 +28,7 @@ def _updateVersionFromVCS(): pass name="NVDA" +# Translators: The full name of NVDA shown to users in About dialog (please leave this in English). longName=_("NonVisual Desktop Access") version="2014.1dev" publisher="unknown" @@ -36,11 +37,14 @@ try: from _buildVersion import version, publisher, updateVersionType except ImportError: _updateVersionFromVCS() -description=_("A free and open source screen reader for Microsoft Windows") +# Translators: The description for NVDA shown to users. + description=_("A free and open source screen reader for Microsoft Windows") url="http://www.nvaccess.org/"; copyrightYears="2006-2014" +# Translators: The copyright message for NVDA (example output: "copyright 2006-2013 NvDA contributors"). copyright=_("Copyright (C) {years} NVDA Contributors").format( years=copyrightYears) +# Translators: The text of the About NVDA dialog. aboutMessage=_(u"""{longName} ({name}) Version: {version} URL: {url} Repository URL: https://bitbucket.org/nvdaaddonteam/nvda/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.