Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
tests, project store and other
not yet working all translations project handling can be improved project store after translation working and fix some errors tests not ready yet
- Loading branch information
Showing
with
1,110 additions
and 68 deletions.
- +1 −1 python/core/auto_generated/qgseditformconfig.sip.in
- +37 −0 python/core/auto_generated/qgsproject.sip.in
- +79 −0 python/core/auto_generated/qgstranslationcontext.sip.in
- +1 −0 python/core/core_auto.sip
- +1 −1 src/app/qgisapp.cpp
- +6 −0 src/app/qgsprojectproperties.cpp
- +3 −0 src/app/qgsprojectproperties.h
- +4 −4 src/core/qgseditformconfig.cpp
- +1 −1 src/core/qgseditformconfig.h
- +2 −1 src/core/qgsmaplayer.cpp
- +47 −15 src/core/qgsproject.cpp
- +9 −13 src/core/qgsproject.h
- +8 −5 src/core/qgstranslationcontext.cpp
- +7 −1 src/core/qgstranslationcontext.h
- +0 −3 src/core/qgsvectorlayer.cpp
- +10 −3 src/ui/qgsprojectpropertiesbase.ui
- +97 −20 tests/src/core/testqgstranslateproject.cpp
- +797 −0 tests/testdata/project_translation/points_translation.qgs
- BIN tests/testdata/project_translation/points_translation_de.qm
@@ -0,0 +1,79 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgstranslationcontext.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsTranslationContext | ||
{ | ||
%Docstring | ||
used for the collecting of strings of .qgs to be translated and writing of ts file | ||
|
||
.. versionadded:: 3.2 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgstranslationcontext.h" | ||
%End | ||
public: | ||
|
||
QgsTranslationContext( ); | ||
%Docstring | ||
Constructor | ||
%End | ||
|
||
QgsProject *project() const; | ||
%Docstring | ||
Returns the project | ||
|
||
.. seealso:: :py:func:`setProject` | ||
%End | ||
|
||
void setProject( QgsProject *project ); | ||
%Docstring | ||
Sets the ``project`` where the translation need to be done for | ||
|
||
.. seealso:: :py:func:`project` | ||
%End | ||
|
||
QString fileName() const; | ||
%Docstring | ||
Returns the TS fileName | ||
|
||
.. seealso:: :py:func:`setFileName` | ||
%End | ||
|
||
void setFileName( const QString &fileName ); | ||
%Docstring | ||
Sets the ``name`` of the TS file | ||
|
||
.. seealso:: :py:func:`fileName` | ||
%End | ||
|
||
void registerTranslation( const QString &context, const QString &source ); | ||
%Docstring | ||
Registers the ``string`` to be translated | ||
|
||
:param translationString: name and path of the object need to be translated | ||
:param layerName: the name of the layer | ||
%End | ||
|
||
void writeTsFile( ); | ||
%Docstring | ||
Writes the Ts-file | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgstranslationcontext.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
Oops, something went wrong.