Commit 67fc1053 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish translation, selector forms, ...

parent bd6cf732
......@@ -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',
......
......@@ -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'])
......
......@@ -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
......
......@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment