Skip to content

Commit 59252ae

Browse files
committed
Add description on admin page. Complete french translation
1 parent 7a4d648 commit 59252ae

5 files changed

+60
-14
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ Installation
3232
Changelog
3333
---------
3434

35+
#### v0.4
36+
37+
- Add some description in admin page
38+
- Complete French translation
39+
3540
#### v0.3
3641

3742
- Better page link management. Should be compatible with any URL format.

byscripts_ajax_posts_loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Load the next page of posts with AJAX.
66
* Text Domain: byscripts_ajax_posts_loader
77
* Domain Path: /lang
8-
* Version: 0.3
8+
* Version: 0.4
99
* Author: ByScripts
1010
* Author URI: http://www.byscripts.info/
1111
* License: MIT
1.02 KB
Binary file not shown.

lang/byscripts_ajax_posts_loader-fr_FR.po

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: ByScripts Wordpress Ajax Posts Loader\n"
4-
"POT-Creation-Date: 2013-11-01 19:20+0100\n"
5-
"PO-Revision-Date: 2013-11-01 19:20+0100\n"
4+
"POT-Creation-Date: 2013-11-02 12:26+0100\n"
5+
"PO-Revision-Date: 2013-11-02 12:30+0100\n"
66
"Last-Translator: Thierry Goettelmann <byscripts@gmail.com>\n"
77
"Language-Team: ByScripts <contact@byscripts.info>\n"
88
"Language: French\n"
@@ -15,27 +15,27 @@ msgstr ""
1515
"X-Poedit-SourceCharset: UTF-8\n"
1616
"X-Poedit-SearchPath-0: ..\n"
1717

18-
#: ../byscripts_ajax_posts_loader.php:36
18+
#: ../byscripts_ajax_posts_loader.php:50
1919
msgid "Load the next page of posts with AJAX."
2020
msgstr "Charge la prochaine page d'articles via AJAX"
2121

22-
#: ../byscripts_ajax_posts_loader.php:68
22+
#: ../byscripts_ajax_posts_loader.php:82
2323
msgid "Load more news"
2424
msgstr "Charger plus d'actualités"
2525

26-
#: ../byscripts_ajax_posts_loader.php:69
26+
#: ../byscripts_ajax_posts_loader.php:83
2727
msgid "Loading..."
2828
msgstr "Chargement..."
2929

30-
#: ../byscripts_ajax_posts_loader.php:70
30+
#: ../byscripts_ajax_posts_loader.php:84
3131
msgid "No more news to load"
3232
msgstr "Il n'y a plus d'actualités à charger"
3333

34-
#: ../byscripts_ajax_posts_loader.php:102
34+
#: ../byscripts_ajax_posts_loader.php:118
3535
msgid "You do not have sufficient permissions to access this page."
3636
msgstr "Vous n'avez pas la permission d'accéder à cette page."
3737

38-
#: ../byscripts_ajax_posts_loader.php:109
38+
#: ../byscripts_ajax_posts_loader.php:125
3939
msgid "Settings"
4040
msgstr "Paramètres"
4141

@@ -48,9 +48,40 @@ msgstr "Paramètres de %s"
4848
msgid "Content CSS selector"
4949
msgstr "Sélecteur CSS du contenu"
5050

51-
#: ../templates/settings.php:15
51+
#: ../templates/settings.php:14
52+
msgid ""
53+
"This is the HTML element where your posts are loaded.<br>If your list of "
54+
"post is in &lt;div id=\"main\"&gt;&lt;/div&gt;, set this parameter to #main"
55+
msgstr ""
56+
"C'est l'élément HTML où vos articles sont chargés.<br>Si votre liste "
57+
"d'articles se trouve dans &lt;div id=\"main\"&gt;&lt;/div&gt;, placez ce "
58+
"paramètre à #main"
59+
60+
#: ../templates/settings.php:18
5261
msgid "Pagination CSS selector"
5362
msgstr "Sélecteur CSS de la pagination"
5463

