Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some more lang tags #756

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions admin/index.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php
include_once('../config/symbini.php');
if($LANG_TAG == 'en' || !file_exists($SERVER_ROOT.'/content/lang/prohibit.'.$LANG_TAG.'.php')) include_once($SERVER_ROOT.'/content/lang/prohibit.en.php');
else include_once($SERVER_ROOT.'/content/lang/prohibit.'.$LANG_TAG.'.php');
header("Content-Type: text/html; charset=".$CHARSET);
header("Location: ".$CLIENT_ROOT."/index.php");
?>
<html lang="en">
<head>
<title>Forbidden</title>
<title><?php echo $LANG['FORBIDDEN']; ?></title>
<?php
include_once($SERVER_ROOT.'/includes/head.php');
?>
Expand All @@ -16,12 +18,12 @@
include($SERVER_ROOT.'/includes/header.php');
?>
<div id="innertext">
<h1>Forbidden</h1>
<h1><?php echo $LANG['FORBIDDEN']; ?></h1>
<div style="font-weight:bold;">
You don't have permission to access this page.
<?php echo $LANG['NO_PERMISSION']; ?>
</div>
<div style="font-weight:bold;margin:10px;">
<a href="<?php echo htmlspecialchars($CLIENT_ROOT, HTML_SPECIAL_CHARS_FLAGS); ?>/index.php">Return to index page</a>
<a href="<?php echo htmlspecialchars($CLIENT_ROOT, HTML_SPECIAL_CHARS_FLAGS); ?>/index.php"><?php echo $LANG['RETURN']; ?></a>
</div>
</div>
<?php
Expand Down
9 changes: 5 additions & 4 deletions checklists/clgmap.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php
include_once('../config/symbini.php');
include_once($SERVER_ROOT.'/classes/ChecklistManager.php');
@include_once($SERVER_ROOT.'/content/lang/header.'.$LANG_TAG.'.php');
if($LANG_TAG == 'en' || !file_exists($SERVER_ROOT.'/content/lang/checklists/clgmap.'.$LANG_TAG.'.php')) include_once($SERVER_ROOT.'/content/lang/checklists/clgmap.en.php');
else include_once($SERVER_ROOT.'/content/lang/checklists/clgmap.'.$LANG_TAG.'.php');
header("Content-Type: text/html; charset=".$CHARSET);

$pid = $_REQUEST['pid'];
Expand Down Expand Up @@ -43,7 +44,7 @@ function leafletInit() {
markers.push(L.marker(latlng)
.bindTooltip(checklist.name)
.bindPopup(`<div style=\'width:300px;\'>
<b>${checklist.name}</b><br/>Double Click to open
<b>${checklist.name}</b><br/><?php echo (isset($LANG['DOUBLE_CLICK'])?$LANG['DOUBLE_CLICK']:'Double Click to open'); ?>
</div>`)
.on('dblclick', () => navigateToCheckList(checklistId, pid)));
}
Expand Down Expand Up @@ -76,7 +77,7 @@ function closeAllInfoWins(){
})
const infoWin = new google.maps.InfoWindow({
content: `<div style=\'width:300px;\'>
<b>${checklist.name}</b><br/>Double Click to open
<b>${checklist.name}</b><br/><?php echo (isset($LANG['DOUBLE_CLICK'])?$LANG['DOUBLE_CLICK']:'Double Click to open'); ?>
</div>`
});

Expand Down Expand Up @@ -104,7 +105,7 @@ function initialize(){
pid = data.getAttribute('data-pid');
checklists = JSON.parse(data.getAttribute('data-checklists'));
} catch (err) {
alert("Failed to load checklist data");
alert("<?php echo (isset($LANG['FAILED_TO_LOAD'])?$LANG['FAILED_TO_LOAD']:'Failed to load checklist data'); ?>");
}

