Skip to content
Snippets Groups Projects
Commit 17cfd622 authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] fix referentials translation

parent 1b961335
No related branches found
No related tags found
1 merge request!7750.50.0
...@@ -14,23 +14,21 @@ class QuantitativeZSum(BaseReferential): ...@@ -14,23 +14,21 @@ class QuantitativeZSum(BaseReferential):
"""Q0 = Q - ( M(t-1) / N(t) ) """Q0 = Q - ( M(t-1) / N(t) )
<br > <br >
<table> <table>
<tr><td>ZS</td><td>Quantitative value at zero sum</td></tr> <tr><td>Q0</td><td>Quantitative value at zero sum</td></tr>
<tr><td>Q</td><td>Quantitative value</td></tr> <tr><td>Q</td><td>Quantitative value</td></tr>
<tr><td>M</td><td>Monetary mass</td></tr> <tr><td>M</td><td>Monetary mass</td></tr>
<tr><td>N</td><td>Members count</td></tr> <tr><td>N</td><td>Members count</td></tr>
<tr><td>t</td><td>Last UD time</td></tr> <tr><td>t</td><td>Last UD time</td></tr>
<tr><td>t-1</td><td>Penultimate UD time</td></tr> <tr><td>t-1</td><td>Penultimate UD time</td></tr>
</table>""", </table>"""
) )
_DESCRIPTION_STR_ = QT_TRANSLATE_NOOP( _DESCRIPTION_STR_ = QT_TRANSLATE_NOOP(
"QuantitativeZSum", "QuantitativeZSum",
"""Quantitative at zero sum is used to display the difference between """Quantitative at zero sum is used to display the difference between<br />
the quantitative value and the average quantitative value. the quantitative value and the average quantitative value.<br />
If it is positive, the value is above the average value, and if it is negative, If it is positive, the value is above the average value, and if it is negative,<br />
the value is under the average value. the value is under the average value.<br />
""".replace( """
"\n", "<br >"
),
) )
def __init__(self, amount, currency, app, block_number=None): def __init__(self, amount, currency, app, block_number=None):
......
...@@ -15,7 +15,7 @@ class Quantitative(BaseReferential): ...@@ -15,7 +15,7 @@ class Quantitative(BaseReferential):
<table> <table>
<tr><td>Q</td><td>Quantitative value</td></tr> <tr><td>Q</td><td>Quantitative value</td></tr>
</table> </table>
""", """
) )
_DESCRIPTION_STR_ = QT_TRANSLATE_NOOP( _DESCRIPTION_STR_ = QT_TRANSLATE_NOOP(
"Quantitative", "Base referential of the money. Units values are used here." "Quantitative", "Base referential of the money. Units values are used here."
......
...@@ -18,19 +18,17 @@ class Relative(BaseReferential): ...@@ -18,19 +18,17 @@ class Relative(BaseReferential):
<tr><td>Q</td><td>Quantitative value</td></tr> <tr><td>Q</td><td>Quantitative value</td></tr>
<tr><td>UD</td><td>Universal Dividend</td></tr> <tr><td>UD</td><td>Universal Dividend</td></tr>
<tr><td>t</td><td>Last UD time</td></tr> <tr><td>t</td><td>Last UD time</td></tr>
</table>""", </table>"""
) )
_DESCRIPTION_STR_ = QT_TRANSLATE_NOOP( _DESCRIPTION_STR_ = QT_TRANSLATE_NOOP(
"Relative", "Relative",
"""Relative referential of the money. """Relative referential of the money.<br />
Relative value R is calculated by dividing the quantitative value Q by the last Relative value R is calculated by dividing the quantitative value Q by the last<br />
Universal Dividend UD. Universal Dividend UD.<br />
This referential is the most practical one to display prices and accounts. This referential is the most practical one to display prices and accounts.<br />
No money creation or destruction is apparent here and every account tend to No money creation or destruction is apparent here and every account tend to<br />
the average. the average.
""".replace( """
"\n", "<br >"
),
) )
def __init__(self, amount, currency, app, block_number=None): def __init__(self, amount, currency, app, block_number=None):
......
...@@ -20,17 +20,15 @@ class RelativeZSum(BaseReferential): ...@@ -20,17 +20,15 @@ class RelativeZSum(BaseReferential):
<tr><td>N</td><td>Members count</td></tr> <tr><td>N</td><td>Members count</td></tr>
<tr><td>t</td><td>Last UD time</td></tr> <tr><td>t</td><td>Last UD time</td></tr>
<tr><td>t-1</td><td>Penultimate UD time</td></tr> <tr><td>t-1</td><td>Penultimate UD time</td></tr>
</table>""", </table>"""
) )
_DESCRIPTION_STR_ = QT_TRANSLATE_NOOP( _DESCRIPTION_STR_ = QT_TRANSLATE_NOOP(
"RelativeZSum", "RelativeZSum",
"""Relative at zero sum is used to display the difference between """Relative at zero sum is used to display the difference between<br />
the relative value and the average relative value. the relative value and the average relative value.<br />
If it is positive, the value is above the average value, and if it is negative, If it is positive, the value is above the average value, and if it is negative,<br />
the value is under the average value. the value is under the average value.<br />
""".replace( """
"\n", "<br >"
),
) )
def __init__(self, amount, currency, app, block_number=None): def __init__(self, amount, currency, app, block_number=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment