mirror of
				https://github.com/johrpan/musicus.git
				synced 2025-10-26 03:47:23 +01:00 
			
		
		
		
	
				
				A classical music player and organizer.
				https://musicus.org
			
		| data | ||
| migrations | ||
| po | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| COPYING | ||
| de.johrpan.Musicus.Devel.json | ||
| diesel.toml | ||
| meson.build | ||
| meson_options.txt | ||
| README.md | ||
Musicus
The classical music player and organizer.
Hacking
ORM
This program uses Diesel as its ORM. After installing the Diesel command line utility, you will be able to create a new schema migration using the following command:
$ diesel migration generate [change_description]
To update the src/db/schema.rs file, you should use the following command:
$ diesel migration run --database-url test.sqlite
This file should never be edited manually.
Internationalization
Execute the following commands from the project root directory to update translation files whenever translatable strings have been changed.
- 
Update template.potxgettext \ --from-code=UTF-8 \ --add-comments \ --keyword=_ \ --keyword=C_:1c,2 \ --files-from=po/POTFILES \ --output=po/template.pot
- 
Update translation files msgmerge \ --update \ --backup=off \ --no-fuzzy-matching \ po/de.po \ po/template.pot