aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-01-07 21:28:22 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-01-07 21:28:22 +0800
commit07e1bf23744ac4305406c416e1361582948a1d3e (patch)
treed24a68d5e11adb2cc0df438f8f8e78fe47f4339b /data
parent5d3540a4c4e9606adef1575b92c0142f65f1ee86 (diff)
downloadgsoc2013-epiphany-07e1bf23744ac4305406c416e1361582948a1d3e.tar
gsoc2013-epiphany-07e1bf23744ac4305406c416e1361582948a1d3e.tar.gz
gsoc2013-epiphany-07e1bf23744ac4305406c416e1361582948a1d3e.tar.bz2
gsoc2013-epiphany-07e1bf23744ac4305406c416e1361582948a1d3e.tar.lz
gsoc2013-epiphany-07e1bf23744ac4305406c416e1361582948a1d3e.tar.xz
gsoc2013-epiphany-07e1bf23744ac4305406c416e1361582948a1d3e.tar.zst
gsoc2013-epiphany-07e1bf23744ac4305406c416e1361582948a1d3e.zip
Architecture for translatable xml/xsl start page.
2003-01-07 Marco Pesenti Gritti <marco@it.gnome.org> * configure.in: * data/Makefile.am: * data/start_here.html: * data/starthere/Makefile.am: * data/starthere/index.xml.in: * data/starthere/section.xsl: * embed/mozilla/StartHereProtocolHandler.cpp: * lib/Makefile.am: * lib/widgets/ephy-autocompletion-window.c: (hack_tree_view_move_selection): * po/POTFILES.in: Architecture for translatable xml/xsl start page.
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am6
-rw-r--r--data/start_here.html23
-rw-r--r--data/starthere/Makefile.am12
-rw-r--r--data/starthere/index.xml.in8
-rw-r--r--data/starthere/section.xsl23
5 files changed, 44 insertions, 28 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index e5d584df7..452cdd623 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = ui art glade
+SUBDIRS = ui art glade starthere
@INTLTOOL_SERVER_RULE@
@INTLTOOL_DESKTOP_RULE@
@@ -16,9 +16,6 @@ Applications_DATA = $(DESKTOP_FILES)
schemadir = $(sysconfdir)/gconf/schemas
schema_DATA = epiphany.schemas
-startheredir = $(pkgdatadir)
-starthere_DATA = start_here.html
-
EXTRA_DIST = $(glade_DATA)
install-data-local:
@@ -32,6 +29,5 @@ CLEANFILES = $(server_DATA) $(Applications_DATA)
EXTRA_DIST = $(server_in_files) \
$(schema_DATA) \
- $(starthere_DATA) \
$(DESKTOP_IN_FILES)
diff --git a/data/start_here.html b/data/start_here.html
deleted file mode 100644
index 73a0e908e..000000000
--- a/data/start_here.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<html>
-<head>
-</head>
-<body>
-<h1>Welcome ...</h1>
-<h2>Smart Bookmarks</h2>
-<p>
-Right click the icon and choose "Add Bookmark" from the menu list.
-</p>
-<dl>
-<li>
-<a type="text/smartbookmark" href="http://www.google.com/" rel="http://www.google.com/search?q=%s" title="Search the web - Google">
-Search the web - Google
-</a>
-</li>
-<li>
-<a type="text/smartbookmark" href="http://images.google.com/" rel="http://images.google.com/images?q=%s" title="Search images - Google">
-Search images - Google
-</a>
-</li>
-</ol>
-</body>
-</html>
diff --git a/data/starthere/Makefile.am b/data/starthere/Makefile.am
new file mode 100644
index 000000000..411c442cf
--- /dev/null
+++ b/data/starthere/Makefile.am
@@ -0,0 +1,12 @@
+@INTLTOOL_XML_RULE@
+
+xmldir = $(pkgdatadir)/starthere
+xml_in_files = index.xml.in
+xml_DATA = $(xml_in_files:.xml.in=.xml)
+
+xsldir = $(pkgdatadir)/starthere
+xsl_DATA = section.xsl
+
+EXTRA_DIST = $(xml_DATA) \
+ $(xml_in_files)
+
diff --git a/data/starthere/index.xml.in b/data/starthere/index.xml.in
new file mode 100644
index 000000000..b24de14f1
--- /dev/null
+++ b/data/starthere/index.xml.in
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="section.xsl"?>
+<section>
+<_title>The web browser</_title>
+<_paragraph>What you use it for ?</_paragraph>
+<_title>Getting started</_title>
+<_paragraph>How I begin ? Import bookmarks, proxy settings</_paragraph>
+</section>
diff --git a/data/starthere/section.xsl b/data/starthere/section.xsl
new file mode 100644
index 000000000..6b349c626
--- /dev/null
+++ b/data/starthere/section.xsl
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<!-- root rule -->
+<xsl:template match="/">
+ <xsl:apply-templates/>
+</xsl:template>
+
+<!-- main rule for document element -->
+<xsl:template match="section">
+<html>
+ <head>
+ </head>
+ <body>
+ <xsl:apply-templates/>
+ </body>
+</html>
+</xsl:template>
+
+</xsl:stylesheet>
+