![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
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 | |
def update-translations.all_ts_files | ( | suffix = '' | ) |
Definition at line 97 of file update-translations.py.
Referenced by postprocess_translations().
def update-translations.check_at_repository_root | ( | ) |
Definition at line 35 of file update-translations.py.
Referenced by postprocess_translations().
def update-translations.check_format_specifiers | ( | source, | |
translation, | |||
errors, | |||
numerus | |||
) |
Definition at line 78 of file update-translations.py.
Referenced by postprocess_translations().
def update-translations.escape_cdata | ( | text | ) |
Definition at line 115 of file update-translations.py.
def update-translations.fetch_all_translations | ( | ) |
Definition at line 41 of file update-translations.py.
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().
def update-translations.postprocess_translations | ( | reduce_diff_hacks = False | ) |
Definition at line 121 of file update-translations.py.
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().
def update-translations.sanitize_string | ( | s | ) |
Sanitize string for printing
Definition at line 74 of file update-translations.py.
Referenced by check_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().
|
private |
Definition at line 114 of file update-translations.py.
Referenced by escape_cdata().
update-translations.FIX_RE = re.compile(b'[\x00-\x09\x0b\x0c\x0e-\x1f]') |
Definition at line 107 of file update-translations.py.
string update-translations.LOCALE_DIR = 'src/qt/locale' |
Definition at line 31 of file update-translations.py.
int update-translations.MIN_NUM_MESSAGES = 10 |
Definition at line 33 of file update-translations.py.
string update-translations.SOURCE_LANG = 'dash_en.ts' |
Definition at line 29 of file update-translations.py.
string update-translations.TX = 'tx' |
Definition at line 27 of file update-translations.py.