You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Replacing values in arrays.xml with @string/ links. Generates three new files for each locale:
strings.xml (edited strings.xml containing the only the actual strings) and
string_arrays.xml (contains string-arrays pointing to the strings, don\'t localize)
strings.xml.bak (original strings.xml file)''',
epilog='''\
Run from the root of your project to automatically handle all languages (if the translations
are in an inconsistent state, no effort is made to fix them)'''
)
parser=argparse.ArgumentParser(description='Replacing values in arrays.xml with @string/ links. Generates two new files: <input>.new (edited arrays.xml containing the string links) and <input>.strings (resources file containing the new string keys)')
parser.add_argument('-i', '--input', help='Input file, e.g. arrays.xml', metavar='FILE', required=True)
parser.add_argument('-i', '--input', help='Input file, e.g. strings.xml', metavar='FILE', default='strings.xml')
parser.add_argument('-p', '--prefix', help='Optional prefix added to each new string key, e.g. array_')
parser.add_argument('-o', '--output', help='Optional name to use instead of string-arrays.xml', default='string-arrays.xml')
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parser=argparse.ArgumentParser(description='Replacing values in arrays.xml with @string/ links. Generates two new files: <input>.new (edited arrays.xml containing the string links) and <input>.strings (resources file containing the new string keys)')
parser.add_argument('-i', '--input', help='Input file, e.g. arrays.xml', metavar='FILE', required=True)
parser.add_argument('-p', '--prefix', help='Optional prefix added to each new string key, e.g. array_')