Skip to content

Commit 2ab8a0b

Browse files
committedMay 30, 2015
include user.py in translations
1 parent 96b535b commit 2ab8a0b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed
 

‎python/core/qgspallabeling.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ class QgsPalLabeling : QgsLabelingEngineInterface
772772
* @note added in QGIS 2.9
773773
*/
774774
static QStringList splitToLines( const QString& text, const QString& wrapCharacter );
775-
775+
776776
/** Splits a text string to a list of graphemes, which are the smallest allowable character
777777
* divisions in the string. This accounts for scripts were individual characters are not
778778
* allowed to be split apart (eg Arabic and Indic based scripts)

‎python/user.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ def load_user_expressions(path):
2323
except:
2424
error = traceback.format_exc()
2525
msgtitle = QCoreApplication.translate("UserExpressions", "User expressions")
26-
msg = QCoreApplication.translate("UserExpressions",
27-
"The user expression {0} is not valid".format(name))
26+
msg = QCoreApplication.translate("UserExpressions", "The user expression {0} is not valid").format(name)
2827
QgsMessageLog.logMessage(msg +"\n"+ error, msgtitle, QgsMessageLog.WARNING)
2928

3029

‎scripts/update_ts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fi
8888

8989
echo Updating python translations
9090
cd python
91-
pylupdate4 utils.py {console,pyplugin_installer}/*.{py,ui} -ts python-i18n.ts
91+
pylupdate4 user.py utils.py {console,pyplugin_installer}/*.{py,ui} -ts python-i18n.ts
9292
perl ../scripts/ts2cpp.pl python-i18n.ts python-i18n.cpp
9393
rm python-i18n.ts
9494
cd ..

0 commit comments

Comments
 (0)
Please sign in to comment.