Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
67fc1053
Commit
67fc1053
authored
Jul 04, 2013
by
LE GAC Renaud
Browse files
Polish translation, selector forms, ...
parent
bd6cf732
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
25 deletions
+34
-25
languages/fr-fr.py
languages/fr-fr.py
+7
-0
models/virtdb.py
models/virtdb.py
+1
-1
modules/check_tools.py
modules/check_tools.py
+3
-3
views/wizards/check_validate.tex
views/wizards/check_validate.tex
+23
-21
No files found.
languages/fr-fr.py
View file @
67fc1053
...
...
@@ -80,7 +80,10 @@
'COM'
:
'COM'
,
'Conditions'
:
'Conditions'
,
'Conference'
:
'Conférence'
,
'Conference dates is not defined'
:
"La date de la conférence n'est pas définie"
,
'Conference speaker is missing'
:
"L'orateur n'est pas défini"
,
'Conference title is not defined'
:
"Le titre de la conférence n'est pas défini"
,
'Conference town is not defined'
:
"La ville de la conférence n'est pas défine"
,
'Configuration'
:
'Configuration'
,
'contains'
:
'contiens'
,
'Controller'
:
'Controller'
,
...
...
@@ -245,6 +248,7 @@
'Organisation'
:
'Organisation'
,
'Origin'
:
'Origin'
,
'Pages'
:
'Pages'
,
'Pages range is not defined'
:
"Les Pages ne sont pas définies"
,
'Parameter for fuzzy string search.'
:
'Paramètre pour la comparaison des chaînes de caractères.'
,
'Password'
:
'Password'
,
'Password changed'
:
'Password changed'
,
...
...
@@ -258,6 +262,7 @@
'Please, define sections for the list "%s"'
:
'définissez des sections pour la liste "%s"'
,
'plugin not install'
:
'plugin not install'
,
'Position'
:
'Position'
,
'Possible duplicate entries [%s]'
:
'Doublon probable [%s]'
,
'Postprocessing'
:
'Postprocessing'
,
'Preprint'
:
'Preprint'
,
'Preprint identifier separated by comma: arXiv:0906.1516'
:
'Numéro(s) du preprint séparé par des virgules: arXiv:0906.1516'
,
...
...
@@ -279,6 +284,7 @@
'Publisher'
:
'Revue'
,
'Publishers'
:
'Revues'
,
'publishers'
:
'revues'
,
'Publishers is not defined'
:
"La revue n'est pas définie"
,
'Query:'
:
'Query:'
,
'Ratio'
:
'Ratio'
,
'record id'
:
'record id'
,
...
...
@@ -419,6 +425,7 @@
'Verify Password'
:
'Verify Password'
,
'versions'
:
'versions'
,
'Volume'
:
'Volume'
,
'Volume number is not defined'
:
"Le numéro du volume n'est pas défini"
,
'Welcome'
:
'Welcome'
,
'Wizards'
:
'Assistants'
,
'Xml'
:
'Xml'
,
...
...
models/virtdb.py
View file @
67fc1053
...
...
@@ -38,7 +38,7 @@ virtdb.define_table('check_selector',
Field
(
'id_projects'
,
'reference projects'
,
label
=
'Project'
),
Field
(
'id_categories'
,
'reference categories'
,
label
=
'Category'
),
Field
(
'mode'
,
'string'
,
default
=
MODE_DRY_RUN
),
Field
(
'format'
,
'string'
,
default
=
'html'
))
Field
(
'format'
,
'string'
,
default
=
'html'
,
label
=
'Report format'
))
virtdb
.
check_selector
.
id_categories
.
requires
=
IS_IN_DB
(
db
,
'categories.code'
)
virtdb
.
check_selector
.
format
.
requires
=
IS_IN_SET
([
'html'
,
'tex'
,
'pdf'
])
...
...
modules/check_tools.py
View file @
67fc1053
...
...
@@ -95,7 +95,7 @@ def check_publication(row):
ids
=
duplicate_article
(
row
)
if
ids
:
text
=
T
(
"Possible duplicate entries [%s]"
)
%
s
text
=
T
(
"Possible duplicate entries [%s]"
)
%
', '
.
join
(
ids
)
li
.
append
(
text
)
# specific fields for proceeding and talk
...
...
@@ -123,7 +123,7 @@ def check_publication(row):
ids
=
duplicate_conference
(
row
)
if
ids
:
text
=
T
(
"Possible duplicate entries [%s]"
)
%
s
text
=
T
(
"Possible duplicate entries [%s]"
)
%
', '
.
join
(
ids
)
li
.
append
(
text
)
# specific fields for report
...
...
@@ -135,7 +135,7 @@ def check_publication(row):
ids
=
duplicate_report
(
row
)
if
ids
:
text
=
T
(
"Possible duplicate entries [%s]"
)
%
s
text
=
T
(
"Possible duplicate entries [%s]"
)
%
', '
.
join
(
ids
)
li
.
append
(
text
)
return
li
...
...
views/wizards/check_validate.tex
View file @
67fc1053
...
...
@@ -16,25 +16,26 @@
{{
from datetime import datetime
write = response.write
#--------------------------------------------------------------------------
#
# title section
#
#--------------------------------------------------------------------------
response.
write("
\\
title
{
%s}" % T("Check and validate"))
response.
write("
\maketitle
")
write("
\\
title
{
%s}" % T("Check and validate"))
write("
\maketitle
")
#--------------------------------------------------------------------------
#
# Summary table
#
#--------------------------------------------------------------------------
response.
write("
\\
begin
{
tabular
}{
|l|r|
}
")
response.
write("
\hline
")
write("
\\
begin
{
tabular
}{
|l|r|
}
")
write("
\hline
")
txt = datetime.now().strftime("
%d %B %Y %H:%M")
response.
write("
%s & %s \\\\" % ("", txt), escape=False)
response.
write("
\hline
")
write("
%s & %s \\\\" % ("", txt), escape=False)
write("
\hline
")
#
# user requirements
...
...
@@ -51,46 +52,47 @@
if selector.id
_
categories:
category = db.categories[selector.id
_
categories].code
pass
response.write("
%s & %s \\\\" % (T("Team"), team), escape=False)
response.write("
%s & %s \\\\" % (T("Project"), project), escape=False)
response.write("
%s & %s \\\\" % (T("Category"), category), escape=False)
response.write("
\hline
")
write("
%s & %s \\\\" % (T("Year"), selector.year), escape=False)
write("
%s & %s \\\\" % (T("Team"), team), escape=False)
write("
%s & %s \\\\" % (T("Project"), project), escape=False)
write("
%s & %s \\\\" % (T("Category"), category), escape=False)
write("
\hline
")
#
# summary of the processing
#
txt = T("Number of records found")
response.
write("
%s & %s \\\\" % (txt, nfound), escape=False)
write("
%s & %s \\\\" % (txt, nfound), escape=False)
txt = T("Number of records already validated")
response.
write("
%s & %s \\\\" % (txt, nok), escape=False)
write("
%s & %s \\\\" % (txt, nok), escape=False)
txt = T("Number of records validated")
response.
write("
%s & %s \\\\" % (txt, nvalidated), escape=False)
write("
%s & %s \\\\" % (txt, nvalidated), escape=False)
txt = T("Number of invalid records")
response.
write("
%s & %s \\\\" % (txt, nfound-nok-nvalidated), escape=False)
write("
%s & %s \\\\" % (txt, nfound-nok-nvalidated), escape=False)
response.
write("
\hline
")
response.
write("
\end{tabular}
")
write("
\hline
")
write("
\end{tabular}
")
#--------------------------------------------------------------------------
#
# List of non valid records
#
#--------------------------------------------------------------------------
response.
write("
\section*
{
%s}" % T("Invalid records"))
write("
\section*
{
%s}" % T("Invalid records"))
response.
write("
\\
begin
{
enumerate
}
")
write("
\\
begin
{
enumerate
}
")
for msg in logs:
title = msg.title
txt = "
{
\color
{
red
}
%s}" % ', '.join(msg.txt)
id = "
{
\color
{
blue
}
id
%s}" % msg.id
response.
write("
\item
%s, %s, %s" % (title, txt, id), escape=False)
write("
\item
%s, %s, %s" % (title, txt, id), escape=False)
pass
response.
write("
\end{enumerate}
")
write("
\end{enumerate}
")
}}
\end{document}
...
...
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