Skip to content

Commit

Permalink
extract messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody committed Jul 2, 2024
1 parent aa873b5 commit b78e666
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 27 deletions.
3 changes: 3 additions & 0 deletions libresvip/plugins/acep/acep.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ msgstr ""
msgid "Conversion Plugin for ACE Studio project file"
msgstr ""

msgid "Unsupported project version"
msgstr ""

msgid "Chinese"
msgstr ""

Expand Down
3 changes: 2 additions & 1 deletion libresvip/plugins/acep/acep_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from libresvip.core.compat import json, zstd
from libresvip.core.exceptions import UnsupportedProjectVersionError
from libresvip.model.base import BaseModel
from libresvip.utils.translation import gettext_lazy as _


class AcepDebug(BaseModel):
Expand All @@ -28,7 +29,7 @@ class AcepFile(BaseModel):
@classmethod
def version_validator(cls, value: int, _info: ValidationInfo) -> int:
if value < 1000:
msg = "Unsupported project version"
msg = _("Unsupported project version")
raise UnsupportedProjectVersionError(msg)
return value

Expand Down
9 changes: 9 additions & 0 deletions libresvip/plugins/svp/svp.po
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
msgid "Compatible with SynthesizerV Studio 1.9.0 and below"
msgstr ""

msgid "Incompatible with SynthesizerV Studio 1.9.0 and below"
msgstr ""

msgid "Mandarin"
msgstr ""

Expand Down Expand Up @@ -109,6 +115,9 @@ msgid ""
" ensure the paragraph division is not broken."
msgstr ""

msgid "Version compatibility"
msgstr ""

msgid "The way to handle vibrato notes"
msgstr ""

Expand Down
3 changes: 2 additions & 1 deletion libresvip/plugins/tssln/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from libresvip.core.exceptions import UnsupportedProjectVersionError
from libresvip.model.base import BaseModel
from libresvip.utils.translation import gettext_lazy as _

from .value_tree import JUCENode, JUCEVarTypes

Expand Down Expand Up @@ -281,7 +282,7 @@ class VoiSonaProject(BaseModel):
@classmethod
def version_validator(cls, value: str, _info: ValidationInfo) -> str:
if Version(value) < Version("1.8"):
msg = f"Unsupported project version {value}"
msg = _("Unsupported project version") + f" {value}"
raise UnsupportedProjectVersionError(msg)
return value

Expand Down
3 changes: 3 additions & 0 deletions libresvip/plugins/tssln/tssln.po
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
msgid "Unsupported project version"
msgstr ""

msgid "TSSln"
msgstr ""

Expand Down
50 changes: 25 additions & 25 deletions libresvip/res/libresvip.po
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ msgctxt "QPlatformTheme"
msgid "N&o to All"
msgstr ""

#: ../libresvip/utils/audio.py:35 ../libresvip/utils/audio.py:91
#: ../libresvip/utils/audio.py:48 ../libresvip/utils/audio.py:104
msgid "Audio file not found: "
msgstr ""

Expand All @@ -910,7 +910,7 @@ msgstr ""

#: ../libresvip/web/pages.py:276 ../libresvip/web/pages.py:293
#: ../libresvip/web/pages.py:1174 ../libresvip/web/pages.py:1193
#: ../libresvip/web/pages.py:1699 ../libresvip/web/pages.py:1747
#: ../libresvip/web/pages.py:1701 ../libresvip/web/pages.py:1749
msgid "file_format"
msgstr ""

Expand Down Expand Up @@ -956,8 +956,8 @@ msgstr ""

#: ../libresvip/web/pages.py:657 ../libresvip/web/pages.py:687
#: ../libresvip/web/pages.py:1108 ../libresvip/web/pages.py:1596
#: ../libresvip/web/pages.py:1631 ../libresvip/web/pages.py:1717
#: ../libresvip/web/pages.py:1770
#: ../libresvip/web/pages.py:1633 ../libresvip/web/pages.py:1719
#: ../libresvip/web/pages.py:1772
msgid "Close"
msgstr ""

Expand Down Expand Up @@ -1027,23 +1027,23 @@ msgstr ""
msgid "Convert"
msgstr ""

