Commit 8b4bdbba authored by Booloki's avatar Booloki

Add translation update script

parent 7130723e
Pipeline #56 failed with stages
in 14 minutes and 10 seconds
#!/bin/bash
# Wazzuf Ripper internationalization update script (fr language only)
#
# cf. http://www.gnu.org/software/gettext/manual/gettext.html
#
# Dependency: gettext
## Variables
I18N="fr"
TEXT_ENCODING="UTF-8"
CODE_LANGUAGE="Shell"
COPYRIGHT_HOLDER="Nicolas Perrin"
BUGS_EMAIL="booloki@lokizone.net"
SCRIPT_DIR="scripts"
LOCALE_DIR="locale"
SCRIPT_FILES="wazzuf-conf-generator wazzuf-ripper"
## Script
cd "${SCRIPT_DIR}" || exit 1
for SCRIPT_NAME in ${SCRIPT_FILES}; do
# Extracts the tags and creates the template file (e.g. *.pot file)
echo "*** template update ***"
xgettext -L "${CODE_LANGUAGE}" --from-code="${TEXT_ENCODING}" --copyright-holder="${COPYRIGHT_HOLDER}" --msgid-bugs-address="${BUGS_EMAIL}" -d "${SCRIPT_NAME}" "${SCRIPT_NAME}" -o "../${LOCALE_DIR}/${SCRIPT_NAME}.pot"
# Updates a .po file with changes from the .pot file
echo "*** po merge ***"
msgmerge -U "../${LOCALE_DIR}/${I18N}/${SCRIPT_NAME}.po" "../${LOCALE_DIR}/${SCRIPT_NAME}.pot"
# Convert to .mo file
echo "*** mo create ***"
msgfmt "../${LOCALE_DIR}/fr/${SCRIPT_NAME}.po" -o "../${LOCALE_DIR}/${I18N}/LC_MESSAGES/${SCRIPT_NAME}.mo"
done
This diff is collapsed.
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: wazzuf-ripper 6\n"
"Report-Msgid-Bugs-To: booloki@lokizone.net\n"
"POT-Creation-Date: 2017-01-15 18:32+0100\n"
"POT-Creation-Date: 2018-10-21 11:09+0200\n"
"PO-Revision-Date: 2016-02-23 18:37+0100\n"
"Last-Translator: Nicolas Perrin <booloki@lokizone.net>\n"
"Language-Team: French\n"
......@@ -19,39 +19,39 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 1.8.7\n"
#: wazzuf-ripper:16
#: wazzuf-ripper:17
msgid "\\nWazzuf Ripper failed !"
msgstr "\\nWazzuf Ripper a planté !"
#: wazzuf-ripper:247
#: wazzuf-ripper:250
msgid " Start %s %s :\\n%s\\nwith %s video codec\\nand %s %s audio codec(s)"
msgstr ""
" Démarrage de %s %s :\\n%s\\navec le codec vidéo %s\\net le(s) codec(s) "
"audio %s %s"
#: wazzuf-ripper:396
#: wazzuf-ripper:399
msgid "Work in progress:"
msgstr "Travail en cours:"
#: wazzuf-ripper:522
#: wazzuf-ripper:525
msgid "No IMdb ID provided. Skipping..."
msgstr "Aucun ID IMdb fourni. Je passe..."
#: wazzuf-ripper:534
#: wazzuf-ripper:537
msgid "Retrieving IMdb informations..."
msgstr "Récupération des informations IMdb..."
#: wazzuf-ripper:553
#: wazzuf-ripper:556
msgid "\\nManual killed script (Ctrl-C) during extracting working file"
msgstr ""
"\\nScript interrompu manuellement (Ctrl-C) pendant l'extraction de fichier "
"de travail"
#: wazzuf-ripper:598
#: wazzuf-ripper:602
msgid "Extracting %s from %s "
msgstr "Extraction de %s depuis %s "
#: wazzuf-ripper:609
#: wazzuf-ripper:613
msgid ""
"Please now run wazzuf-conf-generator with chosen M2TS file to get more "
"tracks informations,\\nor use M2TS instead of BD in %s.\\n"
......@@ -60,46 +60,46 @@ msgstr ""
"pour obtenir plus d’informations sur les pistes,\\noù utilisez M2TS à la "
"place de BD dans %s.\\n"
#: wazzuf-ripper:629
#: wazzuf-ripper:633
msgid "%s generation"
msgstr "Génération de %s"
#: wazzuf-ripper:650
#: wazzuf-ripper:654
msgid "No chapters file to create. Next..."
msgstr "Pas de fichier de chapitres à créer. Suivant..."
#: wazzuf-ripper:681
#: wazzuf-ripper:685
msgid "\\nManual killed script (Ctrl-C) during checking/extracting subtitles"
msgstr ""
"\\nScript interrompu manuellement (Ctrl-C) pendant la vérification/"
"extraction des sous-titres"
#: wazzuf-ripper:690
#: wazzuf-ripper:695
msgid "No more subtitle track choice. Next..."
msgstr "Plus de choix de piste de sous-titre. Suivant..."
#: wazzuf-ripper:823
#: wazzuf-ripper:828
msgid ""
"\\nManual killed script (Ctrl-C) during audio track(s) extraction/encoding"
msgstr ""
"\\nScript interrompu manuellement (Ctrl-C) pendant l'extraction/encodage de "
"piste(s) audio"
#: wazzuf-ripper:832
#: wazzuf-ripper:838
msgid "No more audio track choice, next..."
msgstr "Plus de choix de piste audio. Suivant..."
#: wazzuf-ripper:903
#: wazzuf-ripper:909
msgid "\\nManual killed script (Ctrl-C) during video encoding"
msgstr "\\nScript interrompu manuellement (Ctrl-C) pendant l'encodage vidéo"
#: wazzuf-ripper:916
#: wazzuf-ripper:923
msgid "Provided TARGET_SIZE is not set to CD, DVD, or an integer ! Exiting."
msgstr ""
"Le paramètre TARGET_SIZE fourni n'est pas mis à CD, DVD ou avec un entier ! "
"Je quitte."
#: wazzuf-ripper:966
#: wazzuf-ripper:973
msgid ""
"h264 video bitrate encoding estimation: %s kb/s.\\nManually adjust the "
"XXRIP_VIDEO_BITRATE value if the final size does not suit you."
......@@ -107,7 +107,7 @@ msgstr ""
"Estimation du débit d'encodage vidéo h264: %s kb/s.\\nAjustez manuellement "
"la valeur de XXRIP_VIDEO_BITRATE si la taille finale ne vous convient pas."
#: wazzuf-ripper:984
#: wazzuf-ripper:991
msgid ""
"Xvid video bitrate encoding estimation: %s kb/s.\\nManually adjust the "
"XXRIP_VIDEO_BITRATE value if the final size does not suit you."
......@@ -115,41 +115,41 @@ msgstr ""
"Estimation du débit d'encodage vidéo Xvid: %s kb/s.\\nAjustez manuellement "
"la valeur de XXRIP_VIDEO_BITRATE si la taille finale ne vous convient pas."
#: wazzuf-ripper:1014
#: wazzuf-ripper:1021
msgid ""
"Warning: VIDEO_CROP is empty ! Run wazzuf-conf-generator for crop detection."
msgstr ""
"Attention: le paramètre VIDEO_CROP est vide ! Lancez wazzuf-conf-generator "
"pour une détection de cadrage."
#: wazzuf-ripper:1028
#: wazzuf-ripper:1035
msgid "%s 2 pass %s encoding\\n"
msgstr "Encodage de %s en %s 2 passes\\n"
#: wazzuf-ripper:1059
#: wazzuf-ripper:1066
msgid "No image attachment. Skipping..."
msgstr "Pas d'image jointe. Je passe..."
#: wazzuf-ripper:1140
#: wazzuf-ripper:1147
msgid "XML tags file generation error. Skipping..."
msgstr "Erreur de génération de fichier XML d'étiquettes. Je passe..."
#: wazzuf-ripper:1158
#: wazzuf-ripper:1165
msgid "\\nManual killed script (Ctrl-C) during final mkv merge"
msgstr "\\nScript interrompu manuellement (Ctrl-C) pendant la fusion finale"
#: wazzuf-ripper:1160
#: wazzuf-ripper:1168
msgid "Final file merge"
msgstr "Fusion finale du fichier"
#: wazzuf-ripper:1216
#: wazzuf-ripper:1227
msgid "nfo file generation"
msgstr "Génération de fichier nfo"
#: wazzuf-ripper:1252
#: wazzuf-ripper:1263
msgid "Taking some screenshots"
msgstr "Prends quelques captures d'écran"
#: wazzuf-ripper:1278
#: wazzuf-ripper:1290
msgid "%s %s is finished"
msgstr "%s %s est terminé"
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: booloki@lokizone.net\n"
"POT-Creation-Date: 2017-01-15 18:32+0100\n"
"POT-Creation-Date: 2018-10-21 11:10+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -17,347 +17,347 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: wazzuf-conf-generator:25
#: wazzuf-conf-generator:27
msgid "Wazzuf Ripper Conf Generator"
msgstr ""
#: wazzuf-conf-generator:26
#: wazzuf-conf-generator:28
msgid "Choice"
msgstr ""
#: wazzuf-conf-generator:27
#: wazzuf-conf-generator:29
msgid "Description"
msgstr ""
#: wazzuf-conf-generator:28
#: wazzuf-conf-generator:30
msgid "Title"
msgstr ""
#: wazzuf-conf-generator:29
#: wazzuf-conf-generator:31
msgid "Language"
msgstr ""
#: wazzuf-conf-generator:30
#: wazzuf-conf-generator:32
msgid "Chapters"
msgstr ""
#: wazzuf-conf-generator:31
#: wazzuf-conf-generator:33
msgid "Channels"
msgstr ""
#: wazzuf-conf-generator:32
#: wazzuf-conf-generator:34
msgid "Lenght"
msgstr ""
#: wazzuf-conf-generator:33
#: wazzuf-conf-generator:35
msgid "Audio tracks"
msgstr ""
#: wazzuf-conf-generator:34
#: wazzuf-conf-generator:36
msgid "Subtitle tracks"
msgstr ""
#: wazzuf-conf-generator:35
#: wazzuf-conf-generator:37
msgid "Next"
msgstr ""
#: wazzuf-conf-generator:36
#: wazzuf-conf-generator:38
msgid "Cancel"
msgstr ""
#: wazzuf-conf-generator:37
#: wazzuf-conf-generator:39
msgid "Quit"
msgstr ""
#: wazzuf-conf-generator:38
#: wazzuf-conf-generator:40
msgid "Yes"
msgstr ""
#: wazzuf-conf-generator:39
#: wazzuf-conf-generator:41
msgid "No"
msgstr ""
#: wazzuf-conf-generator:47
#: wazzuf-conf-generator:49
msgid "Do you want to generate a <b>new Wazzuf Ripper configuration file</b> ?"
msgstr ""
#: wazzuf-conf-generator:96
#: wazzuf-conf-generator:101
msgid "Which media type do you want to rip ?"
msgstr ""
#: wazzuf-conf-generator:97
#: wazzuf-conf-generator:102
msgid "Physical DVD"
msgstr ""
#: wazzuf-conf-generator:98
#: wazzuf-conf-generator:103
msgid "DVD iso file"
msgstr ""
#: wazzuf-conf-generator:99
#: wazzuf-conf-generator:104
msgid "Physical Blu-Ray"
msgstr ""
#: wazzuf-conf-generator:100
#: wazzuf-conf-generator:105
msgid "Blu-Ray iso file"
msgstr ""
#: wazzuf-conf-generator:101
#: wazzuf-conf-generator:106
msgid "m2ts/ts file"
msgstr ""
#: wazzuf-conf-generator:110
#: wazzuf-conf-generator:115
msgid ""
"Please select your <b>source directory</b>\n"
"(m2ts/ts, iso, external subtitles, cover image, episodes list,...)."
msgstr ""
#: wazzuf-conf-generator:122
#: wazzuf-conf-generator:127
msgid "Please select your <b>Disc Directory</b>. "
msgstr ""
#: wazzuf-conf-generator:128
#: wazzuf-conf-generator:133
msgid "Please select your <b>iso file</b> (source directory only). "
msgstr ""
#: wazzuf-conf-generator:154
#: wazzuf-conf-generator:160
msgid "Please select your <b>m2ts/ts file</b> (source directory only). "
msgstr ""
#: wazzuf-conf-generator:179
#: wazzuf-conf-generator:186
msgid "Do you want to change the <b>working files directory</b> (%s) ?"
msgstr ""
#: wazzuf-conf-generator:209
#: wazzuf-conf-generator:216
msgid "What is the type of this video media ?"
msgstr ""
#: wazzuf-conf-generator:210
#: wazzuf-conf-generator:217
msgid "Movie"
msgstr ""
#: wazzuf-conf-generator:211
#: wazzuf-conf-generator:218
msgid "TV show/serie (multiple videos)"
msgstr ""
#: wazzuf-conf-generator:212
#: wazzuf-conf-generator:219
msgid "Musical video"
msgstr ""
#: wazzuf-conf-generator:221
#: wazzuf-conf-generator:228
msgid "Videos informations"
msgstr ""
#: wazzuf-conf-generator:222
#: wazzuf-conf-generator:229
msgid "Original title *"
msgstr ""
#: wazzuf-conf-generator:223
#: wazzuf-conf-generator:230
msgid "Release date"
msgstr ""
#: wazzuf-conf-generator:304
#: wazzuf-conf-generator:311
msgid "Please provide some tags"
msgstr ""
#: wazzuf-conf-generator:305
#: wazzuf-conf-generator:312
msgid "Rip tag (BDRIP DVDRIP DVDDUMP 1080p 720p...)"
msgstr ""
#: wazzuf-conf-generator:306
#: wazzuf-conf-generator:313
msgid "Audio tag (MULTI ENGLISH subforced...)"
msgstr ""
#: wazzuf-conf-generator:307
#: wazzuf-conf-generator:314
msgid "Signature tag"
msgstr ""
#: wazzuf-conf-generator:308
#: wazzuf-conf-generator:315
msgid "Comment"
msgstr ""
#: wazzuf-conf-generator:324
#: wazzuf-conf-generator:332
msgid "Movie director"
msgstr ""
#: wazzuf-conf-generator:335
#: wazzuf-conf-generator:343
msgid "Artist/Band Name"
msgstr ""
#: wazzuf-conf-generator:345
#: wazzuf-conf-generator:353
msgid "About the Show"
msgstr ""
#: wazzuf-conf-generator:346
#: wazzuf-conf-generator:354
msgid "Season number (ex: 02)"
msgstr ""
#: wazzuf-conf-generator:347
#: wazzuf-conf-generator:355
msgid "Total episodes number in the season"
msgstr ""
#: wazzuf-conf-generator:368
#: wazzuf-conf-generator:376
msgid "About the episodes list (text file)"
msgstr ""
#: wazzuf-conf-generator:369
#: wazzuf-conf-generator:377
msgid "None"
msgstr ""
#: wazzuf-conf-generator:370
#: wazzuf-conf-generator:378
msgid "Select one (in %s source directory only)"
msgstr ""
#: wazzuf-conf-generator:371
#: wazzuf-conf-generator:379
msgid "Create one"
msgstr ""
#: wazzuf-conf-generator:402
#: wazzuf-conf-generator:411
msgid ""
"Episode file syntax with ordered lines like: 05 - The haunted episode.\n"
"Line numbers corresponds to CHAPTERS or TITLES (depends on "
"DVD_EPISODES_ORG). "
msgstr ""
#: wazzuf-conf-generator:455
#: wazzuf-conf-generator:465
msgid "BD analyse "
msgstr ""
#: wazzuf-conf-generator:463
#: wazzuf-conf-generator:473
msgid "AACS Key Error. Exiting ! "
msgstr ""
#: wazzuf-conf-generator:471
#: wazzuf-conf-generator:481
msgid "Do you want to <b>make a local iso</b> file of your BD ? "
msgstr ""
#: wazzuf-conf-generator:529
#: wazzuf-conf-generator:535
msgid "BD Title(s) choice"
msgstr ""
#: wazzuf-conf-generator:549
#: wazzuf-conf-generator:555
msgid ""
"The longest track is <b>Title %s</b> / %s (Chapters: %s).\n"
"This one will be use for cropping detection."
msgstr ""
#: wazzuf-conf-generator:582
#: wazzuf-conf-generator:588
msgid "Do you want to <b>make a local iso</b> file of your DVD ? "
msgstr ""
#: wazzuf-conf-generator:603
#: wazzuf-conf-generator:608
msgid "DVD analyse "
msgstr ""
#: wazzuf-conf-generator:659
#: wazzuf-conf-generator:663
msgid "DVD Title(s) choice"
msgstr ""
#: wazzuf-conf-generator:681
#: wazzuf-conf-generator:685
msgid ""
"The longest track is <b>Title %s</b>.\n"
"This one will be use for cropping detection."
msgstr ""
#: wazzuf-conf-generator:688
#: wazzuf-conf-generator:692
msgid "M2TS analyse "
msgstr ""
#: wazzuf-conf-generator:725
#: wazzuf-conf-generator:730
msgid "The m2ts/ts video crop has not been found "
msgstr ""
#: wazzuf-conf-generator:727
#: wazzuf-conf-generator:732
msgid "The m2ts/ts video crop has been set to %s"
msgstr ""
#: wazzuf-conf-generator:757
#: wazzuf-conf-generator:762
msgid "Audio analyze "
msgstr ""
#: wazzuf-conf-generator:781
#: wazzuf-conf-generator:785
msgid "Audio analyze - Track %s Channel"
msgstr ""
#: wazzuf-conf-generator:788
#: wazzuf-conf-generator:792
msgid "Audio analyze - Track %s BitRate"
msgstr ""
#: wazzuf-conf-generator:826 wazzuf-conf-generator:1068
#: wazzuf-conf-generator:830 wazzuf-conf-generator:1068
msgid "Audio track(s) choice"
msgstr ""
#: wazzuf-conf-generator:884
#: wazzuf-conf-generator:886
msgid "Subtitle analyze "
msgstr ""
#: wazzuf-conf-generator:942 wazzuf-conf-generator:1167
#: wazzuf-conf-generator:943 wazzuf-conf-generator:1163
msgid "Subtitle track(s) choice"
msgstr ""
#: wazzuf-conf-generator:992
#: wazzuf-conf-generator:994
msgid "The BD video crop has not been found. "
msgstr ""
#: wazzuf-conf-generator:995
#: wazzuf-conf-generator:997
msgid "The BD video crop has been set to %s"
msgstr ""
#: wazzuf-conf-generator:1015 wazzuf-conf-generator:1024
#: wazzuf-conf-generator:1016 wazzuf-conf-generator:1025
msgid "The DVD video crop has not been found. "
msgstr ""
#: wazzuf-conf-generator:1017
#: wazzuf-conf-generator:1018
msgid ""
"The DVD video crop has been set to %s.\n"
"This is the biggest one. Crop detection for all choosen Titles are in conf "
"file too."
msgstr ""
#: wazzuf-conf-generator:1027
#: wazzuf-conf-generator:1028
msgid "The DVD video crop has been set to %s"
msgstr ""
#: wazzuf-conf-generator:1222
#: wazzuf-conf-generator:1217
msgid "Other options choice"
msgstr ""
#: wazzuf-conf-generator:1223
#: wazzuf-conf-generator:1218
msgid "NFO file creation"
msgstr ""
#: wazzuf-conf-generator:1224
#: wazzuf-conf-generator:1219
msgid "Video screenshots creation"
msgstr ""
#: wazzuf-conf-generator:1225
#: wazzuf-conf-generator:1220
msgid "Debug"
msgstr ""
#: wazzuf-conf-generator:1266
#: wazzuf-conf-generator:1261
msgid "Please choose your default video codec"
msgstr ""
#: wazzuf-conf-generator:1270
#: wazzuf-conf-generator:1265
msgid "Dump (faster) (original video track, mpeg source only)"
msgstr ""
#: wazzuf-conf-generator:1271
#: wazzuf-conf-generator:1266
msgid "Dump with crop (mpeg source only)"
msgstr ""
#: wazzuf-conf-generator:1290
#: wazzuf-conf-generator:1285
msgid "Please choose your default audio codec"
msgstr ""
#: wazzuf-conf-generator:1291
#: wazzuf-conf-generator:1286
msgid "AC3 (DTS source only)"
msgstr ""
#: wazzuf-conf-generator:1295
#: wazzuf-conf-generator:1290
msgid "Dump (original audio track)"
msgstr ""
#: wazzuf-conf-generator:1307
#: wazzuf-conf-generator:1302
msgid ""
"Your Wazzuf configuration file has been saved to <b>%s</b>\n"
"(If you want to use it with Wazzuf Ripper, it must be %s )"
......
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: booloki@lokizone.net\n"
"POT-Creation-Date: 2017-01-15 18:32+0100\n"
"POT-Creation-Date: 2018-10-21 11:10+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -17,118 +17,118 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: wazzuf-ripper:16
#: wazzuf-ripper:17
msgid "\\nWazzuf Ripper failed !"
msgstr ""
#: wazzuf-ripper:247
#: wazzuf-ripper:250
msgid " Start %s %s :\\n%s\\nwith %s video codec\\nand %s %s audio codec(s)"
msgstr ""
#: wazzuf-ripper:396
#: wazzuf-ripper:399
msgid "Work in progress:"
msgstr ""
#: wazzuf-ripper:522
#: wazzuf-ripper:525
msgid "No IMdb ID provided. Skipping..."
msgstr ""
#: wazzuf-ripper:534
#: wazzuf-ripper:537
msgid "Retrieving IMdb informations..."
msgstr ""
#: wazzuf-ripper:553
#: wazzuf-ripper:556
msgid "\\nManual killed script (Ctrl-C) during extracting working file"
msgstr ""
#: wazzuf-ripper:598
#: wazzuf-ripper:602
msgid "Extracting %s from %s "
msgstr ""
#: wazzuf-ripper:609
#: wazzuf-ripper:613
msgid ""
"Please now run wazzuf-conf-generator with chosen M2TS file to get more "
"tracks informations,\\nor use M2TS instead of BD in %s.\\n"
msgstr ""
#: wazzuf-ripper:629
#: wazzuf-ripper:633
msgid "%s generation"
msgstr ""
#: wazzuf-ripper:650
#: wazzuf-ripper:654
msgid "No chapters file to create. Next..."
msgstr ""