Skip to content

Commit

Permalink
[pfsense_setup] Update language list for pfSense 2.7.1 / pfSense Plus…
Browse files Browse the repository at this point in the history
… 23.09
  • Loading branch information
opoplawski committed Jan 21, 2024
1 parent 76d47c3 commit 004fa39
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/langauages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- pfsense_setup - Update language list for pfSense 2.7.1 / pfSense Plus 23.09.
6 changes: 4 additions & 2 deletions plugins/modules/pfsense_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
description: Language for the webConfigurator.
required: false
type: str
choices: ['bs', 'de_DE', 'en_US', 'es', 'es_AR', 'fr', 'ko', 'nb', 'nl', 'pl', 'pt_PT', 'pt_BR', 'ru', 'zh_CN', 'zh_Hans_CN', 'zh_HK', 'zh_TW']
choices: ['bs', 'de_DE', 'en_US', 'es_AR', 'es_ES', 'fr_FR', 'it_IT', 'ko_FR', 'nb_NO', 'nl_NL', 'pl_PL', 'pt_BR', 'pt_PT', 'ru_RU', 'zh_CN', 'zh_Hans_CN',
'zh_Hans_HK', 'zh_Hant_TW']
webguicss:
description: Choose an alternative css file (if installed) to change the appearance of the webConfigurator.
required: false
Expand Down Expand Up @@ -197,7 +198,8 @@
language=dict(
required=False,
type='str',
choices=['bs', 'de_DE', 'en_US', 'es', 'es_AR', 'fr', 'ko', 'nb', 'nl', 'pl', 'pt_PT', 'pt_BR', 'ru', 'zh_CN', 'zh_Hans_CN', 'zh_HK', 'zh_TW']
choices=['bs', 'de_DE', 'en_US', 'es_AR', 'es_ES', 'fr_FR', 'it_IT', 'ko_FR', 'nb_NO', 'nl_NL', 'pl_PL', 'pt_BR', 'pt_PT', 'ru_RU', 'zh_CN',
'zh_Hans_CN', 'zh_Hans_HK', 'zh_Hant_TW'],
),
session_timeout=dict(required=False, type='int'),
authmode=dict(required=False, type='str'),
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/plugins/modules/test_pfsense_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ def test_setup_loginshowhost(self):

def test_setup_language(self):
""" test setup language """
setup = dict(language='fr')
command = "update setup general set language='fr'"
setup = dict(language='fr_FR')
command = "update setup general set language='fr_FR'"
self.do_module_test(setup, command=command, state=None)

def test_setup_timeservers(self):
Expand Down

0 comments on commit 004fa39

Please sign in to comment.