Skip to content

Commit

Permalink
Register new languages
Browse files Browse the repository at this point in the history
  • Loading branch information
bilde2910 committed Mar 24, 2020
1 parent f7ae59e commit 4ee03b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend-php/include/inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// backend. It loads the configuration file and declares it as a constant.

const BACKEND_VERSION = "1.6";
const LANGUAGES = ["ca", "de", "en", "eu", "fr", "nb_NO", "nl", "nn", "ro", "ru", "uk"];
const LANGUAGES = ["ca", "de", "en", "eu", "fr", "it", "nb_NO", "nl", "nn", "ro", "ru", "tr", "uk"];

// Create mode for create.php. Corresponds with the constants from the Android
// app in android/app/src/main/java/info/varden/hauk/HaukConst.java.
Expand Down
2 changes: 1 addition & 1 deletion frontend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const EARTH_DIAMETER_KM = 6371 * 2;
const HAV_MOD = EARTH_DIAMETER_KM * 1000;

// Find preferred language.
var locales = ['ca', 'de', 'en', 'eu', 'fr', 'nb_NO', 'nl', 'nn', 'ro', 'ru', 'uk'];
var locales = ['ca', 'de', 'en', 'eu', 'fr', 'it', 'nb_NO', 'nl', 'nn', 'pt_BR', 'ro', 'ru', 'tr', 'uk'];
var prefLang = 'en';
if (navigator.languages) {
for (var i = navigator.languages.length - 1; i >= 0; i--) {
Expand Down

0 comments on commit 4ee03b3

Please sign in to comment.