Re: [aur-dev] Using gettext for translations?

2011-04-06 Thread Dan McGee
On Wed, Apr 6, 2011 at 9:27 PM, Lukas Fleischer wrote: > On Wed, Apr 06, 2011 at 10:26:35PM +0200, Lukas Fleischer wrote: >> Hi, >> >> I thought about this sometime ago. The existing i8n files shouldn't be >> too hard to convert and we could move translation work to some more >> appropriate platfo

Re: [aur-dev] some patches to gendummydata (take 3)

2011-04-06 Thread elij
On Wed, Apr 6, 2011 at 7:23 PM, elij wrote: > Updated with changes Lukas requested. > > - split logging and mysql removal into separate patches > - update logging patch with uppercase variable convention > - drop tabs -> spaces patch > - clarified commit messages hmm. looks like I missed a single

Re: [aur-dev] Using gettext for translations?

2011-04-06 Thread Lukas Fleischer
On Wed, Apr 06, 2011 at 10:26:35PM +0200, Lukas Fleischer wrote: > Hi, > > I thought about this sometime ago. The existing i8n files shouldn't be > too hard to convert and we could move translation work to some more > appropriate platform like Transifex which is used by pacman already. PHP > gette

[aur-dev] [PATCH 3/4] wrap long SQL commands to improve formatting and readability

2011-04-06 Thread elij
--- support/schema/gendummydata.py | 34 +++--- 1 files changed, 23 insertions(+), 11 deletions(-) diff --git a/support/schema/gendummydata.py b/support/schema/gendummydata.py index 290002a..cb27f9c 100755 --- a/support/schema/gendummydata.py +++ b/support/schema/gen

[aur-dev] [PATCH 2/4] replace print statements with logging module in gendummydata

2011-04-06 Thread elij
use the logging module instead of writing directly to stderr this makes the code cleaner as it removes the numerous tests for the value of DBUG, yet allows devs to control the level of output verbosity. --- support/schema/gendummydata.py | 63 ++- 1 files chan

[aur-dev] [PATCH 1/4] remove mysql dependency from gendummydata

2011-04-06 Thread elij
- remove need to use mysql for escaping the sql -- removing single quote should be enough - instead of using sql to fetch categories from a live database, simply consider categories an integer range, specified to the size of that in the aur-schema. --- support/schema/gendummydata.py | 43 +

[aur-dev] some patches to gendummydata (take 3)

2011-04-06 Thread elij
Updated with changes Lukas requested. - split logging and mysql removal into separate patches - update logging patch with uppercase variable convention - drop tabs -> spaces patch - clarified commit messages

[aur-dev] Patch for French translation

2011-04-06 Thread Cédric Girard
Hi, Here is a patch for the French translation. What have been done : * Translation of "notify" has been changed to the literal translation "notifier" which seems more appropriate (cf. recent thread on AUR-general) * Uniformization of the translation of "flag" * Addition of "TU" besides the tr

Re: [aur-dev] [PATCH 3/3] convert to spaces

2011-04-06 Thread elij
On Wed, Apr 6, 2011 at 1:16 PM, Lukas Fleischer wrote: > On Wed, Apr 06, 2011 at 12:59:10PM -0700, elij wrote: >> On Wed, Apr 6, 2011 at 12:06 PM, Lukas Fleischer >> wrote: >> > On Tue, Apr 05, 2011 at 11:57:48PM -0700, elij wrote: >> >> reformat with recommendation from pep8 for using spaces >>

Re: [aur-dev] Using gettext for translations?

2011-04-06 Thread Dan McGee
On Wed, Apr 6, 2011 at 3:26 PM, Lukas Fleischer wrote: > Hi, > > I thought about this sometime ago. The existing i8n files shouldn't be > too hard to convert and we could move translation work to some more > appropriate platform like Transifex which is used by pacman already. PHP > gettext integra

[aur-dev] Using gettext for translations?

2011-04-06 Thread Lukas Fleischer
Hi, I thought about this sometime ago. The existing i8n files shouldn't be too hard to convert and we could move translation work to some more appropriate platform like Transifex which is used by pacman already. PHP gettext integration doesn't seem to be too bad and our PHP is compiled with gettex

Re: [aur-dev] [PATCH 3/3] convert to spaces

2011-04-06 Thread Lukas Fleischer
On Wed, Apr 06, 2011 at 12:59:10PM -0700, elij wrote: > On Wed, Apr 6, 2011 at 12:06 PM, Lukas Fleischer > wrote: > > On Tue, Apr 05, 2011 at 11:57:48PM -0700, elij wrote: > >> reformat with recommendation from pep8 for using spaces > >> --- > >>  support/schema/gendummydata.py |  256 > >> ++

Re: [aur-dev] [PATCH] Update the german translation

2011-04-06 Thread Lukas Fleischer
On Mon, Apr 04, 2011 at 05:30:03PM +0200, Wieland Hoffmann wrote: > Lukas Fleischer wrote: > > This is on my TODO list, but there's more important stuff on there. I'll > > probably add the missing entries myself as I'm a native German speaker. > > But thanks a lot! > > Any chance of this happening

