diff --git a/public/about/index.php b/public/about/index.php index a0a82ac..41e9635 100755 --- a/public/about/index.php +++ b/public/about/index.php @@ -4,29 +4,9 @@ ini_set('display_startup_errors', 1); error_reporting(E_ALL); session_start(); $root = realpath($_SERVER["DOCUMENT_ROOT"]); -require "$root/database/credentials.php"; -// Connect the database -try { - $db = new PDO("mysql:host=$host;dbname=$database;charset=utf8", - $user, - $password, - array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION - )); -} catch (Exception $e) { - die("Error : ".$e->getMessage()); -} -if (isset($_GET['record'])) { - $req = $db->prepare('SELECT id, recordist_name, file_name, license, species, sound_type, date, time FROM `records` WHERE id=:id'); - $req->execute(array( - "id"=>$_GET['record'] - )); -} else { - $req = $db->prepare('SELECT id, recordist_name, file_name, license, species, sound_type, date, time FROM `records` ORDER BY date DESC, time DESC LIMIT 1'); - $req->execute(); -} -$data = $req->fetch(); +$lang = isset($_COOKIE['lang']) ? $_COOKIE['lang'] : 'en'; +require("$root/lang/gettext.php"); ?> - @@ -44,12 +24,12 @@ include("$root/analytics/owa.php");
-

About

-

Chiro-Canto is an online bat sound sharing set of tools, inspired by Xeno-Canto.

-

Author

-

This website is developped with ♥ by Samuel ORTION, a juvenile Geekus biologicus.

-

Source code

-

This project is available under the GNU Affero GPL v3 license at https://forge.ortion.xyz/Chiro-Canto/chiro-canto.

+

+

Xeno-Canto.')?>

+

+

Geekus biologicus.')?>

+

+

https://forge.ortion.xyz/Chiro-Canto/chiro-canto.')?>

diff --git a/public/api/v1/doc/index.php b/public/api/v1/doc/index.php index 49b5bb0..7add4f5 100755 --- a/public/api/v1/doc/index.php +++ b/public/api/v1/doc/index.php @@ -5,6 +5,8 @@ error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); include("$root/vendor/erusev/parsedown/Parsedown.php"); $Parsedown = new Parsedown(); +$lang = isset($_COOKIE['lang']) ? $_COOKIE['lang'] : 'en'; +require("$root/lang/$lang/lang.php"); ?> diff --git a/public/articles/index.php b/public/articles/index.php index c0dccff..f5012e5 100755 --- a/public/articles/index.php +++ b/public/articles/index.php @@ -8,7 +8,7 @@ ini_set('display_startup_errors', 1); error_reporting(E_ALL); include("$root/vendor/erusev/parsedown/Parsedown.php"); $Parsedown = new Parsedown(); - +require("$root/lang/gettext.php"); function archive() { global $root; $results = array(); diff --git a/public/articles/list.php b/public/articles/list.php index 00d4934..3b262d6 100755 --- a/public/articles/list.php +++ b/public/articles/list.php @@ -23,7 +23,7 @@ include("$root/analytics/owa.php");
-

All Articles

+

- - + + @@ -44,8 +44,8 @@ include("$root/analytics/owa.php");
Publication DateArticle
-

New article

-

Return to Homepage

+

+

diff --git a/public/articles/view.php b/public/articles/view.php index caa2e71..ac23d61 100755 --- a/public/articles/view.php +++ b/public/articles/view.php @@ -2,5 +2,5 @@

title)?>

text(htmlspecialchars($results['articles'][0]->summary))?>
text(htmlspecialchars($results['articles'][0]->content))?>
-

Published on publication_date)?>

-

Return to Homepage

+

publication_date)?>

+

diff --git a/public/auth/index.php b/public/auth/index.php new file mode 100644 index 0000000..89c73ca --- /dev/null +++ b/public/auth/index.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/public/auth/login/index.php b/public/auth/login/index.php index 61275e8..9a1537e 100755 --- a/public/auth/login/index.php +++ b/public/auth/login/index.php @@ -4,7 +4,7 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); - +require("$root/lang/gettext.php"); ?> @@ -13,7 +13,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]); - Login | Chiro - Canto + <?=_('Login')?> | Chiro - Canto
-

Login

+

'.$_SESSION['error_msg'].'' : ""?>
- - + + - - + +
+
diff --git a/public/auth/login/login.php b/public/auth/login/login.php index e72f46d..ad41bd4 100755 --- a/public/auth/login/login.php +++ b/public/auth/login/login.php @@ -46,16 +46,16 @@ if (isset($_POST['submit'])) $username = $_POST['username']; } else { - $_SESSION['error_msg'] .= "You did not enter a proper username.\n"; + $_SESSION['error_msg'] .= _('You did not enter a proper username.').'\n'; } if (isset($_POST['password'])) { $password = $_POST['password']; } else { - $_SESSION['error_msg'] .= "You did not enter a proper password.\n"; + $_SESSION['error_msg'] .= _('You did not enter a proper password.').'\n'; } } else { - $_SESSION['error_msg'] .= "You did not submit the register form.\n"; + $_SESSION['error_msg'] .= _('You did not submit the register form.'); } if ($_SESSION['error_msg'] == "") @@ -67,11 +67,11 @@ if ($_SESSION['error_msg'] == "") $_SESSION['username'] = $username; header('Location: '."/"); } else { - $_SESSION['error_msg'] = "Incorrect password, please try again.\n"; + $_SESSION['error_msg'] = _('Incorrect password, please try again.').'\n'; header('Location: '."../../auth/login"); } } else { - // header('Location: '."../../auth/login"); + header('Location: '."../../auth/login"); } ?> \ No newline at end of file diff --git a/public/auth/register/index.php b/public/auth/register/index.php index e4ad8ff..31ef89f 100755 --- a/public/auth/register/index.php +++ b/public/auth/register/index.php @@ -4,6 +4,7 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +require("$root/lang/gettext.php"); ?> @@ -13,7 +14,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]); - Register | Chiro - Canto + <?=_('Register')?> | Chiro - Canto
-

Register

+

'.$_SESSION['error_msg'].'' : ""?>
- + - + - + - + - + - + - +
+
diff --git a/public/auth/register/register.php b/public/auth/register/register.php index 87b88ac..16b2a1e 100755 --- a/public/auth/register/register.php +++ b/public/auth/register/register.php @@ -38,38 +38,38 @@ if (isset($_POST['submit'])) $fname = $_POST['firstname']; } else { - $_SESSION['error_msg'] .= "You did not enter a proper first name.\n"; + $_SESSION['error_msg'] .= _('You did not enter a proper first name.').'\n'; } if (isset($_POST['lastname'])) { $lname = $_POST['lastname']; } else { - $_SESSION['error_msg'] .= "You did not enter a proper last name.\n"; + $_SESSION['error_msg'] .= _('You did not enter a proper last name.'); } if (isset($_POST['username'])) { $username = $_POST['username']; } else { - $_SESSION['error_msg'] .= "You did not enter a proper username.\n"; + $_SESSION['error_msg'] .= _('You did not enter a proper username.').'\n'; } if (isset($_POST['email'])) { $email = $_POST['email']; } else { - $_SESSION['error_msg'] .= "You did not enter a proper email address.\n"; + $_SESSION['error_msg'] .= _('You did not enter a proper email address.').'\n'; } $website = isset($_POST['website']) ? $_POST['website'] : ""; if (isset($_POST['password'])) { $password_hash = password_hash($_POST['password'], PASSWORD_DEFAULT); } else { - $_SESSION['error_msg'] .= "You did not enter a proper password.\n"; + $_SESSION['error_msg'] .= _('You did not enter a proper password.').'\n'; } } else { - $_SESSION['error_msg'] .= "You did not submit the register form.\n"; + $_SESSION['error_msg'] .= _('You did not submit the register form.').'\n'; } if ($_SESSION['error_msg'] == "") diff --git a/public/contact/index.php b/public/contact/index.php index 1c65d2a..15d9f29 100755 --- a/public/contact/index.php +++ b/public/contact/index.php @@ -1,5 +1,6 @@ @@ -18,28 +19,28 @@ include("$root/analytics/matomo.php");
-

Contact

+

- -
+ +
- -
+ +
- -
+ +
- -
+ +
- -
+ +
- -
+ +
- +
diff --git a/public/contact/sendmail.php b/public/contact/sendmail.php index 0f79703..c0ae159 100755 --- a/public/contact/sendmail.php +++ b/public/contact/sendmail.php @@ -21,27 +21,27 @@ if (isset($_POST)) { if (isset($_POST['firstname'])) { $fname = $_POST['firstname']; } else { - $error_msg .= "You have not entered a proper first name.\n"; + $error_msg .= _('You have not entered a proper first name.').'\n'; } if (isset($_POST['lastname'])) { $lname = $_POST['lastname']; } else { - $error_msg .= "You have not entered a proper last name.\n"; + $error_msg .= _('You have not entered a proper last name.').'\n'; } if (isset($_POST['email'])) { $email = $_POST['email']; } else { - $error_msg .= "You have not entered a proper email address.\n"; + $error_msg .= _('You have not entered a proper email address.').'\n'; } if (isset($_POST['subject'])) { $subject = $_POST['subject']; } else { - $error_msg .= "You have not entered a proper subject.\n"; + $error_msg .= _('You have not entered a proper subject.').'\n'; } if (isset($_POST['message'])) { $message = $_POST['message']; } else { - $error_msg .= "You have not entered a proper message.\n"; + $error_msg .= _('You have not entered a proper message.').'\n'; } } @@ -82,7 +82,7 @@ try { $mail->send(); $mail->smtpClose(); - echo 'Message has been sent'; + echo _('Message has been sent'); } catch (Exception $e) { - echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; + echo _('Message could not be sent. Mailer Error: ') + $mail->ErrorInfo; } diff --git a/public/discussion/index.php b/public/discussion/index.php index cbd4ff4..f965c3c 100644 --- a/public/discussion/index.php +++ b/public/discussion/index.php @@ -4,6 +4,8 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +$lang = isset($_COOKIE['lang']) ? $_COOKIE['lang'] : 'en'; +require("$root/lang/gettext.php"); require "$root/database/credentials.php"; // Connect the database try { @@ -36,7 +38,7 @@ $result = $req->fetchAll(); - Discussion | Chiro - Canto + <?=_('Discussion')?> | Chiro - Canto
-

Discussion

-

New messages

+

+

-

Send a message

+

- + - +
diff --git a/public/discussion/messages/index.php b/public/discussion/messages/index.php index d515ca9..fed20ab 100644 --- a/public/discussion/messages/index.php +++ b/public/discussion/messages/index.php @@ -5,6 +5,7 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +require("$root/lang/gettext.php"); require "$root/database/credentials.php"; // Connect the database try { @@ -25,7 +26,7 @@ if (isset($_SESSION['username'])) { $sender_id = $data['id']; } } else { - $_SESSION['error_msg'] = "You must be logged in to receive an send message."; + $_SESSION['error_msg'] = _('You must be logged in to receive or send messages.'); header('Location: /auth/login'); } if (isset($_GET['author'])) { @@ -72,7 +73,7 @@ include("$root/analytics/matomo.php");
-

Discussion

+

@@ -108,8 +109,8 @@ include("$root/analytics/matomo.php");
- - + +
@@ -24,7 +26,7 @@ include("$root/analytics/matomo.php");

GUANO v1.0

'.$_SESSION['error_msg'].'
' : "";?> - about GUANO +
fetch()) { } else { - $_SESSION['error_msg'] = "Can't fetch data."; + $_SESSION['error_msg'] = _("Can't fetch data."); } ?> GUANO|Version: 1.0

diff --git a/public/explore/index.php b/public/explore/index.php index b364d8f..576c7bd 100755 --- a/public/explore/index.php +++ b/public/explore/index.php @@ -4,6 +4,7 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +require("$root/lang/gettext.php"); ?> @@ -11,7 +12,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]); - Explore | Chiro - Canto + <?=_('Explore')?> | Chiro - Canto
-

Explore

+

