-
-
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.
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
19 changed files
with
1,110 additions
and
68 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,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 * | ||
************************************************************************/ |
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
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
Oops, something went wrong.