diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/README.txt | 3 | ||||
-rw-r--r-- | web/lang/ca/template_po.inc | 10 | ||||
-rw-r--r-- | web/lang/de/template_po.inc | 10 | ||||
-rw-r--r-- | web/lang/en/template_po.inc | 16 | ||||
-rw-r--r-- | web/lang/es/template_po.inc | 10 | ||||
-rw-r--r-- | web/lang/fr/template_po.inc | 11 | ||||
-rw-r--r-- | web/lang/it/template_po.inc | 10 | ||||
-rw-r--r-- | web/lang/pl/template_po.inc | 10 | ||||
-rw-r--r-- | web/lang/pt/template_po.inc | 16 | ||||
-rw-r--r-- | web/lang/ru/template_po.inc | 10 | ||||
-rw-r--r-- | web/lang/template_po.inc | 32 | ||||
-rw-r--r-- | web/template/template.phps (renamed from web/html/template.php) | 5 |
12 files changed, 6 insertions, 137 deletions
diff --git a/web/README.txt b/web/README.txt index 69bec04..249f605 100644 --- a/web/README.txt +++ b/web/README.txt @@ -92,6 +92,9 @@ Directory Layout: ./template - Where most of the html markup resides and minimal amount of PHP scripting. + There is also a template to model the site's top pages in + template.phps + Scripts: -------- diff --git a/web/lang/ca/template_po.inc b/web/lang/ca/template_po.inc deleted file mode 100644 index 5ea5ee6..0000000 --- a/web/lang/ca/template_po.inc +++ /dev/null @@ -1,10 +0,0 @@ -<?php -# Catalan (Català) translation -# Translator: Sergio Jovani Guzman <moret.sjg@gmail.com> - -include_once("translator.inc"); -global $_t; - -$_t["ca"]["Hi, this is worth reading!"] = "Hola, val la pena llegir açò!"; - -?>
\ No newline at end of file diff --git a/web/lang/de/template_po.inc b/web/lang/de/template_po.inc deleted file mode 100644 index 024d767..0000000 --- a/web/lang/de/template_po.inc +++ /dev/null @@ -1,10 +0,0 @@ -<?php -# German (Deutsch) translation -# Translators: Pierre Schmitz <pierre@archlinux.de>, Matthias Gorissen <siquame@web.de>, Lukas Kropatschek, Niclas Pfeifer - -include_once("translator.inc"); -global $_t; - -$_t["de"]["Hi, this is worth reading!"] = "Hallo - es lohnt sich, dies zu lesen!"; - -?>
\ No newline at end of file diff --git a/web/lang/en/template_po.inc b/web/lang/en/template_po.inc deleted file mode 100644 index db437be..0000000 --- a/web/lang/en/template_po.inc +++ /dev/null @@ -1,16 +0,0 @@ -<?php -# INSTRUCTIONS TO TRANSLATORS -# -# This file contains the i18n translations for a subset of the -# Arch Linux User-community Repository (AUR). This is a PHP -# script, and as such, you MUST pay great attention to the syntax. -# If your text contains any double-quotes ("), you MUST escape -# them with the backslash character (\). -# - -include_once("translator.inc"); -global $_t; - -$_t["en"]["Hi, this is worth reading!"] = "Hi, this is worth reading!"; - -?>
\ No newline at end of file diff --git a/web/lang/es/template_po.inc b/web/lang/es/template_po.inc deleted file mode 100644 index 21e45fc..0000000 --- a/web/lang/es/template_po.inc +++ /dev/null @@ -1,10 +0,0 @@ -<?php -# Spanish (Español) translation -# Translator: Víctor Martínez Romanos <vmromanos@gmail.com> - -include_once("translator.inc"); -global $_t; - -$_t["es"]["Hi, this is worth reading!"] = "Hola, ¡vale la pena llegar hasta aquí!"; - -?>
\ No newline at end of file diff --git a/web/lang/fr/template_po.inc b/web/lang/fr/template_po.inc deleted file mode 100644 index 2084c16..0000000 --- a/web/lang/fr/template_po.inc +++ /dev/null @@ -1,11 +0,0 @@ -<?php -# French (Français) translation -# Translator: Morgan LEFIEUX <comete@archlinuxfr.org> -# Translator: Cilyan Olowen <gaknar@gmail.com> - -include_once("translator.inc"); -global $_t; - -$_t["fr"]["Hi, this is worth reading!"] = "Salut, ceci vaut la peine d'être lu !"; - -?> diff --git a/web/lang/it/template_po.inc b/web/lang/it/template_po.inc deleted file mode 100644 index defe7ac..0000000 --- a/web/lang/it/template_po.inc +++ /dev/null @@ -1,10 +0,0 @@ -<?php -# Italian (Italiano) translation -# Translators: Giovanni Scafora <linuxmania@gmail.com> and Pierluigi Picciau <pierluigi88@gmail.com> - -include_once("translator.inc"); -global $_t; - -$_t["it"]["Hi, this is worth reading!"] = "Ciao, questo vale la pena di leggerlo!"; - -?>
\ No newline at end of file diff --git a/web/lang/pl/template_po.inc b/web/lang/pl/template_po.inc deleted file mode 100644 index c4e5686..0000000 --- a/web/lang/pl/template_po.inc +++ /dev/null @@ -1,10 +0,0 @@ -<?php -# Polish (Polski) translation -# Translator: Jaroslaw Swierczynski <swiergot@gmail.com> - -include_once("translator.inc"); -global $_t; - -$_t["pl"]["Hi, this is worth reading!"] = "Witaj, warto to przeczytać!"; - -?>
\ No newline at end of file diff --git a/web/lang/pt/template_po.inc b/web/lang/pt/template_po.inc deleted file mode 100644 index ed4a1d0..0000000 --- a/web/lang/pt/template_po.inc +++ /dev/null @@ -1,16 +0,0 @@ -<?php -# INSTRUCTIONS TO TRANSLATORS -# -# This file contains the i18n translations for a subset of the -# Arch Linux User-community Repository (AUR). This is a PHP -# script, and as such, you MUST pay great attention to the syntax. -# If your text contains any double-quotes ("), you MUST escape -# them with the backslash character (\). -# - -include_once("translator.inc"); -global $_t; - -$_t["pt"]["Hi, this is worth reading!"] = "Olá, vale a pena ler isso!"; - -?>
\ No newline at end of file diff --git a/web/lang/ru/template_po.inc b/web/lang/ru/template_po.inc deleted file mode 100644 index 86c3e9b..0000000 --- a/web/lang/ru/template_po.inc +++ /dev/null @@ -1,10 +0,0 @@ -<?php -# Russian (Русский) translation -# Translator: Sergej Pupykin <ps@lx-ltd.ru> - -include_once("translator.inc"); -global $_t; - -$_t["ru"]["Hi, this is worth reading!"] = "Привет, это стоит почитать!"; - -?>
\ No newline at end of file diff --git a/web/lang/template_po.inc b/web/lang/template_po.inc deleted file mode 100644 index 8d65fc0..0000000 --- a/web/lang/template_po.inc +++ /dev/null @@ -1,32 +0,0 @@ -<?php -# INSTRUCTIONS TO TRANSLATORS -# -# This file contains the i18n translations for a subset of the -# Arch Linux User-community Repository (AUR). This is a PHP -# script, and as such, you MUST pay great attention to the syntax. -# If your text contains any double-quotes ("), you MUST escape -# them with the backslash character (\). -# - -include_once("translator.inc"); -global $_t; - -include_once("en/template_po.inc"); - -include_once("pl/template_po.inc"); - -include_once("it/template_po.inc"); - -include_once("ca/template_po.inc"); - -include_once("pt/template_po.inc"); - -include_once("es/template_po.inc"); - -include_once("de/template_po.inc"); - -include_once("ru/template_po.inc"); - -include_once("fr/template_po.inc"); - -?>
\ No newline at end of file diff --git a/web/html/template.php b/web/template/template.phps index 11e05e0..7a86686 100644 --- a/web/html/template.php +++ b/web/template/template.phps @@ -1,5 +1,7 @@ <?php +# This template shows how a front page script is commonly coded. + set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang'); include("aur.inc"); # access AUR common functions @@ -10,11 +12,10 @@ html_header(); # print out the HTML header # Any text you print out to the visitor, use the __() function -# for i18n support. See 'testpo.php' for more details. +# for i18n support. See web/lib/translator.inc for more info. # print __("Hi, this is worth reading!")."<br />\n"; html_footer(AUR_VERSION); -?> |