Author: pablo
Description:
Here are some improvemetns for multilingual sites (like commons)
Version: 1.7.x
Severity: normal
• bzimport | |
Jun 12 2006, 2:29 PM |
F3050: mediawiki-uselanguage1.7svn.patch | |
Nov 21 2014, 9:20 PM |
F3051: mediawiki-ismulti-1.7svn.patch | |
Nov 21 2014, 9:20 PM |
Author: pablo
Description:
Here are some improvemetns for multilingual sites (like commons)
Version: 1.7.x
Severity: normal
pablo wrote:
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}}}}
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.
Attached:
pablo wrote:
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:
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.
Attached:
pablo wrote:
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)