Commit graph

3815 commits

Author SHA1 Message Date
Laszlo Papp
deb8595a1f Add Czech translation
Signed-off-by: Daniel Kozák <kozzi11@gmail.com>
Signed-off-by: Laszlo Papp <djszapi@archlinux.us>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-01 16:47:04 -04:00
Loui Chang
21e0ff2207 Fix json info output.
Commit 325347a introduced a regression causing an improper database
query.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-10-01 16:41:22 -04:00
Slobodan Terzic
9260e1c328 Serbian translation for AUR
Signed-off-by: Slobodan Terzic <githzerai06@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 19:48:51 -04:00
Loui Chang
de7c9ab787 Remove the plain PKGBUILD upload feature.
makepkg --source should be used to upload packages.
It provides a bit of error checking and it's good to support only a
single format here.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 19:24:19 -04:00
Laszlo Papp
1eff1d223b Add usage output info for maintainer search extension
Add msearch type to the list on http://aur.archlinux.org/rpc.php

Signed-off-by: Laszlo Papp <djszapi@archlinux.us>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 18:55:50 -04:00
Loui Chang
cf49644f4e Change rss2.php references to rss.php
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 16:23:35 -04:00
elij
5ca82939ce renamed rss2 -> rss
changed file name, as the 2 is relatively meaningless.
I think at one time it qualified it as a rss2.0 feed, but the
distinction is valueless at this point, since the generated xml
itself declares the rss version.

make sure to set an apache rewrite rule for any production systems
that require it.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 16:12:59 -04:00
elij
a8bf1108b4 cleanup rss2.php
- removed excessive string catenation, replaced with variable substitution
- consolidated http/https protocol checks
- simplified host header parse (centralized)
- moved cache file to /tmp, to remove need to custom permission directory in webdir

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 16:08:22 -04:00
elij
907f27cb82 user_doc is more or less reflected in the README/wiki
Kind of pointless to keep it around. Especially in here.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 16:03:49 -04:00
elij
65dc7080d0 renamed file to fit convention
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 16:01:15 -04:00
elij
325347a268 Add maintainer search to json interface. Closes FS#15947
Fix for maintainer search ticket: FS#15947
Also http://mailman.archlinux.org/pipermail/aur-dev/2009-September/000892.html

Fixed some problems with selecting the proper data fields in the
original patch. - Loui

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 15:44:31 -04:00
elij
a6d5cb71a6 fix content-type when sending jsonp
jsonp callback should have a content type of text/javascipt,
since it specifies a callback function wrapping json data,
and is not soley json data.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 15:17:07 -04:00
elij
94b1e165e1 removed tupkg. community management moved to main repos.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-28 14:58:27 -04:00
Loui Chang
6caf3a4da0 web/README: Update documentation.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-22 13:54:39 -04:00
Loui Chang
cead538426 Fix Ukranian translation file.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-22 10:55:11 -04:00
Danylo Korostil
74afe94f4a Update Ukranian translation.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-18 07:42:04 -04:00
Gergely Imreh
4d1eb4dd7a Fix: FS#15526 non-UTF8 character in rpc output
Currently AUR does not check the uploaded packages, whether they are
correctly in UTF8 encoding. If there are fields (such as $pkgdesc)
that contain such non-UTF8 characters, the rpc interface chokes on
those fields: even if there's data successfully retrieved from the
database, rpc returns "null".
In an effort to make such errors in the PKGBUILDs debugged more easily,
let's force rpc to have more useful output: try to convert non-UTF8
fields to UTF8. If it's a success, good. Partial success (some characters
showing as \uXXXX) is ok. Failure results in error message printed to that
field.

