diff options
author | Istvan Turi <turipista@freemail.hu> | 2012-08-24 21:47:16 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-08-24 21:53:39 +0200 |
commit | 1b7c88ab4d6aaa79c484bcb179e5b2f296654462 (patch) | |
tree | 351a3b9acb4237fdfe7a114f199b4d20c9863a62 /scp2 | |
parent | a581d31b227623e09d2970a91214fda398f98eda (diff) |
translate fax/letter/agenda/report templates runtime
Instead of distributing bazillions of localized templates, that
contain only a few translatable strings, we try to localize them
runtime. This is the initial patch that does the heavy-lifting.
It has some rough edges, but the feature will be polished by
freezing of LibreOffice 3.7.
Change-Id: I535b3bff1f5706afebd21d017c01e2b4745b7cfb
Diffstat (limited to 'scp2')
-rw-r--r-- | scp2/source/ooo/directory_ooo.scp | 71 | ||||
-rw-r--r-- | scp2/source/ooo/file_extra_ooo.scp | 29 | ||||
-rw-r--r-- | scp2/source/ooo/module_lang_template.scp | 5 |
3 files changed, 35 insertions, 70 deletions
diff --git a/scp2/source/ooo/directory_ooo.scp b/scp2/source/ooo/directory_ooo.scp index 2092772650d1..0ab12d6d41a8 100644 --- a/scp2/source/ooo/directory_ooo.scp +++ b/scp2/source/ooo/directory_ooo.scp @@ -114,28 +114,6 @@ Directory gid_Dir_Wizards_Fax DosName = "fax"; End -Directory gid_Dir_Wizards_Text - Styles = (CREATE); - ParentID = gid_Dir_Wizards; - DosName = "text"; -End - -Directory gid_Dir_Wizards_Common - Styles = (CREATE); - ParentID = gid_Dir_Wizards; - DosName = "common"; -End - -Directory gid_Dir_Wizards_Document - Styles = (CREATE); - ParentID = gid_Dir_Wizards; - DosName = "document"; -End -Directory gid_Dir_Filter - ParentID = gid_Brand_Dir_Program; - DosName = "filter"; -End - Directory gid_Dir_Resource ParentID = gid_Brand_Dir_Program; DosName = "resource"; @@ -944,16 +922,36 @@ Directory gid_Dir_Share_Template_Wizard DosName = "wizard"; End +Directory gid_Dir_Share_Template_Common_Wizard + ParentID = gid_Dir_Template_Common; + DosName = "wizard"; +End + +Directory gid_Dir_Share_Template_Common_Wizard_Agenda + ParentID = gid_Dir_Share_Template_Common_Wizard; + DosName = "agenda"; +End + Directory gid_Dir_Share_Template_Wizard_Bitmap ParentID = gid_Dir_Share_Template_Wizard; DosName = "bitmap"; End -Directory gid_Dir_Share_Template_Wizard_Letter - ParentID = gid_Dir_Share_Template_Wizard; +Directory gid_Dir_Share_Template_Common_Wizard_Fax + ParentID = gid_Dir_Share_Template_Common_Wizard; + DosName = "fax"; +End + +Directory gid_Dir_Share_Template_Common_Wizard_Letter + ParentID = gid_Dir_Share_Template_Common_Wizard; DosName = "letter"; End +Directory gid_Dir_Share_Template_Common_Wizard_Report + ParentID = gid_Dir_Share_Template_Common_Wizard; + DosName = "report"; +End + Directory gid_Dir_Template_Language ParentID = gid_Dir_Template; DIR_ISOLANGUAGE_ALL_LANG_2; @@ -1014,31 +1012,6 @@ Directory gid_Dir_Template_Wizard DIR_IDENT_ALL_LANG(wizard); End -Directory gid_Dir_Template_Wizard_Web - ParentID = gid_Dir_Template_Wizard; - DIR_IDENT_ALL_LANG(web); -End - -Directory gid_Dir_Template_Wizard_Report - ParentID = gid_Dir_Template_Wizard; - DIR_IDENT_ALL_LANG(report); -End - -Directory gid_Dir_Template_Wizard_Letter - ParentID = gid_Dir_Template_Wizard; - DIR_IDENT_ALL_LANG(letter); -End - -Directory gid_Dir_Template_Wizard_Fax - ParentID = gid_Dir_Template_Wizard; - DIR_IDENT_ALL_LANG(fax); -End - -Directory gid_Dir_Template_Wizard_Agenda - ParentID = gid_Dir_Template_Wizard; - DIR_IDENT_ALL_LANG(agenda); -End - Directory gid_Dir_Template_Wizard_Styles ParentID = gid_Dir_Template_Wizard; DIR_IDENT_ALL_LANG(styles); diff --git a/scp2/source/ooo/file_extra_ooo.scp b/scp2/source/ooo/file_extra_ooo.scp index 75358457c642..5cb0e92f87f7 100644 --- a/scp2/source/ooo/file_extra_ooo.scp +++ b/scp2/source/ooo/file_extra_ooo.scp @@ -366,30 +366,27 @@ File gid_File_Extra_Tplwizdesktop End File gid_File_Extra_Tplwizletter - Dir = gid_Dir_Share_Template_Wizard_Letter; + Dir = gid_Dir_Share_Template_Common_Wizard_Letter; ARCHIVE_TXT_FILE_BODY; Name = "tplwizletter.zip"; End -File gid_File_Extra_Tplwizfax_Lang - Dir = gid_Dir_Template_Wizard_Fax; - TXT_FILE_BODY; - Styles = (ARCHIVE, DONT_OVERWRITE); - EXTRA_ALL_LANG(tplwizfax,zip); +File gid_File_Extra_Tplwizfax + Dir = gid_Dir_Share_Template_Common_Wizard_Fax; + ARCHIVE_TXT_FILE_BODY; + Name = "tplwizfax.zip"; End -File gid_File_Extra_Tplwizagenda_Lang - Dir = gid_Dir_Template_Wizard_Agenda; - TXT_FILE_BODY; - Styles = (ARCHIVE, DONT_OVERWRITE); - EXTRA_ALL_LANG(tplwizagenda,zip); +File gid_File_Extra_Tplwizagenda + Dir = gid_Dir_Share_Template_Common_Wizard_Agenda; + ARCHIVE_TXT_FILE_BODY; + Name = "tplwizagenda.zip"; End -File gid_File_Extra_Tplwizreport_Lang - Dir = gid_Dir_Template_Wizard_Report; - TXT_FILE_BODY; - Styles = (ARCHIVE, DONT_OVERWRITE); - EXTRA_ALL_LANG(tplwizreport,zip); +File gid_File_Extra_Tplwizreport + Dir = gid_Dir_Share_Template_Common_Wizard_Report; + ARCHIVE_TXT_FILE_BODY; + Name ="tplwizreport.zip"; End File gid_File_Extra_Tplwizstyles_Lang diff --git a/scp2/source/ooo/module_lang_template.scp b/scp2/source/ooo/module_lang_template.scp index aa34608e6c20..3b1201689cfe 100644 --- a/scp2/source/ooo/module_lang_template.scp +++ b/scp2/source/ooo/module_lang_template.scp @@ -31,11 +31,6 @@ Module gid_Module_Langpack_Basis_Template Description = "gid_Module_Langpack_Root_Template"; Styles = (TEMPLATEMODULE); Files = (gid_File_Extra_Autotextshare_Lang, - gid_File_Extra_Tplpresntimpr_Lang, - gid_File_Extra_Tplwizagenda_Lang, - gid_File_Extra_Tplwizdesktop_Lang, - gid_File_Extra_Tplwizfax_Lang, - gid_File_Extra_Tplwizreport_Lang, gid_File_Extra_Tplwizstyles_Lang, gid_File_Registry_Filter_Zip, gid_File_Registry_Lang, |