Where to store templates?

Michael Meeks michael.meeks at suse.com
Fri May 11 13:22:47 PDT 2012


Hi Alexander,

On Fri, 2012-05-11 at 11:30 -0700, Alexander Wilms wrote:
> I want to add some templates to the repository, but I'm not sure where they
> should be stored

	:-) So - I guess we should clobber the existing templates with the new
ones; which leads to the question of - where are the existing ones -
extras/ is almost certainly the place - as you say :-)

	The extras/README should be packed with this sort of useful information
but ... is not ;-)

> (https://wiki.documentfoundation.org/Design/Call_for_Templates#Submissions).
> "root/extras/source/templates/layout" or
> "root/extras/source/templates/presnt"? There are two presentation templates
> and one writer document containing a certain formatting, the text could be
> deleted and none of the documents needs to be translated. The slideshow
> templates contain several master slides, if that matters.

	So - which are you going to do first ? :-)

	Incidentally - one golden rule here is that - when you push something
to git it is there *forever* - which means that every subsequent git
clone anyone in the world will ever do will include your data :-)

	What is the moral of that ?

	a) don't check-in lots of big binary files unless they
	   are really very static / complete :-)
	b) come up with cunning programmatic ways to not do translation
	   of templates in the utterly dumb way it's done now ;-)
	c) try to share big things - eg. images across templates
	   without checking them in repeatedly (and bundling them
	   into distributions).

	Just some hints there really; ie. about the worst thing you can do is
whack some big beautiful high-res image into a template, and then check
it in for each language with a minor tweak. Sadly the packaging code
takes great delight in duplicating such things per-language already
so ... until Gabor fixes this to make templates variously sanely
translateable (IIRC).

	There is a bug for some of this: eg.

	https://bugs.freedesktop.org/show_bug.cgi?id=49098
or	https://bugs.freedesktop.org/show_bug.cgi?id=49101

	Personally, I'd prefer to have '.fodp' '.fodt' etc. files in there, so
we can actually see what is happening as they are changed by people and
version control becomes meaningful :-)

	Anyhow - not sure if that helped much but ... :-)

	Thanks !

		Michael.

-- 
michael.meeks at suse.com  <><, Pseudo Engineer, itinerant idiot



More information about the LibreOffice mailing list