Signed-off-by: Gergely Imreh <imrehg@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-16 07:50:44 -04:00
Loui Chang
1bf54a32c4 aurjson: Use call_user_func to call functions.
call_user_func_array is unnecessary.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-14 17:03:50 -04:00
Loui Chang
2acb3e17fc Add Gergely Imreh to list of translators.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-10 15:14:56 -04:00
Gergely Imreh
38e97ad949 Hungarian translation: update accents and translation
Signed-off-by: Gergely Imreh <imrehg@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-09-08 14:55:16 -04:00
Laszlo Papp
56990b3748 Initial Hungarian Translation
Signed-off-by: Laszlo Papp <djszapi2@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-26 20:02:30 -04:00
Loui Chang
cbae364a74 TRANSLATING: Instruct translators to edit config.inc.proto and AUTHORS.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-26 19:42:36 -04:00
Sergej Pupykin
3fd08d5715 remove community
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-26 00:14:32 -04:00
Loui Chang
448f7ef120 Remove Location from package search.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-24 07:34:05 -04:00
Dan McGee
46f2798524 Use include_once where applicable
All of these are sourcing function libraries so we don't need to include
them more than once. Things that insert actual HTML into the output were
left calling include().

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-11 13:58:12 -04:00
Dan McGee
4af079a5bd rpc: small optimizations
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-11 13:58:11 -04:00
Dan McGee
5c13854922 Remove Google ads from header
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-11 13:58:11 -04:00
Loui Chang
cebf4f006e Add Romanian to config.inc.proto and AUTHORS.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-02 17:39:04 -04:00
Loui Chang
5c8ce6de20 TRANSLATING: Add note about commit message.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-02 17:34:45 -04:00
Biru Ionut
75b0350b5d adding romanian translation
Signed-off-by: Biru Ionut <ionut@archlinux.ro>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-02 17:34:19 -04:00
Mod Gao
17c7d6ed88 Fixed and added string to web/lang/zh_CN.po
Signed-off-by: Mod Gao <mod.gao@gmail,com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-07-28 04:32:06 -04:00
Loui Chang
e7fc80cc2e pkg_details: Remove leftover code.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-07-19 23:26:16 -04:00
Loui Chang
57972532a7 Add voter list on packages for TUs and devs.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-07-19 23:20:36 -04:00
Sergej Pupykin
316f4b990c minor changes
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-07-10 08:38:54 -04:00
Mod_Gao
7182a9cc56 Updated AUR translation of zh_CN.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-07-10 08:36:36 -04:00
Loui Chang
bcc8650071 Fix translating guide.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-28 13:22:46 -04:00
Loui Chang
9f854efe86 Bump version to 1.5.6.4
I forgot to bump the version again!

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-25 00:12:50 -04:00
Loui Chang
610733eafd Remove excess whitespace.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-25 00:05:44 -04:00
Sergej Pupykin
928945bd51 minor translation
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-18 07:28:26 -04:00
Sergej Pupykin
ae3ee2472a submit button i18n
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-18 07:28:25 -04:00
Callan Barrett
d25c177229 Turn on package notification by default for new packages
Version using package functions

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-18 02:05:02 -04:00
Gergely Imreh
0427eebaa4 fix FS#13122 (again): removing comment removal as early as possible
comments need to be removed before concatenating lines, otherwise
not matched brackets can cause problems on submit

Signed-off-by: Gergely Imreh <imrehg@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-18 01:54:44 -04:00
Sergej Pupykin
51c62f2dc1 russian translation mistype fix
Signed-off-by: Sergej Pupykin <sergej.pupykin@lx-ltd.ru>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-18 01:48:40 -04:00
Sergej Pupykin
3b5f224ace Advanced button i18n
Signed-off-by: Sergej Pupykin <sergej.pupykin@lx-ltd.ru>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-18 01:48:40 -04:00
Sergej Pupykin
6073433d6f russian update
Signed-off-by: Sergej Pupykin <sergej.pupykin@lx-ltd.ru>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-18 01:48:39 -04:00
Dan McGee
1ceeda8ab5 Specify explicit joins for package search
Refactor the query to use explicit LEFT JOINs, which appears to be handled
by MySQL in a saner fashion than the previous implicit join syntax. This is
part two in a slight fixup for observed slow queries in the production
environment. With the new indexes and this fixup, a particular iteration of
this query will examine only 13346 rows instead of 272060.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-18 01:47:17 -04:00
Dan McGee
e2b3bd1c37 Add multicolumn indexes on votes and notifications tables
To put a long story short, when we do joins on these tables in our
pkg_search_page() function, we always join on both the user ID and package
ID columns. By creating multicolumn indices, we can always get the exact row
we are looking for in the table.

The benefits of adding a unique index should also speak for themselves, as
we previously did not have this on either of these tables.

This is part one of a two-part series to address the fact that this query
was often showing up in our slow query logs.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-18 01:47:17 -04:00
Loui Chang
135d610957 Add Ukranian translation to default config.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-04-13 10:27:10 -04:00
Dan McGee
55da4d4e0d Don't hit the database twice per comment on package
It's performance improvement day today. For non-superusers, we were hitting
the database twice per comment on a package- once to get the UID, and once
to check the owner of the comment. The best part is we already knew the
owner of the comment, and we only need to get our own UID once.

For viewing a package like yaourt, this cuts a single pageview from over 700
queries to around 18, which is still not great but a pretty big improvement.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-04-13 10:07:46 -04:00
Loui Chang
f028d5c140 translator.inc: Eliminate notices for untranslated strings.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-04-13 09:55:04 -04:00