Browse Source

Finish updating TL instructions

tags/v1.0.0-rc1
Daniel Oaks 5 years ago
parent
commit
cf88986e1e
2 changed files with 7 additions and 7 deletions
  1. 2
    2
      DEVELOPING.md
  2. 5
    5
      updatetranslations.py

+ 2
- 2
DEVELOPING.md View File

@@ -145,7 +145,7 @@ We support translating server strings using [CrowdIn](https://crowdin.com/projec
145 145
 
146 146
 1. `cd` to the base directory (the one this `DEVELOPING` file is in).
147 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 149
 4. Commit the changes
150 150
 
151 151
 CrowdIn's integration should grab the new translation files automagically.
@@ -158,7 +158,7 @@ You shouldn't need to do this, but to update 'em manually:
158 158
 
159 159
 1. `cd` to the base directory (the one this `DEVELOPING` file is in).
160 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 162
 4. Install the [CrowdIn CLI tool](https://support.crowdin.com/cli-tool/).
163 163
 5. Make sure the CrowdIn API key is correct in `~/.crowdin.yaml`
164 164
 6. Run `crowdin upload sources`

+ 5
- 5
updatetranslations.py View File

@@ -55,7 +55,7 @@ if __name__ == '__main__':
55 55
                             irc_strings.append(match)
56 56
 
57 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 59
             f.write(json.dumps({k:k for k in irc_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
60 60
             f.write('\n')
61 61
 
@@ -74,7 +74,7 @@ if __name__ == '__main__':
74 74
                             help_strings.append(match)
75 75
 
76 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 78
             f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
79 79
             f.write('\n')
80 80
 
@@ -93,7 +93,7 @@ if __name__ == '__main__':
93 93
                             help_strings.append(match)
94 94
 
95 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 97
             f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
98 98
             f.write('\n')
99 99
 
@@ -112,7 +112,7 @@ if __name__ == '__main__':
112 112
                             help_strings.append(match)
113 113
 
114 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 116
             f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
117 117
             f.write('\n')
118 118
 
@@ -131,6 +131,6 @@ if __name__ == '__main__':
131 131
                             help_strings.append(match)
132 132
 
133 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 135
             f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
136 136
             f.write('\n')

Loading…
Cancel
Save