[Wikipedia-l] TeX math support installed
Brion Vibber
brion at pobox.com
Mon Jan 6 07:17:45 UTC 2003
Inline TeX support for math formulae is now enabled on Wikipedia in all
languages on phase 3; please try it out and report any functional
problems.
Those interested should probably put some documentation together; some
is on the test wiki at: http://test.wikipedia.org/wiki/Texwiki_docu
For those helping to maintain translation files, I've attached a diff of
Language.php which shows the math options and a number of other
additions of the last month or so that haven't been localized as widely
as they might.
-- brion vibber (brion @ pobox.com)
-------------- next part --------------
===================================================================
RCS file: /cvsroot/wikipedia/phpwiki/newcodebase/Language.php,v
retrieving revision 1.166
retrieving revision 1.178
diff -u -r1.166 -r1.178
--- wikipedia/phpwiki/newcodebase/Language.php 2002/11/25 20:31:25 1.166
+++ wikipedia/phpwiki/newcodebase/Language.php 2003/01/02 16:24:00 1.178
@@ -23,7 +23,7 @@
"quickbar" => 1, "underline" => 1, "hover" => 1,
"cols" => 80, "rows" => 25, "searchlimit" => 20,
"contextlines" => 5, "contextchars" => 50,
- "skin" => 0, "rcdays" => 7, "rclimit" => 50,
+ "skin" => 0, "math" => 1, "rcdays" => 7, "rclimit" => 50,
"highlightbroken" => 1, "stubthreshold" => 0
);
@@ -35,12 +35,20 @@
"Standard", "Nostalgia", "Cologne Blue"
);
+/* private */ $wgMathNamesEn = array(
+ "Aways render PNG",
+ "HTML if very simple or else PNG",
+ "HTML if possible or else PNG",
+ "Leave it as TeX (for text browsers)"
+);
+
/* private */ $wgUserTogglesEn = array(
"hover" => "Show hoverbox over wiki links",
"underline" => "Underline links",
"highlightbroken" => "Highlight links to empty topics",
"justify" => "Justify paragraphs",
"hideminor" => "Hide minor edits in recent changes",
+ "usenewrc" => "Enhanced recent changes (not for all browsers)",
"numberheadings" => "Auto-number headings",
"rememberpassword" => "Remember password across sessions",
"editwidth" => "Edit box has full width",
@@ -296,6 +304,7 @@
"whatlinkshere" => "Pages that link here",
"help" => "Help",
"search" => "Search",
+"go" => "Go",
"history" => "Older versions",
"printableversion" => "Printable version",
"editthispage" => "Edit this page",
@@ -303,7 +312,12 @@
"protectthispage" => "Protect this page",
"unprotectthispage" => "Unprotect this page",
"talkpage" => "Discuss this page",
-"subjectpage" => "View article",
+"articlepage" => "View article",
+"subjectpage" => "View subject", # For compatibility
+"userpage" => "View user page",
+"wikipediapage" => "View meta page",
+"imagepage" => "View image page",
+"viewtalkpage" => "View discussion",
"otherlanguages" => "Other languages",
"redirectedfrom" => "(Redirected from $1)",
"lastmodified" => "The page was last modified $1.",
@@ -369,10 +383,13 @@
"unexpected" => "Unexpected value: \"$1\"=\"$2\".",
"formerror" => "Error: could not submit form",
"badarticleerror" => "This action cannot be performed on this page.",
-"cannotdelete" => "Could not delete the page or image specified.",
+"cannotdelete" => "Could not delete the page or image specified. (It may have already been deleted by someone else.)",
"badtitle" => "Bad title",
"badtitletext" => "The requested page title was invalid, empty, or
an incorrectly linked inter-language or inter-wiki title.",
+"perfdisabled" => "Sorry! This feature has been temporarily disabled during peak
+access hours for performance reasons; come back between 02:00 and 14:00 UTC
+and try again.",
# Login and logout pages
#
@@ -543,6 +560,12 @@
"qbsettings" => "Quickbar settings",
"changepassword" => "Change password",
"skin" => "Skin",
+"math" => "Rendering math",
+"math_failure" => "Failed to parse",
+"math_unknown_error" => "unknown error",
+"math_unknown_function" => "unknown function ",
+"math_lexing_error" => "lexing error",
+"math_syntax_error" => "syntax error",
"saveprefs" => "Save preferences",
"resetprefs" => "Reset preferences",
"oldpassword" => "Old password",
@@ -566,6 +589,7 @@
# Recent changes
#
+"changes" => "changes",
"recentchanges" => "Recent changes",
"recentchangestext" => "Track the most recent changes to Wikipedia on this page.
[[Wikipedia:Welcome,_newcomers|Welcome, newcomers]]!
@@ -840,6 +864,10 @@
"reverted" => "Reverted to earlier revision",
"deletecomment" => "Reason for deletion",
"imagereverted" => "Revert to earlier version was successful.",
+"rollback" => "Roll back edits",
+"rollbacklink" => "rollback",
+"cantrollback" => "Can't revert edit; last contributor is only author of this article.",
+"revertpage" => "Reverted to last edit by $1",
# Undelete
"undelete" => "Restore deleted page",
@@ -883,7 +911,7 @@
"blockip" => "Block IP address",
"blockiptext" => "Use the form below to block write access
from a specific IP address.
-This should be done only only to prevent valndalism, and in
+This should be done only only to prevent vandalism, and in
accordance with [[Wikipedia:Policy|Wikipedia policy]].
Fill in a specific reason below (for example, citing particular
pages that were vandalized).",
@@ -1036,6 +1064,11 @@
function getSkinNames() {
global $wgSkinNamesEn;
return $wgSkinNamesEn;
+ }
+
+ function getMathNames() {
+ global $wgMathNamesEn;
+ return $wgMathNamesEn;
}
function getUserToggles() {
More information about the Wikipedia-l
mailing list