diff --git a/changelogs/fragments/langauages.yml b/changelogs/fragments/langauages.yml new file mode 100644 index 00000000..bb0b6924 --- /dev/null +++ b/changelogs/fragments/langauages.yml @@ -0,0 +1,2 @@ +minor_changes: + - pfsense_setup - Update language list for pfSense 2.7.1 / pfSense Plus 23.09. diff --git a/plugins/modules/pfsense_setup.py b/plugins/modules/pfsense_setup.py index cea65766..772b1496 100644 --- a/plugins/modules/pfsense_setup.py +++ b/plugins/modules/pfsense_setup.py @@ -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 @@ -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'), diff --git a/tests/unit/plugins/modules/test_pfsense_setup.py b/tests/unit/plugins/modules/test_pfsense_setup.py index d2fb2352..cbdad844 100644 --- a/tests/unit/plugins/modules/test_pfsense_setup.py +++ b/tests/unit/plugins/modules/test_pfsense_setup.py @@ -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):