Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

French translation #190

Open
B4rb3rouss opened this issue Nov 3, 2014 · 0 comments
Open

French translation #190

B4rb3rouss opened this issue Nov 3, 2014 · 0 comments

Comments

@B4rb3rouss
Copy link

B4rb3rouss commented Nov 3, 2014

Here is a french translation if interested (lang.fr.php) :

    <?php //translation file
    /\* ====================================================================================================================== _/
    /_ NoNonsense Forum v25 © Copyright (CC-BY) Kroc Camen 2010-2013
       licenced under Creative Commons Attribution 3.0 <creativecommons.org/licenses/by/3.0/deed.en_GB>
       you may do whatever you want to this code as long as you give credit to Kroc Camen, <camendesign.com>
    _//_


how to create a theme translation:
----------------------------------
1.  determine the standard language code to use, e.g. "en" (or "en-GB", "en-US" …), "de", "es" etc.
    Read this document on how to choose a language code:
    http://www.w3.org/International/questions/qa-choosing-language-tags

2.  make a copy of 'lang.example.php' and rename as 'lang.en.php' where "en" is the language code for your translation
    (do not rename, modify or delete 'lang.example.php')

3.  if you have not already, make a copy of 'theme.config.default.php' and rename it to 'theme.config.php'.
    within that file add your language code, separated from any other languages by a space, to the `THEME_LANGS`
    option; this will tell NNF that your language is available to use and will add it to the theme's language selector

4.  translate the text within your lang file. please note that all text is HTML.
    you can preview as you go by selecting your new language when running NNF

*/

//name of the language, as the user will use to select it;
//therefore should be the name of the language, written in that language - i.e. "Espanol" (Spanish)
$LANG['fr']['name']         = 'French';

//the `date` format code used to print human readable dates into the HTML,
//see <php.net/manual/en/function.date.php> for documentation
$LANG['fr']['date_format']  = 'd M ’y · H:i';

//the following template replacements are done using `sprintf`,
//see <php.net/manual/en/function.sprintf.php> for details

//the HTML title for index and thread pages
//"%1$s" - the title
//"%2$s" - if on page 2 or greater, `THEME_TITLE_PAGENO` will be inserted here, otherwise it will be removed
$LANG['fr']['title']        = '%1$s%2$s';

//the page number, added to the titles of index pages and threads
//"%1$u" - the page number
$LANG['fr']['title_pagenum']    = ' + %1$u';

//the title for append pages
//"%1$s" - the post title (will come from `THEME_RE` for replies)
$LANG['fr']['title_append'] = 'Ajouté au %1$s';

//the title for delete pages
//"%1$s" - the post title (will come from `THEME_RE` for replies)
$LANG['fr']['title_delete'] = 'Supprimer %1$s?';

//reply number shown in threads as a permalink
//"%1$u" - the number of the reply
$LANG['fr']['replynum']     = '#%1$u.';

//title format for each reply
//"%1$u" - number of the reply
//"%2$s" - the thread title
$LANG['fr']['re']       = 'RE[%1$u]: %2$s';

//text used when appending to a post:
//(markup can be used as this is run through `formatText`)
//"%1$s" - username of who posted
//"%2$s" - human-readable time, as per `DATE_FORMAT`
$LANG['fr']['appended']     = ':: @%1$s ajouté au %2$s';

//HTML that replaces a post when it's deleted (this is not rectroactive)
$LANG['fr']['delete_user']  = '<p>Ce message a été supprimé par l\'auteur</p>';
$LANG['fr']['delete_mod']   = '<p>Ce message a été supprimé par un modérateur</p>';

//HTML used to replace an invalid post:
$LANG['fr']['corrupt']      = '<p>Ce message est corrompu et ne peut être affiché</p>';


