Dash Core  0.12.2.1
P2P Digital Currency
update-translations Namespace Reference

Functions

def check_at_repository_root ()
 
def fetch_all_translations ()
 
def find_format_specifiers (s)
 
def split_format_specifiers (specifiers)
 
def sanitize_string (s)
 
def check_format_specifiers (source, translation, errors, numerus)
 
def all_ts_files (suffix='')
 
def remove_invalid_characters (s)
 
def escape_cdata (text)
 
def postprocess_translations (reduce_diff_hacks=False)
 

Variables

string TX = 'tx'
 
string SOURCE_LANG = 'dash_en.ts'
 
string LOCALE_DIR = 'src/qt/locale'
 
int MIN_NUM_MESSAGES = 10
 
 FIX_RE = re.compile(b'[\x00-\x09\x0b\x0c\x0e-\x1f]')
 
 _orig_escape_cdata = None
 

Function Documentation

◆ all_ts_files()

def update-translations.all_ts_files (   suffix = '')

Definition at line 97 of file update-translations.py.

Referenced by postprocess_translations().

◆ check_at_repository_root()

def update-translations.check_at_repository_root ( )

Definition at line 35 of file update-translations.py.

Referenced by postprocess_translations().

◆ check_format_specifiers()

def update-translations.check_format_specifiers (   source,
  translation,
  errors,
  numerus 
)

Definition at line 78 of file update-translations.py.

Referenced by postprocess_translations().

◆ escape_cdata()

def update-translations.escape_cdata (   text)

Definition at line 115 of file update-translations.py.

◆ fetch_all_translations()

def update-translations.fetch_all_translations ( )

Definition at line 41 of file update-translations.py.

◆ find_format_specifiers()

def update-translations.find_format_specifiers (   s)
Find all format specifiers in a string.

Definition at line 46 of file update-translations.py.

Referenced by check_format_specifiers().

◆ postprocess_translations()

def update-translations.postprocess_translations (   reduce_diff_hacks = False)

Definition at line 121 of file update-translations.py.

◆ remove_invalid_characters()

def update-translations.remove_invalid_characters (   s)
Remove invalid characters from translation string

Definition at line 108 of file update-translations.py.

Referenced by postprocess_translations().

◆ sanitize_string()

def update-translations.sanitize_string (   s)
Sanitize string for printing

Definition at line 74 of file update-translations.py.

Referenced by check_format_specifiers().

◆ split_format_specifiers()

def update-translations.split_format_specifiers (   specifiers)
Split format specifiers between numeric (Qt) and others (strprintf)

Definition at line 61 of file update-translations.py.

Referenced by check_format_specifiers().

Variable Documentation

◆ _orig_escape_cdata

update-translations._orig_escape_cdata = None
private

Definition at line 114 of file update-translations.py.

Referenced by escape_cdata().

◆ FIX_RE

update-translations.FIX_RE = re.compile(b'[\x00-\x09\x0b\x0c\x0e-\x1f]')

Definition at line 107 of file update-translations.py.

◆ LOCALE_DIR

string update-translations.LOCALE_DIR = 'src/qt/locale'

Definition at line 31 of file update-translations.py.

◆ MIN_NUM_MESSAGES

int update-translations.MIN_NUM_MESSAGES = 10

Definition at line 33 of file update-translations.py.

◆ SOURCE_LANG

string update-translations.SOURCE_LANG = 'dash_en.ts'

Definition at line 29 of file update-translations.py.

◆ TX

string update-translations.TX = 'tx'

Definition at line 27 of file update-translations.py.