Differences between revisions 1 and 2
Revision 1 as of 2015-12-03 19:05:47
Size: 870
Comment: First content
Revision 2 as of 2015-12-04 01:27:42
Size: 1857
Comment: +elaborations, +config fix, +links, cleaning
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
If you want to test Plinth (!FreedomBox user interface) translations on the latest Virtualbox image, please follow these steps. If you want to test Plinth (!FreedomBox user interface) translations you can use a Virtualbox image, please follow these steps.
Line 7: Line 7:
 * Setup a !VirtualBox !FreedomBox as described on [[FreedomBox/Hardware/VirtualBox|VirtualBox image page]]  * Setup a !VirtualBox !FreedomBox as described on [[FreedomBox/Hardware/VirtualBox|VirtualBox image page]] (this recipe based on the [[http://ftp.skolelinux.org/pub/freedombox/latest/freedombox-unstable-free_2015-10-18_virtualbox-amd64.tar.bz2|2015-10-18 image]])
Line 10: Line 10:
 * To install GNU gettext tools and prepare new Plinth (torrc needed to start recent plinth, not needed when [[https://github.com/freedombox/Plinth/pull/324|PR #324]] is merged)
Line 11: Line 12:
sudo apt-get update; sudo apt-get install gettext sudo apt-get update
sudo apt-get install gettext
sudo mkdir /etc/tor
sudo touch /etc/tor/torrc
sudo mv /etc/plinth/plinth.config /etc/plinth/plinth.config_disabled
Line 13: Line 18:
cd Plinth/plinth cd ~/Plinth
nano plinth.config (change line 8 to read "server_dir = /plinth")
Line 17: Line 23:
 * Download django.po from Transifex place it in plinth/locale/<yourlanguage>/LC_MESSAGES/  * Download django.po from Transifex and place it in ~/Plinth/plinth/locale/<yourlanguage>/LC_MESSAGES/ (download on host, transfer to guest using e.g. scp or VirtualBox Shared Folders)
 * To prepare translation and run new plinth do:
Line 19: Line 26:
sudo service plinth stop
cd ~/Plinth/plinth
Line 20: Line 29:
sudo service plinth stop
sudo mkdir /etc/tor
sudo touch /etc/tor/torrc (needed to start new plinth)
cd..
Line 26: Line 33:
 * To update .po with new strings in github run:  * Go to Plinth in browser on host (https://fbx-ip). Change to your locale in System Configuration (gears symbol upper right)->Configure->Language (https://fbx-ip/plinth/sys/config/)
 
 * Enjoy your translation!

 * To update .po with new strings from source code run (.po needs review after this!):
Line 28: Line 39:
django-admin
makemessages -l <your language>
django-admin makemessages -l <your language>
Line 31: Line 41:

NOTE: Any of this may break at any time because it follows development master branch in git which changes constantly.

Test User Interface Translations

If you want to test Plinth (FreedomBox user interface) translations you can use a Virtualbox image, please follow these steps.

  • Setup a VirtualBox FreedomBox as described on VirtualBox image page (this recipe based on the 2015-10-18 image)

  • Boot the FreedomBox to terminal and login (fbx:frdm)

  • To install GNU gettext tools and prepare new Plinth (torrc needed to start recent plinth, not needed when PR #324 is merged)

    • sudo apt-get update
      sudo apt-get install gettext
      sudo mkdir /etc/tor
      sudo touch /etc/tor/torrc
      sudo mv /etc/plinth/plinth.config /etc/plinth/plinth.config_disabled 
      git clone https://github.com/freedombox/Plinth
      cd ~/Plinth
      nano plinth.config (change line 8 to read "server_dir = /plinth")
  • Download django.po from Transifex and place it in ~/Plinth/plinth/locale/<yourlanguage>/LC_MESSAGES/ (download on host, transfer to guest using e.g. scp or VirtualBox Shared Folders)

  • To prepare translation and run new plinth do:
    • sudo service plinth stop
      cd ~/Plinth/plinth
      django-admin compilemessages
      cd..
      sudo ./run --debug --no-daemon
  • Go to Plinth in browser on host (https://fbx-ip). Change to your locale in System Configuration (gears symbol upper right)->Configure->Language (https://fbx-ip/plinth/sys/config/)

  • Enjoy your translation!
  • To update .po with new strings from source code run (.po needs review after this!):
    • django-admin makemessages -l <your language>

NOTE: Any of this may break at any time because it follows development master branch in git which changes constantly.