diff --git a/admin/index.php b/admin/index.php index cb5ce16..a776822 100644 --- a/admin/index.php +++ b/admin/index.php @@ -34,6 +34,7 @@ echo "Awards Management
"; echo "School Management
"; echo "Judging Management
"; + echo "Translations Management
"; echo "
"; echo "Enter Winning Projects
"; echo "
"; diff --git a/admin/translations.php b/admin/translations.php new file mode 100644 index 0000000..ed86e04 --- /dev/null +++ b/admin/translations.php @@ -0,0 +1,95 @@ + + Copyright (C) 2005 James Grant + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation, version 2. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ +?> +".i18n("Show all translations").""; +} +else +{ + echo "".i18n("Show missing translations").""; + echo "  |  "; + echo i18n("Show all translations"); +} +echo "
"; +echo "
"; +echo i18n("Instructions: Enter the translation below the string and click Save. Only one translation can be saved at a time. The terms %1, %2, etc get substituded with various arguments to the string, so they must appear in the translation if they are in the original string."); +echo "
"; +echo "
"; + +if($show=="missing") $showquery="WHERE val is null OR val=''"; +else $showquery=""; + +$q=mysql_query("SELECT * FROM translations $showquery ORDER BY str"); +$num=mysql_num_rows($q); +echo i18n("Showing %1 translation strings",array($num)); + +echo ""; +echo ""; +while($r=mysql_fetch_object($q)) +{ + echo ""; + echo ""; + echo "lang\" />"; + echo "strmd5\" />"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo "\n"; +} +echo "
".i18n("English / French")."".i18n("Save")."
"; + echo "strmd5&lang=$r->lang\">"; + echo " "; + echo "$r->str
val\" />

"; + +send_footer(); +?>