mirror of https://gitlab.com/pamhyr/pamhyr2
text improvement
parent
5e018fc8f0
commit
d32baa61a1
|
|
@ -1334,7 +1334,7 @@ https://gitlab.irstea.fr/theophile.terraz/pamhyr
|
|||
|
||||
You can improve or add translation for the project. To contribute to
|
||||
Pamhyr2 translate, you need to use Qt Linguist[fn:qt-linguist]. Open
|
||||
Qt-linguist and edite the translation ({{{file(.ts)}}}) file, finally,
|
||||
Qt-linguist and edit the translation ({{{file(.ts)}}}) file, finally,
|
||||
commit the new version of file and make a merge request.
|
||||
|
||||
If you want add a new language, edit the script
|
||||
|
|
|
|||
|
|
@ -431,8 +431,9 @@ class ProfileXYZ(Profile, SQLSubModel):
|
|||
|
||||
area = 0.0
|
||||
for line in lines:
|
||||
poly = geometry.Polygon(line)
|
||||
area += poly.area
|
||||
if len(line.coords) > 2:
|
||||
poly = geometry.Polygon(line)
|
||||
area += poly.area
|
||||
return area
|
||||
|
||||
return poly.area
|
||||
|
|
|
|||
|
|
@ -27,14 +27,14 @@
|
|||
<item>
|
||||
<widget class="QPushButton" name="pushButton_generate_1">
|
||||
<property name="text">
|
||||
<string>Generate from height</string>
|
||||
<string>Generate height</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_generate_2">
|
||||
<property name="text">
|
||||
<string>Generate from discharge</string>
|
||||
<string>Generate discharge</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
|||
|
|
@ -2168,13 +2168,13 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../View/ui/InitialConditions.ui" line="30"/>
|
||||
<source>Generate from height</source>
|
||||
<translation>Générer pour une hauteur donnée</translation>
|
||||
<source>Generate height</source>
|
||||
<translation>Générer une hauteur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../View/ui/InitialConditions.ui" line="37"/>
|
||||
<source>Generate from discharge</source>
|
||||
<translation>Générer pour un débit donné</translation>
|
||||
<source>Generate discharge</source>
|
||||
<translation>Générer un débit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../View/ui/InitialConditions.ui" line="98"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue