Skip to content

Commit

Permalink
Merge pull request #2769 from HelioGuilherme66/language_fixes
Browse files Browse the repository at this point in the history
Language fixes
  • Loading branch information
HelioGuilherme66 authored May 14, 2024
2 parents 314fb4e + 9c9b3ab commit c38cec8
Show file tree
Hide file tree
Showing 6 changed files with 241 additions and 132 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Likewise, the current version of wxPython, is 4.2.1, but RIDE is known to work w

`pip install -U robotframework-ride`

(3.8 < python &lt;= 3.12) Install current development version (**2.1dev35**) with:
(3.8 < python &lt;= 3.12) Install current development version (**2.1dev36**) with:

`pip install -U https://github.com/robotframework/RIDE/archive/master.zip`

Expand Down
2 changes: 1 addition & 1 deletion src/robotide/application/releasenotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def set_content(self, html_win, content):
<li>This version supports Python 3.8 up to 3.12.</li>
<li>There are some changes, or known issues:<ul>
<li>❌ - Removed support for Python 3.6 and 3.7</li>
<li>✔ -Added actions on columns of Grid Editor: Double-Click or Right Mouse Click, allows to edit the column name for Data
<li>✔ - Added actions on columns of Grid Editor: Double-Click or Right Mouse Click, allows to edit the column name for Data
Driven or Templated; Left Mouse Click, selects the column cells.</li>
<li>✔ - Added command line option, <b>--settingspath</b>, to select a different configuration.</li>
<li>✔ - Added different settings file, according the actual Python executable, if not the original installed.</li>
Expand Down
1 change: 1 addition & 0 deletions src/robotide/lib/robot/parsing/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def set_doc_language(self):
language = ", ".join(self._language)
else:
language = self._language
language = language.replace('_', '-') # To ensure is as RF formta, cases pt-, zn-
if len(self._preamble) == 0:
self._preamble.append(f"Language: {language}\n\n")
# print(f"DEBUG: model.py set_doc_language EMPTY PREAMBLE self._preamble={self._preamble}")
Expand Down
6 changes: 3 additions & 3 deletions src/robotide/ui/keywordsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def _search(self):

def _search_resource(self, item):
if isinstance(item, (TestCaseFileController, ResourceFileController)):
def _callable():
def _callable(arg=None):
self._show_resource(os.path.basename(item.source))
return [PopupMenuItem(SEARCH_KW, ccallable=_callable)]
return [PopupMenuItem(SEARCH_KW,'Search Keywords', ccallable=_callable)]
return []

def _show_resource(self, resource):
Expand Down Expand Up @@ -136,7 +136,7 @@ def _contains(string, pattern):
class KeywordSearchDialog(RIDEDialog):

def __init__(self, parent, searcher):
RIDEDialog.__init__(self, title=_("Search Keywords"), parent=parent, size=(650, 400),
RIDEDialog.__init__(self, title=SEARCH_KW, parent=parent, size=(650, 400),
style=wx.DEFAULT_FRAME_STYLE | wx.FRAME_FLOAT_ON_PARENT)
# set Left to Right direction (while we don't have localization)
self.SetLayoutDirection(wx.Layout_LeftToRight)
Expand Down
Loading

0 comments on commit c38cec8

Please sign in to comment.