0.12.28 localization routines

This commit is contained in:
SDE
2024-04-02 16:06:45 +03:00
parent 92e3d76b7e
commit c29cc25581
9 changed files with 1605 additions and 540 deletions

View File

@@ -24,6 +24,9 @@ def get_file_from_msg_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
try:
data = json.loads(request.body)
@@ -49,6 +52,9 @@ def show_chat_w_user_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
try:
data = json.loads(request.body)
@@ -74,6 +80,9 @@ def update_chat_ajax2(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
res_Dict = {}
msgs = []
Dict = {}
@@ -163,6 +172,9 @@ def update_chat_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
res_Dict = {}
msgs = []
Dict = {}
@@ -381,6 +393,9 @@ def support_show_chat_by_ticket_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
try:
data = json.loads(request.body)
@@ -434,6 +449,8 @@ def support_create_ticket_form_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
Dict = {
'form': TicketForm()
@@ -454,6 +471,9 @@ def create_ticket_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
try:
data = request.POST