mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
80 lines
2.1 KiB
Plaintext
80 lines
2.1 KiB
Plaintext
/************************************************************************
|
|
* 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 *
|
|
************************************************************************/
|