list diff --git a/public/explore/list/index.php b/public/explore/list/index.php index fa54d58..edccc66 100755 --- a/public/explore/list/index.php +++ b/public/explore/list/index.php @@ -4,6 +4,7 @@ ini_set('display_startup_errors', 1); error_reporting(E_ALL); session_start(); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +require("$root/lang/gettext.php"); require "$root/database/credentials.php"; // Connect the database try { @@ -25,7 +26,7 @@ $result = $req->fetchAll(); - Explore | Chiro - Canto + <?_('Explore')?> | Chiro - Canto @@ -37,17 +38,17 @@ include("$root/analytics/owa.php");
-

Explore

-

Recording List

+

+

- - - - - - + + + + + + @@ -68,9 +69,9 @@ include("$root/analytics/owa.php"); diff --git a/public/explore/map/index.php b/public/explore/map/index.php index 485ba83..0f71a51 100755 --- a/public/explore/map/index.php +++ b/public/explore/map/index.php @@ -5,6 +5,7 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +require("$root/lang/gettext.php"); require "$root/database/credentials.php"; // Connect the database try { @@ -26,7 +27,7 @@ $result = $req->fetchAll(); - Explore | Chiro - Canto + <?=_('Explore')?> | Chiro - Canto @@ -44,8 +45,8 @@ include("$root/analytics/matomo.php");
-

Explore

-

Record Map

+ +

diff --git a/public/explore/mysteries/index.php b/public/explore/mysteries/index.php index 69a913c..e5f6375 100755 --- a/public/explore/mysteries/index.php +++ b/public/explore/mysteries/index.php @@ -4,6 +4,7 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +require("$root/lang/gettext.php"); require "$root/database/credentials.php"; // Connect the database try { @@ -37,7 +38,7 @@ include("$root/analytics/matomo.php");
-

Mystery recording

+

-

Recorded on at

+

fetch()) - Explore | Chiro - Canto + <?=_('Explore')?> | Chiro - Canto
-

Explore

-

Random Record

+

+

DatetimeSpeciesFile NameAuthorLicenseAudio
- spectro analysis - database search - + spectro analysis + database search +
- - - - - + + + + + @@ -60,7 +62,7 @@ include("$root/analytics/matomo.php");
SpeciesFile NameAuthorLicenseAudio
-

Click on the file name to go to the spectrogram view.

+

diff --git a/public/explore/record/edit/index.php b/public/explore/record/edit/index.php index f098a14..804fd64 100644 --- a/public/explore/record/edit/index.php +++ b/public/explore/record/edit/index.php @@ -5,6 +5,8 @@ error_reporting(E_ALL); session_start(); session_reset(); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +$lang = isset($_COOKIE['lang']) ? $_COOKIE['lang'] : 'en'; +require("$root/lang/$lang/lang.php"); require "$root/database/credentials.php"; // Connect the database try { @@ -24,7 +26,7 @@ if (isset($_GET['id'])){ - Edit | Chiro - Canto + <?=_('Edit')?> | Chiro - Canto @@ -36,7 +38,7 @@ if (isset($_GET['id'])){
-

Edit

+

prepare('SELECT * FROM records WHERE id=:id'); $req->execute(array( @@ -46,32 +48,32 @@ if (isset($_GET['id'])){ ?>
- + - + - + - + - + - + - - + + - + - + - +
diff --git a/public/explore/record/index.php b/public/explore/record/index.php index 267059d..2585a1f 100644 --- a/public/explore/record/index.php +++ b/public/explore/record/index.php @@ -4,6 +4,8 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +$lang = isset($_COOKIE['lang']) ? $_COOKIE['lang'] : 'en'; +require("$root/lang/$lang/lang.php"); ?> @@ -11,7 +13,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]); - Explore | Chiro - Canto + <?=_('Explore')?> | Chiro - Canto
-

Record

+

-

Recorded on at

+

diff --git a/public/explore/search/index.php b/public/explore/search/index.php index 2fe5b58..62fa157 100755 --- a/public/explore/search/index.php +++ b/public/explore/search/index.php @@ -4,30 +4,16 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); -// require "$root/database/credentials.php"; -// // Connect the database -// try { -// $db = new PDO("mysql:host=$host;dbname=$database;charset=utf8", -// $user, -// $password, -// array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION -// )); -// } catch (Exception $e) { -// die("Error : ".$e->getMessage()); -// } - -// $req = $db->prepare('SELECT id, recordist_name, file_name, license, species, sound_type, date, time FROM `records` WHERE species="unknown" ORDER BY `entry_timestamp` ASC LIMIT 1'); -// $req->execute(); -// $result = $req->fetchAll(); +$lang = isset($_COOKIE['lang']) ? $_COOKIE['lang'] : 'en'; +require("$root/lang/gettext.php"); ?> - - Explore | Chiro - Canto + <?=_('Explore')?> | Chiro - Canto
-

Explore

-

Multicriteria recordings Search

+

+

- + - + - + - + - + - +
diff --git a/public/explore/search/searchrecord.php b/public/explore/search/searchrecord.php index c238350..29e2cec 100755 --- a/public/explore/search/searchrecord.php +++ b/public/explore/search/searchrecord.php @@ -5,6 +5,8 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +$lang = isset($_COOKIE['lang']) ? $_COOKIE['lang'] : 'en'; +require("$root/lang/$lang/lang.php"); require "$root/database/credentials.php"; // Connect the database try { @@ -97,7 +99,7 @@ if ($_SESSION['error_msg'] == "") { } } } else { - $_SESSION['error_msg'] .= "You did not enter any query.\n"; + $_SESSION['error_msg'] .= _("You did not enter any query.").'\n'; header("Location: /explore/search"); } @@ -112,15 +114,15 @@ if ($_SESSION['error_msg'] == "") { - Explore | Chiro - Canto + <?=_('Explore')?> | Chiro - Canto
-

Explore

-

Search Results

+

+

prepare($sql); @@ -128,16 +130,16 @@ if ($_SESSION['error_msg'] == "") { $result = $req->fetchAll(); // print_r($sql); if (empty($result)) { - echo "No result for this query, please try again.\n"; + echo _("No result for this query, please try again.").'\n'; } else { ?> - - - - + + + + diff --git a/public/explore/spectrograms/index.php b/public/explore/spectrograms/index.php index fab4531..97524e3 100755 --- a/public/explore/spectrograms/index.php +++ b/public/explore/spectrograms/index.php @@ -4,6 +4,8 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +$lang = isset($_COOKIE['lang']) ? $_COOKIE['lang'] : 'en'; +require("$root/lang/$lang/lang.php"); require "$root/database/credentials.php"; // Connect the database try { @@ -33,7 +35,7 @@ $data = $req->fetch(); - Explore | Chiro - Canto + <?=_('Explore')?> | Chiro - Canto
-

Spectrograms

+

-

Recorded on at

+

at

fetchAll(); - Explore | Chiro - Canto + <?=_('Explore')?> | Chiro - Canto -

Chiroptera Taxa

-

These taxa come from INPN TAXREF v14.0.

+

+

File nameAuthorLicenseDate
- - - - - - - - - + + + + + + + + + diff --git a/public/explore/users/index.php b/public/explore/users/index.php index 25b15c7..9a39f1a 100644 --- a/public/explore/users/index.php +++ b/public/explore/users/index.php @@ -5,6 +5,7 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +require("$root/lang/gettext.php"); require "$root/database/credentials.php"; // Connect the database try { @@ -27,7 +28,7 @@ $result = $req->fetchAll(); - Explore | Chiro - Canto + <?=_('Explore')?> | Chiro - Canto
-

Explore

-

Random Record

+

+

KingdomPhylumClassOrderFamilySubfamilyTribuGenusSpecies
- - - + + + diff --git a/public/forum/categories.php b/public/forum/categories.php index 429fa1d..d8da7a5 100755 --- a/public/forum/categories.php +++ b/public/forum/categories.php @@ -22,12 +22,12 @@ $rows = $req->fetchAll(PDO::FETCH_ASSOC); $Parsedown = new Parsedown(); ?> -

Categories

+

NameUsernamePrivate message link
- - + + @@ -43,11 +43,11 @@ foreach ($rows as $row) { } ?>
TitleDescription
-

Create a category

+

- - - - - + + + + +
diff --git a/public/forum/createcategory.php b/public/forum/createcategory.php index 8632867..56fc861 100755 --- a/public/forum/createcategory.php +++ b/public/forum/createcategory.php @@ -34,17 +34,17 @@ if (isset($_POST['submit'])) $name = $_POST['title']; } else { - $_SESSION['error_msg'] .= "You did not enter a proper category title. \n"; + $_SESSION['error_msg'] .= _("You did not enter a proper category title.") . '\n'; } if (isset($_POST['description'])) { $description = $_POST['description']; } else { - $_SESSION['error_msg'] .= "You did not enter a proper category description. \n"; + $_SESSION['error_msg'] .= _("You did not enter a proper category description.") . '\n'; } } else { - $_SESSION['error_msg'] .= "You did not log in.\n"; + $_SESSION['error_msg'] .= _("You did not log in.") . '\n'; header('Location: '."/auth/login/"); } } else diff --git a/public/forum/createtopic.php b/public/forum/createtopic.php index 8cf6535..f0ed68b 100755 --- a/public/forum/createtopic.php +++ b/public/forum/createtopic.php @@ -56,22 +56,22 @@ if (isset($_POST['submit'])) $topic_subject = $_POST['topic_subject']; } else { - $_SESSION['error_msg'] .= "You did not enter a proper topic subject. \n"; + $_SESSION['error_msg'] .= _("You did not enter a proper topic subject.") . '\n'; } if (isset($_POST['category'])) { $id_cat = $_POST['category']; } else { - $_SESSION['error_msg'] .= "You did not enter a proper topic category. \n"; + $_SESSION['error_msg'] .= _("You did not enter a proper topic category.") . '\n'; } } else { - $_SESSION['error_msg'] .= "You did not log in.\n"; + $_SESSION['error_msg'] .= _("You did not log in.") . '\n'; header('Location: '."/auth/login/"); } } else { - $_SESSION['error_msg'] .= "You did not sumit the category creation form.\n"; + $_SESSION['error_msg'] .= _("You did not sumit the category creation form.") . '\n'; } if ($_SESSION['error_msg'] == "") diff --git a/public/forum/index.php b/public/forum/index.php index 891aed0..3cf863b 100755 --- a/public/forum/index.php +++ b/public/forum/index.php @@ -4,7 +4,7 @@ ini_set('display_startup_errors', 1); error_reporting(E_ALL); session_start(); $root = realpath($_SERVER["DOCUMENT_ROOT"]); - +require("$root/lang/gettext.php"); ?> @@ -13,7 +13,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]); - Forum | Chiro - Canto + <?=_('Forum')?> | Chiro - Canto
-

Forum

+

diff --git a/public/forum/newtopic.php b/public/forum/newtopic.php index 9731c27..433b65b 100755 --- a/public/forum/newtopic.php +++ b/public/forum/newtopic.php @@ -33,21 +33,21 @@ if ($data = $req->fetch()) - Chiro - Canto + <?=_('Forum')?> Chiro - Canto
-

Forum

-

Create a new topic

+

+

- - - + + + - +
diff --git a/public/forum/topics/index.php b/public/forum/topics/index.php index fe97e4b..7fb8c0b 100755 --- a/public/forum/topics/index.php +++ b/public/forum/topics/index.php @@ -4,7 +4,8 @@ ini_set('display_startup_errors', 1); error_reporting(E_ALL); session_start(); $root = realpath($_SERVER["DOCUMENT_ROOT"]); - +$lang = isset($_COOKIE['lang']) ? $_COOKIE['lang'] : 'en'; +require("$root/lang/$lang/lang.php"); ?> @@ -13,7 +14,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]); - Forum | Chiro - Canto + <?=_('Forum')?> | Chiro - Canto
-

Forum

+

