The Basque l10n team mantains a website[1] with information about
mozilla products. Here we try to include the latest product
information, as well as download links for fx/tb/calendar. This is
usual for most teams, so no news here.
Every time a security update appears, we update the version string
which is stored by a variable in a php file. Thus, download links are
updated too. But we wonder whether this process is automatizable or
not and if it would be possible to get the latest version string from
somewhere out there (i.e., official sources).
How do you manage this, localizers?
Thanks in advance,
Julen.
We do the same thing on the Danish l10n home page, and we usually manage
to update the variable within 24 hours of a release, but still from time
to time some users complain that we are too slow...
Reed, Wil?
Axel
http://svn.mozilla.org/libs/product-details/
There is a readme and the files are well commented. If all you want is
the latest firefox version, the define LATEST_FIREFOX_VERSION should work.
The files have been relatively stable but be aware that there is no
guarantee there won't be API changes.
Wil
> _______________________________________________
> dev-l10n-web mailing list
> dev-l1...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-l10n-web
I am not sure I understand. Do you suggest that we can put the following
on our community sites?
<?php
require_once
'http://svn.mozilla.org/libs/product-details/firefoxDetails.class.php';
echo 'Download Firefox ' . LATEST_FIREFOX_VERSION . ' now.';
?>
Hey Jesper,
In the README I suggest using the library as an SVN External
(http://svnbook.red-bean.com/en/1.0/ch07s03.html). If you're not using
SVN for your project, I'd suggest doing a normal `svn co
http://svn.mozilla.org/libs/product-details` to get the files, and then
use require_once() to include them locally.
Wil
We (Danish l10n team) are using a web hotel where we have php+mysql and
ftp access. I cannot see how your suggestion could help automatically
update the latest version number on our site.
You can use a cron job to upload the php file from the mozilla.org svn
and if changed, blow away your caches (if you have some).
Axel, guessing in the wild
Web hosting solutions are going to have their challenges. If you only
have FTP access to the box, you'll have to get the files locally and
then upload them. I'm not sure what your normal process is, but
fetching them and uploading them with a cron job is a viable, if
roundabout, solution.
There is no handy feed or easily parsable file available with current
version numbers in it.
Wil