Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
fb8ce693
Commit
fb8ce693
authored
Aug 12, 2017
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix mature content
Update german translation
parent
b596734c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
438 additions
and
381 deletions
+438
-381
messages.mo
cps/translations/de/LC_MESSAGES/messages.mo
+0
-0
messages.po
cps/translations/de/LC_MESSAGES/messages.po
+219
-191
ub.py
cps/ub.py
+1
-1
web.py
cps/web.py
+3
-2
messages.pot
messages.pot
+215
-187
No files found.
cps/translations/de/LC_MESSAGES/messages.mo
View file @
fb8ce693
No preview for this file type
cps/translations/de/LC_MESSAGES/messages.po
View file @
fb8ce693
This diff is collapsed.
Click to expand it.
cps/ub.py
View file @
fb8ce693
...
...
@@ -375,7 +375,7 @@ class Config:
(
self
.
config_default_role
&
ROLE_DELETE_BOOKS
==
ROLE_DELETE_BOOKS
))
def
mature_content_tags
(
self
):
return
self
.
config_mature_content_tags
.
split
(
","
)
return
list
(
map
(
unicode
.
lstrip
,
self
.
config_mature_content_tags
.
split
(
","
))
)
def
get_Log_Level
(
self
):
ret_value
=
""
...
...
cps/web.py
View file @
fb8ce693
...
...
@@ -2316,8 +2316,9 @@ def profile():
content
.
sidebar_view
+=
ub
.
SIDEBAR_READ_AND_UNREAD
if
"show_detail_random"
in
to_save
:
content
.
sidebar_view
+=
ub
.
DETAIL_RANDOM
if
"default_language"
in
to_save
:
content
.
default_language
=
to_save
[
"default_language"
]
content
.
mature_content
=
"show_mature_content"
in
to_save
try
:
ub
.
session
.
commit
()
except
IntegrityError
:
...
...
messages.pot
View file @
fb8ce693
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