File: untranslatable-error-msg.diff

package info (click to toggle)
musescore3 3.2.3%2Bdfsg2-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 219,852 kB
  • sloc: cpp: 291,412; xml: 200,226; sh: 3,779; ansic: 1,447; python: 393; makefile: 246; perl: 82; pascal: 79
file content (39 lines) | stat: -rw-r--r-- 1,503 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Fix #286666: Error message when no note selected untranslatable
 Also translate the string for the "Unknown error" case
Author: Joachim Schmitz <jojo@schmitz-digital.de>
Origin: upstream, commit:855956e5087ed48b9588444f09a4d5da7ef79b17
Applied-Upstream: master, commit:742e06641

--- a/libmscore/mscore.cpp
+++ b/libmscore/mscore.cpp
@@ -421,7 +421,7 @@ const char* MScore::errorMessage()
             if (e.no == _error)
                   return e.txt;
             }
-      return "unknown error";
+      return QT_TRANSLATE_NOOP("error", "Unknown error");
       }
 
 //---------------------------------------------------------
--- a/mscore/musescore.cpp
+++ b/mscore/musescore.cpp
@@ -1934,7 +1934,7 @@ void MuseScore::showError()
       static QErrorMessage* msg = 0;
       if (msg == 0)
             msg = new QErrorMessage(this);
-      msg->showMessage(tr(MScore::errorMessage()), MScore::errorGroup());
+      msg->showMessage(qApp->translate("error", MScore::errorMessage()), MScore::errorGroup());
       MScore::setError(MS_NO_ERROR);
       }
 
--- a/share/locale/mscore_en_GB.ts
+++ b/share/locale/mscore_en_GB.ts
@@ -11303,7 +11303,7 @@ failed: %1</translation>
     <message>
         <location filename="../../mscore/editstyle.cpp" line="568"/>
         <source>Square</source>
-        <translation>Ractangle</translation>
+        <translation>Rectangle</translation>
     </message>
     <message>
         <location filename="../../mscore/editstyle.cpp" line="569"/>