alexadam / save-as-ebook

Save a web page/selection as an eBook (.epub format) - a Chrome/Firefox/Opera Web Extension
MIT License
1.1k stars 70 forks source link

May I help you to translate extension in French #20

Closed fbocquet closed 5 years ago

fbocquet commented 6 years ago

Your extension is awesome for public schools and teacher. May I help you to translate it in french for free ? I'm in charge of prospective in french ministry of education. Regards.

alexadam commented 6 years ago

Thanks for the message! If you can do the translation, it would be awesome. I don't know exactly how to handle multiple languages - maybe I have to publish the french version targeted to some countries. I'll search for more info.

alexadam commented 6 years ago

Hi, I added support for internationalization. You can find the file 'messages.json' under _locales/fr or /en. I translated some of the messages with google translate just for testing. All you have to do is to translate each 'message' field. If you find it easier, I can extract all the messages as a plain text list. Let me know if there is anything else I should do or change.

When you finish you can do a Pull Request or send it to me and I'll update it.

Thanks

Edit: here is a link to the file https://github.com/alexadam/save-as-ebook/blob/master/web-extension/_locales/fr/messages.json

Edit 2: in my test, google translated a menu entry to a longer string that does not fit in a single line. It's not a problem but maybe you can 'optimize' the messages :)

ghost commented 6 years ago

Here you are the messages.json in French filled with missing translations. I also fix some punctuation. I didn't translate the word 'eBook' as it's usual in french.

messages.json.txt

fbocquet commented 6 years ago

Hi, Thanks for this job ! Please find attach file with some improvement in french « save » translated with enregistrer and not sauver ;-) et some other improvement Regard

Le 21 mars 2018 à 20:53, pumpk0n notifications@github.com a écrit :

Here you are the messages.json in French filled with missing translations. I also fix some punctuation. I didn't translate the word 'eBook' as it's usual in french.

messages.json.txt https://github.com/alexadam/save-as-ebook/files/1835016/messages.json.txt — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alexadam/save-as-ebook/issues/20#issuecomment-375074524, or mute the thread https://github.com/notifications/unsubscribe-auth/ADFZotxEY9fNYdnhOVBGurgyjTLaMZUjks5tgq_PgaJpZM4QFtif.

o————————————————————o François BOCQUET 06 62 36 44 04 Portfolio : http://fr.linkedin.com/in/fbocquet/ fbocquet@gmail.com

{ "extName": { "message": "Enregistrer comme eBook", "description": "Nom de l'extension" }, "includeStyle": { "message": "Inclure le style" }, "styleLabel": { "message": "Style personnalisé :" }, "applyStyle": { "message": "Appliquer" }, "editStyles": { "message": "Éditer les styles..." }, "savePage": { "message": "Enregistrer la page" }, "saveSelection": { "message": "Enregistrer la sélection" }, "pageChapter": { "message": "Ajouter la page en tant que chapitre" }, "selectionChapter": { "message": "Ajouter la sélection en tant que chapitre" }, "editChapters": { "message": "Modifier les chapitres..." }, "waitMessage": { "message": "Merci de patienter..." }, "chapterEditorTitle": { "message": "Éditeur de chapitre" }, "ebookTitleLabel": { "message": "Titre de l'eBook :" }, "rawPreview": { "message": "Aperçu brut" }, "remove": { "message": "Retirer" }, "removeChapters": { "message": "Supprimer les chapitres" }, "removeChaptersConfirm": { "message": "Voulez-vous supprimer tous les chapitres ?" }, "cancel": { "message": "Annuler" }, "generateEbook": { "message": "Générer l'eBook..." }, "saveChanges": { "message": "Enregistrer les modifications" }, "emptyBookWarning": { "message": "Impossible de générer un eBook vide !" }, "confirmDeleteStyle": { "message": "Êtes-vous sûr de vouloir supprimer ce style ?" }, "invalidRegex": { "message": "Expression régulière invalide" }, "styleSaved": { "message": "Style enregistré !" }, "styleEditor": { "message": "Éditeur de style" }, "selectExistingCSS": { "message": "Sélectionner un style existant" }, "orLabel": { "message": "ou" }, "createNewStyle": { "message": "Créer un nouveau style" }, "styleNameLabel": { "message": "Nom" }, "howToWriteRegexLabel": { "message": "Comment écrire une expression régulière" }, "removeStyle": { "message": "Supprimer le style" }, "saveStyle": { "message": "Enregistrer le style" }

}

alexadam commented 6 years ago

Thank you both for this! I'll add it in the next release.