1<?php
2//	Z_poAdmin.php
3//	Allows for a gettext language po file to be administered
4/*	Steve Kitchen
5	Up front menu for language file maintenance */
6
7//$PageSecurity = 15;
8
9include ('includes/session.php');
10$ViewTopic = 'SpecialUtilities';
11$BookMark = 'Z_poAdmin';
12$Title = _('Maintain Language Files');
13include('includes/header.php');
14echo '<p class="page_title_text"><img alt="" src="', $RootPath, '/css/', $Theme,
15	'/images/maintenance.png" title="', // Icon image.
16	$Title, '" /> ', // Icon title.
17	$Title, '</p>';// Page title.
18
19/* Check if we have gettext - we're useless without it... */
20
21if (!function_exists('gettext')){
22	prnMsg (_('gettext is not installed on this system') . '. ' . _('You cannot use the language files without it'),'error');
23	exit;
24}
25
26if (!is_writable('./locale/' . $_SESSION['Language'])) {
27	prnMsg(_('You do not have write access to the required files please contact your system administrator'),'error');
28} else {
29	echo '<p><a href="' . $RootPath . '/Z_poRebuildDefault.php">' .   _('Rebuild the System Default Language File') . '</a>';
30	echo '<p><a href="' . $RootPath . '/Z_poAddLanguage.php">' . _('Add a New Language to the System')  . '</a>';
31	echo '<p><a href="' . $RootPath . '/Z_poEditLangHeader.php">' .  _('Edit a Language File Header') . '</a>';
32	echo '<p><a href="' . $RootPath . '/Z_poEditLangModule.php">' .  _('Edit a Language File Module') . '</a>';
33	echo '<p><a href="' . $RootPath . '/Z_poEditLangRemaining.php">' .  _('Edit Remaining Strings For This Language') . '</a>';
34	echo '<p><a href="' . $RootPath . '/locale/'.$_SESSION['Language'].'/LC_MESSAGES/messages.po">' .  _('Download messages.po file') . '</a>';
35	echo '<p><a href="' . $RootPath . '/locale/'.$_SESSION['Language'].'/LC_MESSAGES/messages.mo">' .  _('Download messages.mo file') . '</a>';
36}
37
38include('includes/footer.php');
39?>
40