Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
dd71e11f
Commit
dd71e11f
authored
Sep 02, 2021
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: increase taget language priority
for web site, default language's value is 80, current is 100
parent
229580d6
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
18 additions
and
18 deletions
+18
-18
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_viewAsLetter.py
...portal_skins/erp5_corporate_identity/Base_viewAsLetter.py
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_viewAsReport.py
...portal_skins/erp5_corporate_identity/Base_viewAsReport.py
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
...ortal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsContract.py
...l_skins/erp5_corporate_identity/WebPage_viewAsContract.py
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsLeaflet.py
...al_skins/erp5_corporate_identity/WebPage_viewAsLeaflet.py
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsRelease.py
...al_skins/erp5_corporate_identity/WebPage_viewAsRelease.py
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsSlideshow.py
..._skins/erp5_corporate_identity/WebPage_viewAsSlideshow.py
+1
-1
bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/Invoice_printAsODT.py
...ateItem/portal_skins/erp5_invoicing/Invoice_printAsODT.py
+1
-1
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionOrder_printAsODT.py
...eItem/portal_skins/erp5_mrp/ProductionOrder_printAsODT.py
+1
-1
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionPackingList_printAsODT.py
...portal_skins/erp5_mrp/ProductionPackingList_printAsODT.py
+1
-1
bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Base_viewAsODS.py
...TemplateItem/portal_skins/erp5_ods_core/Base_viewAsODS.py
+1
-1
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheet_printAsODT.py
...lateItem/portal_skins/erp5_payroll/PaySheet_printAsODT.py
+1
-1
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_callTaskReport.py
...eItem/portal_skins/erp5_project/Project_callTaskReport.py
+1
-1
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Order_printAsODSSummary.py
...teItem/portal_skins/erp5_trade/Order_printAsODSSummary.py
+1
-1
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Order_printAsODT.py
...nTemplateItem/portal_skins/erp5_trade/Order_printAsODT.py
+1
-1
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/PackingList_printAsODT.py
...ateItem/portal_skins/erp5_trade/PackingList_printAsODT.py
+1
-1
bt5/erp5_trade_ja/SkinTemplateItem/portal_skins/erp5_trade_ja/Invoice_printAsHTML.py
...ateItem/portal_skins/erp5_trade_ja/Invoice_printAsHTML.py
+1
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_doPrint.py
...e/SkinTemplateItem/portal_skins/erp5_core/Base_doPrint.py
+1
-1
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_viewAsLetter.py
View file @
dd71e11f
...
...
@@ -86,7 +86,7 @@ if override_batch_mode:
letter_modification_date
=
DateTime
(
"1976-11-04"
)
if
letter_language
and
letter_language
!=
blank
:
letter
.
REQUEST
[
'AcceptLanguage'
].
set
(
letter_language
,
10
)
letter
.
REQUEST
[
'AcceptLanguage'
].
set
(
letter_language
,
1
5
0
)
else
:
letter_language
=
blank
if
letter_reference
is
None
:
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_viewAsReport.py
View file @
dd71e11f
...
...
@@ -101,7 +101,7 @@ if doc_language is None or doc_language == "":
doc_language
=
html_quote
(
override_document_language
)
if
override_document_language
else
doc_language
if
doc_language
is
not
None
:
doc
.
REQUEST
[
'AcceptLanguage'
].
set
(
doc_language
,
10
)
doc
.
REQUEST
[
'AcceptLanguage'
].
set
(
doc_language
,
1
5
0
)
else
:
doc_language
=
blank
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
View file @
dd71e11f
...
...
@@ -97,7 +97,7 @@ if override_batch_mode:
book_short_date
=
book_modification_date
.
strftime
(
'%Y-%m-%d'
)
if
book_language
:
book
.
REQUEST
[
'AcceptLanguage'
].
set
(
book_language
,
10
)
book
.
REQUEST
[
'AcceptLanguage'
].
set
(
book_language
,
1
5
0
)
else
:
book_language
=
blank
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsContract.py
View file @
dd71e11f
...
...
@@ -64,7 +64,7 @@ if override_batch_mode:
contract_short_date
=
contract_modification_date
.
strftime
(
'%Y-%m-%d'
)
if
contract_language
:
context
.
REQUEST
[
'AcceptLanguage'
].
set
(
contract_language
,
10
)
context
.
REQUEST
[
'AcceptLanguage'
].
set
(
contract_language
,
1
5
0
)
else
:
contract_language
=
blank
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsLeaflet.py
View file @
dd71e11f
...
...
@@ -68,7 +68,7 @@ if override_batch_mode:
leaflet_date
=
"Nov-1976"
leaflet_year
=
"1976"
if
leaflet_language
and
leaflet_language
!=
blank
:
leaflet
.
REQUEST
[
'AcceptLanguage'
].
set
(
leaflet_language
,
10
)
leaflet
.
REQUEST
[
'AcceptLanguage'
].
set
(
leaflet_language
,
1
5
0
)
else
:
leaflet_language
=
blank
if
leaflet_reference
is
None
:
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsRelease.py
View file @
dd71e11f
...
...
@@ -70,7 +70,7 @@ release_version = release.getVersion() or "001"
if
override_batch_mode
:
release_creation_year
=
"1976"
if
release_language
is
not
None
:
release
.
REQUEST
[
'AcceptLanguage'
].
set
(
release_language
,
10
)
release
.
REQUEST
[
'AcceptLanguage'
].
set
(
release_language
,
1
5
0
)
if
release_language
is
None
:
release_language
=
blank
if
release_reference
is
None
:
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsSlideshow.py
View file @
dd71e11f
...
...
@@ -254,7 +254,7 @@ if override_batch_mode:
doc_version = "
001
"
doc_creation_year = "
1976
"
if doc_language and doc_language != blank:
doc.REQUEST['AcceptLanguage'].set(doc_language, 10)
doc.REQUEST['AcceptLanguage'].set(doc_language, 1
5
0)
else:
doc_language = blank
if doc_reference is None:
...
...
bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/Invoice_printAsODT.py
View file @
dd71e11f
# This script uses format= argument
# pylint: disable=redefined-builtin
if
target_language
:
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
10
)
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
1
5
0
)
return
context
.
Invoice_viewAsODT
(
format
=
format
)
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionOrder_printAsODT.py
View file @
dd71e11f
# this API uses format=
# pylint: disable=redefined-builtin
if
target_language
:
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
10
)
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
1
5
0
)
return
context
.
ProductionOrder_viewAsODT
(
format
=
format
)
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionPackingList_printAsODT.py
View file @
dd71e11f
# this API uses format=
# pylint: disable=redefined-builtin
if
target_language
:
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
10
)
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
1
5
0
)
return
context
.
ProductionPackingList_viewAsODT
(
format
=
format
)
bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Base_viewAsODS.py
View file @
dd71e11f
...
...
@@ -3,7 +3,7 @@ request = container.REQUEST
request
.
set
(
'portal_skin'
,
'ODS'
)
# Some TALES expressions checks this
if
target_language
:
request
[
'AcceptLanguage'
].
set
(
target_language
,
10
)
request
[
'AcceptLanguage'
].
set
(
target_language
,
1
5
0
)
if
print_mode
==
'list_view'
or
print_mode
==
'list_view_separate_sheet'
:
if
print_mode
==
'list_view_separate_sheet'
:
...
...
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheet_printAsODT.py
View file @
dd71e11f
if
target_language
:
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
10
)
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
1
5
0
)
return
context
.
PaySheetTransaction_viewAsODT
(
format
=
format
)
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_callTaskReport.py
View file @
dd71e11f
...
...
@@ -9,7 +9,7 @@ if use_ods_style:
request
.
set
(
'reset'
,
1
)
# Some TALES expressions checks this
if
target_language
:
request
[
'AcceptLanguage'
].
set
(
target_language
,
10
)
request
[
'AcceptLanguage'
].
set
(
target_language
,
1
5
0
)
form_report
=
getattr
(
context
,
print_mode
)
return
form_report
(
**
kw
)
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Order_printAsODSSummary.py
View file @
dd71e11f
...
...
@@ -6,7 +6,7 @@
# different lines
from
erp5.component.module.Log
import
log
if
target_language
:
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
10
)
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
1
5
0
)
unit_title_dict
=
{}
total_quantity_dict
=
{}
...
...
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Order_printAsODT.py
View file @
dd71e11f
# this API uses format=
# pylint:disable=redefined-builtin
if
target_language
:
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
10
)
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
1
5
0
)
return
context
.
Order_viewAsODT
(
format
=
format
)
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/PackingList_printAsODT.py
View file @
dd71e11f
# this API uses format=
# pylint:disable=redefined-builtin
if
target_language
:
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
10
)
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
1
5
0
)
return
context
.
PackingList_viewAsODT
(
format
=
format
)
bt5/erp5_trade_ja/SkinTemplateItem/portal_skins/erp5_trade_ja/Invoice_printAsHTML.py
View file @
dd71e11f
if
target_language
:
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
10
)
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
1
5
0
)
container
.
REQUEST
.
set
(
'format'
,
'pdf'
)
return
context
.
getPortalObject
().
web_page_module
.
newContent
(
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_doPrint.py
View file @
dd71e11f
...
...
@@ -4,7 +4,7 @@
context
.
Base_updateListboxSelection
()
if
target_language
:
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
10
)
container
.
REQUEST
[
'AcceptLanguage'
].
set
(
target_language
,
1
5
0
)
if
print_mode
==
'list_view'
:
return
context
.
Folder_viewContentListReport
()
...
...
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