# This is a sample script to demonstrate how the AUR will # handle i18n. Note: When the PHP script is finished, and # has the proper include file (see below), and the __() # function has been used (see below), use the web/utils/genpopo # script to parse the PHP script and pull out the text # that requires translation and puts the mapping into the # include file. # # Each AUR PHP script that requires i18n support, needs to # define an 'xxx_po.inc' file where the i18n mapping will # reside. # include("test_po.inc"); # Use the __() function to identify text that requires # translation to other languages. The examples below # show how to use %-substitution. # print "
\n"; print "\n"; print __("Select your language here: %h%s%h, %h%s%h, %h%s%h, %h%s%h.", array("","English","", "","Español","", "","Deutsch","", "","Français","")); print "
\n"; print "\n"; print __("My current language tag is: '%s'.", array($LANG)); print "
\n"; print "