|
@@ -36,7 +36,15 @@ def get_lang() -> str:
|
36
|
36
|
- asked by the request to the server,
|
37
|
37
|
- supported by Tracim.
|
38
|
38
|
"""
|
39
|
|
- return tg.i18n.get_lang(all=False)[0]
|
|
39
|
+ # TODO - A.P - language code access from test environment
|
|
40
|
+ # try based workaround instead of raw get language call for test
|
|
41
|
+ # environment only, this should be set with tg.i18n.set_lang in
|
|
42
|
+ # be I was unable to achieve that.
|
|
43
|
+ try:
|
|
44
|
+ result = tg.i18n.get_lang(all=False)[0]
|
|
45
|
+ except:
|
|
46
|
+ result = 'en'
|
|
47
|
+ return result
|
40
|
48
|
|
41
|
49
|
|
42
|
50
|
def get_with_timezone(
|