//the translation strings
$LANG['fr']['strings']      = array (

/* xpath/shorthand:         replacement text:           description:
   ====================================================================================================================== */
/* site header
   ---------------------------------------------------------------------------------------------------------------------- */
//search box
 '#query@placeholder'           => 'Recherche Google…'            //default text shown in search box
,'#go@alt'              => 'Recherche'              //search submit button

//language selector
,'#nnf_lang/img@alt, '.
 '#nnf_lang/img@title'          => 'Language:'              //language chooser icon
,'#nnf_lang/input@alt'          => 'Set language'           //language chooser submit button

//breadcrumb
,'#index/li[1]/a'           => 'Index'              //breadcrumb root location

/* index page
   ---------------------------------------------------------------------------------------------------------------------- */
//list of sub-forums
,'#nnf_folders/h1'          => 'Sous-Forums'                //section title
,'.nnf_lock-threads@alt, '.
 '.nnf_lock-threads@title'      => 'Réponses:'         //alt+title of lock-icon, if thread-locked
,'.nnf_lock-posts@alt, '.
 '.nnf_lock-posts@title'        => 'Lire:'              //alt+title of lock-icon, if post-locked

//navigation links
,'#nnf_add'             => 'Ajouter un sujet'               //the "add thread" link in 'index.html'
,'#nnf_reply'               => 'Répondre'              //the "reply" link in 'thread.html'
,'#nnf_rss'             => 'RSS'                //the RSS link in the header

//access rights
,'#nnf_forum-lock-threads'      => <<<HTML
    Only <a href="#mods">Modérateurs et membres</a> peuvent commencer un nouveau sujet ici
    mais <em>personne</em> ne peut y répondre.
HTML
,'#nnf_forum-lock-posts'        => <<<HTML
    Only <a href="#mods">Modérateurs et membres</a> peuvent participer ici.
    Connectez-vous si vous êtes modérateur ou membre pour poster.
HTML

//list of threads
,'#nnf_threads/h1'          => 'Sujets'
,'.nnf_thread-locked@alt, '.
 '.nnf_thread-locked@title'     => 'Verrouillé:'

,'#nnf_new-form/h1'         => 'Ajouter un sujet'               //add thread form title
,'#nnf_new-form/form/p/'.
 'label@for="submit"/span'      => 'Envoyer'                //form submit button

/* thread page
   ---------------------------------------------------------------------------------------------------------------------- */
,'#nnf_post-append, #nnf_post-append, '.
 '.nnf_reply-append, .nnf_reply-append' => 'ajouter'                //"append" link in posts
,'#nnf_post-delete, #nnf_post-delete, '.
 '.nnf_reply-delete, .nnf_reply-delete' => 'supprimer'              //"delete" link in posts

,'.nnf_forum-locked'            => <<<HTML
    Only <a href="#mods">modérateurs et membres</a> peuvent répondre à ce sujet.
    Connectez-vous si vous êtes modérateur ou membre pour poster.
HTML

,'#nnf_replies/h1'          => 'Réponses'              //title for replies list

,'#nnf_reply-form/h1'           => 'Répondre'              //reply form title
,'#nnf_reply-form/form/p/'.
 'label@for="submit"/span'      => 'Répondre'              //form submit button

/* append page
   ---------------------------------------------------------------------------------------------------------------------- */
,'#append/h1'               => 'Ajouter'                //append form title
,'#append/form/p/'.
 'label@for="submit"/span'      => 'Ajouter'                //form submit button

/* delete page
   ---------------------------------------------------------------------------------------------------------------------- */
,'#delete/h1'               => 'Supprimer'              //delete form title

,'label@for="remove"/span'      => 'Supprimer complètement (modérateurs seuls)'
,'#nnf_remove/ul/li[1]'         => 'Ce sujet sera totalement supprimé plutôt que d\'être effacé'
,'#nnf_remove/ul/li[2]'         => 'Only posts on the last page of the thread can be removed completely (so as to not break permalinks)'

,'#delete/form/p/'.
 'label@for="submit"/span'      => 'Supprimer'              //form submit button

/* input forms
   ---------------------------------------------------------------------------------------------------------------------- */
,'label@for="nnf_title-field"'      => 'Titre:'             //title field label
,'#nnf_title-field@placeholder'     => 'Entrez le titre ici…'     //placeholder text for the title field

,'label@for="nnf_name-field-http"'  => ''       //label for name field if HTTP_AUTH
,'label@for="nnf_name-field"'       => 'Nom:'               //name field label
,'#nnf_name-field@placeholder'      => 'Votre nom'              //placeholder text for the name field

,'label@for="nnf_pass-field"'       => 'Mot de passe:'              //label for password field
,'#nnf_pass-field@placeholder'      => 'Un mot de passe pour garder votre nom'  //placeholder text for the password field

,'#nnf_error-none'          => <<<HTML
            <!-- this is shown by default as long as new users aren't disabled and the user isn't signed in -->
            Nul besoin de s'enregistrer, entrez juste le même nom + mot de passe de votre choix à chaque fois.
HTML
,'#nnf_error-none-http'         => <<<HTML
            <!-- this is shown by default if the user is signed in -->
            (Quit your browser or clear the browser cache to sign out.)
HTML
,'#nnf_error-none-append'       => <<<HTML
            <!-- this is shown by default as long as new users aren't disabled and the user isn't signed in -->
            Seul l'auteur ou un modérateur peuvent ajouter quelques chose à ce message.
HTML
,'#nnf_error-none-thread'       => <<<HTML
            Pour supprimer ce sujet et toutes les réponses à ce dernier, 
            vous devez soit en être l'auteur soit un modérateur désigné.
HTML
,'#nnf_error-none-reply'        => <<<HTML
            Pour supprimer ce sujet et toutes les réponses à ce dernier, 
            vous devez soit en être l'auteur soit un modérateur désigné.<br>
            Le contenu du message sera retiré mais le nom et la date persisteront.
HTML
,'#nnf_error-newbies'           => <<<HTML
            <!-- if the `FORUM_NEWBIES` option is false, only existing users can post -->
            Seuls les utilisateurs enregistrés peuvent poster.<br>. Aucune nouvelle inscription autorisée.
HTML
,'#nnf_error-title'         => <<<HTML
            Vous devez entrer le titre du nouveau sujet de discussion.
HTML
,'#nnf_error-name'          => <<<HTML
            Entrez un nom. Vous devrez l'utiliser avec le même mot de passe à chaque fois.
HTML
,'#nnf_error-name-append'       => <<<HTML
            Entrez le nom de l'auteur ou d'un modérateur pour pouvoir ajouter quelque chose à cette réponse.
HTML
,'#nnf_error-name-delete'       => <<<HTML
            Entrez le nom de l'auteur ou d'un modérateur pour pouvoir supprimer.
HTML
,'#nnf_error-pass'          => <<<HTML
            Entrez un mot de passe. Ainsi vous pourrez le réutiliser à chaque fois.
HTML
,'#nnf_error-pass-append'       => <<<HTML
            Entrez le mot de passe pour l'auteur original ou un modérateur afin de pouvoir ajouter quelque chose à cette réponse.
HTML
,'#nnf_error-pass-delete'       => <<<HTML
            Entrez le nom de l'auteur ou d'un modérateur pour pouvoir supprimer.
HTML
,'#nnf_error-text'          => <<<HTML
            Allez, écrivez un message!
HTML
,'#nnf_error-auth'          => <<<HTML
            Ce nom est déjà pris. Précisez le mot d epasse pour ce dernier, ou choisissez un autre nom.
HTML
,'#nnf_error-auth-append'       => <<<HTML
            Le Nom/mot de passe ne correspondent pas. Vous devez entrer le nom et le mot de passe de l'auteur, ou d'un modérateur.
HTML
,'#nnf_error-auth-delete'       => <<<HTML
            Le Nom/mot de passe ne correspondent pas. Vous devez entrer le nom et le mot de passe de l'auteur, ou d'un modérateur.
HTML
,'#protip'              => <<<HTML
            Astuce: Utilisez <a href="/markup.php">markup</a> pour ajouter des liens, citations et plus.
HTML

,'label@for="nnf_text-field"'       => 'Message:'
,'#nnf_text-field@placeholder'      => 'Tapez votre message ici…'

/* markup page
   ---------------------------------------------------------------------------------------------------------------------- */
//the markup documentation:
,'/html[@class="markup"]/head/title'    => 'Markup'
,'#markup'              => <<<HTML

<h1>Markup</h1>
<article>
<header>
<ol>
    <li><a href="#links">» Liens</a></li>
    <li><a href="#names">» Noms</a></li>
    <li><a href="#bolditalic">» Gras &amp; italique</a></li>
    <li><a href="#titles">» Titres</a></li>
    <li><a href="#dividers">» Séparateurs</a></li>
    <li><a href="#quotes">» Citations</a></li>
    <li><a href="#pre">» Texte Monospacé</a></li>
</ol>
</header>

<h2 id="links">Liens:</h2>
<p>
    Des liens cliquables seront automatiquement créés pour n'importe quelle adresse dans votre texte qui commence par
    "<samp>http://</samp>", "<samp>https://</samp>", "<samp>ftp://</samp>" ou "<samp>irc://</samp>".
    De plus, les adresses courriel seront transformées en liens cliquables pour vous.
</p>
<pre>
OUI:    http://www.google.com
NON:    www.google.com
OUI:    [email protected]
</pre>

<h2 id="names">Noms:</h2>
<p>
    Vous pouvez faire référence à une autre personne en mettant au début de son nom un arobase. Ex: "<samp>@bob</samp>"
    Le nom redirigera vers la dernière réponse faite pas cette personne dans l'actuel sujet de discussion.
</p>

<h2 id="bolditalic">Gras &amp; Italique</h2>
<pre>
*Ecrivez le texte en gras ainsi*, et _le texte italique ainsi_.
</pre>


<h2 id="titles">Titres:</h2>
<p>
    Pour un titre, commencez une ligne avec deux "deux points". Exemple :
</p>
<pre>
:: Liste de courses
</pre>

<h2 id="dividers">Séparateurs:</h2>
<p>
    Pour dessiner une ligne en travers du texte, utilisez trois ou plus tirets:<br>
    (ceci doit être sur sa propre ligne, avec une ligne vide avant et après)
</p>
<pre>

---
</pre>

<h2 id="quotes">Citations:</h2>
<p>
    Pour citer le texte de quelqu'un d'autre, placez la sur sa propre ligne avec des guillemets au début et à la fin.
    Ceci s'applique même si le texte cité est plus long qu'un paragraphe ou contient des citations lui-même.
</p><p>
    Il doit y avoir une ligne vide entre chaque citation et le reste du texte:<br>
    (une ligne simple ne fonctionnera pas)
</p>
<pre>
OUI:    Ceci est mon texte

    "Ceci est ton texte"

    Mon texte
</pre>
<p>
    Il ne doit pas y avoir de texte avant et après la guillements.
</p>
<pre>
NON:    "Ceci est ton texte".
</pre>
<p>
    Cependant, les espaces avant et après sont autorisés. Quand vous copier et collez une citation de quelqu'un d'autre, 
    des espaces en trop peuvent être inclus. Ces derniers seront ignorés.
</p>
<pre>
OUI:    Mon texte

         "Ton texte

    "

    Mon texte
</pre>
<p>
    Une citation peut faire plus qu'une ligne ou un paragraphe:
</p>
<pre>
OUI:    Mon texte

    "The quick brown fox
    jumped over the lazy dog

    Jackdaws love my big
    sphinx of quartz"

    Mon texte
</pre>
<p>
    Les citations peuvent contenir des citations :
</p>
<pre>
OUI:    "Première citation

    "Seconde citation"

    Ceci est la première citation."
</pre>
<p> 
    Vous pouvez utiliser différents type de marques de citation:<br>
    (Mais vous ne pouvez pas vous tromper à la fin)
</p>
<pre>
OUI:    "Plain speech marks"

    “Curly quotes”

    «Guillemits»
</pre>
<p>
    Les différents types de citation peuvent être emmêlés :
</p>
<pre>
OUI:    "This is the first quote

    “This is the second quote

    «This is a third quote»”"
</pre>

<h2 id="pre">Texte Monospace:</h2>
<p>
    Pour de petits morceaux de code ou écrits techniques, que vous voulez voir apparaître tel qu'il est dans d'autres écrits,
    vous pouvez utiliser des "backticks" (1 ou plus) pour entourer le texte à monospacer. Le texte ne sera pas convertit en gras ou en italique ou autre markup.
</p>
<pre>
Utilisez `<samp>*gras*</samp>`  pour du gras et ``<samp>_italic_</samp>`` pour l'italique.
</pre>
<p>
    Quand vous postez, tous les espaces non-nécessaires seront automatiquement retirés. Si vous avez du texte qui s'appuie sur ces espaces, vous
    pouvez utiliser un bloc de code.
</p><p>
    Le bloc de code commence pas un signe pourcent, ensuite votre texte (commençant sur la ligne suivante), et termine par un autre signe pourcent sur la dernière ligne.
</p>
<pre>
%
      __...--~~~~~-._   _.-~~~~~--...__
    //               `V'               \\ 
   //                 |                 \\ 
  //__...--~~~~~~-._  |  _.-~~~~~~--...__\\ 
 //__.....----~~~~._\ | /_.~~~~----.....__\\
====================\\|//====================
                dwb `---`
%
</pre>
<p>
    Remarquez qu'il devrait toujours y avoir une ligne vide entre le bloc de code et le texte avant et après:
</p><p>
    Vous pouvez inclure un titre après le premier signe pourcent, par exemple lorsque vous instérez du code source dont
    vous voulez préciser le langage.
</p>
<pre>
% CSS
div {color: red;}
%
</pre>
<p>
    Si vous devez citer quelque chose qui a un symbole pourcent avec un premier caractère sur une ligne, par exemple
    pour le langage de programmation LaTeX, vous pouvez simplement utiliser le signe dollar "<samp>$</samp>" comme 
    délimiteur à la place.
</p>

</article>
HTML

/* privacy policy page
   ---------------------------------------------------------------------------------------------------------------------- */
,'/html[@class="privacy"]/head/title'   => 'Privacy Policy'
,'#privacy'             => <<<HTML

<h1>Privacy Policy</h1>
<article>
<header>
<ol>
    <li><a href="#collected">» Information Collected</a></li>
    <li><a href="#stored">» Information Stored</a></li>
    <li><a href="#other">» Other Information</a></li>
</ol>
</header>

<p>
    This discussion forum is powered by <a href="http://camendesign.com/nononsense_forum">NoNonsense Forum</a>
    (here after “NNF”). As a forum, NNF is unique in what and the way it stores information,
    notably in what it <em>doesn’t</em> store, compared to other forums.
</p>

<h2 id="collected">Information Collected:</h2>
<p>
    The only information you are asked to provide is a name, password and the text that you wish to publish.
</p>

<h2 id="stored">Information Stored:</h2>
<ul>
    <li><p>
        The name and message you provide is stored as part of the discussion feed and made public.<br>
        The name can be any text and you do not have to use your real name or any identifying moniker
    </p></li>
    <li><p>
        The password you provide is one-way encrypted once received and stored only in this encrypted form —
        this means that NNF (and the site owner) does not know your password and cannot recover it
    </p></li>
    <li><p>
        If this forum provides selectable translations then changing the display language will set a
        <em>cookie</em> specifying your chosen language.
    </p><p>
        A <em>Cookie</em> is a small piece of text stored on your computer used to remember some kind of
        interaction with a website, in this case which language you have selected. NNF only uses cookies to
        remember the language selection and does not track you in any way. It is completely safe to delete the
        cookie
    </p></li>
</ul>

<h2 id="other">Other Information:</h2>
<ul>
    <li><p>
        Please note that NoNonsense Forum is free, open-source software, adaptable by anybody with sufficient
        knowledge; this forum may be collecting additional information beyond this privacy policy.
        The person who owns and operates this website may have additional privacy policies in place.
        Please contact the site owner with any questions
    </p></li>
    <li><p>
        Almost all websites collect visitor information, which typically includes details such as your I.P. address,
        time of access and web browser (also possibly operating system) identifying mark.
        These details are typically used for measuring traffic and finding faults. None of this information is
        collected by any part of NoNonsense Forum itself; again, contact the website owner with any questions
    </p></li>
    <li><p>
        The search feature is controlled by a third party (usually <a href="http://google.com">Google</a>),
        and will certainly collect information. Please check their website for their privacy policy
    </p></li>
</ul>

</article>
HTML

/* site footer
   ---------------------------------------------------------------------------------------------------------------------- */
,'#nnf_lock'                => 'Lock'               //Lock link in 'thread.html'
,'#nnf_unlock'              => 'Unlock'             //Unlock link in 'thread.html'

,'#nnf_mods-local'          => <<<HTML
    Modérateurs pour ce sous-forum :
    <span id="nnf_mods-local-list"><b class="nnf_mod">Alice</b></span>
HTML
,'#nnf_mods'                => <<<HTML
    Vos amicaux modérateurs voisins:
    <span id="nnf_mods-list"><b class="nnf_mod">Bob</b></span>
HTML
,'#nnf_members'             => <<<HTML
    Membres de ce forum:
    <span id="nnf_members-list"><b>Charlie</b></span>
HTML

,'/html/body/footer/p[1]'       => <<<HTML
    Powered by <a href="http://camendesign.com/nononsense_forum">NoNonsense Forum</a><br>
    <a href="/privacy.php">privacy policy</a>
HTML
,'.nnf_signed-in'           => <<<HTML
    Connecté en tant que:<br><b class="nnf_signed-in-name">Kroc</b>
HTML
,'.nnf_signed-out/input@value'      => 'Se connecter'

);

?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant