Обсуждение: Website's french translation
Hi all, I've sent a message with an attachment (97K) yesterday but apparently, it didn't go the list. What are the limits on this mailing list ? Anyways, you'll find the french translation of the website on http://www.lelarge.info/~guillaume/frenchwebsite.tar.bz2 It includes the templates and a .po file. It took me more than a month to actually do it, so I'm quite happy to release this :) Some files are missing within the templates. Excerpt from books are not translated. I don't think I have the right to do that (do I?). PWNs are not translated. Most of them are on postgresqlfr.org, so it can be done quickly. Regards. -- Guillaume. <!-- http://abs.traduc.org/ http://lfs.traduc.org/ http://docs.postgresqlfr.org/ -->
Guillaume Lelarge wrote: > Hi all, > > I've sent a message with an attachment (97K) yesterday but apparently, > it didn't go the list. What are the limits on this mailing list ? No idea. But it doesn't surprise me that it's significantly lower than 97K. > Anyways, you'll find the french translation of the website on > http://www.lelarge.info/~guillaume/frenchwebsite.tar.bz2 > > It includes the templates and a .po file. It took me more than a month > to actually do it, so I'm quite happy to release this :) I tried loading up this, but it seems there are encoding problems. Look at for example: http://magnus-master.pgadmin.org/docs I've imported the whole site there, please point out anything that breaks :-) //Magnus
Magnus Hagander a écrit : > Guillaume Lelarge wrote: >>[...] >> It includes the templates and a .po file. It took me more than a month >> to actually do it, so I'm quite happy to release this :) > > I tried loading up this, but it seems there are encoding problems. Look > at for example: > http://magnus-master.pgadmin.org/docs > Sorry about this. They were all in ISO-8859-1 instead of UTF-8. I re-uploaded a new tarball : http://www.lelarge.info/~guillaume/frenchwebsite.tar.bz2 (same URL) > I've imported the whole site there, please point out anything that > breaks :-) > I hope it will be better with this one. -- Guillaume. <!-- http://abs.traduc.org/ http://lfs.traduc.org/ http://docs.postgresqlfr.org/ -->
On Thu, Apr 12, 2007 at 12:09:53AM +0200, Guillaume Lelarge wrote: > Magnus Hagander a écrit : > >Guillaume Lelarge wrote: > >>[...] > >>It includes the templates and a .po file. It took me more than a month > >>to actually do it, so I'm quite happy to release this :) > > > >I tried loading up this, but it seems there are encoding problems. Look > >at for example: > >http://magnus-master.pgadmin.org/docs > > > > Sorry about this. They were all in ISO-8859-1 instead of UTF-8. I > re-uploaded a new tarball : > http://www.lelarge.info/~guillaume/frenchwebsite.tar.bz2 > > (same URL) > > >I've imported the whole site there, please point out anything that > >breaks :-) > > > > I hope it will be better with this one. ok, I've loaded up the new tar file. Please check again :-) //Magnus
Magnus Hagander a écrit : >> [...] >>> I've imported the whole site there, please point out anything that >>> breaks :-) >>> >> I hope it will be better with this one. > > ok, I've loaded up the new tar file. Please check again :-) > I'll check it completely but is it normal that the .po file is not used ? All menus are in english. Regards. -- Guillaume.
Guillaume Lelarge wrote: > Magnus Hagander a écrit : >>> [...] >>>> I've imported the whole site there, please point out anything that >>>> breaks :-) >>>> >>> I hope it will be better with this one. >> >> ok, I've loaded up the new tar file. Please check again :-) >> > > I'll check it completely but is it normal that the .po file is not used > ? All menus are in english. Well, normal is a relative word. Given that nobody has ever tried it before... But it's certainly not *supposed* to ignore it :-) Did you set it up at a test site somewhere and had it working there, or did you "work in the blind"? If you got it working, we just need to figure out what the difference is :-) //Magnus
On Thursday 12 April 2007 08:15, Guillaume Lelarge wrote: > Magnus Hagander a écrit : > >> [...] > >> > >>> I've imported the whole site there, please point out anything that > >>> breaks :-) > >> > >> I hope it will be better with this one. > > > > ok, I've loaded up the new tar file. Please check again :-) > > I'll check it completely but is it normal that the .po file is not used > ? All menus are in english. > The menu's are kept under portal/template/navigation, and they should all be calling func_lang, which *should* be pulling from portal/po/portal.pot provided you have them translated in there.... does that sound right? -- Robert Treat Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL
Magnus Hagander a écrit : > Guillaume Lelarge wrote: >> Magnus Hagander a écrit : >>>> [...] >>>>> I've imported the whole site there, please point out anything that >>>>> breaks :-) >>>>> >>>> I hope it will be better with this one. >>> ok, I've loaded up the new tar file. Please check again :-) >>> >> I'll check it completely but is it normal that the .po file is not used >> ? All menus are in english. > > Well, normal is a relative word. Given that nobody has ever tried it > before... > > But it's certainly not *supposed* to ignore it :-) > :) > Did you set it up at a test site somewhere and had it working there, or > did you "work in the blind"? In the blind. I tried to make a test site but I could not make it work. It seems to need Apache 1.3 (because of the .htaccess file (Apache2 chokes on the RewriteEngine line). And it needs PHP5 because of the use of try statements. And I don't find any .deb package that gives me PHP5 on Apache 1.3. > If you got it working, we just need to > figure out what the difference is :-) :) I'll try to work on the .htaccess file to make it work with Apache2. Regards. -- Guillaume. <!-- http://abs.traduc.org/ http://lfs.traduc.org/ http://docs.postgresqlfr.org/ -->
>> Did you set it up at a test site somewhere and had it working there, or >> did you "work in the blind"? > > In the blind. > > I tried to make a test site but I could not make it work. It seems to > need Apache 1.3 (because of the .htaccess file (Apache2 chokes on the > RewriteEngine line). And it needs PHP5 because of the use of try > statements. And I don't find any .deb package that gives me PHP5 on > Apache 1.3. It works fine with Apache2 - in fact, wwwmaster runs apache 2. It does need mod_rewrite though, so maybe that module just isn't installed/enabled? And yes, it needs PHP5. >> If you got it working, we just need to >> figure out what the difference is :-) > > :) > > I'll try to work on the .htaccess file to make it work with Apache2. .. and I'll see if I can find out why it's not using those :-) Or I'll wait a while and maybe xzilla will figure it out for us. //Magnus
Robert Treat a écrit : > On Thursday 12 April 2007 08:15, Guillaume Lelarge wrote: >> Magnus Hagander a écrit : >>>> [...] >>>> >>>>> I've imported the whole site there, please point out anything that >>>>> breaks :-) >>>> I hope it will be better with this one. >>> ok, I've loaded up the new tar file. Please check again :-) >> I'll check it completely but is it normal that the .po file is not used >> ? All menus are in english. >> > > The menu's are kept under portal/template/navigation, and they should all be > calling func_lang, which *should* be pulling from portal/po/portal.pot > provided you have them translated in there.... does that sound right? > I don't know if I understand what you mean. I did this : * cd po * msginit -i portal.pot -o fr.po (to initialize the fr .po file). * translate this .po file with poedit. And I send this .po file in the po folder right in the tar.bz2 archive. Maybe it isn't the right place ? Regards. -- Guillaume. <!-- http://abs.traduc.org/ http://lfs.traduc.org/ http://docs.postgresqlfr.org/ -->
Magnus Hagander a écrit : >>> Did you set it up at a test site somewhere and had it working there, or >>> did you "work in the blind"? >> In the blind. >> >> I tried to make a test site but I could not make it work. It seems to >> need Apache 1.3 (because of the .htaccess file (Apache2 chokes on the >> RewriteEngine line). And it needs PHP5 because of the use of try >> statements. And I don't find any .deb package that gives me PHP5 on >> Apache 1.3. > > It works fine with Apache2 - in fact, wwwmaster runs apache 2. It does > need mod_rewrite though, so maybe that module just isn't installed/enabled? > OK, you're right. It is now installed and enabled. It's still not working. I have this error message : Call to a member function Show() on a non-object in /var/www/www-postgresql-org/system/handler.php on line 56 I think I don't have all the pear package... hmmm. -- Guillaume. <!-- http://abs.traduc.org/ http://lfs.traduc.org/ http://docs.postgresqlfr.org/ -->
On Sat, Apr 14, 2007 at 06:56:44PM +0200, Guillaume Lelarge wrote: > Magnus Hagander a écrit : > >>>Did you set it up at a test site somewhere and had it working there, or > >>>did you "work in the blind"? > >>In the blind. > >> > >>I tried to make a test site but I could not make it work. It seems to > >>need Apache 1.3 (because of the .htaccess file (Apache2 chokes on the > >>RewriteEngine line). And it needs PHP5 because of the use of try > >>statements. And I don't find any .deb package that gives me PHP5 on > >>Apache 1.3. > > > >It works fine with Apache2 - in fact, wwwmaster runs apache 2. It does > >need mod_rewrite though, so maybe that module just isn't installed/enabled? > > > > OK, you're right. It is now installed and enabled. > > It's still not working. I have this error message : > Call to a member function Show() on a non-object in > /var/www/www-postgresql-org/system/handler.php on line 56 > > I think I don't have all the pear package... hmmm. I don't even have a line 56 in my handler.php. Are you working off an old version? (Or, I have a line 56, it's "?>" and nothing more, which really shouldn't show that) Look in your logs if thre is some further information - perhaps it emitted a warning earlier on that didn't show up. //Magnus
Magnus Hagander a écrit : > On Sat, Apr 14, 2007 at 06:56:44PM +0200, Guillaume Lelarge wrote: >> Magnus Hagander a écrit : >>>>> Did you set it up at a test site somewhere and had it working there, or >>>>> did you "work in the blind"? >>>> In the blind. >>>> >>>> I tried to make a test site but I could not make it work. It seems to >>>> need Apache 1.3 (because of the .htaccess file (Apache2 chokes on the >>>> RewriteEngine line). And it needs PHP5 because of the use of try >>>> statements. And I don't find any .deb package that gives me PHP5 on >>>> Apache 1.3. >>> It works fine with Apache2 - in fact, wwwmaster runs apache 2. It does >>> need mod_rewrite though, so maybe that module just isn't installed/enabled? >>> >> OK, you're right. It is now installed and enabled. >> >> It's still not working. I have this error message : >> Call to a member function Show() on a non-object in >> /var/www/www-postgresql-org/system/handler.php on line 56 >> >> I think I don't have all the pear package... hmmm. > > I don't even have a line 56 in my handler.php. Are you working off an old > version? (Or, I have a line 56, it's "?>" and nothing more, which really > shouldn't show that) > My mistake. I finally managed to get it working. I have the same issue with the .po file. I'll try to find what is going on. Thanks. -- Guillaume. http://www.postgresqlfr.org http://docs.postgresqlfr.org
Guillaume Lelarge a écrit : > Magnus Hagander a écrit : >> On Sat, Apr 14, 2007 at 06:56:44PM +0200, Guillaume Lelarge wrote: >>> Magnus Hagander a écrit : >>>>>> Did you set it up at a test site somewhere and had it working >>>>>> there, or >>>>>> did you "work in the blind"? >>>>> In the blind. >>>>> >>>>> I tried to make a test site but I could not make it work. It seems to >>>>> need Apache 1.3 (because of the .htaccess file (Apache2 chokes on the >>>>> RewriteEngine line). And it needs PHP5 because of the use of try >>>>> statements. And I don't find any .deb package that gives me PHP5 on >>>>> Apache 1.3. >>>> It works fine with Apache2 - in fact, wwwmaster runs apache 2. It does >>>> need mod_rewrite though, so maybe that module just isn't >>>> installed/enabled? >>>> >>> OK, you're right. It is now installed and enabled. >>> >>> It's still not working. I have this error message : >>> Call to a member function Show() on a non-object in >>> /var/www/www-postgresql-org/system/handler.php on line 56 >>> >>> I think I don't have all the pear package... hmmm. >> >> I don't even have a line 56 in my handler.php. Are you working off an old >> version? (Or, I have a line 56, it's "?>" and nothing more, which really >> shouldn't show that) >> > > My mistake. I finally managed to get it working. I have the same issue > with the .po file. I'll try to find what is going on. > OK, I've found what happens. I'll send you quickly a new patch. Regards. -- Guillaume. http://www.postgresqlfr.org http://docs.postgresqlfr.org
Guillaume Lelarge a écrit : > Guillaume Lelarge a écrit : >[...] > OK, I've found what happens. I'll send you quickly a new patch. > I still need to work on my new patch but I found some issues that we probably need to get fixed before. * Some graphics contain text that can't be translated as is. * There are some texts that are not enclosed in the func_lang function. I can send you a patch for this. * I don't think the portal.pot is up to date. Are strings extract each time a change is done ? Regards. -- Guillaume. http://www.postgresqlfr.org http://docs.postgresqlfr.org
Guillaume Lelarge wrote: > Guillaume Lelarge a écrit : >> Guillaume Lelarge a écrit : >> [...] OK, I've found what happens. I'll send you quickly a new patch. >> > > I still need to work on my new patch but I found some issues that we > probably need to get fixed before. > > * Some graphics contain text that can't be translated as is. That's indeed a problem we have to deal with. From what I can tell, we do have subdirectories set up for several of them, but the location is hardcoded. Need some logic around that. > * There are some texts that are not enclosed in the func_lang function. > I can send you a patch for this. Please do, they should be. > * I don't think the portal.pot is up to date. > Are strings extract each time a change is done ? No. //Magnus
Magnus Hagander a écrit : > Guillaume Lelarge wrote: > [...] >> * There are some texts that are not enclosed in the func_lang function. >> I can send you a patch for this. > > Please do, they should be. > You'll find a patch attached. Note that it doesn't change any admin file despite that stringextract seems to extract strings from those files too. I don't know if we really need to localize these pages. The french .po file is updated with the new strings but I need to check them on my local www-postgresql-org website before sending it. >> * I don't think the portal.pot is up to date. >> Are strings extract each time a change is done ? > > No. > It will become necessary really soon. At least, I hope :) Regards. -- Guillaume. http://www.postgresqlfr.org http://docs.postgresqlfr.org Index: template/common-docs.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/common-docs.html,v retrieving revision 1.24 diff -r1.24 common-docs.html 26c26 < <label for="q">func_lang("Search Documentation:") </label><input type="text" id="q" name="q" size="20" onfocus="if(this.value==this.defaultValue ) this.value='';" value="Search" /><input id="submit" type="submit" value="func_lang('Search')"/> --- > <label for="q">func_lang("Search Documentation:") </label><input type="text" id="q" name="q" size="20" onfocus="if(this.value==this.defaultValue ) this.value='';" value="func_lang('Search')" /><input id="submit" type="submit"value="func_lang('Search')" /> Index: template/common.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/common.html,v retrieving revision 1.41 diff -r1.41 common.html 12,15c12,15 < <link rel="alternate" type="application/rss+xml" title="PostgreSQL news" href="/news.rss" /> < <link rel="alternate" type="application/rss+xml" title="PostgreSQL events" href="/events.rss" /> < <link rel="alternate" type="application/rss+xml" title="PostgreSQL latest versions" href="/versions.rss" /> < <link rel="alternate" type="application/rss+xml" title="Planet PostgreSQL" href="http://www.planetpostgresql.org/rss20.xml"/> --- > <link rel="alternate" type="application/rss+xml" title="func_lang('PostgreSQL news')" href="/news.rss" /> > <link rel="alternate" type="application/rss+xml" title="func_lang('PostgreSQL events')" href="/events.rss" /> > <link rel="alternate" type="application/rss+xml" title="func_lang('PostgreSQL latest versions')" href="/versions.rss"/> > <link rel="alternate" type="application/rss+xml" title="func_lang('Planet PostgreSQL')" href="http://www.planetpostgresql.org/rss20.xml"/> 18c18 < <link rel="alternate stylesheet" media="screen" href="/layout/css/blue/fixed_large.css" type="text/css" title="LargeText" /> --- > <link rel="alternate stylesheet" media="screen" href="/layout/css/blue/fixed_large.css" type="text/css" title="func_lang('LargeText')" /> 33,34c33,34 < <span class="txtOffScreen"><a href="#pgContent" title="Skip site navigation" accesskey="1">Skip site navigation</a>(1)</span> < <span class="txtOffScreen"><a href="#pgContentWrap" title="Skip section navigation" accesskey="2">Skip section navigation</a>(2)</span> --- > <span class="txtOffScreen"><a href="#pgContent" title="func_lang('Skip site navigation')" accesskey="1">func_lang("Skipsite navigation")</a> (1)</span> > <span class="txtOffScreen"><a href="#pgContentWrap" title="func_lang('Skip section navigation')" accesskey="2">func_lang("Skipsection navigation")</a> (2)</span> 40c40 < <input id="q" name="q" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value='';"value="Search" accesskey="s" /><input name="a" type="hidden" value="1"/><input id="submit" name="submit" type="submit"value="Search" /> --- > <input id="q" name="q" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value='';"value="func_lang('Search')" accesskey="s" /><input name="a" type="hidden" value="1"/><input id="submit" name="submit"type="submit" value="func_lang('Search')" /> 65c65 < <a href="/" title="The world's most advanced open source database."><img src="/layout/images/hdr_right.png"width="210" height="80" alt="The world's most advanced open source database." /></a> --- > <a href="/" title="func_lang('The world\'s most advanced open source database.')"><img src="/layout/images/hdr_right.png"width="210" height="80" alt="func_lang('The world\'s most advanced open source database.')"/></a> Index: template/community-docs.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/community-docs.html,v retrieving revision 1.3 diff -r1.3 community-docs.html 5c5 < This page is user contributed documentation. See the bottom of the page for information about the author. --- > func_lang("This page is user contributed documentation. See the bottom of the page for information about the author.") 26c26 < <td class="colFirstT">Updated:</td> --- > <td class="colFirstT">func_lang("Updated"):</td> 30c30 < <td class="colFirstT">Author:</td> --- > <td class="colFirstT">func_lang("Author"):</td> 35c35 < <td class="colFirstT">Version history:</td> --- > <td class="colFirstT">func_lang("Version history"):</td> 46,47c46,47 < <td class="colFirstT">Operations:</td> < <td class="colLastT"><a href="{master_server}/community/docedit.{page_id}">Edit</a> <a href="{master_server}/community/docadd.{page_id}">Createsubpage</a> (Requires <a href="/community/signup">community login</a>)</td> --- > <td class="colFirstT">func_lang("Operations"):</td> > <td class="colLastT"><a href="{master_server}/community/docedit.{page_id}">func_lang("Edit")</a> <a href="{master_server}/community/docadd.{page_id}">func_lang("Createsubpage")</a> (func_lang("Requires") <a href="/community/signup">func_lang("communitylogin")</a>)</td> Index: template/download.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/download.html,v retrieving revision 1.11 diff -r1.11 download.html 2c2 < Choose a Mirror --- > func_lang("Choose a Mirror") 24,25c24 < <p>Your download will start automatically from this mirror in 5 seconds unless you select < another mirror in the list below.</p> --- > <p>func_lang("Your download will start automatically from this mirror in 5 seconds unless you select another mirror inthe list below.")</p> Index: template/index.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/index.html,v retrieving revision 1.90 diff -r1.90 index.html 23c23 < <h2><img src="/layout/images/en/hdr_featureduser.png" width="104" height="10" alt="Featured User" /></h2> --- > <h2><img src="/layout/images/en/hdr_featureduser.png" width="104" height="10" alt="func_lang('FeaturedUser')" /></h2> 27c27 < <img src="/layout/images/blt_blu_arrow.png" width="6" height="5" alt="" /><a href="/about/casestudies">func_lang("CaseStudies")</a><span class="txtDivider">|</span><a href="/about/users" title="Seemore featured users">func_lang("More Featured Users")</a> --- > <img src="/layout/images/blt_blu_arrow.png" width="6" height="5" alt="" /><a href="/about/casestudies">func_lang("CaseStudies")</a><span class="txtDivider">|</span><a href="/about/users" title="func_lang('Seemore featured users')">func_lang("More Featured Users")</a> 38c38 < <h2><img src="/layout/images/en/hdr_latestreleases.png" width="120" height="10" alt="Latest Releases" /></h2> --- > <h2><img src="/layout/images/en/hdr_latestreleases.png" width="120" height="10" alt="func_lang('Latest Releases')"/></h2> 41c41 < <b>{version}:</b> <a href="/ftp/source/v{version}">Source</a> · <a href="/ftp/binary/v{version}">Binary</a>· <a href="/docs/{majorver}/static/{relnotes}">Notes</a> --- > <b>{version}:</b> <a href="/ftp/source/v{version}">func_lang("Source")</a> · <a href="/ftp/binary/v{version}">func_lang("Binary")</a>· <a href="/docs/{majorver}/static/{relnotes}">func_lang("Notes")</a> 45c45 < <div id="pgFrontLatestReleasesNote"><a href="/versions.rss" title="func_lang('Versions RSS Feed')"><img class="pgRSSImage"src="/layout/images/ico_rss.png" width="28" height="13" alt="func_lang('Versions RSS Feed')" /></a> | <ahref="/support/versioning">Why should I upgrade?</a></div> --- > <div id="pgFrontLatestReleasesNote"><a href="/versions.rss" title="func_lang('Versions RSS Feed')"><img class="pgRSSImage"src="/layout/images/ico_rss.png" width="28" height="13" alt="func_lang('Versions RSS Feed')" /></a> | <ahref="/support/versioning">func_lang("Why should I upgrade?")</a></div> 48c48 < <h2><img src="/layout/images/en/hdr_shortcuts.png" width="85" height="10" alt="Shortcuts" /></h2> --- > <h2><img src="/layout/images/en/hdr_shortcuts.png" width="85" height="10" alt="func_lang('Shortcuts')" /></h2> 76c76 < <h2><img src="/layout/images/en/hdr_supportus.png" width="81" height="10" alt="Support Us" /></h2> --- > <h2><img src="/layout/images/en/hdr_supportus.png" width="81" height="10" alt="func_lang('Support Us')" /></h2> 86c86 < <img src="/layout/images/en/hdr_latestnews.png" width="90" height="10" alt="Latest News" /> --- > <img src="/layout/images/en/hdr_latestnews.png" width="90" height="10" alt="func_lang('Latest News')" /> 106c106 < <img src="/layout/images/en/hdr_planetpg.png" width="140" height="10" alt="Planet PostgreSQL" /> --- > <img src="/layout/images/en/hdr_planetpg.png" width="140" height="10" alt="func_lang('Planet PostgreSQL')"/> 128c128 < <img src="/layout/images/en/hdr_upcomingevents.png" width="123" height="10" alt="Upcoming Events" /> --- > <img src="/layout/images/en/hdr_upcomingevents.png" width="123" height="10" alt="func_lang('Upcoming Events')"/> 132c132 < <img src="/layout/images/en/hdr_upcomingtraining.png" alt="Upcoming training" /> --- > <img src="/layout/images/en/hdr_upcomingtraining.png" alt="func_lang('Upcoming training')" /> Index: template/search.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/search.html,v retrieving revision 1.4 diff -r1.4 search.html 8,9c8,9 < <td class="colFirstR">Search for:</td> < <th class="colLast"><input type="text" name="q" value="{searchfor}" /> <input type="submit" value="Search" /></th> --- > <td class="colFirstR">func_lang("Search for"):</td> > <th class="colLast"><input type="text" name="q" value="{searchfor}" /> <input type="submit" value="func_lang('Search')"/></th> 14c14 < <td class="colLast"><input type="checkbox" name="a" value="1" {comsites}/>Include community sites</td> --- > <td class="colLast"><input type="checkbox" name="a" value="1" {comsites}/>func_lang("Include community sites")</td> 19c19 < <td class="colFirstR">List:<input type="hidden" name="m" value="1" /></td> --- > <td class="colFirstR">func_lang("List"):<input type="hidden" name="m" value="1" /></td> 26c26 < <td class="colFirstR">Post date:</td> --- > <td class="colFirstR">func_lang("Post date"):</td> 33c33 < <td class="colFirst" align="right">Sort by:</td> --- > <td class="colFirst" align="right">func_lang("Sort by"):</td> 47c47 < Based on your search term, we recommend the following links: --- > func_lang("Based on your search term, we recommend the following links"): 55c55 < <p>Your search for <b>{searchfor}</b> returned no hits.</p> --- > <p>func_lang("Your search for <b>{searchfor}</b> returned no hits").</p> 58,60c58,60 < <h2>Results {firsthit}-{lasthit} of {totalhits}.</h2> < <p>Searching in {searchpages} pages took {searchtime} seconds. < Site search powered by <a href="http://www.postgresql.org">PostgreSQL 8.2</a>.</p> --- > <h2>func_lang("Results {firsthit}-{lasthit} of {totalhits}.")</h2> > <p>func_lang("Searching in {searchpages} pages took {searchtime} seconds.") > func_lang("Site search powered by <a href="http://www.postgresql.org">PostgreSQL 8.2</a>.")</p> 62c62 < Result pages: {page_links}<br/><br/> --- > func_lang("Result pages"): {page_links}<br/><br/> 72c72 < Posted {arch_date} by {arch_author}.<br/> --- > func_lang("Posted {arch_date} by {arch_author}.")<br/> 78c78 < Result pages: {page_links}<br/><br/> --- > func_lang("Result pages"): {page_links}<br/><br/> Index: template/about/event.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/event.html,v retrieving revision 1.4 diff -r1.4 event.html 2c2 < Events: {title_event} in {title_location} --- > func_lang("Events: {title_event} in {title_location}") Index: template/about/eventarchive.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/eventarchive.html,v retrieving revision 1.3 diff -r1.3 eventarchive.html 2c2 < Events --- > func_lang("Events") Index: template/about/events-loop.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/events-loop.html,v retrieving revision 1.4 diff -r1.4 events-loop.html 9c9 < func_lang("Location:") <B>{event_location}</b><br /> --- > func_lang("Location:") <b>{event_location}</b><br /> Index: template/about/news.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/news.html,v retrieving revision 1.2 diff -r1.2 news.html 2c2 < News: {title_headline} --- > func_lang("News"): {title_headline} Index: template/about/newsarchive.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/newsarchive.html,v retrieving revision 1.2 diff -r1.2 newsarchive.html 2c2 < News --- > func_lang("News") Index: template/about/quotes.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/quotes.html,v retrieving revision 1.1 diff -r1.1 quotes.html 2c2 < Quote: {title_headline} --- > func_lang("Quote"): {title_headline} Index: template/about/quotesarchive.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/quotesarchive.html,v retrieving revision 1.1 diff -r1.1 quotesarchive.html 2c2 < Quotes --- > func_lang("Quotes") Index: template/community/survey.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/community/survey.html,v retrieving revision 1.1 diff -r1.1 survey.html 2c2 < Community: Survey Results: {page_title} --- > func_lang("Community: Survey Results:") {page_title} Index: template/navigation/about.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/navigation/about.html,v retrieving revision 1.10 diff -r1.10 about.html 10c10 < <li class="last-child"><a href="/about/servers">Servers</a></li> --- > <li class="last-child"><a href="/about/servers">func_lang("Servers")</a></li> Index: template/navigation/community.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/navigation/community.html,v retrieving revision 1.12 diff -r1.12 community.html 18,19c18,19 < <li><a href="{master_server}/community/profile">Profile</a></li> < <li class="last-child"><a href="/community/lostpwd">Lost password</a></li> --- > <li><a href="{master_server}/community/profile">func_lang("Profile")</a></li> > <li class="last-child"><a href="/community/lostpwd">func_lang("Lost password")</a></li> Index: template/navigation/download.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/navigation/download.html,v retrieving revision 1.12 diff -r1.12 download.html 4c4 < <li><a href="/download/#other">Community Software</a> --- > <li><a href="/download/#other">func_lang("Community Software")</a>
Guillaume Lelarge a écrit : > Magnus Hagander a écrit : >> Guillaume Lelarge wrote: >> [...] >>> * There are some texts that are not enclosed in the func_lang function. >>> I can send you a patch for this. >> >> Please do, they should be. >> > > You'll find a patch attached. Note that it doesn't change any admin file > despite that stringextract seems to extract strings from those files > too. I don't know if we really need to localize these pages. > There's an error on this previous patch. Take this one. Sorry about this. -- Guillaume. http://www.postgresqlfr.org http://docs.postgresqlfr.org Index: template/common-docs.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/common-docs.html,v retrieving revision 1.24 diff -r1.24 common-docs.html 26c26 < <label for="q">func_lang("Search Documentation:") </label><input type="text" id="q" name="q" size="20" onfocus="if(this.value==this.defaultValue ) this.value='';" value="Search" /><input id="submit" type="submit" value="func_lang('Search')"/> --- > <label for="q">func_lang("Search Documentation:") </label><input type="text" id="q" name="q" size="20" onfocus="if(this.value==this.defaultValue ) this.value='';" value="func_lang('Search')" /><input id="submit" type="submit"value="func_lang('Search')" /> Index: template/common.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/common.html,v retrieving revision 1.41 diff -r1.41 common.html 12,15c12,15 < <link rel="alternate" type="application/rss+xml" title="PostgreSQL news" href="/news.rss" /> < <link rel="alternate" type="application/rss+xml" title="PostgreSQL events" href="/events.rss" /> < <link rel="alternate" type="application/rss+xml" title="PostgreSQL latest versions" href="/versions.rss" /> < <link rel="alternate" type="application/rss+xml" title="Planet PostgreSQL" href="http://www.planetpostgresql.org/rss20.xml"/> --- > <link rel="alternate" type="application/rss+xml" title="func_lang('PostgreSQL news')" href="/news.rss" /> > <link rel="alternate" type="application/rss+xml" title="func_lang('PostgreSQL events')" href="/events.rss" /> > <link rel="alternate" type="application/rss+xml" title="func_lang('PostgreSQL latest versions')" href="/versions.rss"/> > <link rel="alternate" type="application/rss+xml" title="func_lang('Planet PostgreSQL')" href="http://www.planetpostgresql.org/rss20.xml"/> 18c18 < <link rel="alternate stylesheet" media="screen" href="/layout/css/blue/fixed_large.css" type="text/css" title="LargeText" /> --- > <link rel="alternate stylesheet" media="screen" href="/layout/css/blue/fixed_large.css" type="text/css" title="func_lang('LargeText')" /> 33,34c33,34 < <span class="txtOffScreen"><a href="#pgContent" title="Skip site navigation" accesskey="1">Skip site navigation</a>(1)</span> < <span class="txtOffScreen"><a href="#pgContentWrap" title="Skip section navigation" accesskey="2">Skip section navigation</a>(2)</span> --- > <span class="txtOffScreen"><a href="#pgContent" title="func_lang('Skip site navigation')" accesskey="1">func_lang("Skipsite navigation")</a> (1)</span> > <span class="txtOffScreen"><a href="#pgContentWrap" title="func_lang('Skip section navigation')" accesskey="2">func_lang("Skipsection navigation")</a> (2)</span> 40c40 < <input id="q" name="q" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value='';"value="Search" accesskey="s" /><input name="a" type="hidden" value="1"/><input id="submit" name="submit" type="submit"value="Search" /> --- > <input id="q" name="q" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value='';"value="func_lang('Search')" accesskey="s" /><input name="a" type="hidden" value="1"/><input id="submit" name="submit"type="submit" value="func_lang('Search')" /> 65c65 < <a href="/" title="The world's most advanced open source database."><img src="/layout/images/hdr_right.png"width="210" height="80" alt="The world's most advanced open source database." /></a> --- > <a href="/" title="func_lang('The world\'s most advanced open source database.')"><img src="/layout/images/hdr_right.png"width="210" height="80" alt="func_lang('The world\'s most advanced open source database.')"/></a> Index: template/community-docs.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/community-docs.html,v retrieving revision 1.3 diff -r1.3 community-docs.html 5c5 < This page is user contributed documentation. See the bottom of the page for information about the author. --- > func_lang("This page is user contributed documentation. See the bottom of the page for information about the author.") 26c26 < <td class="colFirstT">Updated:</td> --- > <td class="colFirstT">func_lang("Updated"):</td> 30c30 < <td class="colFirstT">Author:</td> --- > <td class="colFirstT">func_lang("Author"):</td> 35c35 < <td class="colFirstT">Version history:</td> --- > <td class="colFirstT">func_lang("Version history"):</td> 46,47c46,47 < <td class="colFirstT">Operations:</td> < <td class="colLastT"><a href="{master_server}/community/docedit.{page_id}">Edit</a> <a href="{master_server}/community/docadd.{page_id}">Createsubpage</a> (Requires <a href="/community/signup">community login</a>)</td> --- > <td class="colFirstT">func_lang("Operations"):</td> > <td class="colLastT"><a href="{master_server}/community/docedit.{page_id}">func_lang("Edit")</a> <a href="{master_server}/community/docadd.{page_id}">func_lang("Createsubpage")</a> (func_lang("Requires") <a href="/community/signup">func_lang("communitylogin")</a>)</td> Index: template/download.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/download.html,v retrieving revision 1.11 diff -r1.11 download.html 2c2 < Choose a Mirror --- > func_lang("Choose a Mirror") 24,25c24 < <p>Your download will start automatically from this mirror in 5 seconds unless you select < another mirror in the list below.</p> --- > <p>func_lang("Your download will start automatically from this mirror in 5 seconds unless you select another mirror inthe list below.")</p> Index: template/index.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/index.html,v retrieving revision 1.90 diff -r1.90 index.html 23c23 < <h2><img src="/layout/images/en/hdr_featureduser.png" width="104" height="10" alt="Featured User" /></h2> --- > <h2><img src="/layout/images/en/hdr_featureduser.png" width="104" height="10" alt="func_lang('FeaturedUser')" /></h2> 27c27 < <img src="/layout/images/blt_blu_arrow.png" width="6" height="5" alt="" /><a href="/about/casestudies">func_lang("CaseStudies")</a><span class="txtDivider">|</span><a href="/about/users" title="Seemore featured users">func_lang("More Featured Users")</a> --- > <img src="/layout/images/blt_blu_arrow.png" width="6" height="5" alt="" /><a href="/about/casestudies">func_lang("CaseStudies")</a><span class="txtDivider">|</span><a href="/about/users" title="func_lang('Seemore featured users')">func_lang("More Featured Users")</a> 38c38 < <h2><img src="/layout/images/en/hdr_latestreleases.png" width="120" height="10" alt="Latest Releases" /></h2> --- > <h2><img src="/layout/images/en/hdr_latestreleases.png" width="120" height="10" alt="func_lang('Latest Releases')"/></h2> 41c41 < <b>{version}:</b> <a href="/ftp/source/v{version}">Source</a> · <a href="/ftp/binary/v{version}">Binary</a>· <a href="/docs/{majorver}/static/{relnotes}">Notes</a> --- > <b>{version}:</b> <a href="/ftp/source/v{version}">func_lang("Source")</a> · <a href="/ftp/binary/v{version}">func_lang("Binary")</a>· <a href="/docs/{majorver}/static/{relnotes}">func_lang("Notes")</a> 45c45 < <div id="pgFrontLatestReleasesNote"><a href="/versions.rss" title="func_lang('Versions RSS Feed')"><img class="pgRSSImage"src="/layout/images/ico_rss.png" width="28" height="13" alt="func_lang('Versions RSS Feed')" /></a> | <ahref="/support/versioning">Why should I upgrade?</a></div> --- > <div id="pgFrontLatestReleasesNote"><a href="/versions.rss" title="func_lang('Versions RSS Feed')"><img class="pgRSSImage"src="/layout/images/ico_rss.png" width="28" height="13" alt="func_lang('Versions RSS Feed')" /></a> | <ahref="/support/versioning">func_lang("Why should I upgrade?")</a></div> 48c48 < <h2><img src="/layout/images/en/hdr_shortcuts.png" width="85" height="10" alt="Shortcuts" /></h2> --- > <h2><img src="/layout/images/en/hdr_shortcuts.png" width="85" height="10" alt="func_lang('Shortcuts')" /></h2> 76c76 < <h2><img src="/layout/images/en/hdr_supportus.png" width="81" height="10" alt="Support Us" /></h2> --- > <h2><img src="/layout/images/en/hdr_supportus.png" width="81" height="10" alt="func_lang('Support Us')" /></h2> 86c86 < <img src="/layout/images/en/hdr_latestnews.png" width="90" height="10" alt="Latest News" /> --- > <img src="/layout/images/en/hdr_latestnews.png" width="90" height="10" alt="func_lang('Latest News')" /> 106c106 < <img src="/layout/images/en/hdr_planetpg.png" width="140" height="10" alt="Planet PostgreSQL" /> --- > <img src="/layout/images/en/hdr_planetpg.png" width="140" height="10" alt="func_lang('Planet PostgreSQL')"/> 128c128 < <img src="/layout/images/en/hdr_upcomingevents.png" width="123" height="10" alt="Upcoming Events" /> --- > <img src="/layout/images/en/hdr_upcomingevents.png" width="123" height="10" alt="func_lang('Upcoming Events')"/> 132c132 < <img src="/layout/images/en/hdr_upcomingtraining.png" alt="Upcoming training" /> --- > <img src="/layout/images/en/hdr_upcomingtraining.png" alt="func_lang('Upcoming training')" /> Index: template/search.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/search.html,v retrieving revision 1.4 diff -r1.4 search.html 8,9c8,9 < <td class="colFirstR">Search for:</td> < <th class="colLast"><input type="text" name="q" value="{searchfor}" /> <input type="submit" value="Search" /></th> --- > <td class="colFirstR">func_lang("Search for"):</td> > <th class="colLast"><input type="text" name="q" value="{searchfor}" /> <input type="submit" value="func_lang('Search')"/></th> 14c14 < <td class="colLast"><input type="checkbox" name="a" value="1" {comsites}/>Include community sites</td> --- > <td class="colLast"><input type="checkbox" name="a" value="1" {comsites}/>func_lang("Include community sites")</td> 19c19 < <td class="colFirstR">List:<input type="hidden" name="m" value="1" /></td> --- > <td class="colFirstR">func_lang("List"):<input type="hidden" name="m" value="1" /></td> 26c26 < <td class="colFirstR">Post date:</td> --- > <td class="colFirstR">func_lang("Post date"):</td> 33c33 < <td class="colFirst" align="right">Sort by:</td> --- > <td class="colFirst" align="right">func_lang("Sort by"):</td> 47c47 < Based on your search term, we recommend the following links: --- > func_lang("Based on your search term, we recommend the following links"): 55c55 < <p>Your search for <b>{searchfor}</b> returned no hits.</p> --- > <p>func_lang("Your search for <b>{searchfor}</b> returned no hits").</p> 58,60c58,60 < <h2>Results {firsthit}-{lasthit} of {totalhits}.</h2> < <p>Searching in {searchpages} pages took {searchtime} seconds. < Site search powered by <a href="http://www.postgresql.org">PostgreSQL 8.2</a>.</p> --- > <h2>func_lang("Results {firsthit}-{lasthit} of {totalhits}.")</h2> > <p>func_lang("Searching in {searchpages} pages took {searchtime} seconds.") > func_lang("Site search powered by") <a href="http://www.postgresql.org">PostgreSQL 8.2</a>.</p> 62c62 < Result pages: {page_links}<br/><br/> --- > func_lang("Result pages"): {page_links}<br/><br/> 72c72 < Posted {arch_date} by {arch_author}.<br/> --- > func_lang("Posted {arch_date} by {arch_author}.")<br/> 78c78 < Result pages: {page_links}<br/><br/> --- > func_lang("Result pages"): {page_links}<br/><br/> Index: template/about/event.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/event.html,v retrieving revision 1.4 diff -r1.4 event.html 2c2 < Events: {title_event} in {title_location} --- > func_lang("Events: {title_event} in {title_location}") Index: template/about/eventarchive.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/eventarchive.html,v retrieving revision 1.3 diff -r1.3 eventarchive.html 2c2 < Events --- > func_lang("Events") Index: template/about/events-loop.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/events-loop.html,v retrieving revision 1.4 diff -r1.4 events-loop.html 9c9 < func_lang("Location:") <B>{event_location}</b><br /> --- > func_lang("Location:") <b>{event_location}</b><br /> Index: template/about/news.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/news.html,v retrieving revision 1.2 diff -r1.2 news.html 2c2 < News: {title_headline} --- > func_lang("News"): {title_headline} Index: template/about/newsarchive.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/newsarchive.html,v retrieving revision 1.2 diff -r1.2 newsarchive.html 2c2 < News --- > func_lang("News") Index: template/about/quotes.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/quotes.html,v retrieving revision 1.1 diff -r1.1 quotes.html 2c2 < Quote: {title_headline} --- > func_lang("Quote"): {title_headline} Index: template/about/quotesarchive.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/about/quotesarchive.html,v retrieving revision 1.1 diff -r1.1 quotesarchive.html 2c2 < Quotes --- > func_lang("Quotes") Index: template/community/survey.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/community/survey.html,v retrieving revision 1.1 diff -r1.1 survey.html 2c2 < Community: Survey Results: {page_title} --- > func_lang("Community: Survey Results:") {page_title} Index: template/navigation/about.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/navigation/about.html,v retrieving revision 1.10 diff -r1.10 about.html 10c10 < <li class="last-child"><a href="/about/servers">Servers</a></li> --- > <li class="last-child"><a href="/about/servers">func_lang("Servers")</a></li> Index: template/navigation/community.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/navigation/community.html,v retrieving revision 1.12 diff -r1.12 community.html 18,19c18,19 < <li><a href="{master_server}/community/profile">Profile</a></li> < <li class="last-child"><a href="/community/lostpwd">Lost password</a></li> --- > <li><a href="{master_server}/community/profile">func_lang("Profile")</a></li> > <li class="last-child"><a href="/community/lostpwd">func_lang("Lost password")</a></li> Index: template/navigation/download.html =================================================================== RCS file: /usr/local/cvsroot/pgweb/portal/template/navigation/download.html,v retrieving revision 1.12 diff -r1.12 download.html 4c4 < <li><a href="/download/#other">Community Software</a> --- > <li><a href="/download/#other">func_lang("Community Software")</a>
Guillaume Lelarge a écrit : > The french .po file is updated with the new strings but I need to check > them on my local www-postgresql-org website before sending it. > The french translation (template files and .po file) is available here : http://www.lelarge.info/~guillaume/frenchwebsite2.tar.bz2 Regards. -- Guillaume. http://www.postgresqlfr.org http://docs.postgresqlfr.org
Hi all, Guillaume Lelarge a écrit : > Magnus Hagander a écrit : >> Guillaume Lelarge wrote: >> [...] >>> * There are some texts that are not enclosed in the func_lang function. >>> I can send you a patch for this. >> >> Please do, they should be. >> > > You'll find a patch attached. Note that it doesn't change any admin file > despite that stringextract seems to extract strings from those files > too. I don't know if we really need to localize these pages. > Did someone took a look at this patch ? Thanks. Regards. -- Guillaume. http://www.postgresqlfr.org http://docs.postgresqlfr.org