Re: [aur-dev] [PATCH 3/3] convert to spaces

2011-04-06 Thread elij
On Wed, Apr 6, 2011 at 12:06 PM, Lukas Fleischer wrote: > On Tue, Apr 05, 2011 at 11:57:48PM -0700, elij wrote: >> reformat with recommendation from pep8 for using spaces >> --- >>  support/schema/gendummydata.py |  256 >> >>  1 files changed, 128 insertio

Re: [aur-dev] [PATCH 1/3] make gendummydata script more friendly

2011-04-06 Thread Lukas Fleischer
On Wed, Apr 06, 2011 at 12:35:32PM -0700, elij wrote: > On Wed, Apr 6, 2011 at 12:04 PM, Lukas Fleischer > wrote: > >>       num_comments = random.randrange(PKG_CMNTS[0], PKG_CMNTS[1]) > >>       for i in range(0, num_comments): > >> -             fortune = > >> esc(commands.getoutput(FORTUNE_CMD

Re: [aur-dev] [PATCH 1/3] make gendummydata script more friendly

2011-04-06 Thread elij
On Wed, Apr 6, 2011 at 12:04 PM, Lukas Fleischer wrote: > I agree with both changes, but please split that one into two separate > patches. ugh. yeah I can probably do that. >> -DBUG = 1 >> +log_level = logging.DEBUG # logging level. set to logging.INFO to reduce >> output > > I'm not a P

Re: [aur-dev] [PATCH 2/7] add minified aur css

2011-04-06 Thread Lukas Fleischer
On Wed, Apr 06, 2011 at 02:18:22PM -0500, Dan McGee wrote: > On Wed, Apr 6, 2011 at 2:15 PM, Lukas Fleischer > wrote: > > On Mon, Apr 04, 2011 at 02:44:06PM -0700, elij wrote: > >> --- > >>  web/html/css/aur.min.css |  148 > >> ++ > >>  1 files changed,

Re: [aur-dev] [PATCH 6/7] optimize png file

2011-04-06 Thread Lukas Fleischer
On Mon, Apr 04, 2011 at 02:44:10PM -0700, elij wrote: > - savings of about 1K (22%) > --- > web/html/css/archnavbar/archlogo.png | Bin 4192 -> 3258 bytes > 1 files changed, 0 insertions(+), 0 deletions(-) > How did you do this? Please add some note on how to reproduce that optimization to the

Re: [aur-dev] [PATCH 5/7] use new css files in header template

2011-04-06 Thread Lukas Fleischer
On Mon, Apr 04, 2011 at 02:44:09PM -0700, elij wrote: > --- > web/template/header.php |9 + > 1 files changed, 5 insertions(+), 4 deletions(-) > You should split and merge this into the patches addressing the CSS file merging and the creation of the IE6 stylesheet. Keep changesets at

Re: [aur-dev] [PATCH 2/7] add minified aur css

2011-04-06 Thread Dan McGee
On Wed, Apr 6, 2011 at 2:15 PM, Lukas Fleischer wrote: > On Mon, Apr 04, 2011 at 02:44:06PM -0700, elij wrote: >> --- >>  web/html/css/aur.min.css |  148 >> ++ >>  1 files changed, 148 insertions(+), 0 deletions(-) >>  create mode 100644 web/html/css/au

Re: [aur-dev] [PATCH 2/7] add minified aur css

2011-04-06 Thread Lukas Fleischer
On Mon, Apr 04, 2011 at 02:44:06PM -0700, elij wrote: > --- > web/html/css/aur.min.css | 148 > ++ > 1 files changed, 148 insertions(+), 0 deletions(-) > create mode 100644 web/html/css/aur.min.css > > diff --git a/web/html/css/aur.min.css b/web/html

Re: [aur-dev] [PATCH 1/1] refer to the wiki for api documentation

2011-04-06 Thread Lukas Fleischer
On Tue, Apr 05, 2011 at 10:03:22AM -0700, elij wrote: > --- > web/html/rpc.php | 20 +--- > 1 files changed, 5 insertions(+), 15 deletions(-) > Basically sounds like a good idea, but we should try to move away from having stuff strongly linked to the Arch Linux homepage. I know

Re: [aur-dev] [PATCH 3/3] convert to spaces

2011-04-06 Thread Lukas Fleischer
On Tue, Apr 05, 2011 at 11:57:48PM -0700, elij wrote: > reformat with recommendation from pep8 for using spaces > --- > support/schema/gendummydata.py | 256 > > 1 files changed, 128 insertions(+), 128 deletions(-) Won't push that one, as long as we don'

Re: [aur-dev] [PATCH 1/3] make gendummydata script more friendly

2011-04-06 Thread Lukas Fleischer
On Tue, Apr 05, 2011 at 11:57:46PM -0700, elij wrote: > - remove need to use mysql for generating the sql > - just consider categories an integer range, specified to the size > of that in the aur-schema. > - use the logging module instead of writing directly to stderr > this makes the code clea