Plugin for collecting_society.portal including: Repertoire
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
collecting_society_portal_repertoire
.gitignore
CHANGELOG.rst
COPYRIGHT.rst
LICENSE-AGPLv3.txt
MANIFEST.in
README.rst
development.ini
production.ini
setup.py
testing.ini

README.rst

collecting_society.portal.repertoire

Plugin for Web Portal including:

  • Artists
  • Creations
  • Contents
  • Releases

For a working development setup, see https://github.com/C3S/c3s.ado.repertoire

Artists

Enables web users to manage group and solo artists.

Creations

Enables web users to upload and manage creations, define licenses and relations to other artists and creations.

Contents

Audio files associated with creations.

Releases

A group of creations bound together on a medium.

Translations

Explanation

  • .pot: "Portable Object Template" file, list of message identifiers, template for .po files
  • .po: "Portable Object" file, human editable list of translated messages
  • .mo: "Machine Object" file, machine readable list of messages, created from a .po file

Installation

  • poedit: $apt-get install poedit
  • gettext: $apt-get install gettext
  • lingua: $pip install lingua

Note: If you are running different python versions on the host, you need to ensure, that the right pip (e.g. pip2.7) is called.

Updates

e.g. for project collecting_society.portal.imp and language de

  • only once, to start translation of a project, create the .pot file for the project
    • $cd c3s.ado.repertoire/ado/src/collecting_society.portal.repertoire
    • $mkdir collecting_society_portal_repertoire/locale
    • $pot-create -o collecting_society_portal_repertoire/locale/collecting_society_portal_repertoire.pot collecting_society_portal_repertoire
  • only once, if you need a new language, create the .po file for the language
    • $cd c3s.ado.repertoire/ado/src/collecting_society.portal.repertoire/collecting_society_portal_repertoire/locale
    • $mkdir -p de/LC_MESSAGES
    • $msginit -l de -o de/LC_MESSAGES/collecting_society_portal_repertoire.po
  • each time, the code or templates changed, recreate the .pot file:
    • $cd c3s.ado.repertoire/ado/src/collecting_society.portal.repertoire
    • $pot-create -o collecting_society_portal_repertoire/locale/collecting_society_portal_repertoire.pot collecting_society_portal_repertoire
  • every time the .pot file changed, recreate the .po files for all languages
    • $cd c3s.ado.repertoire/ado/src/collecting_society.portal.repertoire
    • $msgmerge --update collecting_society_portal_repertoire/locale/*/LC_MESSAGES/collecting_society_portal_repertoire.po collecting_society_portal_repertoire/locale/collecting_society_portal_repertoire.pot
  • to edit translations, change the .po file via poedit
    • $cd c3s.ado.repertoire/ado/src/collecting_society.portal.repertoire
    • $poedit collecting_society_portal_repertoire/locale/de/LC_MESSAGES/collecting_society_portal_repertoire.po
  • every time the .po file changed, create a .mo file
    • $cd c3s.ado.repertoire/ado/src/collecting_society.portal.repertoire
    • $msgfmt -o collecting_society_portal_repertoire/locale/de/LC_MESSAGES/collecting_society_portal_repertoire.mo collecting_society_portal_repertoire/locale/de/LC_MESSAGES/collecting_society_portal_repertoire.po

Further information

Copyright / License

For infos on copyright and licenses, see ./COPYRIGHT.rst