Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Klaus Wölfel
erp5
Commits
de9580f0
Commit
de9580f0
authored
8 years ago
by
Kazuhiko Shiozaki
Browse files
Options
Download
Email Patches
Plain Diff
test: add DummyLocalizer.get_default_language.
parent
88e4b34f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
product/ERP5Type/tests/utils.py
product/ERP5Type/tests/utils.py
+6
-0
No files found.
product/ERP5Type/tests/utils.py
View file @
de9580f0
...
...
@@ -145,6 +145,9 @@ class DummyLocalizer:
and erp5_content message catalogs. It's a list.
"""
__allow_access_to_unprotected_subobjects__
=
1
_default_language
=
'en'
def
__init__
(
self
):
self
.
erp5_ui
=
self
.
ui
=
DummyMessageCatalog
()
self
.
erp5_content
=
self
.
content
=
DummyMessageCatalog
()
...
...
@@ -156,6 +159,9 @@ class DummyLocalizer:
return
getattr
(
self
,
key
)
raise
KeyError
,
key
def
get_default_language
(
self
):
return
self
.
_default_language
def
get_selected_language
(
self
):
return
self
.
lang
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment