|
Bitcoin
|
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 | contains_bitcoin_addr (text, errors) |
| def | postprocess_translations (reduce_diff_hacks=False) |
Variables | |
| string | TX = 'tx' |
| string | SOURCE_LANG = 'bitcoin_en.ts' |
| string | LOCALE_DIR = 'src/qt/locale' |
| int | MIN_NUM_MESSAGES = 10 |
| ADDRESS_REGEXP = re.compile('([13]|bc1)[a-zA-Z0-9]{30,}') | |
| FIX_RE = re.compile(b'[\x00-\x09\x0b\x0c\x0e-\x1f]') | |
| _orig_escape_cdata = None | |
| def update-translations.all_ts_files | ( | suffix = '' | ) |
| def update-translations.check_at_repository_root | ( | ) |
| def update-translations.check_format_specifiers | ( | source, | |
| translation, | |||
| errors, | |||
| numerus | |||
| ) |
| def update-translations.contains_bitcoin_addr | ( | text, | |
| errors | |||
| ) |
| def update-translations.escape_cdata | ( | text | ) |
| def update-translations.fetch_all_translations | ( | ) |
| def update-translations.find_format_specifiers | ( | s | ) |
Find all format specifiers in a string.
| def update-translations.postprocess_translations | ( | reduce_diff_hacks = False | ) |
| def update-translations.remove_invalid_characters | ( | s | ) |
Remove invalid characters from translation string
| def update-translations.sanitize_string | ( | s | ) |
Sanitize string for printing
| def update-translations.split_format_specifiers | ( | specifiers | ) |
Split format specifiers between numeric (Qt) and others (strprintf)
|
private |
| update-translations.ADDRESS_REGEXP = re.compile('([13]|bc1)[a-zA-Z0-9]{30,}') |
| update-translations.FIX_RE = re.compile(b'[\x00-\x09\x0b\x0c\x0e-\x1f]') |
| string update-translations.LOCALE_DIR = 'src/qt/locale' |
| int update-translations.MIN_NUM_MESSAGES = 10 |
| string update-translations.SOURCE_LANG = 'bitcoin_en.ts' |
| string update-translations.TX = 'tx' |
1.8.15