diff --git a/public/forum/topics/sendreply.php b/public/forum/topics/sendreply.php index cd26983..f91be25 100755 --- a/public/forum/topics/sendreply.php +++ b/public/forum/topics/sendreply.php @@ -43,22 +43,22 @@ if (isset($_POST['submit'])) $topic_id = $_POST['topic_id']; } else { - $_SESSION['error_msg'] .= "You did not enter your reply. \n"; + $_SESSION['error_msg'] .= _("You did not enter your reply.") .'\n'; } if (isset($_POST['reply']) and $_POST['reply'] != "") { $reply_content = $_POST['reply']; } else { - $_SESSION['error_msg'] .= "You did not enter your reply. \n"; + $_SESSION['error_msg'] .= _("You did not enter your reply.") .'\n'; } } else { - $_SESSION['error_msg'] .= "You did not log in.\n"; + $_SESSION['error_msg'] .= _("You did not log in.") .'\n'; header('Location: '."/auth/login/"); } } else { - $_SESSION['error_msg'] .= "You did not sumit the reply form.\n"; + $_SESSION['error_msg'] .= _("You did not sumit the reply form.") .'\n'; } if ($_SESSION['error_msg'] == "") diff --git a/public/forum/topics/topics.php b/public/forum/topics/topics.php index 87cc6c2..fabf79d 100755 --- a/public/forum/topics/topics.php +++ b/public/forum/topics/topics.php @@ -40,9 +40,9 @@ if (isset($_GET['topic'])){ - - - + + + @@ -71,7 +71,7 @@ if (isset($_GET['topic'])){
AuthorReplyDate

-

Your Reply

+

- +
-
- - - - - -
getMessage()); - echo "Can't fetch topic data.\n"; + echo _("Can't fetch topic data.") .'\n'; } } else { @@ -124,10 +117,10 @@ else { - - - - + + + + @@ -144,10 +137,18 @@ else { $firstname = $data['firstname']; $lastname = $data['lastname']; } + + $req = $db->prepare('SELECT COUNT(*) AS counter FROM replies WHERE reply_topic=:reply_topic'); + $req->execute(array( + "reply_topic"=>$row['id'] + )); + if ($data = $req->fetch()) { + $n_messages = $data['counter']; + } ?> - + diff --git a/public/gallery/gallery.php b/public/gallery/gallery.php index b28160b..40c5ab7 100755 --- a/public/gallery/gallery.php +++ b/public/gallery/gallery.php @@ -29,6 +29,6 @@ $result = $req->fetchAll(); } ?> -Upload Image + @@ -11,7 +13,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]); - Gallery | Chiro - Canto + <?=_('Gallery')?> | Chiro - Canto
-

Gallery

+

'.$_SESSION['error_msg'].'' : ""?>
-
+

