Code issues in language support #53880

Open
opened 2018-01-24 11:49:04 +01:00 by Sybren A. Stüvel · 1 comment

There are a couple of issues in the PillarServer.set_languages() function:

  • It's placed between the _config_xxx() functions. Somewhere below them would be nicer.
  • The translations_folder parameter is unused, but there is no documentation on why that paramter is there.
  • self.default_locale and self.languages is set but not initialised in __init__()
  • This comment is rather strange:
        # Determine available languages.
        languages = list()
There are a couple of issues in the `PillarServer.set_languages()` function: - It's placed between the `_config_xxx()` functions. Somewhere below them would be nicer. - The `translations_folder` parameter is unused, but there is no documentation on why that paramter is there. - `self.default_locale` and `self.languages` is set but not initialised in `__init__()` - This comment is rather strange: ``` # Determine available languages. languages = list() ``` - The initial sentence of the docstring doesn't [end in a period](https://www.python.org/dev/peps/pep-0257/).

Added subscribers: @dr.sybren, @dfelinto, @fsiddi

Added subscribers: @dr.sybren, @dfelinto, @fsiddi
Dalai Felinto self-assigned this 2018-01-24 12:01:23 +01:00
Dalai Felinto removed their assignment 2019-12-23 16:36:21 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: archive/pillar#53880
No description provided.