OSDN Git Service

Add translator comments.
authorJames Teh <jamie@jantrid.net>
Sun, 1 Apr 2012 01:57:59 +0000 (11:57 +1000)
committerJames Teh <jamie@jantrid.net>
Sun, 1 Apr 2012 01:57:59 +0000 (11:57 +1000)
source/NVDAObjects/window/winword.py
source/globalCommands.py
source/virtualBuffers/__init__.py

index 7ea5a84..e0498b3 100755 (executable)
@@ -388,6 +388,8 @@ class WordDocument(EditableTextWithoutAutoSelectDetection, Window):
                formatConfig['reportTables']=True\r
                commandList=info.getTextWithFields(formatConfig)\r
                if len(commandList)<3 or commandList[1].field.get('role',None)!=controlTypes.ROLE_TABLE or commandList[2].field.get('role',None)!=controlTypes.ROLE_TABLECELL:\r
+                       # Translators: The message reported when a user attempts to use a table movement command\r
+                       # when the cursor is not withnin a table.\r
                        ui.message(_("Not in table"))\r
                        return False\r
                rowCount=commandList[1].field.get('table-rowcount',1)\r
@@ -399,6 +401,8 @@ class WordDocument(EditableTextWithoutAutoSelectDetection, Window):
                else:\r
                        columnNumber+=1 if forward else -1\r
                if rowNumber<1 or rowNumber>rowCount or columnNumber<1 or columnNumber>columnCount:\r
+                       # Translators: The message reported when a user attempts to use a table movement command\r
+                       # but the cursor can't be moved in that direction because it is at the edge of the table.\r
                        ui.message(_("Edge of table"))\r
                        return False\r
                try:\r
@@ -418,7 +422,7 @@ class WordDocument(EditableTextWithoutAutoSelectDetection, Window):
                                else:\r
                                        rowNumber-=1\r
                if not cell:\r
-                       ui.message(_("edge of table"))\r
+                       ui.message(_("Edge of table"))\r
                        return False\r
                newInfo=WordDocumentTextInfo(self,textInfos.POSITION_CARET,_rangeObj=cell.range)\r
                speech.speakTextInfo(newInfo,reason=controlTypes.REASON_CARET)\r
index 29f20ae..01bf5cf 100755 (executable)
@@ -178,6 +178,7 @@ class GlobalCommands(ScriptableObject):
                else:\r
                        onOff=_("on")\r
                        config.conf["keyboard"]["speakTypedCharacters"]=True\r
+               # Translators: The message announced when toggling the speak typed characters keyboard setting.\r
                ui.message(_("speak typed characters")+" "+onOff)\r
        script_toggleSpeakTypedCharacters.__doc__=_("Toggles on and off the speaking of typed characters")\r
 \r
@@ -590,8 +591,10 @@ class GlobalCommands(ScriptableObject):
                if newMode==speech.speechMode_off:\r
                        name=_("off")\r
                elif newMode==speech.speechMode_beeps:\r
+                       # Translators: A speech mode which will cause NVDA to beep instead of speaking.\r
                        name=_("beeps")\r
                elif newMode==speech.speechMode_talk:\r
+                       # Translators: The normal speech mode; i.e. NVDA will talk as normal.\r
                        name=_("talk")\r
                speech.cancelSpeech()\r
                ui.message(_("speech mode %s")%name)\r
index bceb30c..a16a98b 100644 (file)
@@ -1241,12 +1241,16 @@ class VirtualBuffer(cursorManager.CursorManager, treeInterceptorHandler.TreeInte
                try:\r
                        tableID, origRow, origCol, origRowSpan, origColSpan = self._getTableCellCoords(self.selection)\r
                except LookupError:\r
+                       # Translators: The message reported when a user attempts to use a table movement command\r
+                       # when the cursor is not withnin a table.\r
                        ui.message(_("Not in a table cell"))\r
                        return\r
 \r
                try:\r
                        info = self._getNearestTableCell(tableID, self.selection, origRow, origCol, origRowSpan, origColSpan, movement, axis)\r
                except LookupError:\r
+                       # Translators: The message reported when a user attempts to use a table movement command\r
+                       # but the cursor can't be moved in that direction because it is at the edge of the table.\r
                        ui.message(_("edge of table"))\r
                        # Retrieve the cell on which we started.\r
                        info = next(self._iterTableCells(tableID, row=origRow, column=origCol))\r