mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-09-29 17:01:23 +13:00
Updating french translation
This commit is contained in:
parent
e230e2b6cc
commit
a9ac94a734
3 changed files with 264 additions and 189 deletions
Binary file not shown.
File diff suppressed because it is too large
Load diff
|
@ -6,6 +6,9 @@ from enums import *
|
||||||
from ui.editors.mainEditor_ui import *
|
from ui.editors.mainEditor_ui import *
|
||||||
from ui.editors.editorWidget import *
|
from ui.editors.editorWidget import *
|
||||||
from functions import *
|
from functions import *
|
||||||
|
import locale
|
||||||
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
|
|
||||||
|
|
||||||
class mainEditor(QWidget, Ui_mainEditor):
|
class mainEditor(QWidget, Ui_mainEditor):
|
||||||
|
|
||||||
|
@ -166,10 +169,13 @@ class mainEditor(QWidget, Ui_mainEditor):
|
||||||
drawProgress(p, rect, progress, 2)
|
drawProgress(p, rect, progress, 2)
|
||||||
del p
|
del p
|
||||||
self.lblRedacProgress.setPixmap(self.px)
|
self.lblRedacProgress.setPixmap(self.px)
|
||||||
self.lblRedacWC.setText(self.tr("{} words / {}").format(wc, goal))
|
self.lblRedacWC.setText(self.tr("{} words / {}").format(
|
||||||
|
locale.format("%d", wc, grouping=True),
|
||||||
|
locale.format("%d", goal, grouping=True)))
|
||||||
else:
|
else:
|
||||||
self.lblRedacProgress.hide()
|
self.lblRedacProgress.hide()
|
||||||
self.lblRedacWC.setText(self.tr("{} words").format(wc))
|
self.lblRedacWC.setText(self.tr("{} words").format(
|
||||||
|
locale.format("%d", wc, grouping=True)))
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# VIEWS
|
# VIEWS
|
||||||
|
|
Loading…
Reference in a new issue