<font size="4"><font face="georgia,serif"><br>Sorry I pressed the wrong button and sent my unfinished email !<br>Here is my issues !<br><br></font></font><font size="4"><font face="georgia,serif">So when I am going to view my publican website, I am getting these issues:<br>
By default I am guided to the first Article in English. I can view the Iframe but no one of my Articles are present in the navigation menu! and When I am going to the french article, I have no navigation menu and this message:<br>
<br>File not found. Firefox can't find the file at /home/m011640/DEV/ARAMICE/GIT/linux-docs/web/html/docs/fr-FR/toc.html.<br><br>Thanks for your help !<br><br>Cheers<br><br>=GC<br></font></font><br><br><br><br><div class="gmail_quote">
On Thu, Aug 26, 2010 at 9:56 AM, Gaël Chamoulaud <span dir="ltr"><<a href="mailto:strider@gnome.org">strider@gnome.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font size="4"><font face="georgia,serif">Hi Everybody, <br><br>I did exactly what you described and it sounds good about the localization.<br><br>$ publican create_site --site_config foomaster.cfg --db_file foomaster.db --toc_path html/docs<br>

<br>I created two Publican Article, one in fr-FR and another one in en-US:<br><br>$ publican create --type Article --name Home_Page --lang en-US<br>$ publican create --type Article --name Home_Page1 --lang fr-FR<br><br>Edited the publican.cfg and added the lines below.<br>

  web_home: 1  <br>  web_host: <a href="http://localhost" target="_blank">http://localhost</a><br>  def_lang: fr-FR (so the french Article)<br><br>I built These two articles and published them on the my publican site. <br>
<br>So when I am going to view my publican website, I am getting these issues:<br>
<br><br clear="all"></font></font><div class="im">++-------------------------------------------------------------+<br>++ Gaël Chamoulaud (Strider)                                   <br>++ Work Phone: +33 (0)6 45 17 75 29                            <br>

++ Website: <a href="http://www.gnome.org/%7Estrider" target="_blank">http://www.gnome.org/~strider</a>                      <br>++ Gnome: <strider at gnome dot org>                           <br>++ Gmail: <gael dot chamoulaud at gmail dot com>               <br>

++ Work: <gael dot chamoulaud at aramice dot fr>               <br>++                                                             <br>++ "La bière est la preuve que Dieu nous aime et veut          <br>++ que nous soyons heureux." [Benjamin Franklin]               <br>

++                                                             <br>++ ()  ascii ribbon campaign - against html e-mail             <br>++ /\  <a href="http://www.asciiribbon.org" target="_blank">www.asciiribbon.org</a>   - against proprietary attachments <br>

++-------------------------------------------------------------+<br><br>
<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Fri, Aug 6, 2010 at 10:49 PM, Ruediger Landmann <span dir="ltr"><<a href="mailto:r.landmann@redhat.com" target="_blank">r.landmann@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div> On 08/06/2010 07:00 PM, Gaël Chamoulaud wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi there,<br>
<br>
I want to create a site with publican, which rocks !<br>
<br>
FYI, This site has to be in french with all the french documentation we did<br>
in french too.<br>
<br>
So, when I am creating the site, I'm getting this message "No langs Found,<br>
using default langs"<br>
And, there is no --lang(s) parameters for publican create_site :/<br>
<br>
$ publican create_site --site_config homepage.cfg --db_file ntw.db<br>
--toc_path ntw_html<br>
No langs found, using default langs<br>
No langs found, using default langs<br>
No langs found, using default langs<br>
<br>
What I have to do to create my documentation site in french ?<br>
</blockquote>
<br></div>
Hi Gaël and thanks for your kind words<br>
<br>
Unfortunately, internationalization and localization for the website component are not fully implemented yet. The following notes describe the situation as it currently exists:<br>
<br>
--------------------------------<br>
1. create_site<br>
--------------------------------<br>
All Publican websites are multi-lingual; the site attempts to present content based on the locale reported by the visitor's web browser. Therefore, there is nothing special that you must do to build the site framework in French during the "create_site" stage. Please ignore the "No langs found" warning; it does not affect your site creation.<br>


<br>
However, at the moment, if the site JavaScript cannot match the user's locale with content on the site, it redirects them to American English. You can manually fix this -- edit the index.html file (for example, ntw_html/html.index) and look for the lines that say:<br>


<br>
var locales = ["en-US"];<br>
<br>
and<br>
<br>
if(match == 0) {<br>
lang = 'en-US';<br>
}<br>
<br>
In both cases, change "en-US" to "fr-FR". Note that if you ever run publican update_site to refresh the site, you will need to make these changes again because this file is overwritten each time.<br>
<br>
I've opened an RFE to avoid having to do this manually in future versions of Publican [0]<br>
<br>
--------------------------------<br>
2. Creating the homepage<br>
--------------------------------<br>
When you create the site homepage (as described in section 6.2 of the Publican Users' Guide), you should:<br>
<br>
1. set the --lang parameter to French when you create this "book", for example:<br>
<br>
publican create --type Article --name Bienvenue --lang fr-FR<br>
<br>
2. edit the publican.cfg file for this "book" to include the line:<br>
<br>
def_lang: fr-FR<br>
<br>
--------------------------------<br>
Untranslated content<br>
--------------------------------<br>
Some features of the website will still appear in English, because nobody has translated them into French yet in Publican :)<br>
<br>
For example, the contents of the "Statistics" and "Site Tech" pages are generated in English, and all the navigation elements such as "collapse all", "Search", "Untranslated"<br>


<br>
If you would like to add French support for these elements in Publican and are already a member of the Fedora localization project, you can translate them through Fedora's Transifex interface.[1][2] If you would like to help us but are not a member of the Fedora localization project, please contact me off-list.<br>


<br>
Cheers<br>
Rudi<br>
<br>
<br>
<br>
<br>
[0] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=622030" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=622030</a><br>
<br>
[1] <a href="https://translate.fedoraproject.org/projects/p/publican/c/trunk/" target="_blank">https://translate.fedoraproject.org/projects/p/publican/c/trunk/</a><br>
<br>
[2] <a href="https://translate.fedoraproject.org/projects/p/publican/c/site_tech/" target="_blank">https://translate.fedoraproject.org/projects/p/publican/c/site_tech/</a><br>
<br>
_______________________________________________<br>
publican-list mailing list<br>
<a href="mailto:publican-list@redhat.com" target="_blank">publican-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/publican-list" target="_blank">https://www.redhat.com/mailman/listinfo/publican-list</a><br>
Wiki: <a href="https://fedorahosted.org/publican" target="_blank">https://fedorahosted.org/publican</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>