Events Plasma Runner in kdereview

Albert Astals Cid aacid at kde.org
Sun Jan 31 00:34:29 GMT 2010


A Divendres, 29 de gener de 2010, Alexey Noskov va escriure:
> Hi all!
> 
> I've just commited plasma-events-runner into kdereview.
> 
> It's a Plasma Runner plugin, which provides ability to add new events or
>  todos to calendar. It supports typing events such as following:
> 
> * `event Project deadline; 13.02.2010` - create new event with summary
> "Project deadline" for 13.02.2010;
> * `todo Complete my work; tomorrow 12:30; Business` - create todo with
>  given summary and deadline datetime with category "Business";
> * `event Something; 13:30` - something at 13:30 today;
> * `event Other event; yesterday`
> * `todo Buy new phone; in 2 years`
> * `todo Complete site design; in 2 days from 10:30`
> 
> Waiting for your comments.

Your Messages.sh line does not match the exported name of your runner, you 
either change

$XGETTEXT *.cpp -o $podir/plasma_runner_events.pot
to
$XGETTEXT *.cpp -o $podir/plasma_runner_events_runner.pot

or change

K_EXPORT_PLASMA_RUNNER(events_runner, EventsRunner)
to
K_EXPORT_PLASMA_RUNNER(events, EventsRunner)

And 

QRegExp inDays("in\\s*([+-]?\\d+)\\s*days\\s*(from\\s+)?");
...
formatRegexp.replace( "DDD", "(Mon|Tue|Wed|Thu|Fri|Sat|Sun)" );
formatRegexp.replace( "MMM", "(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|
Dec)" );
...

Doesn't seem much i18n friendly

Albert

> 
> Cheers,
> Alexey Noskov
> 





More information about the kde-core-devel mailing list