- + prepare('INSERT INTO images (species, file_name, author_id, entry_date) VALUES (:species, :file_name, :author_id, now())'); @@ -63,10 +63,10 @@ if(isset($_POST['submit'])){ db_entry(isset($_POST['species']) ? $_POST['species'] : "", $name); header('Location: /gallery'); } else { - echo "Can't move your file."; + echo _("Can't move your file."); } } else { - $_SESSION['error_msg'] .= 'You should select a file to upload !!'; + $_SESSION['error_msg'] .= _('You should select a file to upload !'); } } else { form(); diff --git a/public/header.php b/public/header.php index 7790b59..02a720b 100755 --- a/public/header.php +++ b/public/header.php @@ -3,7 +3,7 @@ diff --git a/public/home/last-uploaded-file.php b/public/home/last-uploaded-file.php index 3718c12..0431c97 100755 --- a/public/home/last-uploaded-file.php +++ b/public/home/last-uploaded-file.php @@ -21,7 +21,7 @@ if ($data = $req->fetch())

-

Recorded on at

+

at

fetch())
\ No newline at end of file diff --git a/public/home/status.php b/public/home/status.php index ff8204d..ead7bdd 100755 --- a/public/home/status.php +++ b/public/home/status.php @@ -32,9 +32,9 @@ if ($data = $req->fetch()) { } ?>
- Records Uploaded
- Users Registered
- Taxa Available
+
+
+
fetch()) { $si_prefix = array( 'B', 'KB', 'MB', 'GB', 'TB', 'EB', 'ZB', 'YB' ); $base = 1024; $class = min((int)log($bytes , $base) , count($si_prefix) - 1); - echo sprintf('%1.2f', $bytes / pow($base,$class)).' '.$si_prefix[$class];?> of Free space
+ echo sprintf('%1.2f', $bytes / pow($base,$class)).' '.$si_prefix[$class];?>
\ No newline at end of file diff --git a/public/index.php b/public/index.php index 58fbed6..64f1d5d 100755 --- a/public/index.php +++ b/public/index.php @@ -4,6 +4,7 @@ ini_set('display_startup_errors', 1); error_reporting(E_ALL); session_start(); $root = realpath($_SERVER["DOCUMENT_ROOT"]); +require("$root/lang/gettext.php"); ?> @@ -25,9 +26,9 @@ include("$root/analytics/matomo.php");
-

Last uploaded sound

+

-

Stats

+

diff --git a/public/lang/en/lang.php b/public/lang/en/lang.php new file mode 100644 index 0000000..1989540 --- /dev/null +++ b/public/lang/en/lang.php @@ -0,0 +1,33 @@ + \ No newline at end of file diff --git a/public/lang/locale/chiro-canto.pot b/public/lang/locale/chiro-canto.pot new file mode 100644 index 0000000..4260b99 --- /dev/null +++ b/public/lang/locale/chiro-canto.pot @@ -0,0 +1,977 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-04-20 12:45+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: public/index.php:29 +msgid "Last uploaded sound" +msgstr "" + +#: public/index.php:31 +msgid "Stats" +msgstr "" + +#: public/menu.php:5 +msgid "about" +msgstr "" + +#: public/menu.php:8 +msgid "contact" +msgstr "" + +#: public/menu.php:13 +msgid "explore" +msgstr "" + +#: public/menu.php:17 +msgid "list" +msgstr "" + +#: public/menu.php:19 +msgid "map" +msgstr "" + +#: public/menu.php:21 public/menu.php:59 +msgid "mysteries" +msgstr "" + +#: public/menu.php:24 +msgid "random" +msgstr "" + +#: public/menu.php:26 +msgid "search" +msgstr "" + +#: public/menu.php:28 +msgid "spectrograms" +msgstr "" + +#: public/menu.php:31 +msgid "taxa" +msgstr "" + +#: public/menu.php:33 +msgid "guano" +msgstr "" + +#: public/menu.php:36 +msgid "users" +msgstr "" + +#: public/menu.php:43 +msgid "upload" +msgstr "" + +#: public/menu.php:46 +msgid "larynx" +msgstr "" + +#: public/menu.php:52 +msgid "forum" +msgstr "" + +#: public/menu.php:55 +msgid "messages" +msgstr "" + +#: public/menu.php:62 +msgid "articles" +msgstr "" + +#: public/menu.php:66 +msgid "Welcome" +msgstr "" + +#: public/header.php:6 +msgid "To share bat sounds all over the world" +msgstr "" + +#: public/forum/index.php:16 public/forum/index.php:27 +#: public/forum/newtopic.php:36 public/forum/newtopic.php:43 +#: public/forum/topics/index.php:17 public/forum/topics/index.php:28 +msgid "Forum" +msgstr "" + +#: public/forum/categories.php:25 +msgid "Categories" +msgstr "" + +#: public/forum/categories.php:29 +msgid "Title" +msgstr "" + +#: public/forum/categories.php:30 +msgid "Description" +msgstr "" + +#: public/forum/categories.php:46 +msgid "Create a category" +msgstr "" + +#: public/forum/categories.php:48 +msgid "Category title" +msgstr "" + +#: public/forum/categories.php:49 +msgid "Enter a name for the new category.." +msgstr "" + +#: public/forum/categories.php:50 +msgid "Category description" +msgstr "" + +#: public/forum/categories.php:51 +msgid "Enter a description for the new category (support Markdown).." +msgstr "" + +#: public/forum/categories.php:52 public/forum/newtopic.php:50 +#: public/upload/location.php:13 public/upload/upload.php:73 +#: public/gallery/upload.php:13 public/auth/login/index.php:34 +#: public/auth/register/index.php:43 public/contact/index.php:43 +msgid "submit" +msgstr "" + +#: public/forum/categories.php:52 public/forum/newtopic.php:50 +#: public/upload/upload.php:74 public/auth/login/index.php:34 +#: public/auth/register/index.php:43 public/contact/index.php:43 +msgid "reset" +msgstr "" + +#: public/forum/createcategory.php:37 +msgid "You did not enter a proper category title." +msgstr "" + +#: public/forum/createcategory.php:44 +msgid "You did not enter a proper category description." +msgstr "" + +#: public/forum/createcategory.php:47 public/forum/createtopic.php:69 +#: public/forum/topics/sendreply.php:56 +msgid "You did not log in." +msgstr "" + +#: public/forum/newtopic.php:44 +msgid "Create a new topic" +msgstr "" + +#: public/forum/newtopic.php:46 +msgid "Topic subject" +msgstr "" + +#: public/forum/newtopic.php:47 +msgid "Enter a topic subject.." +msgstr "" + +#: public/forum/newtopic.php:48 +msgid "Topic category" +msgstr "" + +#: public/forum/createtopic.php:59 +msgid "You did not enter a proper topic subject." +msgstr "" + +#: public/forum/createtopic.php:66 +msgid "You did not enter a proper topic category." +msgstr "" + +#: public/forum/createtopic.php:74 +msgid "You did not sumit the category creation form." +msgstr "" + +#: public/forum/topics/topics.php:43 public/forum/topics/topics.php:122 +#: public/explore/search/searchrecord.php:140 +#: public/explore/random/index.php:50 public/explore/list/index.php:49 +#: public/about/index.php:29 public/search/index.php:90 +msgid "Author" +msgstr "" + +#: public/forum/topics/topics.php:44 +msgid "Reply" +msgstr "" + +#: public/forum/topics/topics.php:45 public/explore/record/edit/index.php:55 +#: public/search/index.php:92 +msgid "Date" +msgstr "" + +#: public/forum/topics/topics.php:74 +msgid "Your Reply" +msgstr "" + +#: public/forum/topics/topics.php:93 +msgid "Enter your reply (support Markdown).." +msgstr "" + +#: public/forum/topics/topics.php:106 +msgid "Can't fetch topic data." +msgstr "" + +#: public/forum/topics/topics.php:120 +msgid "Subjects" +msgstr "" + +#: public/forum/topics/topics.php:121 +msgid "Answers" +msgstr "" + +#: public/forum/topics/topics.php:123 +msgid "Creation date" +msgstr "" + +#: public/forum/topics/topics.php:151 +msgid "No reply" +msgstr "" + +#: public/forum/topics/sendreply.php:46 public/forum/topics/sendreply.php:53 +msgid "You did not enter your reply." +msgstr "" + +#: public/forum/topics/sendreply.php:61 +msgid "You did not sumit the reply form." +msgstr "" + +#: public/upload/index.php:26 +msgid "Upload" +msgstr "" + +#: public/upload/index.php:37 +msgid "Upload Your Recording" +msgstr "" + +#: public/upload/location.php:2 +msgid "Location" +msgstr "" + +#: public/upload/location.php:3 +msgid "Metadata" +msgstr "" + +#: public/upload/location.php:4 +msgid "Verify" +msgstr "" + +#: public/upload/location.php:10 public/upload/upload.php:10 +#: public/explore/record/edit/index.php:53 +msgid "Coordinates" +msgstr "" + +#: public/upload/upload.php:8 +msgid "File" +msgstr "" + +#: public/upload/upload.php:8 +msgid "Audio File must be in wav format." +msgstr "" + +#: public/upload/upload.php:12 public/explore/random/index.php:48 +#: public/explore/taxa/index.php:54 public/explore/list/index.php:47 +#: public/explore/record/edit/index.php:61 +msgid "Species" +msgstr "" + +#: public/upload/upload.php:14 +msgid "Species identified" +msgstr "" + +#: public/upload/upload.php:15 +msgid "Enter a species.." +msgstr "" + +#: public/upload/upload.php:19 +msgid "Identity unknown" +msgstr "" + +#: public/upload/upload.php:21 public/explore/record/edit/index.php:63 +msgid "Subspecies" +msgstr "" + +#: public/upload/upload.php:22 +msgid "Enter a subspecies name.." +msgstr "" + +#: public/upload/upload.php:23 public/explore/search/searchrecord.php:141 +#: public/explore/random/index.php:51 public/explore/list/index.php:50 +#: public/search/index.php:91 +msgid "License" +msgstr "" + +#: public/upload/upload.php:32 public/explore/record/edit/index.php:59 +msgid "Recordist Name" +msgstr "" + +#: public/upload/upload.php:33 +msgid "Enter your name.." +msgstr "" + +#: public/upload/upload.php:34 +msgid "Country" +msgstr "" + +#: public/upload/upload.php:37 +msgid "Recording Date" +msgstr "" + +#: public/upload/upload.php:39 +msgid "Recording Time" +msgstr "" + +#: public/upload/upload.php:41 +msgid "Optional Metadata" +msgstr "" + +#: public/upload/upload.php:43 +msgid "Sound Types" +msgstr "" + +#: public/upload/upload.php:45 +msgid "uncertain" +msgstr "" + +#: public/upload/upload.php:46 +msgid "echolocation" +msgstr "" + +#: public/upload/upload.php:47 +msgid "buzz" +msgstr "" + +#: public/upload/upload.php:48 +msgid "social cry" +msgstr "" + +#: public/upload/upload.php:49 +msgid "song" +msgstr "" + +#: public/upload/upload.php:51 +msgid "Quality" +msgstr "" + +#: public/upload/upload.php:53 +msgid "Unrated" +msgstr "" + +#: public/upload/upload.php:54 +msgid "Loud and Clear" +msgstr "" + +#: public/upload/upload.php:55 +msgid "" +"Clear, but bat a bit distant, or some interference with other sound sources" +msgstr "" + +#: public/upload/upload.php:56 +msgid "Moderately clear, or quite some interference" +msgstr "" + +#: public/upload/upload.php:57 +msgid "Faint recording, or much interference" +msgstr "" + +#: public/upload/upload.php:58 +msgid "Barely audible" +msgstr "" + +#: public/upload/upload.php:60 +msgid "Remarks" +msgstr "" + +#: public/upload/upload.php:62 +msgid "Recorder manufacturer" +msgstr "" + +#: public/upload/upload.php:64 +msgid "Recorder model" +msgstr "" + +#: public/upload/upload.php:66 public/explore/record/edit/index.php:70 +msgid "Recorder Serial Number" +msgstr "" + +#: public/upload/upload.php:68 +msgid "Samplerate" +msgstr "" + +#: public/upload/upload.php:70 +msgid "Time Expansion Factor" +msgstr "" + +#: public/upload/submit.php:113 +msgid "This file extension is not allowed; please upload a WAV file." +msgstr "" + +#: public/upload/submit.php:117 +msgid "The file size must be below 10MB." +msgstr "" + +#: public/upload/submit.php:122 +msgid "The file " +msgstr "" + +#: public/upload/submit.php:122 +msgid "has been uploaded." +msgstr "" + +#: public/upload/submit.php:124 +msgid "Sorry, there was an error uploading your file" +msgstr "" + +#: public/upload/submit.php:134 +msgid "Incorrect coordinates, please try again." +msgstr "" + +#: public/upload/submit.php:149 +msgid "Error, incorrect species name." +msgstr "" + +#: public/upload/submit.php:167 +msgid "Incorrect license" +msgstr "" + +#: public/upload/submit.php:174 +msgid "Incorrect Recordist Name." +msgstr "" + +#: public/upload/submit.php:181 +msgid "Incorrect Country. " +msgstr "" + +#: public/upload/submit.php:188 +msgid "Incorrect date." +msgstr "" + +#: public/upload/submit.php:195 +msgid "Incorrect time." +msgstr "" + +#: public/upload/submit.php:202 +msgid "Incorrect sound type." +msgstr "" + +#: public/upload/submit.php:209 +msgid "Incorrect quality value." +msgstr "" + +#: public/upload/submit.php:237 +msgid "Form not submitted." +msgstr "" + +#: public/gallery/index.php:16 public/gallery/index.php:27 +msgid "Gallery" +msgstr "" + +#: public/gallery/upload.php:9 +msgid "Image" +msgstr "" + +#: public/gallery/upload.php:42 +msgid "You need to be logged in to upload images." +msgstr "" + +#: public/gallery/upload.php:66 +msgid "Can't move your file." +msgstr "" + +#: public/gallery/upload.php:69 +msgid "You should select a file to upload !" +msgstr "" + +#: public/gallery/gallery.php:32 +msgid "Upload Image" +msgstr "" + +#: public/auth/login/index.php:16 public/auth/login/index.php:27 +msgid "Login" +msgstr "" + +#: public/auth/login/index.php:30 public/auth/register/index.php:35 +#: public/explore/users/index.php:48 +msgid "Username" +msgstr "" + +#: public/auth/login/index.php:31 +msgid "Enter your username.." +msgstr "" + +#: public/auth/login/index.php:33 +msgid "Enter your password.." +msgstr "" + +#: public/auth/login/index.php:36 +msgid "Not yet registered ?" +msgstr "" + +#: public/auth/login/login.php:49 public/auth/register/register.php:55 +msgid "You did not enter a proper username." +msgstr "" + +#: public/auth/login/login.php:54 public/auth/register/register.php:68 +msgid "You did not enter a proper password." +msgstr "" + +#: public/auth/login/login.php:58 public/auth/register/register.php:72 +msgid "You did not submit the register form." +msgstr "" + +#: public/auth/login/login.php:70 +msgid "Incorrect password, please try again." +msgstr "" + +#: public/auth/register/index.php:17 public/auth/register/index.php:28 +msgid "Register" +msgstr "" + +#: public/auth/register/index.php:31 public/contact/index.php:25 +msgid "First Name" +msgstr "" + +#: public/auth/register/index.php:33 public/contact/index.php:28 +msgid "Last Name" +msgstr "" + +#: public/auth/register/index.php:37 +msgid "Password" +msgstr "" + +#: public/auth/register/index.php:39 +msgid "Your email" +msgstr "" + +#: public/auth/register/index.php:41 +msgid "Your website (optional)" +msgstr "" + +#: public/auth/register/index.php:45 +msgid "Already registered ?" +msgstr "" + +#: public/auth/register/register.php:41 +msgid "You did not enter a proper first name." +msgstr "" + +#: public/auth/register/register.php:48 +msgid "You did not enter a proper last name." +msgstr "" + +#: public/auth/register/register.php:62 +msgid "You did not enter a proper email address." +msgstr "" + +#: public/home/last-uploaded-file.php:39 +msgid "Error fetch." +msgstr "" + +#: public/home/status.php:35 +msgid "records_uploaded" +msgstr "" + +#: public/home/status.php:36 +msgid "users_registered" +msgstr "" + +#: public/home/status.php:37 +msgid "taxa_available" +msgstr "" + +#: public/home/status.php:45 +msgid "free_space" +msgstr "" + +#: public/explore/mysteries/index.php:42 +msgid "Mystery recording" +msgstr "" + +#: public/explore/mysteries/index.php:50 +msgid "Recorded on " +msgstr "" + +#: public/explore/mysteries/index.php:50 public/explore/record/index.php:55 +msgid "at" +msgstr "" + +#: public/explore/spectrograms/index.php:38 public/explore/index.php:15 +#: public/explore/index.php:26 public/explore/search/index.php:16 +#: public/explore/search/index.php:27 +#: public/explore/search/searchrecord.php:117 +#: public/explore/search/searchrecord.php:124 +#: public/explore/random/index.php:33 public/explore/random/index.php:43 +#: public/explore/map/index.php:30 public/explore/map/index.php:48 +#: public/explore/taxa/index.php:31 public/explore/list/index.php:29 +#: public/explore/list/index.php:41 public/explore/users/index.php:31 +#: public/explore/users/index.php:42 public/explore/record/index.php:16 +#: public/search/index.php:68 public/search/index.php:79 +msgid "Explore" +msgstr "" + +#: public/explore/spectrograms/index.php:49 +msgid "Spectrograms" +msgstr "" + +#: public/explore/spectrograms/index.php:55 public/explore/record/index.php:55 +msgid "Recorded on" +msgstr "" + +#: public/explore/search/index.php:28 +msgid "Multicriteria recordings Search" +msgstr "" + +#: public/explore/search/index.php:30 +msgid "Species name" +msgstr "" + +#: public/explore/search/index.php:32 +msgid "Subspecies name" +msgstr "" + +#: public/explore/search/index.php:34 +msgid "Recordist name" +msgstr "" + +#: public/explore/search/index.php:36 +msgid "After date" +msgstr "" + +#: public/explore/search/index.php:38 +msgid "Befora date" +msgstr "" + +#: public/explore/search/index.php:40 +msgid "Keyword(s) in remarks (comma separated)" +msgstr "" + +#: public/explore/search/searchrecord.php:102 +msgid "You did not enter any query." +msgstr "" + +#: public/explore/search/searchrecord.php:125 +msgid "Search results" +msgstr "" + +#: public/explore/search/searchrecord.php:133 public/search/index.php:83 +msgid "No result for this query, please try again." +msgstr "" + +#: public/explore/search/searchrecord.php:139 +#: public/explore/random/index.php:49 public/search/index.php:89 +msgid "File name" +msgstr "" + +#: public/explore/search/searchrecord.php:142 public/explore/list/index.php:46 +msgid "Datetime" +msgstr "" + +#: public/explore/random/index.php:44 +msgid "Random Record" +msgstr "" + +#: public/explore/random/index.php:52 public/explore/list/index.php:51 +msgid "Audio" +msgstr "" + +#: public/explore/random/index.php:65 +msgid "Click on the file name to go to the spectrogram view." +msgstr "" + +#: public/explore/map/index.php:49 +msgid "Record Map" +msgstr "" + +#: public/explore/taxa/index.php:41 +msgid "Taxa" +msgstr "" + +#: public/explore/taxa/index.php:42 +msgid "These taxa come from INPN TAXREF v14.0." +msgstr "" + +#: public/explore/taxa/index.php:46 +msgid "Kingdom" +msgstr "" + +#: public/explore/taxa/index.php:47 +msgid "Phylum" +msgstr "" + +#: public/explore/taxa/index.php:48 +msgid "Class" +msgstr "" + +#: public/explore/taxa/index.php:49 +msgid "Order" +msgstr "" + +#: public/explore/taxa/index.php:50 +msgid "Family" +msgstr "" + +#: public/explore/taxa/index.php:51 +msgid "Subfamily" +msgstr "" + +#: public/explore/taxa/index.php:52 +msgid "Tribu" +msgstr "" + +#: public/explore/taxa/index.php:53 +msgid "Genus" +msgstr "" + +#: public/explore/list/index.php:42 +msgid "Recording List" +msgstr "" + +#: public/explore/list/index.php:48 public/explore/record/edit/index.php:51 +msgid "File Name" +msgstr "" + +#: public/explore/list/index.php:72 +msgid "Open with Larynx" +msgstr "" + +#: public/explore/list/index.php:73 +msgid "See GUANO metadata" +msgstr "" + +#: public/explore/list/index.php:74 +msgid "Edit record metadata" +msgstr "" + +#: public/explore/guano/index.php:29 +msgid "about GUANO" +msgstr "" + +#: public/explore/guano/index.php:55 +msgid "Can't fetch data." +msgstr "" + +#: public/explore/users/index.php:43 +msgid "Users" +msgstr "" + +#: public/explore/users/index.php:47 +msgid "Name" +msgstr "" + +#: public/explore/users/index.php:49 +msgid "Private message link" +msgstr "" + +#: public/explore/record/index.php:27 +msgid "Record" +msgstr "" + +#: public/explore/record/index.php:70 +msgid "Can't find the record associated with this id, please try again." +msgstr "" + +#: public/explore/record/edit/index.php:29 +#: public/explore/record/edit/index.php:41 +msgid "Edit" +msgstr "" + +#: public/explore/record/edit/index.php:57 +msgid "Time" +msgstr "" + +#: public/explore/record/edit/index.php:66 +msgid "Recorder Manufacturer" +msgstr "" + +#: public/explore/record/edit/index.php:68 +msgid "Recorder Model" +msgstr "" + +#: public/explore/record/edit/index.php:76 +msgid "Can't fetch information on record with id" +msgstr "" + +#: public/about/index.php:27 +msgid "About" +msgstr "" + +#: public/about/index.php:28 +msgid "" +"Chiro-Canto is an online bat sound sharing set of tools, inspired by Xeno-Canto." +msgstr "" + +#: public/about/index.php:30 +msgid "" +"This website is developped with ♥ by Samuel ORTION, a juvenile " +"Geekus biologicus." +msgstr "" + +#: public/about/index.php:31 +msgid "Source code" +msgstr "" + +#: public/about/index.php:32 +msgid "" +"This project is available under the GNU Affero GPL v3 license at https://forge.ortion." +"xyz/Chiro-Canto/chiro-canto." +msgstr "" + +#: public/contact/index.php:22 +msgid "Contact" +msgstr "" + +#: public/contact/index.php:26 +msgid "Your first name.." +msgstr "" + +#: public/contact/index.php:29 +msgid "Your last name.." +msgstr "" + +#: public/contact/index.php:31 +msgid "Email" +msgstr "" + +#: public/contact/index.php:32 +msgid "Your email.." +msgstr "" + +#: public/contact/index.php:34 +msgid "Website" +msgstr "" + +#: public/contact/index.php:35 +msgid "Your website.." +msgstr "" + +#: public/contact/index.php:37 +msgid "Subject" +msgstr "" + +#: public/contact/index.php:38 +msgid "Your subject.." +msgstr "" + +#: public/contact/index.php:40 +msgid "Message" +msgstr "" + +#: public/contact/index.php:41 +msgid "Write something.." +msgstr "" + +#: public/contact/sendmail.php:24 +msgid "You have not entered a proper first name." +msgstr "" + +#: public/contact/sendmail.php:29 +msgid "You have not entered a proper last name." +msgstr "" + +#: public/contact/sendmail.php:34 +msgid "You have not entered a proper email address." +msgstr "" + +#: public/contact/sendmail.php:39 +msgid "You have not entered a proper subject." +msgstr "" + +#: public/contact/sendmail.php:44 +msgid "You have not entered a proper message." +msgstr "" + +#: public/contact/sendmail.php:85 +msgid "Message has been sent" +msgstr "" + +#: public/contact/sendmail.php:87 +msgid "Message could not be sent. Mailer Error: " +msgstr "" + +#: public/search/index.php:80 +msgid "Search Results" +msgstr "" + +#: public/articles/view.php:5 +msgid "Published on " +msgstr "" + +#: public/articles/view.php:6 public/articles/list.php:48 +msgid "Return to Homepage" +msgstr "" + +#: public/articles/list.php:26 +msgid "All Articles" +msgstr "" + +#: public/articles/list.php:36 +msgid "Article" +msgstr "" + +#: public/articles/list.php:47 +msgid "New article" +msgstr "" + +#: public/larynx/index.php:32 +msgid "A web tool for bat sound analysis" +msgstr "" + +#: public/larynx/index.php:103 +msgid "Error: Can't retrieve audio from database in Larynx" +msgstr "" + +#: public/discussion/messages/index.php:29 +msgid "You must be logged in to receive or send messages." +msgstr "" + +#: public/discussion/messages/index.php:76 public/discussion/index.php:41 +#: public/discussion/index.php:52 +msgid "Discussion" +msgstr "" + +#: public/discussion/messages/index.php:112 +msgid "Enter your message.." +msgstr "" + +#: public/discussion/messages/index.php:113 public/discussion/index.php:84 +msgid "Send" +msgstr "" + +#: public/discussion/messages/sendmessage.php:36 +msgid "Error: No message author" +msgstr "" + +#: public/discussion/messages/sendmessage.php:41 +msgid "Error: No message destinator" +msgstr "" + +#: public/discussion/messages/sendmessage.php:45 +msgid "Error: No message content" +msgstr "" + +#: public/discussion/index.php:53 +msgid "New messages" +msgstr "" + +#: public/discussion/index.php:76 +msgid "No message received." +msgstr "" + +#: public/discussion/index.php:80 +msgid "Send a message" +msgstr "" + +#: public/discussion/index.php:82 +msgid "Addressee" +msgstr "" diff --git a/public/lang/locale/fr/LC_MESSAGES/default.mo b/public/lang/locale/fr/LC_MESSAGES/default.mo new file mode 100644 index 0000000..10806ac Binary files /dev/null and b/public/lang/locale/fr/LC_MESSAGES/default.mo differ diff --git a/public/lang/locale/fr/LC_MESSAGES/default.po b/public/lang/locale/fr/LC_MESSAGES/default.po new file mode 100644 index 0000000..84bf30b --- /dev/null +++ b/public/lang/locale/fr/LC_MESSAGES/default.po @@ -0,0 +1,994 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-04-20 12:45+0200\n" +"PO-Revision-Date: 2021-04-20 14:05+0200\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.4.2\n" +"Last-Translator: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"Language: fr\n" + +#: public/index.php:29 +msgid "Last uploaded sound" +msgstr "Dernier fichier téléversé" + +#: public/index.php:31 +msgid "Stats" +msgstr "Statistiques" + +#: public/menu.php:5 +msgid "about" +msgstr "à propos" + +#: public/menu.php:8 +msgid "contact" +msgstr "contact" + +#: public/menu.php:13 +msgid "explore" +msgstr "explorer" + +#: public/menu.php:17 +msgid "list" +msgstr "liste" + +#: public/menu.php:19 +msgid "map" +msgstr "carte" + +#: public/menu.php:21 public/menu.php:59 +msgid "mysteries" +msgstr "mystères" + +#: public/menu.php:24 +msgid "random" +msgstr "aléatoire" + +#: public/menu.php:26 +msgid "search" +msgstr "recherche" + +#: public/menu.php:28 +msgid "spectrograms" +msgstr "spectrogramme" + +#: public/menu.php:31 +msgid "taxa" +msgstr "taxons" + +#: public/menu.php:33 +msgid "guano" +msgstr "guano" + +#: public/menu.php:36 +msgid "users" +msgstr "utilisateurs" + +#: public/menu.php:43 +msgid "upload" +msgstr "téléchargement" + +#: public/menu.php:46 +msgid "larynx" +msgstr "larynx" + +#: public/menu.php:52 +msgid "forum" +msgstr "forum" + +#: public/menu.php:55 +msgid "messages" +msgstr "messages" + +#: public/menu.php:62 +msgid "articles" +msgstr "articles" + +#: public/menu.php:66 +msgid "Welcome" +msgstr "Bienvenue" + +#: public/header.php:6 +msgid "To share bat sounds all over the world" +msgstr "Partager des sons de chauve-souris du monde entier" + +#: public/forum/index.php:16 public/forum/index.php:27 +#: public/forum/newtopic.php:36 public/forum/newtopic.php:43 +#: public/forum/topics/index.php:17 public/forum/topics/index.php:28 +msgid "Forum" +msgstr "Forum" + +#: public/forum/categories.php:25 +msgid "Categories" +msgstr "Catégories" + +#: public/forum/categories.php:29 +msgid "Title" +msgstr "Titre" + +#: public/forum/categories.php:30 +msgid "Description" +msgstr "Description" + +#: public/forum/categories.php:46 +msgid "Create a category" +msgstr "Créer une catégorie" + +#: public/forum/categories.php:48 +msgid "Category title" +msgstr "Titre de la catégorie" + +#: public/forum/categories.php:49 +msgid "Enter a name for the new category.." +msgstr "Entrer un nom pour la nouvelle catégorie.." + +#: public/forum/categories.php:50 +msgid "Category description" +msgstr "Description de la catégorie" + +#: public/forum/categories.php:51 +msgid "Enter a description for the new category (support Markdown).." +msgstr "" +"Entrer une description pour la nouvelle catégorie (supporte Markdown).." + +#: public/forum/categories.php:52 public/forum/newtopic.php:50 +#: public/upload/location.php:13 public/upload/upload.php:73 +#: public/gallery/upload.php:13 public/auth/login/index.php:34 +#: public/auth/register/index.php:43 public/contact/index.php:43 +msgid "submit" +msgstr "soumettre" + +#: public/forum/categories.php:52 public/forum/newtopic.php:50 +#: public/upload/upload.php:74 public/auth/login/index.php:34 +#: public/auth/register/index.php:43 public/contact/index.php:43 +msgid "reset" +msgstr "annuler" + +#: public/forum/createcategory.php:37 +msgid "You did not enter a proper category title." +msgstr "Vous n'avez pas entré de titre." + +#: public/forum/createcategory.php:44 +msgid "You did not enter a proper category description." +msgstr "Vous n'avez pas entré de description." + +#: public/forum/createcategory.php:47 public/forum/createtopic.php:69 +#: public/forum/topics/sendreply.php:56 +msgid "You did not log in." +msgstr "Vous n'êtes pas connecté." + +#: public/forum/newtopic.php:44 +msgid "Create a new topic" +msgstr "Créer un nouveau sujet" + +#: public/forum/newtopic.php:46 +msgid "Topic subject" +msgstr "Topic" + +#: public/forum/newtopic.php:47 +msgid "Enter a topic subject.." +msgstr "Entrer un sujet.." + +#: public/forum/newtopic.php:48 +msgid "Topic category" +msgstr "Catégorie du sujet" + +#: public/forum/createtopic.php:59 +msgid "You did not enter a proper topic subject." +msgstr "Vous n'avez pas entré de sujet." + +#: public/forum/createtopic.php:66 +msgid "You did not enter a proper topic category." +msgstr "Vous n'avez pas entré de catégorie de sujet." + +#: public/forum/createtopic.php:74 +msgid "You did not sumit the category creation form." +msgstr "Vous n'avez pas soumis le formulaire de création de catégorie." + +#: public/forum/topics/topics.php:43 public/forum/topics/topics.php:122 +#: public/explore/search/searchrecord.php:140 +#: public/explore/random/index.php:50 public/explore/list/index.php:49 +#: public/about/index.php:29 public/search/index.php:90 +msgid "Author" +msgstr "Auteur" + +#: public/forum/topics/topics.php:44 +msgid "Reply" +msgstr "Réponse" + +#: public/forum/topics/topics.php:45 public/explore/record/edit/index.php:55 +#: public/search/index.php:92 +msgid "Date" +msgstr "Date" + +#: public/forum/topics/topics.php:74 +msgid "Your Reply" +msgstr "Votre réponse" + +#: public/forum/topics/topics.php:93 +msgid "Enter your reply (support Markdown).." +msgstr "Entrer votre réponse (supporte Markdown).." + +#: public/forum/topics/topics.php:106 +msgid "Can't fetch topic data." +msgstr "Impossible de récupérer les données." + +#: public/forum/topics/topics.php:120 +msgid "Subjects" +msgstr "Sujets" + +#: public/forum/topics/topics.php:121 +msgid "Answers" +msgstr "Réponses" + +#: public/forum/topics/topics.php:123 +msgid "Creation date" +msgstr "Date de création" + +#: public/forum/topics/topics.php:151 +msgid "No reply" +msgstr "Pas de réponse" + +#: public/forum/topics/sendreply.php:46 public/forum/topics/sendreply.php:53 +msgid "You did not enter your reply." +msgstr "Vous n'avez pas entré votre réponse." + +#: public/forum/topics/sendreply.php:61 +msgid "You did not sumit the reply form." +msgstr "Vous n'avez pas soumis le formulaire de réponse." + +#: public/upload/index.php:26 +msgid "Upload" +msgstr "Téléchargement" + +#: public/upload/index.php:37 +msgid "Upload Your Recording" +msgstr "Télécharger votre enregistrement" + +#: public/upload/location.php:2 +msgid "Location" +msgstr "Lieu" + +#: public/upload/location.php:3 +msgid "Metadata" +msgstr "Métadonnées" + +#: public/upload/location.php:4 +msgid "Verify" +msgstr "Vérification" + +#: public/upload/location.php:10 public/upload/upload.php:10 +#: public/explore/record/edit/index.php:53 +msgid "Coordinates" +msgstr "Coordonnées" + +#: public/upload/upload.php:8 +msgid "File" +msgstr "Fichier" + +#: public/upload/upload.php:8 +msgid "Audio File must be in wav format." +msgstr "Le fichier doit être au format wav." + +#: public/upload/upload.php:12 public/explore/random/index.php:48 +#: public/explore/taxa/index.php:54 public/explore/list/index.php:47 +#: public/explore/record/edit/index.php:61 +msgid "Species" +msgstr "Espèce" + +#: public/upload/upload.php:14 +msgid "Species identified" +msgstr "Espèce identifiée" + +#: public/upload/upload.php:15 +msgid "Enter a species.." +msgstr "Entrer une espèce.." + +#: public/upload/upload.php:19 +msgid "Identity unknown" +msgstr "Identité inconnue" + +#: public/upload/upload.php:21 public/explore/record/edit/index.php:63 +msgid "Subspecies" +msgstr "Sous-espèce" + +#: public/upload/upload.php:22 +msgid "Enter a subspecies name.." +msgstr "Entrer un nom de sous-espèce.." + +#: public/upload/upload.php:23 public/explore/search/searchrecord.php:141 +#: public/explore/random/index.php:51 public/explore/list/index.php:50 +#: public/search/index.php:91 +msgid "License" +msgstr "Licence" + +#: public/upload/upload.php:32 public/explore/record/edit/index.php:59 +msgid "Recordist Name" +msgstr "Nom de l'auteur de l'enregistrement" + +#: public/upload/upload.php:33 +msgid "Enter your name.." +msgstr "Entrer votre nom.." + +#: public/upload/upload.php:34 +msgid "Country" +msgstr "Pays" + +#: public/upload/upload.php:37 +msgid "Recording Date" +msgstr "Date d'enregistrement" + +#: public/upload/upload.php:39 +msgid "Recording Time" +msgstr "Heure d'enregistrement" + +#: public/upload/upload.php:41 +msgid "Optional Metadata" +msgstr "Métadonnées optionnelles" + +#: public/upload/upload.php:43 +msgid "Sound Types" +msgstr "Type de son" + +#: public/upload/upload.php:45 +msgid "uncertain" +msgstr "incertain" + +#: public/upload/upload.php:46 +msgid "echolocation" +msgstr "écholocation" + +#: public/upload/upload.php:47 +msgid "buzz" +msgstr "buzz" + +#: public/upload/upload.php:48 +msgid "social cry" +msgstr "cris sociaux" + +#: public/upload/upload.php:49 +msgid "song" +msgstr "chant" + +#: public/upload/upload.php:51 +msgid "Quality" +msgstr "Qualité" + +#: public/upload/upload.php:53 +msgid "Unrated" +msgstr "Non spécifiée" + +#: public/upload/upload.php:54 +msgid "Loud and Clear" +msgstr "Fort et clair" + +#: public/upload/upload.php:55 +msgid "" +"Clear, but bat a bit distant, or some interference with other sound sources" +msgstr "" +"Clair, mais chauve-souris un peu distante, ou quelques interference avec " +"d'autres sons" + +#: public/upload/upload.php:56 +msgid "Moderately clear, or quite some interference" +msgstr "Modérément clair, ou quelques interférences" + +#: public/upload/upload.php:57 +msgid "Faint recording, or much interference" +msgstr "Enregistrement faible, ou beaucoup d'interference" + +#: public/upload/upload.php:58 +msgid "Barely audible" +msgstr "Quasiment inaudible" + +#: public/upload/upload.php:60 +msgid "Remarks" +msgstr "Remarques" + +#: public/upload/upload.php:62 +msgid "Recorder manufacturer" +msgstr "Constructeur de l'enregistreur" + +#: public/upload/upload.php:64 +msgid "Recorder model" +msgstr "Modèle de l'enregistreur" + +#: public/upload/upload.php:66 public/explore/record/edit/index.php:70 +msgid "Recorder Serial Number" +msgstr "Numéro de série de l'enregistreur" + +#: public/upload/upload.php:68 +msgid "Samplerate" +msgstr "Fréquence d'échantillonage" + +#: public/upload/upload.php:70 +msgid "Time Expansion Factor" +msgstr "Facteur d'expansion de temps" + +#: public/upload/submit.php:113 +msgid "This file extension is not allowed; please upload a WAV file." +msgstr "" +"Cette extension de fichier n'est pas autorisée; merci de télécharger un son ." +"wav." + +#: public/upload/submit.php:117 +msgid "The file size must be below 10MB." +msgstr "Le fichier doit faire moins de 10MB." + +#: public/upload/submit.php:122 +msgid "The file " +msgstr "Le fichier " + +#: public/upload/submit.php:122 +msgid "has been uploaded." +msgstr "a été téléchargé." + +#: public/upload/submit.php:124 +msgid "Sorry, there was an error uploading your file" +msgstr "Désolé, il y a eu une erreur lors du téléchargement" + +#: public/upload/submit.php:134 +msgid "Incorrect coordinates, please try again." +msgstr "Coordonnées incorrectes, merci de réessayer." + +#: public/upload/submit.php:149 +msgid "Error, incorrect species name." +msgstr "Erreur, espèce incorrecte." + +#: public/upload/submit.php:167 +msgid "Incorrect license" +msgstr "Licence incorrecte" + +#: public/upload/submit.php:174 +msgid "Incorrect Recordist Name." +msgstr "Auteur de l'enregistrement incorrect." + +#: public/upload/submit.php:181 +msgid "Incorrect Country. " +msgstr "Pays incorrect. " + +#: public/upload/submit.php:188 +msgid "Incorrect date." +msgstr "Date incorrecte." + +#: public/upload/submit.php:195 +msgid "Incorrect time." +msgstr "Heure incorrecte." + +#: public/upload/submit.php:202 +msgid "Incorrect sound type." +msgstr "Type de son incorrect." + +#: public/upload/submit.php:209 +msgid "Incorrect quality value." +msgstr "Qualité incorrecte." + +#: public/upload/submit.php:237 +msgid "Form not submitted." +msgstr "Formulaire non soumis." + +#: public/gallery/index.php:16 public/gallery/index.php:27 +msgid "Gallery" +msgstr "Galerie" + +#: public/gallery/upload.php:9 +msgid "Image" +msgstr "Image" + +#: public/gallery/upload.php:42 +msgid "You need to be logged in to upload images." +msgstr "Vous devez être connecté pour télécharger une image." + +#: public/gallery/upload.php:66 +msgid "Can't move your file." +msgstr "Erreur: impossible de déplacer le fichier." + +#: public/gallery/upload.php:69 +msgid "You should select a file to upload !" +msgstr "Vous devez sélectionner un fichier à télécharger !" + +#: public/gallery/gallery.php:32 +msgid "Upload Image" +msgstr "Télécharger une image" + +#: public/auth/login/index.php:16 public/auth/login/index.php:27 +msgid "Login" +msgstr "Connexion" + +#: public/auth/login/index.php:30 public/auth/register/index.php:35 +#: public/explore/users/index.php:48 +msgid "Username" +msgstr "Nom d'utilisateur" + +#: public/auth/login/index.php:31 +msgid "Enter your username.." +msgstr "Entrer un nom d'utilisateur.." + +#: public/auth/login/index.php:33 +msgid "Enter your password.." +msgstr "Entrer votre mot de passe.." + +#: public/auth/login/index.php:36 +msgid "Not yet registered ?" +msgstr "Pas encore inscrit ?" + +#: public/auth/login/login.php:49 public/auth/register/register.php:55 +msgid "You did not enter a proper username." +msgstr "Vous n'avez pas entré un nom d'utilisateur correct." + +#: public/auth/login/login.php:54 public/auth/register/register.php:68 +msgid "You did not enter a proper password." +msgstr "Vous n'avez pas entré de mot de passe." + +#: public/auth/login/login.php:58 public/auth/register/register.php:72 +msgid "You did not submit the register form." +msgstr "Vous n'avez pas soumis le formulaire d'inscription." + +#: public/auth/login/login.php:70 +msgid "Incorrect password, please try again." +msgstr "Mot de passe incorrect, merci de réessayer." + +#: public/auth/register/index.php:17 public/auth/register/index.php:28 +msgid "Register" +msgstr "Inscription" + +#: public/auth/register/index.php:31 public/contact/index.php:25 +msgid "First Name" +msgstr "Prénom" + +#: public/auth/register/index.php:33 public/contact/index.php:28 +msgid "Last Name" +msgstr "Nom" + +#: public/auth/register/index.php:37 +msgid "Password" +msgstr "Mot de passe" + +#: public/auth/register/index.php:39 +msgid "Your email" +msgstr "Votre email" + +#: public/auth/register/index.php:41 +msgid "Your website (optional)" +msgstr "Votre site web (optionnel)" + +#: public/auth/register/index.php:45 +msgid "Already registered ?" +msgstr "Déjà inscrit ?" + +#: public/auth/register/register.php:41 +msgid "You did not enter a proper first name." +msgstr "Vous n'avez pas entré de prénom." + +#: public/auth/register/register.php:48 +msgid "You did not enter a proper last name." +msgstr "Vous n'avez pas entré de nom." + +#: public/auth/register/register.php:62 +msgid "You did not enter a proper email address." +msgstr "Vous n'avez pas entré d'adresse email." + +#: public/home/last-uploaded-file.php:39 +msgid "Error fetch." +msgstr "Erreur de collecte." + +#: public/home/status.php:35 +msgid "records_uploaded" +msgstr "Enregistrements téléchargés" + +#: public/home/status.php:36 +msgid "users_registered" +msgstr "Utilisateurs enregistrés" + +#: public/home/status.php:37 +msgid "taxa_available" +msgstr "Taxons disponibles" + +#: public/home/status.php:45 +msgid "free_space" +msgstr "Espace libre sur le disque" + +#: public/explore/mysteries/index.php:42 +msgid "Mystery recording" +msgstr "Enregistrement mystère" + +#: public/explore/mysteries/index.php:50 +msgid "Recorded on " +msgstr "Enregistré le" + +#: public/explore/mysteries/index.php:50 public/explore/record/index.php:55 +msgid "at" +msgstr "à" + +#: public/explore/spectrograms/index.php:38 public/explore/index.php:15 +#: public/explore/index.php:26 public/explore/search/index.php:16 +#: public/explore/search/index.php:27 +#: public/explore/search/searchrecord.php:117 +#: public/explore/search/searchrecord.php:124 +#: public/explore/random/index.php:33 public/explore/random/index.php:43 +#: public/explore/map/index.php:30 public/explore/map/index.php:48 +#: public/explore/taxa/index.php:31 public/explore/list/index.php:29 +#: public/explore/list/index.php:41 public/explore/users/index.php:31 +#: public/explore/users/index.php:42 public/explore/record/index.php:16 +#: public/search/index.php:68 public/search/index.php:79 +msgid "Explore" +msgstr "Explorer" + +#: public/explore/spectrograms/index.php:49 +msgid "Spectrograms" +msgstr "Spectrogramme" + +#: public/explore/spectrograms/index.php:55 public/explore/record/index.php:55 +msgid "Recorded on" +msgstr "Enregistré le " + +#: public/explore/search/index.php:28 +msgid "Multicriteria recordings Search" +msgstr "Recherche d'enregistrement mutlicritères" + +#: public/explore/search/index.php:30 +msgid "Species name" +msgstr "Nom de l'espèce" + +#: public/explore/search/index.php:32 +msgid "Subspecies name" +msgstr "Nom de la sous-espèce" + +#: public/explore/search/index.php:34 +msgid "Recordist name" +msgstr "Nom de l'auteur de l'enregistrement" + +#: public/explore/search/index.php:36 +msgid "After date" +msgstr "Après la date" + +#: public/explore/search/index.php:38 +msgid "Befora date" +msgstr "Avant la date" + +#: public/explore/search/index.php:40 +msgid "Keyword(s) in remarks (comma separated)" +msgstr "Mot(s) clé dans les remarques (séparés par des virgules)" + +#: public/explore/search/searchrecord.php:102 +msgid "You did not enter any query." +msgstr "Vous n'avez pas entré de champ." + +#: public/explore/search/searchrecord.php:125 +msgid "Search results" +msgstr "Résultats de recherche" + +#: public/explore/search/searchrecord.php:133 public/search/index.php:83 +msgid "No result for this query, please try again." +msgstr "Pas de résultats pour cette requête, merci de réessayer." + +#: public/explore/search/searchrecord.php:139 +#: public/explore/random/index.php:49 public/search/index.php:89 +msgid "File name" +msgstr "Nom du fichier" + +#: public/explore/search/searchrecord.php:142 public/explore/list/index.php:46 +msgid "Datetime" +msgstr "Date et heure" + +#: public/explore/random/index.php:44 +msgid "Random Record" +msgstr "Enregistrement aléatoire" + +#: public/explore/random/index.php:52 public/explore/list/index.php:51 +msgid "Audio" +msgstr "Audio" + +#: public/explore/random/index.php:65 +msgid "Click on the file name to go to the spectrogram view." +msgstr "Cliquer sur le nom du fichier pour voir le spectrogramme." + +#: public/explore/map/index.php:49 +msgid "Record Map" +msgstr "Carte des enregistrements" + +#: public/explore/taxa/index.php:41 +msgid "Taxa" +msgstr "Taxons" + +#: public/explore/taxa/index.php:42 +msgid "These taxa come from INPN TAXREF v14.0." +msgstr "Ces taxons proviennent du TAXREF v14.0 de l'INPN." + +#: public/explore/taxa/index.php:46 +msgid "Kingdom" +msgstr "Règne" + +#: public/explore/taxa/index.php:47 +msgid "Phylum" +msgstr "Phylum" + +#: public/explore/taxa/index.php:48 +msgid "Class" +msgstr "Classe" + +#: public/explore/taxa/index.php:49 +msgid "Order" +msgstr "Ordre" + +#: public/explore/taxa/index.php:50 +msgid "Family" +msgstr "Famille" + +#: public/explore/taxa/index.php:51 +msgid "Subfamily" +msgstr "Sous-famille" + +#: public/explore/taxa/index.php:52 +msgid "Tribu" +msgstr "Tribu" + +#: public/explore/taxa/index.php:53 +msgid "Genus" +msgstr "Genre" + +#: public/explore/list/index.php:42 +msgid "Recording List" +msgstr "Liste des enregistrements" + +#: public/explore/list/index.php:48 public/explore/record/edit/index.php:51 +msgid "File Name" +msgstr "Nom du fichier" + +#: public/explore/list/index.php:72 +msgid "Open with Larynx" +msgstr "Ouvrir avec Larynx" + +#: public/explore/list/index.php:73 +msgid "See GUANO metadata" +msgstr "Voir les métadonées au format GUANO" + +#: public/explore/list/index.php:74 +msgid "Edit record metadata" +msgstr "Editer les métadonnées de l'enregistrement" + +#: public/explore/guano/index.php:29 +msgid "about GUANO" +msgstr "À propos de GUANO" + +#: public/explore/guano/index.php:55 +msgid "Can't fetch data." +msgstr "Impossible de collecter les données." + +#: public/explore/users/index.php:43 +msgid "Users" +msgstr "Utilisateurs" + +#: public/explore/users/index.php:47 +msgid "Name" +msgstr "Nom" + +#: public/explore/users/index.php:49 +msgid "Private message link" +msgstr "Lien vers les messages privés." + +#: public/explore/record/index.php:27 +msgid "Record" +msgstr "Enregistrement" + +#: public/explore/record/index.php:70 +msgid "Can't find the record associated with this id, please try again." +msgstr "" +"Impossible de trouver l'enregistrement associé avec cet id, merci de " +"réessayer." + +#: public/explore/record/edit/index.php:29 +#: public/explore/record/edit/index.php:41 +msgid "Edit" +msgstr "Editer" + +#: public/explore/record/edit/index.php:57 +msgid "Time" +msgstr "Heure" + +#: public/explore/record/edit/index.php:66 +msgid "Recorder Manufacturer" +msgstr "Fabriquant de l'enregistreur" + +#: public/explore/record/edit/index.php:68 +msgid "Recorder Model" +msgstr "Modèle de l'enregistreur" + +#: public/explore/record/edit/index.php:76 +msgid "Can't fetch information on record with id" +msgstr "" +"Impossible de collecter les informations sur l'enregistrement associé avec " +"l'id" + +#: public/about/index.php:27 +msgid "About" +msgstr "À propos" + +#: public/about/index.php:28 +msgid "" +"Chiro-Canto is an online bat sound sharing set of tools, inspired by Xeno-Canto." +msgstr "" +"Chiro-Canto est un outil en ligne de partage de sons de chauve-souris " +"inspiré par Xeno-Canto." + +#: public/about/index.php:30 +msgid "" +"This website is developped with ♥ by Samuel ORTION, a juvenile " +"Geekus biologicus." +msgstr "" +"Ce site web est développé avec ♥ par Samuel ORTION, un Geekus " +"biologicus juvénile." + +#: public/about/index.php:31 +msgid "Source code" +msgstr "Code source" + +#: public/about/index.php:32 +msgid "" +"This project is available under the GNU Affero GPL v3 license at https://forge.ortion." +"xyz/Chiro-Canto/chiro-canto." +msgstr "" +"Ce projet est disponible sous licence libre GNU Affero GPL v3 sur mon dépôt " +"Git : https://" +"forge.ortion.xyz/Chiro-Canto/chiro-canto." + +#: public/contact/index.php:22 +msgid "Contact" +msgstr "Conact" + +#: public/contact/index.php:26 +msgid "Your first name.." +msgstr "Votre prénom.." + +#: public/contact/index.php:29 +msgid "Your last name.." +msgstr "Votre nom.." + +#: public/contact/index.php:31 +msgid "Email" +msgstr "Email" + +#: public/contact/index.php:32 +msgid "Your email.." +msgstr "Votre email.." + +#: public/contact/index.php:34 +msgid "Website" +msgstr "Site web" + +#: public/contact/index.php:35 +msgid "Your website.." +msgstr "Votre site web.." + +#: public/contact/index.php:37 +msgid "Subject" +msgstr "Sujet.." + +#: public/contact/index.php:38 +msgid "Your subject.." +msgstr "Votre sujet.." + +#: public/contact/index.php:40 +msgid "Message" +msgstr "Message" + +#: public/contact/index.php:41 +msgid "Write something.." +msgstr "Ecrivez quelque chose.." + +#: public/contact/sendmail.php:24 +msgid "You have not entered a proper first name." +msgstr "Vous n'avez pas entré de prénom." + +#: public/contact/sendmail.php:29 +msgid "You have not entered a proper last name." +msgstr "Vous n'avez pas entré de nom." + +#: public/contact/sendmail.php:34 +msgid "You have not entered a proper email address." +msgstr "Vous n'avez pas entré d'adresse mail." + +#: public/contact/sendmail.php:39 +msgid "You have not entered a proper subject." +msgstr "Vous n'avez pas entré de sujet." + +#: public/contact/sendmail.php:44 +msgid "You have not entered a proper message." +msgstr "Vous n'avez pas entré de message." + +#: public/contact/sendmail.php:85 +msgid "Message has been sent" +msgstr "Le message a été envoyé." + +#: public/contact/sendmail.php:87 +msgid "Message could not be sent. Mailer Error: " +msgstr "Le message n'a pas pu être envoyé. Erreur du courrielleur : " + +#: public/search/index.php:80 +msgid "Search Results" +msgstr "Résultats de recherche" + +#: public/articles/view.php:5 +msgid "Published on " +msgstr "Publié le" + +#: public/articles/view.php:6 public/articles/list.php:48 +msgid "Return to Homepage" +msgstr "Retour vers la page d'accueuil" + +#: public/articles/list.php:26 +msgid "All Articles" +msgstr "Tous les articles" + +#: public/articles/list.php:36 +msgid "Article" +msgstr "Article" + +#: public/articles/list.php:47 +msgid "New article" +msgstr "Nouvel article" + +#: public/larynx/index.php:32 +msgid "A web tool for bat sound analysis" +msgstr "Une application web pour l'analyse de son" + +#: public/larynx/index.php:103 +msgid "Error: Can't retrieve audio from database in Larynx" +msgstr "Erreur: Impossible de récupérer l'audio dans Larynx" + +#: public/discussion/messages/index.php:29 +msgid "You must be logged in to receive or send messages." +msgstr "Vous devez être connecté pour recevoir ou evoyer des messages." + +#: public/discussion/messages/index.php:76 public/discussion/index.php:41 +#: public/discussion/index.php:52 +msgid "Discussion" +msgstr "Discussion" + +#: public/discussion/messages/index.php:112 +msgid "Enter your message.." +msgstr "Entrer votre message.." + +#: public/discussion/messages/index.php:113 public/discussion/index.php:84 +msgid "Send" +msgstr "Envoyer" + +#: public/discussion/messages/sendmessage.php:36 +msgid "Error: No message author" +msgstr "Erreur: Pas d'auteur du message" + +#: public/discussion/messages/sendmessage.php:41 +msgid "Error: No message destinator" +msgstr "Erreur: Pas de destinataire du message" + +#: public/discussion/messages/sendmessage.php:45 +msgid "Error: No message content" +msgstr "Erreur: Pas de message" + +#: public/discussion/index.php:53 +msgid "New messages" +msgstr "Nouveaux messages" + +#: public/discussion/index.php:76 +msgid "No message received." +msgstr "Pas de message reçus" + +#: public/discussion/index.php:80 +msgid "Send a message" +msgstr "Envoyer un message" + +#: public/discussion/index.php:82 +msgid "Addressee" +msgstr "Destinataire" diff --git a/public/lang/select.php b/public/lang/select.php new file mode 100644 index 0000000..ddefd06 --- /dev/null +++ b/public/lang/select.php @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/public/larynx/index.php b/public/larynx/index.php index de043b2..ea5e8f1 100755 --- a/public/larynx/index.php +++ b/public/larynx/index.php @@ -5,6 +5,7 @@ error_reporting(E_ALL); session_start(); $root = realpath($_SERVER["DOCUMENT_ROOT"]); $version = "1.0"; +require("$root/lang/gettext.php"); ?> @@ -28,7 +29,7 @@ include("$root/analytics/matomo.php");

Larynx

-

A web tool for bat sound analysis

+

@@ -99,7 +100,7 @@ include("$root/analytics/matomo.php"); \ No newline at end of file diff --git a/public/media/icons/language.jpg b/public/media/icons/language.jpg new file mode 100644 index 0000000..6b23517 Binary files /dev/null and b/public/media/icons/language.jpg differ diff --git a/public/menu.php b/public/menu.php index f330c92..a2081ed 100755 --- a/public/menu.php +++ b/public/menu.php @@ -2,68 +2,81 @@
-
- sign in sign up'?> +
+ sign in sign up'?> +
+ +
+
+ + + +
+
+
\ No newline at end of file diff --git a/public/search/index.php b/public/search/index.php index 35f2aca..7e724da 100755 --- a/public/search/index.php +++ b/public/search/index.php @@ -3,7 +3,8 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $root = realpath($_SERVER['DOCUMENT_ROOT']); -require($root."/database/credentials.php"); +require("$root/lang/gettext.php"); +require("$root/database/credentials.php"); // Connect the database try{ $db = new PDO("mysql:host=$host;dbname=$database;charset=utf8", @@ -46,16 +47,15 @@ if (isset($_POST['search'])) $result = $req->fetchAll(); } } - // print_r($result); } } else { - // header('Location: /'); + header('Location: /explore/search'); } if (empty($result)) { - // header('Location: /'); + header('Location: /explore/search'); } else { ?> @@ -65,7 +65,7 @@ if (empty($result)) - Explore | Chiro - Canto + <?=_('Explore')?> | Chiro - Canto
-

Explore

-

Search Results

+

+

SubjectsAnswersAuthorCreation date
- - - - + + + + diff --git a/public/styles/style.css b/public/styles/style.css index 6e6ebbf..ce69e7b 100755 --- a/public/styles/style.css +++ b/public/styles/style.css @@ -106,7 +106,7 @@ label { input, select, textarea { - /* width: fit-content; */ + width: 100%; /* Full width */ padding: 12px; margin: 0; @@ -119,8 +119,6 @@ textarea { /* Add a top margin */ margin-bottom: 1em; /* Bottom margin */ - resize: vertical - /* Allow the user to vertically resize the textarea (not horizontally) */ ; } @@ -137,16 +135,18 @@ input[type=submit] { background-color: #4CAF50; color: white; padding: 12px 20px; + margin: 0.1em; border: none; border-radius: 4px; cursor: pointer; - /* width: auto; */ + width: auto; } input[type=reset] { background-color: #af4c4c; color: white; padding: 12px 20px; + margin: 0.1em; border: none; border-radius: 4px; cursor: pointer; @@ -240,6 +240,7 @@ iframe html body { display: flex; padding-top: 0; padding-bottom: 0; + padding: 0.5em; } .container.row { @@ -736,6 +737,7 @@ section.observation label { #map { object-fit: contain; + height: 50vh; } #map img { @@ -744,4 +746,24 @@ section.observation label { .fa { height: 1em; +} + +.language { + background: transparent; + margin: 0; + padding: 0.1em; +} + +.language:hover { + background: transparent; +} + +.language::after { + content: none; +} + +#language { + position: absolute; + right: 2.5em; + top: 2.5em; } \ No newline at end of file diff --git a/public/upload/index.php b/public/upload/index.php index 69b8305..86c2b32 100755 --- a/public/upload/index.php +++ b/public/upload/index.php @@ -15,6 +15,7 @@ if (!isset($_SESSION['username']) or $_SESSION['username'] == "") { } $root = realpath($_SERVER["DOCUMENT_ROOT"]); +require("$root/lang/gettext.php"); ?> @@ -22,7 +23,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]); - Upload | Chiro - Canto + <?=_('Upload')?> | Chiro - Canto
-

Upload Your Recording

+

'.$_SESSION['error_msg'].'' : ""; if (isset($_GET['step'])) { diff --git a/public/upload/location.php b/public/upload/location.php index 573071f..3dee4df 100755 --- a/public/upload/location.php +++ b/public/upload/location.php @@ -1,16 +1,16 @@
- +
- +
diff --git a/public/upload/submit.php b/public/upload/submit.php index 5304e72..c8ee650 100644 --- a/public/upload/submit.php +++ b/public/upload/submit.php @@ -1,7 +1,8 @@ implode(',', $_SESSION['observation']['type']), "duration"=>$t, "make"=>isset($_SESSION['observation']['make']) ? $_SESSION['observation']['make'] : "", - "model"=>isset($_SESSION['osbservation']['model']) ? $_SESSION['osbservation']['model'] : "", + "model"=>isset($_SESSION['osbservation']['model']) ? $_SESSION['observation']['model'] : "", "serial"=>isset($_SESSION['observation']['serial']) ? $_SESSION['observation']['serial'] : "", "sample_rate"=>isset($_SESSION['observation']['sample_rate']) ? $_SESSION['observation']['sample_rate'] : 384, "time_expansion"=>isset($_SESSION['observation']['time_expansion']) ? $_SESSION['observation']['time_expansion'] : 10, @@ -109,18 +110,18 @@ if (isset($_POST['submit'])) $file_extension_allowed = ['wav']; if (! in_array($fileExtension, $file_extension_allowed)) { - $_SESSION['error_msg'] .= "This file extension is not allowed; please upload a WAV file.\n"; + $_SESSION['error_msg'] .= _("This file extension is not allowed; please upload a WAV file."); } if ($fileSize > 10*1024*1024) { - $_SESSION['error_msg'] .= "The file size must be below 10MB. \n"; + $_SESSION['error_msg'] .= _("The file size must be below 10MB."); } print_r($target_file); if (move_uploaded_file($_FILES['file']['tmp_name'], $target_file)) { - echo "The file ". htmlspecialchars(basename($_FILES['file']['name']))." has been uploaded."; + echo _("The file "). htmlspecialchars(basename($_FILES['file']['name']))." "._("has been uploaded."); } else { - echo "Sorry, there was an error uploading your file"; + echo _("Sorry, there was an error uploading your file"); } $_SESSION['observation']['file'] = basename($_FILES['file']['name']); if (isset($_POST['latlng'])) { @@ -130,7 +131,7 @@ if (isset($_POST['submit'])) $_SESSION['observation']['lng'] = explode(',', $latlng)[1]; } else { - $_SESSION['error_msg'] .= "Incorrect coordinates, please try again."; + $_SESSION['error_msg'] .= _("Incorrect coordinates, please try again."); } if (isset($_POST['spchoice'])) { @@ -145,7 +146,7 @@ if (isset($_POST['submit'])) setcookie('species', $_SESSION['observation']['species'], time() + 86400 * 365.2, "/"); } else { - $_SESSION['error_msg'].= "Error, incorrect species name.\n"; + $_SESSION['error_msg'].= _("Error, incorrect species name."); } if (isset($_POST['subspecies'])) { @@ -163,49 +164,49 @@ if (isset($_POST['submit'])) setcookie('license', $_SESSION['observation']['license'], time() + 86400 * 365.2, "/"); } else { - $_SESSION['error_msg'] .= "Incorrect license\n"; + $_SESSION['error_msg'] .= _("Incorrect license"); } if (isset($_POST['name'])) { $_SESSION['observation']['recordist-name'] = $_POST['name']; setcookie('name', $_SESSION['observation']['recordist-name'], time() + 86400 * 365.2, "/"); } else { - $_SESSION['error_msg'] .= "Incorrect Recordist Name.\n"; + $_SESSION['error_msg'] .= _("Incorrect Recordist Name."); } if (isset($_POST['loc-country'])) { $_SESSION['observation']['country'] = $_POST['loc-country']; } else { - $_SESSION['error_msg'] .= "Incorrect Country. \n"; + $_SESSION['error_msg'] .= _("Incorrect Country. "); } if (isset($_POST['recording-date'])) { $_SESSION['observation']['date'] = $_POST['recording-date']; } else { - $_SESSION['error_msg'] .= "Incorrect date. \n"; + $_SESSION['error_msg'] .= _("Incorrect date."); } if (isset($_POST['recording-time'])) { $_SESSION['observation']['time'] = $_POST['recording-time']; } else { - $_SESSION['error_msg'] .= "Incorrect time. \n"; + $_SESSION['error_msg'] .= _("Incorrect time."); } if (isset($_POST['sound-type-option'])) { $_SESSION['observation']['type'] = $_POST['sound-type-option']; } else { - $_SESSION['error_msg'] .= "Incorrect sound type. \n"; + $_SESSION['error_msg'] .= _("Incorrect sound type."); } if (isset($_POST['quality'])) { $_SESSION['observation']['quality'] = $_POST['quality']; } else { - $_SESSION['error_msg'] .= "Incorrect quality value.\n"; + $_SESSION['error_msg'] .= _("Incorrect quality value."); } if (isset($_POST['remarks'])) { @@ -233,7 +234,7 @@ if (isset($_POST['submit'])) $_SESSION['observation']['time_expansion'] = $_POST['time_expansion']; } } else { - $_SESSION['error_msg'] = "Form not submitted.\n"; + $_SESSION['error_msg'] = _("Form not submitted."); } if ($_SESSION['error_msg'] == "") { diff --git a/public/upload/upload.php b/public/upload/upload.php index 99b2847..be8cb05 100644 --- a/public/upload/upload.php +++ b/public/upload/upload.php @@ -5,22 +5,22 @@
diff --git a/totranslate.txt b/totranslate.txt new file mode 100644 index 0000000..5d78a43 --- /dev/null +++ b/totranslate.txt @@ -0,0 +1,150 @@ +./public/index.php +./public/menu.php +./public/header.php +./public/footer.php +./public/forum/index.php +./public/forum/categories.php +./public/forum/createcategory.php +./public/forum/newtopic.php +./public/forum/createtopic.php +./public/forum/topics/index.php +./public/forum/topics/topics.php +./public/forum/topics/sendreply.php +./public/upload/index.php +./public/upload/location.php +./public/upload/metadata.php +./public/upload/verify.php +./public/upload/submitlocation.php +./public/upload/submitobservation.php +./public/upload/submitmetadata.php +./public/upload/getspecieshint.php +./public/upload/upload.php +./public/upload/submit.php +./public/gallery/index.php +./public/gallery/upload.php +./public/gallery/gallery.php +./public/auth/login/index.php +./public/auth/login/login.php +./public/auth/register/index.php +./public/auth/register/register.php +./public/auth/index.php +./public/database/credentials.php +./public/home/last-uploaded-file.php +./public/home/status.php +./public/vendor/erusev/parsedown/Parsedown.php +./public/vendor/composer/installed.php +./public/vendor/composer/InstalledVersions.php +./public/vendor/composer/autoload_namespaces.php +./public/vendor/composer/autoload_psr4.php +./public/vendor/composer/autoload_classmap.php +./public/vendor/composer/autoload_static.php +./public/vendor/composer/platform_check.php +./public/vendor/composer/autoload_real.php +./public/vendor/composer/ClassLoader.php +./public/vendor/autoload.php +./public/vendor/phpmailer/phpmailer/get_oauth_token.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-af.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-az.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ba.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ch.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-da.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-eo.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-gl.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-hi.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-hr.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-hy.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-id.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ka.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-lv.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-mg.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-sl.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-uk.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php +./public/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php +./public/vendor/phpmailer/phpmailer/src/Exception.php +./public/vendor/phpmailer/phpmailer/src/OAuth.php +./public/vendor/phpmailer/phpmailer/src/PHPMailer.php +./public/vendor/phpmailer/phpmailer/src/POP3.php +./public/vendor/phpmailer/phpmailer/src/SMTP.php +./public/src/dump_taxref_into_database.php +./public/explore/mysteries/index.php +./public/explore/spectrograms/index.php +./public/explore/index.php +./public/explore/search/index.php +./public/explore/search/searchrecord.php +./public/explore/random/index.php +./public/explore/map/index.php +./public/explore/taxa/index.php +./public/explore/list/index.php +./public/explore/guano/index.php +./public/explore/users/index.php +./public/explore/record/index.php +./public/explore/record/edit/index.php +./public/explore/record/edit/update.php +./public/about/index.php +./public/contact/index.php +./public/contact/sendmail.php +./public/contact/config.php +./public/api/v1/doc/index.php +./public/api/v1/records/index.php +./public/api/v1/records/insertion/index.php +./public/api/v1/oauth2/index.php +./public/api/v1/oauth2/oauth2client.php +./public/api/v1/index.php +./public/api/index.php +./public/search/searchbar.php +./public/search/index.php +./public/analytics/matomo.php +./public/analytics/owa.php +./public/articles/index.php +./public/articles/Article.php +./public/articles/config.php +./public/articles/home.php +./public/articles/archive.php +./public/articles/view.php +./public/articles/admin.php +./public/articles/list.php +./public/articles/edit.php +./public/larynx/index.php +./public/larynx/v/2.0/index.php +./public/larynx/v/2.1/index.php +./public/discussion/messages/index.php +./public/discussion/messages/sendmessage.php +./public/discussion/notification.php +./public/discussion/index.php +./public/lang/en/lang.php +./public/lang/gettext.php +./public/lang/select.php diff --git a/translate.sh b/translate.sh new file mode 100644 index 0000000..9861cb9 --- /dev/null +++ b/translate.sh @@ -0,0 +1,4 @@ +# Generate php file list +find -name *.php > totranslate.txt +# Generate translation template +xgettext -f totranslate.txt -o public/lang/locale/chiro-canto.pot \ No newline at end of file
File nameAuthorLicenseDate