Last modified: 2006-06-12 20:15:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T8283, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6283 - user language improvement, most useful for multilingual (like commons) sites
user language improvement, most useful for multilingual (like commons) sites
Status: RESOLVED DUPLICATE of bug 2085
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.7.x
All All
: Normal normal with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-12 14:29 UTC by Pablo Saratxaga
Modified: 2006-06-12 20:15 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
creates a {{USERLANGUAGE}} variable to tell the user language (it is the pendant to the {{CONTENTLANGUAGE}} existing in svn) (1.46 KB, patch)
2006-06-12 14:35 UTC, Pablo Saratxaga
Details
allows headings showing in user language in image description pages (1.42 KB, patch)
2006-06-12 14:54 UTC, Pablo Saratxaga
Details

Description Pablo Saratxaga 2006-06-12 14:29:44 UTC
Here are some improvemetns for multilingual sites (like commons)
Comment 1 Pablo Saratxaga 2006-06-12 14:35:57 UTC
Created attachment 1940 [details]
creates a {{USERLANGUAGE}} variable to tell the user language (it is the pendant to the {{CONTENTLANGUAGE}} existing in svn)

This patch adds a {{USERLANGUAGE}} to tell the suer language (either trough
preferences or uselang= parameter)

It is most usefull on multilingual wikies, like commons:, meta:, etc.

For example, in commons, the curent {{GFDL}} licence template could be moved to
{{GFDL-en}}, and a new {{GFDL}} template be written as this:

------------
{{#ifexist:Template:GFDL-{{USERLANGUAGE}}|{{GFDL-{{USERLANGUAGE}}}}|{{GFDL-en}}}}

<includeonly>[[Category:GFDL|{{PAGENAME}}]]</includeonly>
-------------

That is, it will include, if it exists, the template in the user language, if
not, in English.
As a lot of translations for templates and other pages exists, a way to
automatically choose the right one will be very usefull.
This patch allows this by providing a variable showing the user language
------------
Comment 2 Pablo Saratxaga 2006-06-12 14:54:22 UTC
Created attachment 1941 [details]
allows headings showing in user language in image description pages

This patch is mostly useful for multilingual sites, like commons:

It allows the image description files to have the headers created at upload
time to be like:

== {{int:filedesc}} ==

that is, the page doesn't use a translation in a given language, but references
the message id and so it will show in the user language, whatever language it
may be.

It is only active if there is in LocalSettings.php a line like this:

$wgIsMultilingual = true;

so it doesn't have any effect on non multilingual wikis.
Comment 3 Pablo Saratxaga 2006-06-12 15:02:21 UTC
you can see a page using {{int:filedesc}} (done manually) at
[[commons:Image:Locusts_feeding.jpg]], if you open it with url parameter
uselang=xx you should see the headings in the language (if you have already
opened the page, you may need alsot to purge it)
Comment 4 Brion Vibber 2006-06-12 20:15:24 UTC

*** This bug has been marked as a duplicate of 2085 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links