Commit 43df3a9e authored by Tankypon's avatar Tankypon

French translation is now done!

parent aaad95b4
...@@ -57,8 +57,9 @@ class DontpanicAdapter(DontPanic): ...@@ -57,8 +57,9 @@ class DontpanicAdapter(DontPanic):
if __name__ == '__main__': if __name__ == '__main__':
parser = ServerParser(prog=progname, description=_("Dontpanic is a python app to look for any movie or \ parser = ServerParser(prog=progname, description=_("Dontpanic is a python app to look for any movie or "
serie and watch them in streaming. You can deploy it on your server and make it available for the world.")) "serie and watch them in streaming. You can deploy it on your "
"server and make it available for the world."))
parser.add_argument("-v", "--verbose", action="count", default=0, help=_("Increase output verbosity")) parser.add_argument("-v", "--verbose", action="count", default=0, help=_("Increase output verbosity"))
parser.add_argument("--version", action="version", version=progversion, help=_("Print version")) parser.add_argument("--version", action="version", version=progversion, help=_("Print version"))
...@@ -66,7 +67,7 @@ if __name__ == '__main__': ...@@ -66,7 +67,7 @@ if __name__ == '__main__':
parser.add_argument("adapter", choices=serverlist, help=_("The adapter to use")) parser.add_argument("adapter", choices=serverlist, help=_("The adapter to use"))
parser.add_argument("admin", help=_("Admin user name")) parser.add_argument("admin", help=_("Admin user name"))
parser.add_argument("password", help=_("Admin password")) parser.add_argument("password", help=_("Admin password"))
parser.add_argument("port", help=_("Which port dontpanic will listen")) parser.add_argument("port", help=_("Which port Don't Panic will listen"))
args = parser.parse_args() args = parser.parse_args()
......
...@@ -390,13 +390,15 @@ class DontPanic: ...@@ -390,13 +390,15 @@ class DontPanic:
with DontPanicDB() as database: with DontPanicDB() as database:
if database.add_user(username, password): if database.add_user(username, password):
bravo = _("Congratulations, your subscriptino is a success") bravo = _("Congratulations, your subscription is a success")
loginmsg = _("Now, log in") loginmsg = _("Now, log in")
return '''<h1>{}</h1> return '''<h1>{}</h1>
<p><a href="/me">{}</a> ;)</p> <p><a href="/me">{}</a> ;)</p>
'''.format(bravo, loginmsg) '''.format(bravo, loginmsg)
else: else:
return _('<h1>Oh no! User {} already exists</h1>').format(username) sorry = _("Oh no!")
reason = _("User {} already exists".format(username))
return '<h1>{} {}</h1>'.format(sorry, reason)
@self.app.route('/unsubscribe') @self.app.route('/unsubscribe')
def unsubscribe(): def unsubscribe():
...@@ -675,7 +677,7 @@ class DontPanic: ...@@ -675,7 +677,7 @@ class DontPanic:
@self.app.route('/dlsub/<lang>/<hash>/<filename:path>') @self.app.route('/dlsub/<lang>/<hash>/<filename:path>')
def dlsub(lang, hash_, filename): def dlsub(lang, hash_, filename):
if dl_subtitle(hash_, lang, os.path.join(self.tmp, filename)): if dl_subtitle(hash_, lang, os.path.join(self.tmp, filename)):
msg1 = _("Success : your subtitles ar in the video directory") msg1 = _("Success: your subtitles are in the torrent folder")
msg2 = _("Click here if you want to download them on you computer") msg2 = _("Click here if you want to download them on you computer")
msg3 = _("This page will close in 5.42 seconds") msg3 = _("This page will close in 5.42 seconds")
return '''<p>{}<br /> return '''<p>{}<br />
...@@ -847,8 +849,9 @@ class DontPanic: ...@@ -847,8 +849,9 @@ class DontPanic:
if __name__ == '__main__': if __name__ == '__main__':
parser = ArgumentParser(prog=progname, description=_("Dontpanic is a python app to look for any movie or \ parser = ArgumentParser(prog=progname, description=_("Dontpanic is a python app to look for any movie or"
serie and watch them in streaming. It looks like popcorntime, but doesn't depend of a centralized api.")) " serie and watch them in streaming. It looks like popcorntime"
", but doesn't depend of a centralized api."))
parser.add_argument("-v", "--verbose", action="count", default=0, help=_("Increase output verbosity")) parser.add_argument("-v", "--verbose", action="count", default=0, help=_("Increase output verbosity"))
parser.add_argument("--version", action="version", version=progversion, help=_("Print version")) parser.add_argument("--version", action="version", version=progversion, help=_("Print version"))
......
...@@ -7,7 +7,7 @@ msgid "" ...@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-26 17:20+0100\n" "POT-Creation-Date: 2016-01-26 19:05+0100\n"
"PO-Revision-Date: 2016-01-11 10:28+0100\n" "PO-Revision-Date: 2016-01-11 10:28+0100\n"
"Last-Translator: Xavier Cartron <thuban@yeuxdelibad.net>\n" "Last-Translator: Xavier Cartron <thuban@yeuxdelibad.net>\n"
"Language-Team: French\n" "Language-Team: French\n"
...@@ -22,7 +22,7 @@ msgstr "" ...@@ -22,7 +22,7 @@ msgstr ""
msgid "Update translation for Dontpanic." msgid "Update translation for Dontpanic."
msgstr "" msgstr ""
#: translation.py:65 dontpanic.py:845 dontpanic-server.py:63 #: translation.py:65 dontpanic.py:856 dontpanic-server.py:64
msgid "Increase output verbosity" msgid "Increase output verbosity"
msgstr "" msgstr ""
...@@ -31,7 +31,7 @@ msgid "Update template for translators" ...@@ -31,7 +31,7 @@ msgid "Update template for translators"
msgstr "" msgstr ""
#: translation.py:68 #: translation.py:68
msgid "Update po from pot file" msgid "Update .po files from .pot file"
msgstr "" msgstr ""
#: translation.py:69 #: translation.py:69
...@@ -63,7 +63,7 @@ msgid "Get some beer before searching" ...@@ -63,7 +63,7 @@ msgid "Get some beer before searching"
msgstr "" msgstr ""
#: utils.py:203 #: utils.py:203
msgid "Back to dontpanic main page" msgid "Back to main page"
msgstr "" msgstr ""
#: utils.py:204 #: utils.py:204
...@@ -95,11 +95,11 @@ msgid "Show play link at" ...@@ -95,11 +95,11 @@ msgid "Show play link at"
msgstr "" msgstr ""
#: utils.py:211 #: utils.py:211
msgid "Upload limit in kB (-1 is no limit) :" msgid "Set upload limit in kB (-1 is no limit):"
msgstr "" msgstr ""
#: utils.py:212 #: utils.py:212
msgid "Download limit in kB (-1 is no limit) :" msgid "Set download limit in kB (-1 is no limit):"
msgstr "" msgstr ""
#: utils.py:213 #: utils.py:213
...@@ -123,7 +123,7 @@ msgid "Administration" ...@@ -123,7 +123,7 @@ msgid "Administration"
msgstr "" msgstr ""
#: utils.py:218 #: utils.py:218
msgid "Stop don't panic" msgid "Stop Don't Panic"
msgstr "" msgstr ""
#: utils.py:219 #: utils.py:219
...@@ -159,245 +159,249 @@ msgid "See also" ...@@ -159,245 +159,249 @@ msgid "See also"
msgstr "" msgstr ""
#: utils.py:227 #: utils.py:227
msgid "Director : " msgid "Director: "
msgstr "" msgstr ""
#: utils.py:228 #: utils.py:228
msgid "Writer : " msgid "Writers: "
msgstr "" msgstr ""
#: utils.py:229 #: utils.py:229
msgid "Actors : " msgid "Actors: "
msgstr "" msgstr ""
#: utils.py:230 #: utils.py:230
msgid "Subtitle (or any extra words) :" msgid "Subtitle (or any extra words):"
msgstr "" msgstr ""
#: utils.py:231 #: utils.py:231
msgid "Search on :" msgid "Search on:"
msgstr "" msgstr ""
#: utils.py:232 #: utils.py:232
msgid "Watch now" msgid "Watch now"
msgstr "" msgstr ""
#: dontpanic.py:68 #: dontpanic.py:69
msgid "Name" msgid "Name"
msgstr "" msgstr ""
#: dontpanic.py:69 #: dontpanic.py:70
msgid "Size" msgid "Size"
msgstr "" msgstr ""
#: dontpanic.py:70 #: dontpanic.py:71
msgid "Leechs" msgid "Leechs"
msgstr "" msgstr ""
#: dontpanic.py:71 #: dontpanic.py:72
msgid "Seeds" msgid "Seeds"
msgstr "" msgstr ""
#: dontpanic.py:102 #: dontpanic.py:103
msgid "More results" msgid "More results"
msgstr "" msgstr ""
#: dontpanic.py:105 #: dontpanic.py:106
msgid "There is no result for your search, try something else" msgid "There is no result for your search, try something else"
msgstr "" msgstr ""
#: dontpanic.py:141 #: dontpanic.py:142
msgid "Season" msgid "Season"
msgstr "" msgstr ""
#: dontpanic.py:142 #: dontpanic.py:143
msgid "Episode" msgid "Episode"
msgstr "" msgstr ""
#: dontpanic.py:143 #: dontpanic.py:144
msgid "Title" msgid "Title"
msgstr "" msgstr ""
#: dontpanic.py:144 #: dontpanic.py:145
msgid "Release date" msgid "Release date"
msgstr "" msgstr ""
#: dontpanic.py:145 #: dontpanic.py:146
msgid "Seen" msgid "Seen"
msgstr "" msgstr ""
#: dontpanic.py:164 #: dontpanic.py:165
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
#: dontpanic.py:167 #: dontpanic.py:168
msgid "No" msgid "No"
msgstr "" msgstr ""
#: dontpanic.py:200 #: dontpanic.py:201
msgid "Do you mean ? " msgid "Do you mean ? "
msgstr "" msgstr ""
#: dontpanic.py:242 dontpanic.py:251 #: dontpanic.py:243 dontpanic.py:252
msgid "Watch again" msgid "Watch again"
msgstr "" msgstr ""
#: dontpanic.py:243 dontpanic.py:252 #: dontpanic.py:244 dontpanic.py:253
msgid "Remove" msgid "Remove"
msgstr "" msgstr ""
#: dontpanic.py:335 dontpanic.py:372 dontpanic.py:697 #: dontpanic.py:336 dontpanic.py:373 dontpanic.py:700
msgid "Username" msgid "Username"
msgstr "" msgstr ""
#: dontpanic.py:336 dontpanic.py:373 dontpanic.py:698 #: dontpanic.py:337 dontpanic.py:374 dontpanic.py:701
msgid "Password" msgid "Password"
msgstr "" msgstr ""
#: dontpanic.py:337 dontpanic.py:374 dontpanic.py:699 #: dontpanic.py:338 dontpanic.py:375 dontpanic.py:702
msgid "Login" msgid "Login"
msgstr "" msgstr ""
#: dontpanic.py:338 dontpanic.py:375 #: dontpanic.py:339 dontpanic.py:376
msgid "Register" msgid "Register"
msgstr "" msgstr ""
#: dontpanic.py:363 #: dontpanic.py:364
msgid "Your login information was incorrect" msgid "Your login information was incorrect"
msgstr "" msgstr ""
#: dontpanic.py:392 #: dontpanic.py:393
msgid "Congratulations, your subscriptino is a success" msgid "Congratulations, your subscription is a success"
msgstr "" msgstr ""
#: dontpanic.py:393 #: dontpanic.py:394
msgid "Now, log in" msgid "Now, log in"
msgstr "" msgstr ""
#: dontpanic.py:398 #: dontpanic.py:399
msgid "<h1>Oh no! User {} already exists</h1>" msgid "Oh no!"
msgstr "" msgstr ""
#: dontpanic.py:404 #: dontpanic.py:400
msgid "You're not logged in" msgid "User {} already exists"
msgstr "" msgstr ""
#: dontpanic.py:407 #: dontpanic.py:407
msgid "You're not logged in"
msgstr ""
#: dontpanic.py:410
msgid "Your accoun't is deleted" msgid "Your accoun't is deleted"
msgstr "" msgstr ""
#: dontpanic.py:409 #: dontpanic.py:412
msgid "" msgid ""
"An error occured while deleting your account. Please contact the " "An error occured while deleting your account. Please contact the "
"administrator" "administrator"
msgstr "" msgstr ""
#: dontpanic.py:446 dontpanic.py:474 #: dontpanic.py:449 dontpanic.py:477
msgid "Error while searching. Try another engine" msgid "Error while searching. Try another engine"
msgstr "" msgstr ""
#: dontpanic.py:582 #: dontpanic.py:585
msgid "Stop this download" msgid "Stop this download"
msgstr "" msgstr ""
#: dontpanic.py:590 #: dontpanic.py:593
msgid "Play" msgid "Play"
msgstr "" msgstr ""
#: dontpanic.py:592 #: dontpanic.py:595
msgid "Find subtitles" msgid "Find subtitles"
msgstr "" msgstr ""
#: dontpanic.py:604 #: dontpanic.py:607
msgid "Only the administrator can delete a download" msgid "Only the administrator can delete a download"
msgstr "" msgstr ""
#: dontpanic.py:611 #: dontpanic.py:614
msgid "Torrent deleted" msgid "Torrent deleted"
msgstr "" msgstr ""
#: dontpanic.py:625 #: dontpanic.py:628
msgid "Play with external video player" msgid "Play with external video player"
msgstr "" msgstr ""
#: dontpanic.py:626 #: dontpanic.py:629
msgid "Download the video" msgid "Download the video"
msgstr "" msgstr ""
#: dontpanic.py:651 #: dontpanic.py:654
msgid "Look for subtitles on" msgid "Look for subtitles on"
msgstr "" msgstr ""
#: dontpanic.py:657 #: dontpanic.py:660
msgid "Choose a language to download subtitle" msgid "Choose a language to download subtitle"
msgstr "" msgstr ""
#: dontpanic.py:666 #: dontpanic.py:669
msgid "No subtitle available on subdb" msgid "No subtitle available on subdb"
msgstr "" msgstr ""
#: dontpanic.py:677 #: dontpanic.py:680
msgid "Success : your subtitles ar in the video directory" msgid "Success: your subtitles are in the torrent folder"
msgstr "" msgstr ""
#: dontpanic.py:678 #: dontpanic.py:681
msgid "Click here if you want to download them on you computer" msgid "Click here if you want to download them on you computer"
msgstr "" msgstr ""
#: dontpanic.py:679 #: dontpanic.py:682
msgid "This page will close in 5.42 seconds" msgid "This page will close in 5.42 seconds"
msgstr "" msgstr ""
#: dontpanic.py:690 #: dontpanic.py:693
msgid "Failed to download subtitles" msgid "Failed to download subtitles"
msgstr "" msgstr ""
#: dontpanic.py:696 #: dontpanic.py:699
msgid "Only the administrator can see this page" msgid "Only the administrator can see this page"
msgstr "" msgstr ""
#: dontpanic.py:728 #: dontpanic.py:731
msgid "Go to hell, take the highway. You are not the administrator." msgid "Go to hell, take the highway. You are not the administrator."
msgstr "" msgstr ""
#: dontpanic.py:756 #: dontpanic.py:759
msgid "Don't Panic is now off" msgid "Don't Panic is now off"
msgstr "" msgstr ""
#: dontpanic.py:756 #: dontpanic.py:759
msgid "See you soon" msgid "See you soon"
msgstr "" msgstr ""
#: dontpanic.py:842 #: dontpanic.py:852
msgid "" msgid ""
"Dontpanic is a python app to look for any movie or serie and watch them " "Dontpanic is a python app to look for any movie or serie and watch them in "
"in streaming. It looks like popcorntime, but doesn't depend of a centralized " "streaming. It looks like popcorntime, but doesn't depend of a centralized "
"api." "api."
msgstr "" msgstr ""
#: dontpanic.py:846 dontpanic-server.py:64 #: dontpanic.py:857 dontpanic-server.py:65
msgid "Print version" msgid "Print version"
msgstr "" msgstr ""
#: dontpanic-server.py:60 #: dontpanic-server.py:60
msgid "" msgid ""
"Dontpanic is a python app to look for any movie or serie and watch them " "Dontpanic is a python app to look for any movie or serie and watch them in "
"in streaming. You can deploy it on your server and make it available for the " "streaming. You can deploy it on your server and make it available for the "
"world." "world."
msgstr "" msgstr ""
#: dontpanic-server.py:66 #: dontpanic-server.py:67
msgid "The adapter to use" msgid "The adapter to use"
msgstr "" msgstr ""
#: dontpanic-server.py:67 #: dontpanic-server.py:68
msgid "Admin user name" msgid "Admin user name"
msgstr "" msgstr ""
#: dontpanic-server.py:68 #: dontpanic-server.py:69
msgid "Admin password" msgid "Admin password"
msgstr "" msgstr ""
#: dontpanic-server.py:69 #: dontpanic-server.py:70
msgid "Which port dontpanic will listen" msgid "Which port Don't Panic will listen"
msgstr "" msgstr ""
...@@ -8,7 +8,7 @@ msgid "" ...@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: dontpanic\n" "Project-Id-Version: dontpanic\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-26 17:20+0100\n" "POT-Creation-Date: 2016-01-26 19:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -21,7 +21,7 @@ msgstr "" ...@@ -21,7 +21,7 @@ msgstr ""
msgid "Update translation for Dontpanic." msgid "Update translation for Dontpanic."
msgstr "" msgstr ""
#: translation.py:65 dontpanic.py:845 dontpanic-server.py:63 #: translation.py:65 dontpanic.py:856 dontpanic-server.py:64
msgid "Increase output verbosity" msgid "Increase output verbosity"
msgstr "" msgstr ""
...@@ -30,7 +30,7 @@ msgid "Update template for translators" ...@@ -30,7 +30,7 @@ msgid "Update template for translators"
msgstr "" msgstr ""
#: translation.py:68 #: translation.py:68
msgid "Update po from pot file" msgid "Update .po files from .pot file"
msgstr "" msgstr ""
#: translation.py:69 #: translation.py:69
...@@ -62,7 +62,7 @@ msgid "Get some beer before searching" ...@@ -62,7 +62,7 @@ msgid "Get some beer before searching"
msgstr "" msgstr ""
#: utils.py:203 #: utils.py:203
msgid "Back to dontpanic main page" msgid "Back to main page"
msgstr "" msgstr ""
#: utils.py:204 #: utils.py:204
...@@ -94,11 +94,11 @@ msgid "Show play link at" ...@@ -94,11 +94,11 @@ msgid "Show play link at"
msgstr "" msgstr ""
#: utils.py:211 #: utils.py:211
msgid "Upload limit in kB (-1 is no limit) :" msgid "Set upload limit in kB (-1 is no limit):"
msgstr "" msgstr ""
#: utils.py:212 #: utils.py:212
msgid "Download limit in kB (-1 is no limit) :" msgid "Set download limit in kB (-1 is no limit):"
msgstr "" msgstr ""
#: utils.py:213 #: utils.py:213
...@@ -122,7 +122,7 @@ msgid "Administration" ...@@ -122,7 +122,7 @@ msgid "Administration"
msgstr "" msgstr ""
#: utils.py:218 #: utils.py:218
msgid "Stop don't panic" msgid "Stop Don't Panic"
msgstr "" msgstr ""
#: utils.py:219 #: utils.py:219
...@@ -158,245 +158,249 @@ msgid "See also" ...@@ -158,245 +158,249 @@ msgid "See also"
msgstr "" msgstr ""
#: utils.py:227 #: utils.py:227
msgid "Director : " msgid "Director: "
msgstr "" msgstr ""
#: utils.py:228 #: utils.py:228
msgid "Writer : " msgid "Writers: "
msgstr "" msgstr ""
#: utils.py:229 #: utils.py:229
msgid "Actors : " msgid "Actors: "
msgstr "" msgstr ""
#: utils.py:230 #: utils.py:230
msgid "Subtitle (or any extra words) :" msgid "Subtitle (or any extra words):"
msgstr "" msgstr ""
#: utils.py:231 #: utils.py:231
msgid "Search on :" msgid "Search on:"
msgstr "" msgstr ""
#: utils.py:232 #: utils.py:232
msgid "Watch now" msgid "Watch now"
msgstr "" msgstr ""
#: dontpanic.py:68 #: dontpanic.py:69
msgid "Name" msgid "Name"
msgstr "" msgstr ""
#: dontpanic.py:69 #: dontpanic.py:70
msgid "Size" msgid "Size"
msgstr "" msgstr ""
#: dontpanic.py:70 #: dontpanic.py:71
msgid "Leechs" msgid "Leechs"
msgstr "" msgstr ""
#: dontpanic.py:71 #: dontpanic.py:72
msgid "Seeds" msgid "Seeds"
msgstr "" msgstr ""
#: dontpanic.py:102 #: dontpanic.py:103
msgid "More results" msgid "More results"
msgstr "" msgstr ""
#: dontpanic.py:105 #: dontpanic.py:106
msgid "There is no result for your search, try something else" msgid "There is no result for your search, try something else"
msgstr "" msgstr ""
#: dontpanic.py:141 #: dontpanic.py:142
msgid "Season" msgid "Season"
msgstr "" msgstr ""
#: dontpanic.py:142 #: dontpanic.py:143
msgid "Episode" msgid "Episode"
msgstr "" msgstr ""
#: dontpanic.py:143 #: dontpanic.py:144
msgid "Title" msgid "Title"
msgstr ""