<?php if(empty($GOOGLE_MAP_KEY)) { ?>
Expand Down
2 changes: 2 additions & 0 deletions content/lang/checklists/checklistadminchildren.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
------------------
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-08-05
------------------
*/

Expand Down
2 changes: 2 additions & 0 deletions content/lang/checklists/checklistadminmeta.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
------------------
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-08-05
------------------
*/

Expand Down
2 changes: 2 additions & 0 deletions content/lang/checklists/checklistmap.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
------------------
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-08-05
------------------
*/

Expand Down
12 changes: 12 additions & 0 deletions content/lang/checklists/clgmap.en.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/*
------------------
Language: English
------------------
*/

$LANG['H_INVENTORIES'] = 'Species Checklists';
$LANG['DOUBLE_CLICK'] = 'Double Click to open';
$LANG['FAILED_TO_LOAD'] = 'Failed to load checklist data';

?>
14 changes: 14 additions & 0 deletions content/lang/checklists/clgmap.es.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/*
------------------
Language: Español
Translated by: Google Translate
Date Translated: 2023-12-07
------------------
*/

$LANG['H_INVENTORIES'] = 'Listas de Especies';
$LANG['DOUBLE_CLICK'] = 'Doble clic para abrir';
$LANG['FAILED_TO_LOAD'] = 'No se pudieron cargar los datos de la lista';

?>
14 changes: 14 additions & 0 deletions content/lang/checklists/clgmap.fr.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/*
------------------
Language: Français
Translated by: Google Translate
Date Translated: 2023-12-07
------------------
*/

$LANG['H_INVENTORIES'] = 'Listes de Espèces';
$LANG['DOUBLE_CLICK'] = 'Double-cliquez pour ouvrir';
$LANG['FAILED_TO_LOAD'] = 'Échec du chargement des données de la liste';

?>
2 changes: 2 additions & 0 deletions content/lang/checklists/clsppeditor.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
------------------
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-08-05
------------------
*/

Expand Down
2 changes: 2 additions & 0 deletions content/lang/checklists/dynamicmap.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
------------------
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-08-05
------------------
*/

Expand Down
2 changes: 2 additions & 0 deletions content/lang/checklists/index.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
------------------
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-08-05
------------------
*/

Expand Down
2 changes: 2 additions & 0 deletions content/lang/checklists/vaconflicts.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
------------------
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-08-05
------------------
*/

Expand Down
2 changes: 2 additions & 0 deletions content/lang/checklists/vamissingtaxa.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
------------------
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-08-05
------------------
*/

Expand Down
2 changes: 2 additions & 0 deletions content/lang/collections/editor/assocsppaid.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
------------------
Language: Español
Translated by: Samanta Orellana
Date Translated: 2021-09-05
------------------
*/

Expand Down
2 changes: 2 additions & 0 deletions content/lang/collections/editor/batchdeterminations.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
------------------
Language: Español
Translated by: Samanta Orellana
Date Translated: 2021-09-05
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/editor/imageoccursubmit.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: Español
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-09-05
------------------
*/

Expand Down
2 changes: 2 additions & 0 deletions content/lang/collections/editor/includes/admintab.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
------------------
Language: Español
Translated by: Samanta Orellana
Date Translated: 2021-10-29
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/editor/includes/geotools.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: Español
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-10-29
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/editor/includes/imagetab.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: Español
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-10-29
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/editor/includes/imgprocessor.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: Español
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-10-29
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/editor/includes/queryform.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: Español
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-10-29
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/editor/includes/resourcetab.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: Español
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-10-29
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/editor/includes/traittab.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: Español
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-10-29
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/editor/observationsubmit.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: Español
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-09-05
------------------
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: Español
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-09-05
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/editor/skeletalsubmit.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: Español
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-09-01
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/georef/batchgeoreftool.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: Spanish
Language: Español
Translated by: Samanta Orellana
Date Translated: 2022-01-09
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/individual/index.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: Español (Spanish)
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-06-23
------------------
*/
$LANG['DETAILS'] = 'Detalles';
Expand Down
2 changes: 2 additions & 0 deletions content/lang/collections/map/index.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
------------------
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-06-23
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/misc/assocmanagement.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: English
Language: Español
Translated by: Samanta Orellana
Date Translated: 2021-08-18
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/misc/colladdress.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: English
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-08-18
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/misc/collbackup.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: English
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-08-18
------------------
*/

Expand Down
4 changes: 3 additions & 1 deletion content/lang/collections/misc/collmetaresources.es.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/*
------------------
Language: English
Language: Español (Spanish)
Translated by: Samanta Orellana
Date Translated: 2021-08-18
------------------
*/

Expand Down
Loading