mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
updating documentation concerning csv path notation
This commit is contained in:
parent
443fca9b5a
commit
504240a57f
@ -9,12 +9,12 @@ All of these scripts provide more details on usage by calling the script with `-
|
|||||||
|
|
||||||
## Basic Localization Update Workflow
|
## Basic Localization Update Workflow
|
||||||
|
|
||||||
1. Call `python3 diffscript.py <output path> -l <language>` to generate a csv file containing differences in properties file values from the language's previous commit to the `HEAD` commit. The language identifier should be the abbreviated identifier used for the bundle (i.e. 'ja' for Japanese).
|
1. Call `python3 diffscript.py <output path> -l <language>` to generate a csv file containing differences in properties file values from the language's previous commit to the `HEAD` commit. The language identifier should be the abbreviated identifier used for the bundle (i.e. 'ja' for Japanese). The output path should be specified as a relative path with the dot slash notation (i.e. `./outputpath.csv`) or an absolute path.
|
||||||
2. Update csv file with translations
|
2. Update csv file with translations
|
||||||
3. Call `python3 updatepropsscript.py <input path> -l <language>` to update properties files based on the newly generated csv file. The csv file should be formatted such that the columns are bundle relative path, property files key, translated value and commit id for the latest commit id for which these changes represent. The commit id only needs to be in the header row.
|
3. Call `python3 updatepropsscript.py <input path> -l <language>` to update properties files based on the newly generated csv file. The csv file should be formatted such that the columns are bundle relative path, property files key, translated value and commit id for the latest commit id for which these changes represent. The commit id only needs to be in the header row. The output path should be specified as a relative path with the dot slash notation (i.e. `./outputpath.csv`) or an absolute path.
|
||||||
|
|
||||||
## Localization Generation for the First Time
|
## Localization Generation for the First Time
|
||||||
First-time updates should follow a similar procedure except that instead of calling `diffscript.py`, call `python3 allbundlesscript <output path>` to generate a csv file with relative paths of bundle files, property file keys, property file values.
|
First-time updates should follow a similar procedure except that instead of calling `diffscript.py`, call `python3 allbundlesscript <output path>` to generate a csv file with relative paths of bundle files, property file keys, property file values. The output path should be specified as a relative path with the dot slash notation (i.e. `./inputpath.csv`) or an absolute path.
|
||||||
|
|
||||||
##Unit Tests
|
##Unit Tests
|
||||||
Unit tests can be run from this directory using `python3 -m unittest`.
|
Unit tests can be run from this directory using `python3 -m unittest`.
|
@ -51,7 +51,9 @@ def main():
|
|||||||
parser = argparse.ArgumentParser(description='Gathers all key-value pairs within .properties-MERGED files into '
|
parser = argparse.ArgumentParser(description='Gathers all key-value pairs within .properties-MERGED files into '
|
||||||
'one csv file.',
|
'one csv file.',
|
||||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||||
parser.add_argument(dest='output_path', type=str, help='The path to the output csv file.')
|
parser.add_argument(dest='output_path', type=str, help='The path to the output csv file. The output path should be'
|
||||||
|
' specified as a relative path with the dot slash notation '
|
||||||
|
'(i.e. \'./outputpath.csv\') or an absolute path.')
|
||||||
parser.add_argument('-r', '--repo', dest='repo_path', type=str, required=False,
|
parser.add_argument('-r', '--repo', dest='repo_path', type=str, required=False,
|
||||||
help='The path to the repo. If not specified, path of script is used.')
|
help='The path to the repo. If not specified, path of script is used.')
|
||||||
parser.add_argument('-nc', '--no_commit', dest='no_commit', action='store_true', default=False,
|
parser.add_argument('-nc', '--no_commit', dest='no_commit', action='store_true', default=False,
|
||||||
|
@ -54,7 +54,9 @@ def main():
|
|||||||
"'.properties-MERGED' files and generates a csv file containing "
|
"'.properties-MERGED' files and generates a csv file containing "
|
||||||
"the items changed.",
|
"the items changed.",
|
||||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||||
parser.add_argument(dest='output_path', type=str, help='The path to the output csv file.')
|
parser.add_argument(dest='output_path', type=str, help='The path to the output csv file. The output path should '
|
||||||
|
'be specified as a relative path with the dot slash notation'
|
||||||
|
' (i.e. \'./outputpath.csv\') or an absolute path.')
|
||||||
|
|
||||||
parser.add_argument('-r', '--repo', dest='repo_path', type=str, required=False,
|
parser.add_argument('-r', '--repo', dest='repo_path', type=str, required=False,
|
||||||
help='The path to the repo. If not specified, path of script is used.')
|
help='The path to the repo. If not specified, path of script is used.')
|
||||||
|
@ -178,7 +178,10 @@ def main():
|
|||||||
'deleted, and commit id for how recent these updates are. '
|
'deleted, and commit id for how recent these updates are. '
|
||||||
'If the key should be deleted, the deletion row should be '
|
'If the key should be deleted, the deletion row should be '
|
||||||
'\'DELETION.\' A header row is expected by default and the '
|
'\'DELETION.\' A header row is expected by default and the '
|
||||||
'commit id, if specified, should only be in the first row.')
|
'commit id, if specified, should only be in the first row. The'
|
||||||
|
' input path should be specified as a relative path with the '
|
||||||
|
'dot slash notation (i.e. `./inputpath.csv`) or an absolute '
|
||||||
|
'path.')
|
||||||
|
|
||||||
parser.add_argument('-r', '--repo', dest='repo_path', type=str, required=False,
|
parser.add_argument('-r', '--repo', dest='repo_path', type=str, required=False,
|
||||||
help='The path to the repo. If not specified, parent repo of path of script is used.')
|
help='The path to the repo. If not specified, parent repo of path of script is used.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user