[wp-hackers] Upgrade sanity checks
kingler
kingler at 72pines.com
Thu Feb 28 08:59:21 GMT 2008
In addition to the wp-config.php and .po/.mo files, localized versions
of WP can also override some WordPress files, in order to add in
certain translations.
Take a look at these files and you will get a feel:
http://svn.automattic.com/wordpress-i18n/bg_BG/tags/2.3.1/dist/
-Liang
kingler from 72pines
On Thu, Feb 28, 2008 at 12:53 AM, DD32 <wordpress at dd32.id.au> wrote:
> How do localized versions of WP Work?
> I thought it was just a language specifier in wp-config and a .po file?
>
>
>
>
> On Thu, 28 Feb 2008 19:47:52 +1100, kingler <kingler at 72pines.com> wrote:
>
> > On Thu, Feb 28, 2008 at 12:22 AM, Nikolay Bachiyski
> > <nbachiyski at developer.bg> wrote:
> >> 2008/2/28, Stefano Aglietti <steagl4ml at gmail.com>:
> >>
> >> > On Wed, 27 Feb 2008 14:04:26 -0600, Otto <otto at ottodestruct.com>
> >> > wrote:
> >> >
> >> >
> >> > >Now, I've seen a trac ticket for case #1 before (and that can be
> >> > >solved by better error handling in upgrade.php), so I was thinking
> >> > >about case #2. Is it possible for the upgrade.php file to perform a
> >> > >sanity check, and make sure that all the WordPress files are present
> >> > >and correct?
> >> > >
> >> > >One way would be to have it load some other file which is a list of
> >> > >all the WordPress files, then check (and potentially hash) them all to
> >> > >ensure that they are unchanged. Every time a new release occurred,
> >> >
> >> >
> >> > Great idea, when developped I would remeber the programmes to not
> >> > forget that all this should works for localized files too (unless by
> >> > that time hard coded strings will be centralized in some wat avoiding
> >> > single file editing)
> >>
> >> On every release at locale.wordpress.org we can compute the sums and
> >> hand them out to the api server. The client with non-default locale
> >> will get both the official and the local set of checksums for the new
> >> version. To me, it seems a tolerable overhead.
> >
> > Good idea, Nikolay!
> > I was worried about the compatibility of the upgrade check for
> > localized versions. Now you solved the problem, we should really get
> > the files ready for the cn.wordpress.org site...
> >
> >>
> >> Happy hacking,
> >> Nikolay.
> >>
> >>
> >> _______________________________________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list