#: ../libresvip/web/pages.py:1127 ../libresvip/web/pages.py:1783
#: ../libresvip/web/pages.py:1127 ../libresvip/web/pages.py:1785
msgid "Import project"
msgstr ""

#: ../libresvip/web/pages.py:1153 ../libresvip/web/pages.py:1828
#: ../libresvip/web/pages.py:1153 ../libresvip/web/pages.py:1830
msgid "Clear Task List"
msgstr ""

#: ../libresvip/web/pages.py:1160 ../libresvip/web/pages.py:1742
#: ../libresvip/web/pages.py:1160 ../libresvip/web/pages.py:1744
msgid "Swap Input and Output"
msgstr ""

#: ../libresvip/web/pages.py:1163 ../libresvip/web/pages.py:1702
#: ../libresvip/web/pages.py:1163 ../libresvip/web/pages.py:1704
msgid "Import format"
msgstr ""

#: ../libresvip/web/pages.py:1183 ../libresvip/web/pages.py:1750
#: ../libresvip/web/pages.py:1183 ../libresvip/web/pages.py:1752
msgid "Export format"
msgstr ""

Expand Down Expand Up @@ -1083,11 +1083,11 @@ msgstr ""
msgid "Switch Language"
msgstr ""

#: ../libresvip/web/pages.py:1263 ../libresvip/web/pages.py:1726
#: ../libresvip/web/pages.py:1263 ../libresvip/web/pages.py:1728
msgid "Auto detect import format"
msgstr ""

#: ../libresvip/web/pages.py:1268 ../libresvip/web/pages.py:1733
#: ../libresvip/web/pages.py:1268 ../libresvip/web/pages.py:1735
msgid "Reset list when import format changed"
msgstr ""

Expand Down Expand Up @@ -1154,59 +1154,59 @@ msgstr ""
msgid "Advanced Settings"
msgstr ""

#: ../libresvip/web/pages.py:1614 ../libresvip/web/pages.py:1628
#: ../libresvip/web/pages.py:1608
msgid "Maximize"
msgstr ""

#: ../libresvip/web/pages.py:1618
#: ../libresvip/web/pages.py:1609
msgid "Restore"
msgstr ""

#: ../libresvip/web/pages.py:1623
#: ../libresvip/web/pages.py:1625
msgid "Minimize"
msgstr ""

#: ../libresvip/web/pages.py:1690
#: ../libresvip/web/pages.py:1692
msgid "Choose file format"
msgstr ""

#: ../libresvip/web/pages.py:1725 ../libresvip/web/pages.py:1778
#: ../libresvip/web/pages.py:1727 ../libresvip/web/pages.py:1780
msgid "View Detail Information"
msgstr ""

#: ../libresvip/web/pages.py:1785
#: ../libresvip/web/pages.py:1787
msgid "Conversion Mode:"
msgstr ""

#: ../libresvip/web/pages.py:1832
#: ../libresvip/web/pages.py:1834
msgid "Remove Tasks With Other Extensions"
msgstr ""

#: ../libresvip/web/pages.py:1836
#: ../libresvip/web/pages.py:1838
msgid "Max Track count:"
msgstr ""

#: ../libresvip/web/pages.py:1858
#: ../libresvip/web/pages.py:1860
msgid "Continue Adding files"
msgstr ""

#: ../libresvip/web/pages.py:1892
#: ../libresvip/web/pages.py:1894
msgid "Drag and drop files here or click to upload"
msgstr ""

#: ../libresvip/web/pages.py:1921
#: ../libresvip/web/pages.py:1923
msgid "Start Conversion"
msgstr ""

#: ../libresvip/web/pages.py:1929
#: ../libresvip/web/pages.py:1931
msgid "Export"
msgstr ""

#: ../libresvip/web/pages.py:1930
#: ../libresvip/web/pages.py:1932
msgid "Advanced Options"
msgstr ""

#: ../libresvip/web/pages.py:1939
#: ../libresvip/web/pages.py:1941
msgid "Intermediate Processing"
msgstr ""

0 comments on commit b78e666

Please sign in to comment.