A court in Nepal has sentenced a former UN aid worker from Canada to nine years in jail on charges of sexually abusing two boys.

Peter Dalglish, 62, was arrested at his home near Kathmandu last year and was convicted in June of sexually abusing two boys aged 12 and 14.

"He was sentenced to nine years in jail in one case and to seven years in the other," an information officer at the court in Kavre district, 30km east of Kathmandu said.

The sentences will run concurrently.

Dalglish, who was present in court for the sentencing yesterday, pleaded not guilty and would appeal, his lawyer said.

"Due process has not been fulfilled during the investigation in the case. So we'll appeal," the lawyer said.

Dalglish was also been ordered to pay about $9,100 in compensation to the boys.

Dalglish had been helping children from poor families in Nepal by providing financial support.

He had earlier worked with humanitarian agencies like UN Habitat in Afghanistan and a UN mission in Liberia, his lawyer said.

Activists said the sentence would help deter other possible offenders in a country with a poor record for crimes involving children.

"It will help break the belief that Nepal is not serious about child abuse," said Tarak Dhital, an independent activist campaigning for child rights.