Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
0046ac81
Commit
0046ac81
authored
Nov 28, 2012
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
011f0ee8
99fcf0a7
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
221 additions
and
468 deletions
+221
-468
docs/admin.rst
docs/admin.rst
+12
-0
docs/changes.rst
docs/changes.rst
+1
-0
weblate/html/meta-header.html
weblate/html/meta-header.html
+1
-1
weblate/media/css/custom-theme/jquery-ui-1.9.2.custom.css
weblate/media/css/custom-theme/jquery-ui-1.9.2.custom.css
+0
-462
weblate/media/css/custom-theme/jquery-ui-1.9.2.custom.min.css
...ate/media/css/custom-theme/jquery-ui-1.9.2.custom.min.css
+5
-0
weblate/trans/migrations/0023_auto__chg_field_project_commit_message.py
...migrations/0023_auto__chg_field_project_commit_message.py
+182
-0
weblate/trans/models.py
weblate/trans/models.py
+20
-5
No files found.
docs/admin.rst
View file @
0046ac81
...
...
@@ -39,10 +39,22 @@ strings in the message:
``%(language)s``
Language code
``%(language_name)s``
Language name
``%(subproject)s``
Subproject name
``%(project)s``
Project name
``%(total)s``
Total strings count
``%(fuzzy)s``
Fuzzy strings count
``%(fuzzy_percent)s``
Fuzzy strings percent
``%(translated)s``
Translated strings count
``%(translated_percent)s``
Translated strings percent
There are also additional features which you can control, like automatic
pushing of changes (see also :ref:`push-changes`), merge or rebase
...
...
docs/changes.rst
View file @
0046ac81
...
...
@@ -18,6 +18,7 @@ Relased on ? 2012.
* Improved translation locking handling.
* Show code snippets for widgets in more variants.
* Indicate failing checks or fuzzy strings in progressbars.
* More options for formatting commit message.
weblate 1.3
-----------
...
...
weblate/html/meta-header.html
View file @
0046ac81
...
...
@@ -2,7 +2,7 @@
{% load url from future %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% get_media_prefix %}css/style.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% get_media_prefix %}css/custom-theme/jquery-ui-1.9.2.custom.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% get_media_prefix %}css/custom-theme/jquery-ui-1.9.2.custom.
min.
css"
/>
<script
src=
"{% get_media_prefix %}js/jquery-1.8.3.min.js"
type=
"text/javascript"
></script>
<script
src=
"{% get_media_prefix %}js/jquery-ui-1.9.2.custom.min.js"
type=
"text/javascript"
></script>
<script
src=
"{% get_media_prefix %}js/jquery.autogrow-textarea.js"
type=
"text/javascript"
></script>
...
...
weblate/media/css/custom-theme/jquery-ui-1.9.2.custom.css
deleted
100644 → 0
View file @
011f0ee8
This diff is collapsed.
Click to expand it.
weblate/media/css/custom-theme/jquery-ui-1.9.2.custom.min.css
0 → 100644
View file @
0046ac81
This diff is collapsed.
Click to expand it.
weblate/trans/migrations/0023_auto__chg_field_project_commit_message.py
0 → 100644
View file @
0046ac81
This diff is collapsed.
Click to expand it.
weblate/trans/models.py
View file @
0046ac81
...
...
@@ -195,7 +195,17 @@ def validate_repoweb(val):
def
validate_commit_message
(
val
):
try
:
val
%
{
'language'
:
'cs'
,
'project'
:
'Weblate'
,
'subproject'
:
'master'
}
val
%
{
'language'
:
'cs'
,
'language_name'
:
'Czech'
,
'project'
:
'Weblate'
,
'subproject'
:
'master'
,
'total'
:
200
,
'fuzzy'
:
20
,
'fuzzy_percent'
:
10.0
,
'translated'
:
40
,
'translated_percent'
:
20.0
,
}
except
Exception
as
e
:
raise
ValidationError
(
_
(
'Bad format string (%s)'
)
%
str
(
e
))
...
...
@@ -265,11 +275,10 @@ class Project(models.Model):
)
# VCS config
commit_message
=
models
.
CharField
(
max_length
=
200
,
help_text
=
ugettext_lazy
(
'You can use %(language)s, %(subproject)s or %(project)s for language shortcut, subproject or project names.'
),
commit_message
=
models
.
TextField
(
help_text
=
ugettext_lazy
(
'You can use format strings for various information, please check documentation for more details.'
),
validators
=
[
validate_commit_message
],
default
=
'Translated using Weblate
.
'
default
=
'Translated using Weblate
(%(language_name)s)
\
n
\
n
Currently translated at %(translated_percent)s%% (%(translated)s of %(total)s strings)
'
)
committer_name
=
models
.
CharField
(
max_length
=
200
,
...
...
@@ -1683,8 +1692,14 @@ class Translation(models.Model):
'''
return
self
.
subproject
.
project
.
commit_message
%
{
'language'
:
self
.
language_code
,
'language_name'
:
self
.
language
.
name
,
'subproject'
:
self
.
subproject
.
name
,
'project'
:
self
.
subproject
.
project
.
name
,
'total'
:
self
.
total
,
'fuzzy'
:
self
.
fuzzy
,
'fuzzy_percent'
:
self
.
get_fuzzy_percent
(),
'translated'
:
self
.
translated
,
'translated_percent'
:
self
.
get_translated_percent
(),
}
def
__configure_conf
(
self
,
gitrepo
,
section
,
key
,
expected
):
...
...
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