summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2013-11-15 16:19:07 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2013-11-15 16:19:07 (GMT)
commit1d40eda30d5a20256b8568372c2a70c6dfa8c6a0 (patch)
tree403e88bd1874fc6ee930bd590440da15a71e8bc5
parentf0199bab47dde6c1e47838866d8a52f2f64bb897 (diff)
downloadtabellio.webviews-1d40eda30d5a20256b8568372c2a70c6dfa8c6a0.zip
tabellio.webviews-1d40eda30d5a20256b8568372c2a70c6dfa8c6a0.tar.gz
tabellio.webviews-1d40eda30d5a20256b8568372c2a70c6dfa8c6a0.tar.bz2
adapt words according to deputy gender
-rw-r--r--tabellio/webviews/deputy.pt12
1 files changed, 9 insertions, 3 deletions
diff --git a/tabellio/webviews/deputy.pt b/tabellio/webviews/deputy.pt
index 2dc4164..7836653 100644
--- a/tabellio/webviews/deputy.pt
+++ b/tabellio/webviews/deputy.pt
@@ -106,9 +106,15 @@
</span>
<a tal:attributes="href actobj/canonical_path"><span tal:content="actobj/title"/></a>
- <span tal:condition="python: activity[1] == 'participant'">(en tant que participant)</span>
- <span tal:condition="python: activity[1] == 'reporter'">(en tant que rapporteur)</span>
- <span tal:condition="python: activity[1] == 'speaker'">(en tant qu'orateur)</span>
+ <span tal:condition="python: activity[1] == 'participant'">(en tant que
+ <span tal:omit-tag="" tal:condition="python: context.sex == 'M'">participant</span>
+ <span tal:omit-tag="" tal:condition="python: context.sex == 'F'">participante</span>)</span>
+ <span tal:condition="python: activity[1] == 'reporter'">(en tant que
+ <span tal:omit-tag="" tal:condition="python: context.sex == 'M'">rapporteur</span>
+ <span tal:omit-tag="" tal:condition="python: context.sex == 'F'">rapporteuse</span>)</span>
+ <span tal:condition="python: activity[1] == 'speaker'">(en tant
+ <span tal:omit-tag="" tal:condition="python: context.sex == 'M'">qu'orateur</span>
+ <span tal:omit-tag="" tal:condition="python: context.sex == 'F'">qu'oratrice</span>)</span>
</li>
</tal:block>
</tal:block>