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
#!/bin/sh | |
# | |
# --------------------------------------------------------------------- | |
# Android Studio startup script. | |
# --------------------------------------------------------------------- | |
# | |
message() | |
{ | |
TITLE="Cannot start Android Studio" |
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
#!/usr/bin/python | |
import argparse | |
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_') | |
args = vars(parser.parse_args()) | |
xmlString = ' <string name=\"{0}\">{1}</string>' |