64+
#: ../templates/settings.php:21
65+
msgid ""
66+
"This is the HTML element which contains the site navigation/pagination."
67+
"<br>If your page selector is in &lt;div class=\"my-pagination\"&gt;&lt;/"
68+
"div&gt;, set this parameter to .my-pagination"
69+
msgstr ""
70+
"C'est l'élément HTML qui contient la navigation/pagination du site.<br>Si "
71+
"votre sélecteur de page est dans &lt;div class=\"ma-pagination\"&gt;&lt;/"
72+
"div&gt;, placez ce paramètre à .ma-pagination"
73+
74+
#: ../templates/settings.php:27
75+
msgid "Remove link after last result"
76+
msgstr "Supprimer le lien après le dernier résultat"
77+
78+
#: ../templates/settings.php:30
79+
msgid ""
80+
"Whether to remove or not the \"Load more posts\" link if there is no more "
81+
"results to load."
82+
msgstr ""
83+
"Supprimer ou non le lien \"Charger plus d'actualités\" s'il ne reste plus de "
84+
"résultats à charger."
85+
5586
#~ msgid "ByScripts Ajax Load More Posts Settings"
5687
#~ msgstr "Paramètres de ByScripts Ajax Load More Posts "

templates/settings.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,25 @@
99
<tbody>
1010
<tr>
1111
<th><label for="<?php echo $this->prefix('content_css_selector')?>"><?php _e('Content CSS selector', $this->identifier) ?></label></th>
12-
<td><input name="<?php echo $this->prefix('content_css_selector')?>" id="<?php echo $this->prefix('content_css_selector')?>" type="text" value="<?php echo get_option($this->prefix('content_css_selector'), '#content') ?>" class="regular-text code"></td>
12+
<td>
13+
<input name="<?php echo $this->prefix('content_css_selector')?>" id="<?php echo $this->prefix('content_css_selector')?>" type="text" value="<?php echo get_option($this->prefix('content_css_selector'), '#content') ?>" class="regular-text code">
14+
<p class="description"><?php _e('This is the HTML element where your posts are loaded.<br>If your list of post is in &lt;div id="main"&gt;&lt;/div&gt;, set this parameter to #main', $this->identifier) ?></p>
15+
</td>
1316
</tr>
1417
<tr>
1518
<th><label for="<?php echo $this->prefix('pagination_css_selector')?>"><?php _e('Pagination CSS selector', $this->identifier) ?></label></th>
16-
<td> <input name="<?php echo $this->prefix('pagination_css_selector')?>" id="<?php echo $this->prefix('pagination_css_selector')?>" type="text" value="<?php echo get_option($this->prefix('pagination_css_selector'), '.pagination') ?>" class="regular-text code"></td>
19+
<td>
20+
<input name="<?php echo $this->prefix('pagination_css_selector')?>" id="<?php echo $this->prefix('pagination_css_selector')?>" type="text" value="<?php echo get_option($this->prefix('pagination_css_selector'), '.pagination') ?>" class="regular-text code">
21+
<p class="description"><?php _e('This is the HTML element which contains the site navigation/pagination.<br>If your page selector is in &lt;div class="my-pagination"&gt;&lt;/div&gt;, set this parameter to .my-pagination', $this->identifier) ?></p>
22+
</td>
1723
</tr>
1824
<tr>
19-
<th><label for="<?php echo $this->prefix('remove_link_after_last_result')?>"><?php _e('Remove link after last result', $this->identifier) ?></label></th>
20-
<td> <input name="<?php echo $this->prefix('remove_link_after_last_result')?>" id="<?php echo $this->prefix('remove_link_after_last_result')?>" type="checkbox" <?php echo get_option($this->prefix('remove_link_after_last_result'), false) ? 'checked="checked"' : '' ?> class="regular-text code"></td>
25+
<th></th>
26+
<td>
27+
<input name="<?php echo $this->prefix('remove_link_after_last_result')?>" id="<?php echo $this->prefix('remove_link_after_last_result')?>" type="checkbox" <?php echo get_option($this->prefix('remove_link_after_last_result'), false) ? 'checked="checked"' : '' ?>>
28+
<label for="<?php echo $this->prefix('remove_link_after_last_result')?>"><?php _e('Remove link after last result', $this->identifier) ?></label>
29+
<p class="description"><?php _e('Whether to remove or not the "Load more posts" link if there is no more results to load.', $this->identifier) ?></p>
30+
</td>
2131
</tr>
2232
</tbody>
2333
</table>

0 commit comments

Comments
 (0)