mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Move top page template-example to web/template.
Make note in web/README.txt Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
361f08a740
commit
b69e2cce56
12 changed files with 6 additions and 137 deletions
|
@ -92,6 +92,9 @@ Directory Layout:
|
||||||
./template - Where most of the html markup resides and minimal
|
./template - Where most of the html markup resides and minimal
|
||||||
amount of PHP scripting.
|
amount of PHP scripting.
|
||||||
|
|
||||||
|
There is also a template to model the site's top pages in
|
||||||
|
template.phps
|
||||||
|
|
||||||
|
|
||||||
Scripts:
|
Scripts:
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -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çò!";
|
|
||||||
|
|
||||||
?>
|
|
|
@ -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!";
|
|
||||||
|
|
||||||
?>
|
|
|
@ -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!";
|
|
||||||
|
|
||||||
?>
|
|
|
@ -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í!";
|
|
||||||
|
|
||||||
?>
|
|
|
@ -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 !";
|
|
||||||
|
|
||||||
?>
|
|
|
@ -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!";
|
|
||||||
|
|
||||||
?>
|
|
|
@ -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ć!";
|
|
||||||
|
|
||||||
?>
|
|
|
@ -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!";
|
|
||||||
|
|
||||||
?>
|
|
|
@ -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!"] = "Привет, это стоит почитать!";
|
|
||||||
|
|
||||||
?>
|
|
|
@ -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");
|
|
||||||
|
|
||||||
?>
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
# This template shows how a front page script is commonly coded.
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang');
|
||||||
|
|
||||||
include("aur.inc"); # access AUR common functions
|
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
|
# 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";
|
print __("Hi, this is worth reading!")."<br />\n";
|
||||||
|
|
||||||
|
|
||||||
html_footer(AUR_VERSION);
|
html_footer(AUR_VERSION);
|
||||||
|
|
||||||
?>
|
|
Loading…
Add table
Reference in a new issue