• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

lokalize

  • sources
  • kde-4.14
  • kdesdk
  • lokalize
  • src
  • catalog
Macros | Functions | Variables
catalog.cpp File Reference
#include "catalog.h"
#include "catalog_private.h"
#include "project.h"
#include "projectmodel.h"
#include "catalogstorage.h"
#include "gettextstorage.h"
#include "gettextimport.h"
#include "gettextexport.h"
#include "xliffstorage.h"
#include "tsstorage.h"
#include "mergecatalog.h"
#include "version.h"
#include "prefs_lokalize.h"
#include "jobs.h"
#include <threadweaver/ThreadWeaver.h>
#include <QProcess>
#include <QString>
#include <QMap>
#include <kdebug.h>
#include <kglobal.h>
#include <klocale.h>
#include <kdatetime.h>
#include <kio/netaccess.h>
#include <ktemporaryfile.h>
#include "catalog.moc"
Include dependency graph for catalog.cpp:

Go to the source code of this file.

Macros

#define DOESNTEXIST   -1
 
#define ISNTREADABLE   -2
 
#define UNKNOWNFORMAT   -3
 

Functions

static DocPosition alterForSinglePlural (const Catalog *th, DocPosition pos)
 
TargetState closestState (bool approved, ProjectLocal::PersonRole role)
 
int findNextInList (const QLinkedList< int > &list, int index)
 
int findPrevInList (const QLinkedList< int > &list, int index)
 
void insertInList (QLinkedList< int > &list, int index)
 
bool isApproved (TargetState state, ProjectLocal::PersonRole role)
 
bool isApproved (TargetState state)
 
static void updateDB (const QString &filePath, const QString &ctxt, const CatalogString &english, const CatalogString &newTarget, int form, bool approved)
 

Variables

static const char *const extensions [] ={".po",".pot",".xlf", ".ts"}
 
static const char *const xliff_states []
 

Macro Definition Documentation

#define DOESNTEXIST   -1

Definition at line 485 of file catalog.cpp.

#define ISNTREADABLE   -2

Definition at line 486 of file catalog.cpp.

#define UNKNOWNFORMAT   -3

Definition at line 487 of file catalog.cpp.

Function Documentation

static DocPosition alterForSinglePlural ( const Catalog *  th,
DocPosition  pos 
)
static

Definition at line 179 of file catalog.cpp.

TargetState closestState ( bool  approved,
ProjectLocal::PersonRole  role 
)

Definition at line 1005 of file catalog.cpp.

int findNextInList ( const QLinkedList< int > &  list,
int  index 
)

Definition at line 950 of file catalog.cpp.

int findPrevInList ( const QLinkedList< int > &  list,
int  index 
)

Definition at line 964 of file catalog.cpp.

void insertInList ( QLinkedList< int > &  list,
int  index 
)

Definition at line 976 of file catalog.cpp.

bool isApproved ( TargetState  state,
ProjectLocal::PersonRole  role 
)

Definition at line 993 of file catalog.cpp.

bool isApproved ( TargetState  state)

Definition at line 999 of file catalog.cpp.

static void updateDB ( const QString &  filePath,
const QString &  ctxt,
const CatalogString &  english,
const CatalogString &  newTarget,
int  form,
bool  approved 
)
static

helper method to keep db in a good shape :) called on 1) entry switch 2) automatic editing code like replace or undo/redo operation

Definition at line 722 of file catalog.cpp.

Variable Documentation

const char* const extensions[] ={".po",".pot",".xlf", ".ts"}
static

Definition at line 72 of file catalog.cpp.

const char* const xliff_states[]
static
Initial value:
={
I18N_NOOP("New"),I18N_NOOP("Needs translation"),I18N_NOOP("Needs full localization"),I18N_NOOP("Needs adaptation"),I18N_NOOP("Translated"),
I18N_NOOP("Needs translation review"),I18N_NOOP("Needs full localization review"),I18N_NOOP("Needs adaptation review"),I18N_NOOP("Final"),
I18N_NOOP("Signed-off")}

Definition at line 74 of file catalog.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

lokalize

Skip menu "lokalize"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal