update index.php

added the assigning of php to js variables
This commit is contained in:
alpcentaur 2022-08-29 22:00:30 +02:00
parent 81a3640362
commit 9090b41c9e

View file

@ -42,7 +42,10 @@
$results = putenv("LC_ALL=$loc");
$results = putenv("LC_MESSAGES=$loc");
$results = bindtextdomain($domain,"./locale");
//$results = bindtextdomain($domain,"./locale");
?>
<html >
<head>
@ -88,18 +91,37 @@
</div>
</div>
<?php echo _($localeYaml['impressum'][$loc])?>: <a href="https://www.wikimedia.de/impressum/">https://www.wikimedia.de/impressum</a><br>
<?php echo _($localeYaml['privacy'][$loc])?>: <a href="https://www.wikimedia.de/datenschutz/">https://www.wikimedia.de/datenschutz</a>
<?php echo $localeYaml['impressum'][$loc]?>: <a href="https://www.wikimedia.de/impressum/">https://www.wikimedia.de/impressum</a><br>
<?php echo $localeYaml['privacy'][$loc]?>: <a href="https://www.wikimedia.de/datenschutz/">https://www.wikimedia.de/datenschutz</a>
</div>
</div>
<script src="js/kube.min.js"></script>
<script src="kaform.js"></script>
<script src="addons/upload/kube.upload.min.js"></script>
<script src="addons/kube-addons.min.js"></script>
<script src="kaform.js"></script>
<script src="iban.js/iban.js"></script>
<script>
error_alert_projectid = "<?php echo $localeYaml['error_alert_projectid'][$loc]?>";
error_alert_realname = "<?php echo $localeYaml['error_alert_realname'][$loc]?>";
error_alert_email = "<?php echo $localeYaml['error_alert_email'][$loc]?>";
error_alert_iban = "<?php echo $localeYaml['error_alert_iban'][$loc]?>";
error_alert_bic = "<?php echo $localeYaml['error_alert_bic'][$loc]?>";
error_alert_paypal = "<?php echo $localeYaml['error_alert_paypal'][$loc]?>";
error_alert_expenses = "<?php echo $localeYaml['error_alert_expenses'][$loc]?>";
error_alert_agreement = "<?php echo $localeYaml['error_alert_agreement'][$loc]?>";
error_alert_ismailable = "<?php echo $localeYaml['error_alert_ismailable'][$loc]?>";
error_alert_date = "<?php echo $localeYaml['error_alert_date'][$loc]?>";
error_alert_description = "<?php echo $localeYaml['error_alert_description'][$loc]?>";
error_alert_sum = "<?php echo $localeYaml['error_alert_sum'][$loc]?>";
expenses_table_description_placeholder = "<?php echo $localeYaml['expenses_table_description_placeholder'][$loc]?>";
expenses_table_file_placeholder = "<?php echo $localeYaml['expenses_table_file_placeholder'][$loc]?>";
</script>
</body>
</html>