BiblioViva Documentation
Step-by-step guide

Add a language

This guide explains how to use BiblioViva in a language other than Italian and English, which are already included. It is for whoever administers BiblioViva. Languages that are already translated are installed from a list with one button; for a language that is not in the list, or for an installation without internet, a translation pack is uploaded. In neither case is the program touched.

BiblioViva uses one language for the whole installation. A pack is a folder of .json files with the interface texts: start from a copy of English or Italian and translate the texts.

Procedure

Install a language from the list

The list holds the languages published with the installed version of BiblioViva. Every pack is checked before it is installed.

  1. Log in to BiblioViva as admin.
  2. Open Administration.
  3. Open Configuration.
  4. Open Appearance and language.
  5. In the Application language panel, under Add a language, open the Languages available on GitHub list and choose the language wanted. The list holds only the languages not installed yet; under it you see the percentage of texts translated and the kind of translation.
  6. Press Install.
  7. Wait for the message "Language installed:" followed by the name. The language is already chosen in the Language list of the panel.
  8. To use the language, follow the steps of "Use the language" further down in this guide.

If "Automatic translation, not read by a native speaker" appears, the translation was made by a program and nobody who speaks that language has read it yet: it may contain mistakes or unnatural wording. It can be used all the same, and the texts can be corrected as described further on.

To replace a language that is already installed with the version in the list, open Configuration, Interface, scroll down to Language packs and press Install again in the Languages to install section.

To replace an installed language with the version in the list, press Install again.

Download an example

  1. Log in to BiblioViva as admin.
  2. Open Administration.
  3. Open Configuration.
  4. In the Settings list open Interface.
  5. Scroll down to the Language packs panel.
  6. Under Examples to download: press en for English or it for Italian. The browser saves a file biblioviva-language-en.zip (or -it).
The Language packs panel with the example buttons and Upload a pack (zip)
Figure 1. The Language packs panel with the example buttons and Upload a pack (zip)

Prepare the folder

  1. Extract the ZIP file. Inside is a folder with the language code and the .json files.
  2. Rename the folder with the new language's code: two lowercase letters, possibly followed by the country, for example de for German, fr for French or pt-BR for Brazilian Portuguese. en and it cannot be used, as they are already included.
  3. Open the pack.json file of the folder with the text editor.
  4. After "name" write the language's name in English, for example "German".
  5. After "nativeName" write the language's name in the language itself, for example "Deutsch": this is what appears in the menus.
  6. Save the file.

Translate

  1. Open the other .json files one at a time with the text editor.
  2. Change only what is to the right of the colon. Never change the names to the left of the colon.
  3. Leave untouched the parts between double braces, such as {{name}}: BiblioViva replaces them with the real values.
  4. Save each file. The translation can be done a little at a time: whatever is missing stays in English.

Upload the pack

  1. Compress the language folder into a ZIP file, so that the file contains the folder and, inside it, the .json files. The system command is in the right-click menu on the folder [VERIFY: name of the compression command in the school's systems].
  2. In Appearance and language, under Add a language, press Upload a pack (zip) and choose the file. The same button is in Configuration, Interface, in the Language packs panel. The pack cannot exceed 5 MB.
  3. Wait for the message "Language installed:" followed by the name. In Language packs the pack is listed with Valid. If texts are missing, the number of "missing or extra texts" appears next to it.

If the pack has errors it is not installed: the message says which file and which key to correct. After the correction, compress and upload the folder again: a pack with the same code replaces the previous one.

Use the language

  1. Open Administration, Configuration, Appearance and language.
  2. In the Application language panel choose the new language in the Language list (after an installation it is already chosen).
  3. Press Change language. The page reloads in the new language.

Result

  • The language appears in the Language list of Appearance and language and in the guided setup of a new installation.
  • All the staff see BiblioViva in the new language; untranslated texts are in English.

Possible problems

A–Z index