CS 207, Lab #8
Give a "second Opinion"
By all means, continue working on your site. Fix the problems I found when printing. (
For instance, yellow looks fine against a blue background, but would you write an exam with a yellow pencil?
)
In particular, each of you can use some outside feedback. So...
- Go to the class list
- Find your name, and starting under it (in a circular fashion),
locate 2 interesting
sites.
- In case there is "nothing there" go on the the next name, if
you
get to the end of our class go back to
the top.
- Look at all the pages you can find, try out the forms, and
prepare some comments and any recommendations for improvement or
enhancement.
- Submit your review this week, using the form
below.
Your remarks will be mailed to the page owner, without your
name.
Did you fill out the "Lab 7 form"?
If you didn't, do it now, tell me what
you
are working on, e-mail me, and be charged for a late assignment.
(Optional) Translation
hitme.php is "internationalized." See Internationalization.html.
You
may make your own translations into another language, if you do,
send
me email, in particular, what to put on a "Submit" button in that
language. More below...
Ah, translations
This would be appropriate for any page where there is a lot
of
php displaying items from your database, and yet has a number of
words
and phrases that it would be nice to show in the user's choice of
language, and "locale" - Scots, Jamaicans, and Australians speak
English rather differently from one another. You may wish to do
this on
one or more of your pages.
Meanwhile, I would appreciate some of the 6 phrases now in
"hitme.php"
translated into your language.
- Make a copy of /home/jensen/public_html/translations/hitme.pot
(it is read-only). Rename it .po
- Edit it, filling in the empty msgstr lines, be sure your
charset is UTF-8. Example:
#: hitme.php:15
msgid "your vote has been counted, from "
msgstr "Your esteemed vote has been duly recorded, your IP is "
- translations/ is,
for
this week, "writeable" by you, you can make a language
subdirectory, making sure it is named identically to one of the
choices
you will see with the command locale
-a (well, it seems you can shorten to just language or language_country. Currently we have en_GB and fr, for example.) For any
other language, I will try to download the locale for it.
- Make a subdirectory of that
named LC_MESSAGES ,
and
put your edited hitme.po in it.
- cd to your LC_MESSAGES and do the
command:
msgfmt -v -o hitme.mo
hitme.po
(a .mo file is a
"machine object" binary designed for rapid access by gettext)
- Test it in a browser with: hitme.php?lang=xx_CO, (where
you
put not xx_CO but the name of your language_Country directory)
- Email me with the corresponding value you want me to put on
the
"submit" button for your language.