Quellcode durchsuchen

Finish updating TL instructions

tags/v1.0.0-rc1
Daniel Oaks vor 5 Jahren
Ursprung
Commit
cf88986e1e
2 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen
  1. 2
    2
      DEVELOPING.md
  2. 5
    5
      updatetranslations.py

+ 2
- 2
DEVELOPING.md Datei anzeigen

145
 
145
 
146
 1. `cd` to the base directory (the one this `DEVELOPING` file is in).
146
 1. `cd` to the base directory (the one this `DEVELOPING` file is in).
147
 2. Install the `pyyaml` and `docopt` deps using `pip3 install pyyamp docopt`.
147
 2. Install the `pyyaml` and `docopt` deps using `pip3 install pyyamp docopt`.
148
-3. Run the `updatetranslations.py` script with: `./updatetranslations.py irc languages`
148
+3. Run the `updatetranslations.py` script with: `./updatetranslations.py run irc languages`
149
 4. Commit the changes
149
 4. Commit the changes
150
 
150
 
151
 CrowdIn's integration should grab the new translation files automagically.
151
 CrowdIn's integration should grab the new translation files automagically.
158
 
158
 
159
 1. `cd` to the base directory (the one this `DEVELOPING` file is in).
159
 1. `cd` to the base directory (the one this `DEVELOPING` file is in).
160
 2. Install the `pyyaml` and `docopt` deps using `pip3 install pyyamp docopt`.
160
 2. Install the `pyyaml` and `docopt` deps using `pip3 install pyyamp docopt`.
161
-3. Run the `updatetranslations.py` script with: `./updatetranslations.py irc languages`
161
+3. Run the `updatetranslations.py` script with: `./updatetranslations.py run irc languages`
162
 4. Install the [CrowdIn CLI tool](https://support.crowdin.com/cli-tool/).
162
 4. Install the [CrowdIn CLI tool](https://support.crowdin.com/cli-tool/).
163
 5. Make sure the CrowdIn API key is correct in `~/.crowdin.yaml`
163
 5. Make sure the CrowdIn API key is correct in `~/.crowdin.yaml`
164
 6. Run `crowdin upload sources`
164
 6. Run `crowdin upload sources`

+ 5
- 5
updatetranslations.py Datei anzeigen

55
                             irc_strings.append(match)
55
                             irc_strings.append(match)
56
 
56
 
57
         print("irc strings:", len(irc_strings))
57
         print("irc strings:", len(irc_strings))
58
-        with open(os.path.join(arguments['<languages-dir>'], 'example-irc.lang.json'), 'w') as f:
58
+        with open(os.path.join(arguments['<languages-dir>'], 'example', 'irc.lang.json'), 'w') as f:
59
             f.write(json.dumps({k:k for k in irc_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
59
             f.write(json.dumps({k:k for k in irc_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
60
             f.write('\n')
60
             f.write('\n')
61
 
61
 
74
                             help_strings.append(match)
74
                             help_strings.append(match)
75
 
75
 
76
         print("help strings:", len(help_strings))
76
         print("help strings:", len(help_strings))
77
-        with open(os.path.join(arguments['<languages-dir>'], 'example-help.lang.json'), 'w') as f:
77
+        with open(os.path.join(arguments['<languages-dir>'], 'example', 'help.lang.json'), 'w') as f:
78
             f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
78
             f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
79
             f.write('\n')
79
             f.write('\n')
80
 
80
 
93
                             help_strings.append(match)
93
                             help_strings.append(match)
94
 
94
 
95
         print("nickserv help strings:", len(help_strings))
95
         print("nickserv help strings:", len(help_strings))
96
-        with open(os.path.join(arguments['<languages-dir>'], 'example-nickserv.lang.json'), 'w') as f:
96
+        with open(os.path.join(arguments['<languages-dir>'], 'example', 'nickserv.lang.json'), 'w') as f:
97
             f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
97
             f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
98
             f.write('\n')
98
             f.write('\n')
99
 
99
 
112
                             help_strings.append(match)
112
                             help_strings.append(match)
113
 
113
 
114
         print("chanserv help strings:", len(help_strings))
114
         print("chanserv help strings:", len(help_strings))
115
-        with open(os.path.join(arguments['<languages-dir>'], 'example-chanserv.lang.json'), 'w') as f:
115
+        with open(os.path.join(arguments['<languages-dir>'], 'example', 'chanserv.lang.json'), 'w') as f:
116
             f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
116
             f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
117
             f.write('\n')
117
             f.write('\n')
118
 
118
 
131
                             help_strings.append(match)
131
                             help_strings.append(match)
132
 
132
 
133
         print("hostserv help strings:", len(help_strings))
133
         print("hostserv help strings:", len(help_strings))
134
-        with open(os.path.join(arguments['<languages-dir>'], 'example-hostserv.lang.json'), 'w') as f:
134
+        with open(os.path.join(arguments['<languages-dir>'], 'example', 'hostserv.lang.json'), 'w') as f:
135
             f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
135
             f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
136
             f.write('\n')
136
             f.write('\n')

Laden…
Abbrechen
Speichern