Scribus
Open source desktop publishing at your fingertips
CommonStrings Class Reference

A simple common strings class to reduce the string count and ease the translation process a little. More...

#include <commonstrings.h>

Inheritance diagram for CommonStrings:
Collaboration diagram for CommonStrings:

Public Member Functions

virtual void changeEvent (QEvent *e)
 

Static Public Member Functions

static const QString & translatePageSetString (const QString &untrString)
 Return the translated Page Set string if given the "untranslated" one. More...
 
static const QString & translatePageSetLocString (const QString &untrString)
 Return the translated Page Set Location string if given the "untranslated" one. More...
 
static const QString & untranslatePageSetString (const QString &trString)
 Return the untranslated Page Set string if given the translated one. More...
 
static const QString & untranslatePageSetLocString (const QString &trString)
 Return the untranslated Page Set Location string if given the translated one. More...
 
static const QString & translatePenStyleName (Qt::PenStyle ps)
 Return the untranslated Page Set Location string if given the translated one. More...
 
static void languageChange ()
 

Static Public Attributes

static QString _Apply = ""
 
static QString tr_Apply = ""
 
static QString _Cancel = ""
 
static QString tr_Cancel = ""
 
static QString None = ""
 
static QString tr_None = ""
 
static QString tr_NoneColor = ""
 
static QString _OK = ""
 
static QString tr_OK = ""
 
static QString _Save = ""
 
static QString tr_Save = ""
 
static QString Warning = ""
 
static QString trWarning = ""
 
static QString trYes = ""
 Translated "Yes".
 
static QString trNo = ""
 Translated "No".
 
static QString trYesKey = ""
 Translated "Yes" with key accelerator "&Yes".
 
static QString trNoKey = ""
 Translated "No" with key accelerator "&No".
 
static QString itemType_TextFrame = ""
 
static QString itemType_ImageFrame = ""
 
static QString itemType_Line = ""
 
static QString itemType_Polygon = ""
 
static QString itemType_Polyline = ""
 
static QString itemType_PathText = ""
 
static QString itemType_LatexFrame = ""
 
static QString itemType_OSGFrame = ""
 
static QString itemType_Symbol = ""
 
static QString itemType_Group = ""
 
static QString itemType_RegularPolygon = ""
 
static QString itemType_Arc = ""
 
static QString itemType_Spiral = ""
 
static QString itemType_Table = ""
 
static QString itemType_Multiple = ""
 
static QString itemSubType_PDF_PushButton = ""
 
static QString itemSubType_PDF_RadioButton = ""
 
static QString itemSubType_PDF_TextField = ""
 
static QString itemSubType_PDF_CheckBox = ""
 
static QString itemSubType_PDF_ComboBox = ""
 
static QString itemSubType_PDF_ListBox = ""
 
static QString itemSubType_PDF_TextAnnotation = ""
 
static QString itemSubType_PDF_LinkAnnotation = ""
 
static QString itemName_PushButton = ""
 
static QString itemName_RadioButton = ""
 
static QString itemName_TextField = ""
 
static QString itemName_CheckBox = ""
 
static QString itemName_ComboBox = ""
 
static QString itemName_ListBox = ""
 
static QString itemName_TextAnnotation = ""
 
static QString itemName_LinkAnnotation = ""
 
static QString customPageSize = ""
 
static QString trCustomPageSize = ""
 
static QString pageSet1 = ""
 
static QString pageSet2 = ""
 
static QString pageSet3 = ""
 
static QString pageSet4 = ""
 
static QString trPageSet1 = ""
 
static QString trPageSet2 = ""
 
static QString trPageSet3 = ""
 
static QString trPageSet4 = ""
 
static QString pageLocLeft = ""
 
static QString pageLocMiddle = ""
 
static QString pageLocMiddleLeft = ""
 
static QString pageLocMiddleRight = ""
 
static QString pageLocRight = ""
 
static QString trPageLocLeft = ""
 
static QString trPageLocMiddle = ""
 
static QString trPageLocMiddleLeft = ""
 
static QString trPageLocMiddleRight = ""
 
static QString trPageLocRight = ""
 
static QString masterPageNormal = ""
 
static QString trMasterPageNormal = ""
 
static QString masterPageNormalLeft = ""
 
static QString trMasterPageNormalLeft = ""
 
static QString masterPageNormalMiddle = ""
 
static QString trMasterPageNormalMiddle = ""
 
static QString masterPageNormalRight = ""
 
static QString trMasterPageNormalRight = ""
 
static QString trPenStyle_SolidLine = ""
 
static QString trPenStyle_DashedLine = ""
 
static QString trPenStyle_DottedLine = ""
 
static QString trPenStyle_DashDotLine = ""
 
static QString trPenStyle_DashDotDotLine = ""
 
