Skip to content

GoogleTranslate: idle_time setting - #5

Merged
polyvertex merged 2 commits into
Keypirinha:devfrom
alexandr-san4ez:google-translate
Aug 26, 2017
Merged

GoogleTranslate: idle_time setting#5
polyvertex merged 2 commits into
Keypirinha:devfrom
alexandr-san4ez:google-translate

Conversation

@alexandr-san4ez

Copy link
Copy Markdown
Contributor

No description provided.

@polyvertex polyvertex changed the title Added waiting parameter GoogleTranslate: idle_time setting Aug 12, 2017
Comment thread GoogleTranslate/googletranslate.ini Outdated
# * Time in seconds (can be used with float type)
# * The minimum value is 0.25
# * Default: 0.25
#waiting_time = 0.25

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same remarks than for WebSuggest:

  • hard-coded maximum value of 3 seconds
  • I think idle_time is more appropriate than waiting_time

Comment thread GoogleTranslate/googletranslate.py Outdated

self.waiting_time = settings.get_float(
"waiting_time", self.CONFIG_SECTION_DEFAULTS,
fallback=self.DEFAULT_WAITING_TIME, min=0.25)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(max value)

@polyvertex

Copy link
Copy Markdown
Member

Please PR on the dev branch

@alexandr-san4ez
alexandr-san4ez changed the base branch from master to dev August 12, 2017 10:27
@alexandr-san4ez

Copy link
Copy Markdown
Contributor Author

Maybe you did not see the change. Check this PR and #4.

@polyvertex
polyvertex merged commit f288ffe into Keypirinha:dev Aug 26, 2017
@alexandr-san4ez
alexandr-san4ez deleted the google-translate branch August 27, 2017 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants