Added the French translation of the project.

This commit is contained in:
Loic d'Anterroches 2008-08-06 14:54:01 +02:00
parent 1cb8e44ff9
commit bac1586334
5 changed files with 2388 additions and 19 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ src/IDF/conf/idf.php
src/IDF/conf/idf.test.php src/IDF/conf/idf.test.php
www/test.php www/test.php
www/media/upload www/media/upload
src/IDF/gettexttemplates

View File

@ -33,7 +33,7 @@ class IDF_Views_Source
{ {
public function changeLog($request, $match) public function changeLog($request, $match)
{ {
$title = sprintf('%s Git Change Log', (string) $request->project); $title = sprintf(__('%s Git Change Log'), (string) $request->project);
$git = new IDF_Git($request->project->getGitRepository()); $git = new IDF_Git($request->project->getGitRepository());
$branches = $git->getBranches(); $branches = $git->getBranches();
$commit = $match[2]; $commit = $match[2];
@ -51,7 +51,7 @@ class IDF_Views_Source
public function treeBase($request, $match) public function treeBase($request, $match)
{ {
$title = sprintf('%s Git Source Tree', (string) $request->project); $title = sprintf(__('%s Git Source Tree'), (string) $request->project);
$git = new IDF_Git($request->project->getGitRepository()); $git = new IDF_Git($request->project->getGitRepository());
$commit = $match[2]; $commit = $match[2];
$branches = $git->getBranches(); $branches = $git->getBranches();
@ -80,7 +80,7 @@ class IDF_Views_Source
public function tree($request, $match) public function tree($request, $match)
{ {
$title = sprintf('%s Git Source Tree', (string) $request->project); $title = sprintf(__('%s Git Source Tree'), (string) $request->project);
$git = new IDF_Git($request->project->getGitRepository()); $git = new IDF_Git($request->project->getGitRepository());
$branches = $git->getBranches(); $branches = $git->getBranches();
$commit = $match[2]; $commit = $match[2];
@ -161,8 +161,8 @@ class IDF_Views_Source
$branches[0])); $branches[0]));
return new Pluf_HTTP_Response_Redirect($url); return new Pluf_HTTP_Response_Redirect($url);
} }
$title = sprintf('%s Commit Details', (string) $request->project); $title = sprintf(__('%s Commit Details'), (string) $request->project);
$page_title = sprintf('%s Commit Details - %s', (string) $request->project, $commit); $page_title = sprintf(__('%s Commit Details - %s'), (string) $request->project, $commit);
$cobject = $git->getCommit($commit); $cobject = $git->getCommit($commit);
$diff = new IDF_Diff($cobject->changes); $diff = new IDF_Diff($cobject->changes);
$diff->parse(); $diff->parse();

1213
src/IDF/locale/fr/idf.po Normal file

File diff suppressed because it is too large Load Diff

1155
src/IDF/locale/idf.pot Normal file

File diff suppressed because it is too large Load Diff

View File

@ -2,32 +2,32 @@
{block docclass}yui-t1{/block} {block docclass}yui-t1{/block}
{block body} {block body}
<ul> <ul>
<li><a href="#q-keyboard">What are the keyboard shortcuts?</a></li> <li><a href="#q-keyboard">{trans 'What are the keyboard shortcuts?'}</a></li>
<li><a href="#q-duplicate">How to mark an issue as duplicate?</a></li> <li><a href="#q-duplicate">{trans 'How to mark an issue as duplicate?'}</a></li>
</ul> </ul>
<h2 id="q-keyboard">What are the keyboard shortcuts?</h2> <h2 id="q-keyboard">{trans 'What are the keyboard shortcuts?'}</h2>
<p>If you are in a project, you have the following shortcuts:</p> <p>{trans 'If you are in a project, you have the following shortcuts:'}</p>
<ul> <ul>
<li><kbd>Shift+h</kbd>: Project home.</li> <li>{trans '<kbd>Shift+h</kbd>: Project home.'}</li>
<li><kbd>Shift+d</kbd>: Downloads.</li> <li>{trans '<kbd>Shift+d</kbd>: Downloads.'}</li>
<li><kbd>Shift+s</kbd>: Source.</li> <li>{trans '<kbd>Shift+s</kbd>: Source.'}</li>
<li><kbd>Shift+a</kbd>: Create a new issue.</li> <li>{trans '<kbd>Shift+a</kbd>: Create a new issue.'}</li>
<li><kbd>Shift+i</kbd>: List of recently submitted issues.</li> <li>{trans '<kbd>Shift+i</kbd>: List of recently submitted issues.'}</li>
<li><kbd>Shift+m</kbd>: The issues you submitted.</li> <li>{trans '<kbd>Shift+m</kbd>: The issues you submitted.'}</li>
<li><kbd>Shift+w</kbd>: The issues assigned to you.</li> <li>{trans '<kbd>Shift+w</kbd>: The issues assigned to you.'}</li>
</ul> </ul>
<h2 id="q-duplicate">How to mark an issue as duplicate?</h2> <h2 id="q-duplicate">{trans 'How to mark an issue as duplicate?'}</h2>
<p>This is simple:</p> {blocktrans}<p>This is simple:</p>
<ol> <ol>
<li>Write in the comments "This is a duplicate of issue 123", change 123 with the corresponding issue number.</li> <li>Write in the comments "This is a duplicate of issue 123", change 123 with the corresponding issue number.</li>
<li>Change the status of the current issue to <em>Duplicate</em>.</li> <li>Change the status of the current issue to <em>Duplicate</em>.</li>
<li>Submit the changes.</li> <li>Submit the changes.</li>
</ol> </ol>{/blocktrans}
{/block} {/block}
{block context} {block context}