static QString DefaultParagraphStyle =""
 
static QString DefaultCharacterStyle =""
 
static QString DefaultLineStyle =""
 
static QString DefaultTableStyle =""
 
static QString DefaultCellStyle =""
 
static QString trDefaultParagraphStyle =""
 
static QString trDefaultCharacterStyle =""
 
static QString trDefaultLineStyle =""
 
static QString trDefaultTableStyle =""
 
static QString trDefaultCellStyle =""
 
static QString monday =""
 
static QString tuesday =""
 
static QString wednesday =""
 
static QString thursday =""
 
static QString friday =""
 
static QString saturday =""
 
static QString sunday =""
 
static QString january =""
 
static QString february =""
 
static QString march =""
 
static QString april =""
 
static QString may =""
 
static QString june =""
 
static QString july =""
 
static QString august =""
 
static QString september =""
 
static QString october =""
 
static QString november =""
 
static QString december =""
 
static QString trRGB = ""
 
static QString trCMYK = ""
 
static QString trGrayscale = ""
 
static QString trDuotone = ""
 
static QString trMonochrome = ""
 
static QString trUnknownCS = ""
 
static QString trVisionNormal = ""
 
static QString trVisionProtanopia = ""
 
static QString trVisionDeuteranopia = ""
 
static QString trVisionTritanopia = ""
 
static QString trVisionFullColorBlind = ""
 
static QString trCustomTabFill = ""
 
static QString trOpticalMarginsNone = ""
 
static QString trOpticalMarginsLeftProtruding = ""
 
static QString trOpticalMarginsRightProtruding = ""
 
static QString trOpticalMarginsLeftHangPunct = ""
 
static QString trOpticalMarginsRightHangPunct = ""
 
static QString trOpticalMarginsDefault = ""
 
static QString trMinWordTracking = ""
 
static QString trMaxWordTracking = ""
 
static QString trMinGlyphExtension = ""
 
static QString trMaxGlyphExtension = ""
 
static QString PostScript = ""
 
static QString trPostScript = ""
 
static QString PDF_1_3 = ""
 
static QString PDF_1_4 = ""
 
static QString PDF_1_5 = ""
 
static QString PDF_X1a = ""
 
static QString PDF_X3 = ""
 
static QString PDF_X4 = ""
 
static QString PostScript1 = ""
 
static QString trPostScript1 = ""
 
static QString PostScript2 = ""
 
static QString trPostScript2 = ""
 
static QString PostScript3 = ""
 
static QString trPostScript3 = ""
 
static QString WindowsGDI = ""
 
static QString trWindowsGDI = ""
 
static QString trStrPT = ""
 
static QString trStrMM = ""
 
static QString trStrIN = ""
 
static QString trStrP = ""
 
static QString trStrCM = ""
 
static QString trStrC = ""
 
static QString trStrPX = ""
 
static QString strPT = ""
 
static QString strMM = ""
 
static QString strIN = ""
 
static QString strP = ""
 
static QString strCM = ""
 
static QString strC = ""
 
static QString strPX = ""
 
static QString controlModifier = ""
 
static QString altModifier = ""
 
static QString shiftModifier = ""
 
static QString metaModifier = ""
 

Detailed Description

A simple common strings class to reduce the string count and ease the translation process a little.

  • Contains untranslated and translated versions of the strings to help with reduction of future reliance of translated strings in "real" code
  • Currently stores GUI strings such as &OK and its translated version, but not the string without the &.
  • BE CAREFUL with context. Simple strings should be stored here that are obviously a verb or a noun, and if multiple contexts don't have different translations relating to verb/noun/gender in some languages. This is the reason basic words have been done initially.

trNone = tr("None") was removed because it's problematic in East European langiages.

Member Function Documentation

const QString & CommonStrings::translatePageSetLocString ( const QString &  untrString)
static

Return the translated Page Set Location string if given the "untranslated" one.

Parameters
untrString"untranslated" string
Returns
translated string
const QString & CommonStrings::translatePageSetString ( const QString &  untrString)
static

Return the translated Page Set string if given the "untranslated" one.

Parameters
untrString"untranslated" string
Returns
translated string
const QString & CommonStrings::translatePenStyleName ( Qt::PenStyle  ps)
static

Return the untranslated Page Set Location string if given the translated one.

Parameters
trStringtranslated string
Returns
"untranslated" string
const QString & CommonStrings::untranslatePageSetLocString ( const QString &  trString)
static

Return the untranslated Page Set Location string if given the translated one.

Parameters
trStringtranslated string
Returns
"untranslated" string
const QString & CommonStrings::untranslatePageSetString ( const QString &  trString)
static

Return the untranslated Page Set string if given the translated one.

Parameters
trStringtranslated string
Returns
"untranslated" string

The documentation for this class was generated from the following files: