mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
include user.py in translations
This commit is contained in:
parent
96b535b279
commit
2ab8a0bed9
@ -772,7 +772,7 @@ class QgsPalLabeling : QgsLabelingEngineInterface
|
||||
* @note added in QGIS 2.9
|
||||
*/
|
||||
static QStringList splitToLines( const QString& text, const QString& wrapCharacter );
|
||||
|
||||
|
||||
/** Splits a text string to a list of graphemes, which are the smallest allowable character
|
||||
* divisions in the string. This accounts for scripts were individual characters are not
|
||||
* allowed to be split apart (eg Arabic and Indic based scripts)
|
||||
|
@ -23,8 +23,7 @@ def load_user_expressions(path):
|
||||
except:
|
||||
error = traceback.format_exc()
|
||||
msgtitle = QCoreApplication.translate("UserExpressions", "User expressions")
|
||||
msg = QCoreApplication.translate("UserExpressions",
|
||||
"The user expression {0} is not valid".format(name))
|
||||
msg = QCoreApplication.translate("UserExpressions", "The user expression {0} is not valid").format(name)
|
||||
QgsMessageLog.logMessage(msg +"\n"+ error, msgtitle, QgsMessageLog.WARNING)
|
||||
|
||||
|
||||
|
@ -88,7 +88,7 @@ fi
|
||||
|
||||
echo Updating python translations
|
||||
cd python
|
||||
pylupdate4 utils.py {console,pyplugin_installer}/*.{py,ui} -ts python-i18n.ts
|
||||
pylupdate4 user.py utils.py {console,pyplugin_installer}/*.{py,ui} -ts python-i18n.ts
|
||||
perl ../scripts/ts2cpp.pl python-i18n.ts python-i18n.cpp
|
||||
rm python-i18n.ts
|
||||
cd ..
|
||||
|
Loading…
x
Reference in New Issue
Block a user