Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dpshelio committed Aug 20, 2019
1 parent e3016d3 commit bd9afb0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions helpers/lesson2theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def main(project):
clone.index.commit(f"[translations] Fixed format that affects translations on {changes} file(s).")
clone.git.push("topush", "update_format")
# Create PR
# NOTE - this only seem to work on repositories where I have permission.
upstream.create_pull("[translations] Clean lessons to create po files",
"The `po` files are the tokenised version of the lessons. The [tool we are using](https://github.com/carpentries-i18n/po4gitbook) complains if the following *typos* or empty lines at the end of sections are not fixed.",
'gh-pages',
Expand Down Expand Up @@ -182,13 +183,13 @@ def main(project):

main(arguments.project)

project = project.split('/')[1]
project = arguments.project.split('/')[1]
print("If successful, run the following:")
print(f"1. Generate the po with po4gitbook/update.sh")
print(f"2. Break the file into chunks with python helpers/splitpot.py po/{project}.pot")
print(f"3. Create a language directory on the transifex lesson directory: e.g., mkdir -p transifex/{project}")
print(f"3. Create a language directory on the transifex lesson directory: e.g., mkdir -p transifex/{project}/es")
print(f"4. Build the transifex lesson: ")
print(f" - cd transifex/{project}/es")
print(f" - cd transifex/{project}")
print(f" - tx config mapping-bulk -p {project} --source-language en --type PO -f '.pot' \ ")
print(" --source-file-dir pot --expression \"<lang>/{filename}.po\" --execute ")
print(f"5. Create the project {project} in transifex: https://www.transifex.com/carpentries-i18n/add/")
Expand Down

0 comments on commit bd9afb0

Please sign in to comment.