« Wikinews:Salle café/Archives17 » : différence entre les versions

Contenu supprimé Contenu ajouté
Bawolff (discuter | contributions)
Ligne 801 :
::::Le système de Wikisource est très intéréssant je trouve. [[Utilisateur:Mikani|''mik'']]<font color="blue">[[Special:Contributions/Mikani|@]]</font>[[Discussion_Utilisateur:Mikani|''ni'']] 9 janvier 2010 à 22:37 (UTC)
:I've started to add i18n support (not complete yet) to en wikinews's gadget [[media:EasyPeerReview-filling_out.png|easyPeerReview]]. So far the following needs to be translated (there will be more later. translate the part in quotes) :
=== Texte 1 ===
<source lang='javascript'>
Bawolff.review_i18n = {
Ligne 831 ⟶ 832 :
</source>
Cheers. [[Utilisateur:Bawolff|Bawolff]] 10 janvier 2010 à 09:43 (UTC)
=== Traduction 1 ===
 
<source lang='javascript'>
Bawolff.review_i18n = {
Ligne 863 ⟶ 864 :
:Voilà une première passe de traduction, si quelqu'un veut bien repasser derrière... [[Utilisateur:Otourly|Otourly]] 14 janvier 2010 à 12:46 (UTC)
::{{fait}} [[Utilisateur:JackPotte|JackPotte]] 15 janvier 2010 à 12:37 (UTC)
=== Texte 2 ===
Extended list of things to translate. (There's still a couple more, most to do with template names)but this is most of it:
<pre>
Ligne 924 ⟶ 926 :
</pre>
[[Utilisateur:Bawolff|Bawolff]] 15 janvier 2010 à 20:02 (UTC)
=== Traduction 2 ===
 
<pre>
Bawolff.review_i18n = {
Ligne 987 ⟶ 989 :
 
::Cool. I added some more messages. Here is the final one, that covers everything (most of it you already translated). [note you didn't really have to translate the stuff after <code>//</code>. Those were comments to say what the message does, they don't actually do anything]. The last 4 things on this list are technical. If they're confusing, I can help translate them. This is the complete script. After done, copy it (and only it. You don't need any of the script from en) to [[MediaWiki:Gadget-easyPeerReview.js]]
 
=== Texte 3 ===
<source lang='javascript'>
if (typeof Bawolff === "undefined") Bawolff = {};
Ligne 1 076 ⟶ 1 080 :
:p.s. The variables that end in _page are urls. so %C3%A9 should be used instead of é, and spaces should be replaced with _. [[Utilisateur:Bawolff|Bawolff]] 15 janvier 2010 à 23:16 (UTC)
[[Utilisateur:Bawolff|Bawolff]] 15 janvier 2010 à 22:46 (UTC)
 
=== Traduction 3 ===
<source lang='javascript'>
if (typeof Bawolff === "undefined") Bawolff = {};
 
if (!Bawolff.review_i18n) {
//These are treated as raw HTML. don't give yourself an XSS! (basically avoid >, <, unless its part of html)
//Anything that ends in _page should be in url form (Aka [[project:ét b]] would be 'project:%C3%A9t_b' not 'project:ét b' )
Bawolff.review_i18n = {
review_tab: 'Review',
review_tab_tooltip: 'Do a peer review on this page',
pass: 'Pass',
fail: 'Fail',
not_reviewed: 'Not reviewed',
form_comment: 'Comment: ',
form_comment_overall: 'Comments by reviewer: ',
form_rev_numb: 'Reviewing revision ',
form_submit: 'Submit Review',
form_copyright: 'Copyright',
form_copyright_page: 'Wikinews:Copyright',
form_news_page: 'Wikinews:Content_guide',
form_news: 'Newsworthiness',
form_sources_page: 'Wikinews:Cite_your_sources',
form_sources: 'Verifiability',
form_sg: 'Style',
form_sg_page: 'Wikinews:Style_guide',
form_npov_page: 'Wikinews:Neutral_point_of_view',
form_npov: 'NPOV',
tasksError: 'Could not add article flag to article due to error: "$1". Peer review template will still be added to talk, but make your checks.',
unknownError: 'Easy review script has uncaught exception [tell Bawolff]: ',
softEditError: "Something bad happened (recoverable edit error, like a captcha or something. However we couldn't figure out how to recover.)",
errorNoPub: "Could not add \{\{publish\}\} to article. Due to error: '$1'. Continuing with rest of review process.",
errorFetchFailureSuccess: "Could not retrieve page source from server when trying to replace review with publish in successful review",
errorFetchFailFail: "Could not retrieve page source from server when trying to replace review with tasks in failed review",
ErrorEditConflictCancel: "User prematurely cancelled due to edit conflict",
warningNoArticleID: 'Warning (Please leave user:Bawolff a note): Could not figure out revision id of new published version of article. Falling back to using revision id of penultimate revision. you may have to sight the latest version of this article manually.',
pub_edit_summary: "Publish. (Using [[MediaWiki:Gadget-easyPeerReview.js|easy peer review]])",
review_comment: "Submited using easy peer review - MediaWiki:Gadget-easyPeerReview.js", //comment in src.
review_header_pass: "Review of revision $1 [Passed]",
review_header_fail: "Review of revision $1 [Failed]",
review_revid: 'revid', //argument name for revid in peer reviewed template
review_copyright: 'copyright',
review_newsworthy: 'newsworthy',
review_verifiable: 'verifiable',
review_npov: 'npov',
review_style: 'style',
review_reviewer: 'reviewer',
review_comments_field: 'comments',
review_time: 'time',
review_peer_reviewed: 'peer_reviewed', //peer review template name.
tasks: 'tasks', //translating the call to {{tl|tasks}}
tasks_copyvio: 'copyvio',
tasks_news: 'news',
tasks_src: 'src',
tasks_npov: 'npov',
tasks_mos: 'mos',
tasks_rereview: 're-review',
publish: 'Publish', //name of publish template.
editSummary_sight: "Publishing article after successful peer review (Using [[MediaWiki:Gadget-easyPeerReview.js]]): ",
editSummary_failReview: "Failed Review. Add article flag. (Using [[MediaWiki:Gadget-easyPeerReview.js|easy peer review]]",
editConflict: "*********[edit conflict]********** \nSomeone has edited this page since you have reviewed it. Do you want to review this page (including the latest edits) anyways?",
done: 'Done.',
success: '"$1" has been successfully reviewed. $2', //$1 = article name, $2= make lead box
success_ml: 'Make this story a lead article', //$1 = article name
success_ml_url: '/wiki/Wikinews:Make_lead',
fail_review: '<b>Done</b> "$1" has been reviewed (With the article <b>failing</b> the review process)', //$1=article name.
trigger_id: 'review', //look for this id in pages to mean that the article is ready for review.
trigger_func: function () {}, //leave alone unless you know what you're doing. return true to signify this page is eligable to be reviewed.
regex_sources: /\*\{\{(?:[sS]ource(-pr|-science)?|[aA]pasource|[pP]apersource|[oO]rsource|[sS]ourceReg)\|[^}]*\}\}/gm,
prePubTransform: function (page) {
//called before adding publish to article
page = page.replace(/\{\{[dD]ate\|[^}]*\}\}/, "\{\{date|\{\{subst:#time:F j, Y}}}}");
page = page.replace(/\{\{[bB]reaking review(?:\|[^}]*)?\}\}/g, "\{\{breaking}}"); //rm {{tl|breaking review}} add breaking
page = page.replace(/\{\{(?:[rR]eview|[bB]reaking review|[rR]eady|[uU]nder review)(?:\|[^}]*)?\}\}(?:\n)?/g, ""); //rm {{tl|review}}
page = page.replace(/\{\{[dD]evelop(?:ing)?(?:\|[^}]*)?\}\}(?:\n)?/g, ""); //rm {{tl|develop}}
},
stripReviewForFail: function (page, tasks_template) {
//if review fails, remove review tag. add tasks
page = page.replace(/\{\{(?:[rR]eview|[bB]reaking review|[rR]eady|[uU]nder review)(?:\|[^}]*)?\}\}/, tasks_template); //replace {{tl|review}} with tasks
page = page.replace(/\{\{(?:[rR]eview|[bB]reaking review|[rR]eady|[uU]nder review)(?:\|[^}]*)?\}\}(?:\n)?/g, ""); //if multiple review templates
}
 
}
}
 
//Load from en wikinews, but with alt translation defined above.
importScriptURI('http://en.wikinews.org/w/index.php?title=MediaWiki%3AGadget-easyPeerReview.js&action=raw&ctype=text/javascript&scrver=2');
</source>
 
== Wiktionary look up ==