Commit b1230055 authored by Clément Stenac's avatar Clément Stenac

*experimental* translation mechanism using po4a

po4a is "PO for anything". It allows to use PO files for virtually anything (using plugins).

po4a extracts strings from the english files, generates the pot files and updates the po files.

It then generates the translated documents in original format.


To update PO files from english and generate translated documents, use, in src/ :

"po4a po4a.cfg -k 0" (-k 0 tells it to generate translated documents
even if there is only 0% of it translated. Default threshold is 80%)


As I said, this is very experimental. If it is not satisfactory, we'll
get back to the previous translation system, but I think this one has
loads of advantages :

- easy tracking of modifications
- easy editing (kbabel, gtranslator, poedit, ...)
- reuse of strings when they appear several times

parent 7ceb6e2d
......@@ -16,7 +16,7 @@ LANG = en
XSL= ../common/videolan-doc.xsl
# All available languages (used in 'make clean')
ALL_LANG = en
ALL_LANG = en fr
# Build HTML, PDF, RTF and TXT outputs (for the web site)
all: $(LANG)/$(DOC)-$(LANG).html $(LANG)/$(DOC)-$(LANG).pdf $(LANG)/$(DOC)-$(LANG).rtf $(LANG)/$(DOC)-$(LANG).txt
......
<?xml version="1.0" encoding="iso8859-1"?>
<chapter id="webbrowser-plugin"><title id="twebbrowser-plugin">
The Mozilla plugin
</title>
<para>
VLC can also be embedded in a web browser
! For the moment, this function is only available with <ulink url="http://www.mozilla.org/">Mozilla</ulink> under GNU/Linux. An experimental plugin is also available for Mac OS X and Microsft Windows.
</para>
<sect1><title>Install the plugin</title>
<sect2><title>GNU/Linux Debian</title>
<para>
You should already have the following lines in your
<filename>/etc/apt/sources.list</filename>
file, if you run Debian Woody:
</para>
<programlisting>
deb http://download.videolan.org/pub/videolan/debian woody main
deb-src http://download.videolan.org/pub/videolan/debian woody main
</programlisting>
<para>
VLC's latest packaged version is always in the official Debian unstable branch. However you should still use our apt-get line if you need libdvdcss in its latest version:
</para>
<programlisting>
deb http://download.videolan.org/pub/videolan/debian sid main
deb-src http://download.videolan.org/pub/videolan/debian sid main
</programlisting>
<para>
Install the
<emphasis>mozilla-plugin-vlc</emphasis> package:</para>
<screen>
<prompt># </prompt><userinput>apt-get update</userinput>
<prompt># </prompt><userinput>apt-get install mozilla-plugin-vlc</userinput>
</screen>
</sect2>
<sect2><title>
Compile the sources yourself
</title>
<para>
Install the Mozilla development package
(<emphasis>mozilla-dev</emphasis> under Debian).
</para>
<para>
Install the required librairies like for a normal VLC install
(from the sources, or from the packages with the development
packages).
</para>
<para>
Download the sources of the latest release: get the
file <filename>vlc-version.tar.gz</filename> from the <ulink url="http://www.videolan.org/vlc/download-sources.html">VLC sources
download page</ulink>. Uncompress-it, configure-it, compile and install:
</para>
<screen>
<prompt>% </prompt><userinput>tar xvzf vlc-version.tar.gz</userinput>
<prompt>% </prompt><userinput>cd vlc-version</userinput>
<prompt>% </prompt><userinput>./configure --enable-mozilla</userinput>
<prompt>% </prompt><userinput>make</userinput>
<prompt>% </prompt><userinput>su</userinput>
<prompt>Password: </prompt><userinput> [Root Password]</userinput>
<prompt># </prompt><userinput>make install</userinput>
</screen>
</sect2>
</sect1>
<sect1><title>
Build HTML pages that use the plugin
</title>
<para>
Here are a few examples of HTML pages that use the
Mozilla plugin.
</para>
<simplesect><title>
Example 1
</title>
<para>
In this example, the plugin will read an HTTP stream
inside the web page. If the user goes fullscreen, he will have to press
<keycap>f</keycap> to go back in normal view.
</para>
<programlisting>
&lt;html&gt;
&lt;head&gt;&lt;title&gt;Demo of VLC mozilla plugin&lt;/title&gt;&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Demo of VLC mozilla plugin - Example 1&lt;/h1&gt;
&lt;embed type="application/x-vlc-plugin"
name="video1"
autoplay="no" loop="yes" width="400" height="300"
target="http://server.example.org/video1.vob" /&gt;
&lt;br /&gt;
&lt;a href="javascript:;" onclick='document.video1.play()'&gt;Play video1&lt;/a&gt;
&lt;a href="javascript:;" onclick='document.video1.pause()'&gt;Pause video1&lt;/a&gt;
&lt;a href="javascript:;" onclick='document.video1.stop()'&gt;Stop video1&lt;/a&gt;
&lt;a href="javascript:;" onclick='document.video1.fullscreen()'&gt;Fullscreen&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</programlisting>
</simplesect>
<simplesect><title>
Example
</title>
<para> In this example, the plugin will read a
multicast UDP stream in a dedicated video output window.
</para>
<programlisting>
&lt;html&gt;
&lt;head&gt;&lt;title&gt;Demo of VLC mozilla plugin&lt;/title&gt;&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Demo of VLC mozilla plugin - Example 2&lt;/h1&gt;
&lt;embed type="application/x-vlc-plugin"
name="video2"
autoplay="no" loop="no" hidden="yes"
target="udp:@239.255.12.42" /&gt;
&lt;br /&gt;
&lt;a href="javascript:;" onclick='document.video2.play()'&gt;Play video2&lt;/a&gt;
&lt;a href="javascript:;" onclick='document.video2.stop()'&gt;Stop video2&lt;/a&gt;
&lt;a href="javascript:;" onclick='document.video2.fullscreen()'&gt;Fullscreen&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</programlisting>
</simplesect>
</sect1>
</chapter>
This diff is collapsed.
This diff is collapsed.
[po4a_paths] po/play-howto.pot fr:po/fr.po
[type: xml] en/basic-use.xml fr:fr/basic-use.xml
[type: xml] en/advanced-use.xml fr:fr/advanced-use.xml
[type: xml] en/intro.xml fr:fr/intro.xml
[type: xml] en/http.xml fr:fr/http.xml
[type: xml] en/install.xml fr:fr/install.xml
[type: xml] en/play-howto.xml fr:fr/play-howto.xml
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment