Version: v0.0.0-...-816ba0d Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 7 Imported by: 0




Nationalizationsync is an utility program: provided a modified JSON nationalization, it propagates the new categorical information to other nationalizations using LangLinks.

How to use it?

  1. Choose a working dir: this will contain all seed nationalizations, aka the nationalization from which all the others will be derived using LangLinks. This folder should contain your modified JSON and all the other that in the past were manually modified, as of now: en.json, es.json, fr.json, it.json, pt.json and zh.json.

  2. Run Nationalizationsync on your working dir: docker run -d -v /path/2/work/dir:/data negapedia/wikiassignment nationalizationsync. Eventually check progress with docker logs -f $(docker ps -lq). At the end, after some hours, this folder will contain all newly regenerated nationalizations, double check logs and results.

How to integrate these results into the refresh docker image?

  1. Install golang and set it properly, or later commands will fail.

  2. Install (or update) go-bindata: go get -u and check that it works (go-bindata --help).

  3. Install (or update) wikiassignment: go get -u

  4. Find the installation folder and change the working directory into it: cd /path/2/your/wikiassignment/.

  5. Remove previous nationalizations in your local languages folder: rm nationalization/internal/languages/*.

  6. Add the new nationalizations, generated from step 2: mv /path/2/work/dir/* nationalization/internal/languages/.

  7. Change directory into nationalization/internal : cd nationalization/internal/.

  8. Regenerate golang assets from JSON nationalizations: go generate.

  9. Include in the git versioning possible new files: git add -A.

  10. Commit the changes: for ex. git commit -am "Updated pl nationalization, additional sync seeds: en, es, fr, it, pt and zh".

  11. Set wikiassignment remote repository: git remote set-url origin

  12. Push the changes: git push.

  13. Double check the diff of the changes on Github.

  14. Being logged in docker hub, manually trigger a new build for the refresh image, takes a little more than one hour.

  15. Rejoice. ;)


The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL