Skip to content

Commit

Permalink
Added tool tips of pages in internationalization
Browse files Browse the repository at this point in the history
  • Loading branch information
vlachoudis committed Jan 1, 2016
1 parent 0f97de2 commit 04549c1
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 25 deletions.
7 changes: 3 additions & 4 deletions ControlPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,10 +1030,9 @@ def wcsChange(self):
# Control Page
#===============================================================================
class ControlPage(CNCRibbon.Page):
"""CNC communication and control"""

_name_ = N_("Control")
_icon_ = "control"
__doc__ = _("CNC communication and control")
_name_ = N_("Control")
_icon_ = "control"

#----------------------------------------------------------------------
# Add a widget in the widgets list to enable disable during the run
Expand Down
7 changes: 3 additions & 4 deletions EditorPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,9 @@ def __init__(self, master, app):
# Editor Page
#===============================================================================
class EditorPage(CNCRibbon.Page):
"""GCode editor"""

_name_ = N_("Editor")
_icon_ = "edit"
__doc__ = _("GCode editor")
_name_ = N_("Editor")
_icon_ = "edit"

#----------------------------------------------------------------------
# Add a widget in the widgets list to enable disable during the run
Expand Down
6 changes: 3 additions & 3 deletions FilePage.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ def saveConfig(self):
# File Page
#===============================================================================
class FilePage(CNCRibbon.Page):
"""File I/O and configuration"""
_name_ = N_("File")
_icon_ = "new"
__doc__ = _("File I/O and configuration")
_name_ = N_("File")
_icon_ = "new"

#----------------------------------------------------------------------
# Add a widget in the widgets list to enable disable during the run
Expand Down
7 changes: 3 additions & 4 deletions ProbePage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,10 +1053,9 @@ def change(self, event=None):
# Probe Page
#===============================================================================
class ProbePage(CNCRibbon.Page):
"""Probe configuration and probing"""

_name_ = "Probe"
_icon_ = "measure"
__doc__ = _("Probe configuration and probing")
_name_ = "Probe"
_icon_ = "measure"

#----------------------------------------------------------------------
# Add a widget in the widgets list to enable disable during the run
Expand Down
5 changes: 3 additions & 2 deletions TerminalPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ def copy(self, event=None):
# Terminal Page
#===============================================================================
class TerminalPage(CNCRibbon.Page):
_name_ = "Terminal"
_icon_ = "terminal"
__doc__ = _("Serial Terminal")
_name_ = "Terminal"
_icon_ = "terminal"

#----------------------------------------------------------------------
# Add a widget in the widgets list to enable disable during the run
Expand Down
7 changes: 3 additions & 4 deletions ToolsPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1220,10 +1220,9 @@ def rename(self, event=None):
# Tools Page
#===============================================================================
class ToolsPage(CNCRibbon.Page):
"""GCode manipulation tools and user plugins"""

_name_ = N_("Tools")
_icon_ = "tools"
__doc__ = _("GCode manipulation tools and user plugins")
_name_ = N_("Tools")
_icon_ = "tools"

#----------------------------------------------------------------------
# Add a widget in the widgets list to enable disable during the run
Expand Down
32 changes: 28 additions & 4 deletions bCNC.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2016-01-01 22:17+CET\n"
"POT-Creation-Date: 2016-01-01 22:33+CET\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -432,7 +432,11 @@ msgstr ""
msgid "Set spindle RPM"
msgstr ""

#: ControlPage.py:1035
#: ControlPage.py:1033
msgid "CNC communication and control"
msgstr ""

#: ControlPage.py:1034
msgid "Control"
msgstr ""

Expand Down Expand Up @@ -740,7 +744,11 @@ msgstr ""
msgid "Reverse direction of selected gcode blocks"
msgstr ""

#: EditorPage.py:527
#: EditorPage.py:525
msgid "GCode editor"
msgstr ""

#: EditorPage.py:526
msgid "Editor"
msgstr ""

Expand Down Expand Up @@ -861,6 +869,10 @@ msgstr ""
msgid "Open/Close serial port"
msgstr ""

#: FilePage.py:285
msgid "File I/O and configuration"
msgstr ""

#: ProbePage.py:23
msgid "G38.2 stop on contact else error"
msgstr ""
Expand Down Expand Up @@ -1219,6 +1231,10 @@ msgstr ""
msgid "Invalid tool height or not calibrated"
msgstr ""

#: ProbePage.py:1056
msgid "Probe configuration and probing"
msgstr ""

#: Ribbon.py:481
msgid "Open file [Ctrl-O]"
msgstr ""
Expand Down Expand Up @@ -1483,6 +1499,10 @@ msgstr ""
msgid "$ Display build information of Grbl"
msgstr ""

#: TerminalPage.py:168
msgid "Serial Terminal"
msgstr ""

#: ToolsPage.py:469
msgid "Units (inches)"
msgstr ""
Expand Down Expand Up @@ -1793,7 +1813,11 @@ msgstr ""
msgid "Value"
msgstr ""

#: ToolsPage.py:1225
#: ToolsPage.py:1223
msgid "GCode manipulation tools and user plugins"
msgstr ""

#: ToolsPage.py:1224
msgid "Tools"
msgstr ""

Expand Down

0 comments on commit 04549c1

Please sign in to comment.