Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frontend] menu_update.py #5

Open
frodrigo opened this issue Jul 14, 2017 · 3 comments
Open

[frontend] menu_update.py #5

frodrigo opened this issue Jul 14, 2017 · 3 comments
Assignees
Labels

Comments

@frodrigo
Copy link

cc @jocelynj menu_update.py it just for updating the menu. What is the primary way to load categ_menu.txt and item_menu.txt or insert new entry ?

@jocelynj
Copy link

categ_menu.txt and item_menu.txt are used to add translations, and are manually modified each time a new categ/item is added.
These english sentences from *_menu.txt are pushed to transifex via po/Makefile, and we get back translations from transifex with the same Makefile. Then menu_update.py is used to update menu entries with the new translations.

To add new items to the database, it is done manually, by running tools/add-markers.py, and adapting the proposed SQL requests.

Another solution is to import http://osmose.openstreetmap.fr/export/osmose-menu.sql.bz2 to the database.

@prhod
Copy link
Owner

prhod commented Aug 11, 2017

Tank you for the infos. If those two txt files are used for translation, I assume using them as a data source to initiate the BDD is correct.
Using an export from production to initiate a new instance is not what i'm looking for -_^

@prhod prhod added the question label Aug 11, 2017
@prhod prhod self-assigned this Aug 11, 2017
@jocelynj
Copy link

The two files used for translation doesn't contain enough information to generate marker color and shape, that are necessary in database. These could be generated by a new script, that we don't have at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants