-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
like make a list copy before go through for loop and log messages
- Loading branch information
Showing
10 changed files
with
213 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsprojecttranslator.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsProjectTranslator | ||
{ | ||
%Docstring | ||
This abstract class is to call translate() for project data from wherever QgsReadWriteContext is available. | ||
|
||
.. versionadded:: 3.4 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsprojecttranslator.h" | ||
%End | ||
public: | ||
|
||
|
||
virtual QString translate( const QString &context, const QString &sourceText, const char *disambiguation = 0, int n = -1 ) const = 0; | ||
%Docstring | ||
This method needs to be reimplemented in all classes which implement this interface | ||
|
||
.. versionadded:: 3.4 | ||
%End | ||
|
||
virtual ~QgsProjectTranslator(); | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsprojecttranslator.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.4 | ||
%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( const QString &locale ); | ||
%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 * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters