44 Commits

Author SHA1 Message Date
Florian Schlichting
d7b063a249 fix default value for old events, and actually bail out if "old" is less than six days ago (fixes #49) 2015-10-02 22:44:51 +02:00
Florian Schlichting
3a9d8db575 rebuild-translations.sh: do not create incorrect SQL in supported_locales.sql when $lang.values file is missing (fixing Issue #40 part a) 2015-10-01 21:43:35 +02:00
Florian Schlichting
269a24dbb5 fix scripts/build-always.sh: AWL_VERSION is always without quotes 2014-12-16 21:53:28 +01:00
Aaron W. Swenson
cfd5fd7555 Loop Over AWL Directory Candidates
Using this method we're able to loop over the candidate directories
until we find what should be suitable AWL location. Further, adding
additional locations is as simple as adding a new line to ${awldirs}.

It does have the limitation that if the path has a new line in it
(/some/ridic
ulous/path), it'll treat it as two different paths. However, if
somebody seriously has that, they deserve the pain.
2014-11-14 13:44:39 -05:00
Andrew Ruthven
325840ab30 Heh, actually make it the same string. Damn quotes. 2014-09-24 15:21:52 +12:00
Andrew Ruthven
1a715ca47a Closes #25 - Remove a duplicate string.
We still need the newline on the end, so append to the result from
the translate call.

I do note that is the only translated string in the file...
2014-09-24 15:19:23 +12:00
Andrew McMillan
eadc73c6be Don't warn on slow queries since this is a batch process. 2013-04-17 12:25:16 +12:00
Andrew McMillan
5065e59596 Also need to change collection_id... 2013-04-16 10:20:03 +12:00
Andrew McMillan
f67780c461 Fix typo. 2013-04-16 09:57:38 +12:00
Andrew McMillan
8a5d641297 Once we do archive the events we have to update various things so they realise it too. 2013-04-15 14:49:33 +12:00
Andrew McMillan
0453c9a902 A script for archiving non-repeating events into an archive calendar. 2013-04-11 07:33:14 +12:00
Andrew McMillan
2f59a1a172 Handle relative file references better, 2012-05-28 08:07:07 +12:00
Andrew McMillan
c675349ded Add a command-line script to export a single calendar to stdout. 2012-02-24 11:18:51 +13:00
Andrew McMillan
2cb4528746 Override the "don't PUT a whole calendar" option. 2012-02-21 22:35:41 +13:00
Andrew McMillan
85924de63c A command-line script to load a calendar from an iCalendar file.
Currently only tested for calendars, but I suspect it will also
work just fine for an addressbook also.
2012-02-21 20:54:53 +13:00
Andrew McMillan
df4d1f0426 Correctly calculate the next alarm time. 2011-11-21 10:53:46 +13:00
Andrew McMillan
3001207904 Update refresh-alarms script to newer style initialisation.
This approach makes for a tidier and more reliable initialisation.
2011-11-01 18:00:02 +13:00
Andrew McMillan
45c5e67993 Get date identified as being UTC. 2011-10-06 11:06:34 +02:00
Andrew McMillan
8347143879 Refactor this to move duplicated code into functions. 2011-09-23 13:03:07 +12:00
Andrew McMillan
b6f2f9c7da Move the zone update code out of an online process. 2011-09-22 15:34:52 +12:00
Andrew McMillan
3ce63406c8 A script that can be run from cron to sync from LDAP.
As proposed by 'mate' on IRC.  This simple code hopefully also
demonstrates a good general starting point to future PHP scripts
running from the command-line within DAViCal.
2011-09-22 15:34:33 +12:00
Andrew McMillan
8cefe9d5c4 Adjust how we find AWL when building relative strings. 2011-09-11 20:28:12 +12:00
Andrew McMillan
8ed17e2329 Calculate the DAViCal source files we need to process for translations. 2011-09-11 00:46:07 +12:00
Andrew McMillan
504651a3f5 Add new locales and restructure how they are handled.
We now build the dba/supported_locales.sql file from po/locale.values
files for each locale, and we are also fetching the translations from
transifex.net in order to build them.

This commit also adds support for some new locales, especially
Brazilian Portuguese and Mexican Spanish.
2011-08-25 12:45:33 +12:00
Andrew McMillan
5debe92237 Move from extract.pl to standard xgettext
So far we have used extract.pl which originated in Horde to generate the
PO files. This process took a long time to run.

But xgettext is able to handle PHP by itself.

In the source translate() and i18n() are used instead of _() therefore
we have to pass a keyword parameter.

From now on Translators: is the keyword to provide content to the
translators on Transifex.

Conflicts:

	scripts/po/extract.pl
2011-02-21 22:39:40 +13:00
Andrew McMillan
0de150ed74 Build AWL desired version string as quoted value.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-02-21 22:07:31 +13:00
Andrew McMillan
6f50f3e2e2 Some changes to allow for snapshot builds.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-20 23:34:21 +13:00
Andrew McMillan
4cf0d0696b Script to refresh calendar_alarms with next instance time. 2010-11-14 14:55:49 +13:00
Andrew McMillan
b8f4a26515 Patch for caldav sync from Pierre-Arnaud Poudret. 2010-11-06 22:38:24 +13:00
Andrew McMillan
c0d950b687 Add some replacement to set the expected AWL version.
This is kinda dodgy because AWL is external, so we expect it to
be unpacked in a parallel 'awl' directory.  Otherwise we will not
change what is already coded into htdocs/always.php
2010-10-14 21:18:00 -04:00
Andrew McMillan
c5c97ad5d2 [sync-remote] More attempts to handle Google.
It seems that on PUT Google might truncate the filename, so it will
send us back a Location header we need to follow before we can
getr the ETag.  And there might be one more hoop to jump through
to complete this process.

This would be better handled if we locally use the VEVENT UID as
the invariant property between local and remote, rather than the
'filename' part of the path, but we'd still face the issue of
having to follow the Location: header to get the ETag for the
event we just PUT to the remote server.
2010-09-17 14:08:40 +12:00
Andrew McMillan
be02f3cd1f [sync-remote-caldav] Handle case where remote server renames on PUT
Some servers rename the event when we PUT it, so in this case we
rename our local copy to match.
2010-09-14 14:00:00 +12:00
Andrew McMillan
a1a0eb2aa2 Print stage of processing for diagnostic reasons. 2010-08-18 21:38:34 +12:00
Andrew McMillan
1862d5fa42 Improved sync to cope slightly better if remote data already present.
This is not a complete fix - it depends on the filename part of the
URI being invariant between the two servers.  It should really
compare the UID of the two events...
2010-04-26 23:28:03 +12:00
Andrew McMillan
92e106653b Fix include path for new always.php location. 2010-03-24 12:55:08 +13:00
Andrew McMillan
7ae6678106 Add usage() function. 2010-03-22 17:23:36 +13:00
Andrew McMillan
701e96e1b2 Some updates to the caldav client library and an example script. 2010-03-11 23:40:47 +13:00
Andrew McMillan
c4c05bd46d Basic script to sync from another caldav calendar. 2010-03-11 14:00:19 +13:00
Andrew McMillan
e6507ee01f Add a script for building always.php to include DB version also. 2009-10-27 09:17:07 +13:00
Andrew McMillan
f04a12b7cc Be more robust about finding the AWL code location. 2009-10-27 09:14:10 +13:00
Andrew McMillan
32cc54a081 Fix translation inefficiencies, per Debian bug #495307 2008-09-17 23:07:37 +12:00
Andrew McMillan
0920c1ef31 Remove dependence on database. 2007-11-03 18:07:32 +13:00
Andrew McMillan
f99588f969 Changes to make translation building work better. 2006-11-07 10:37:02 +13:00
Andrew McMillan
4d4b99be19 Scripts for building initial messages.po file for use with gettext. 2006-11-05 22:07:21 +13:00