2,153
edits
Line 128: | Line 128: | ||
== Multi language SMW == | == Multi language SMW == | ||
(From Temlakos on the mailing list regarding | === Creationwiki === | ||
(From Temlakos on the mailing list regarding http://creationwiki.org/ and http://creationwiki.org/fr/) | |||
Here's how I do it: As I have said many times before, I routinely | Here's how I do it: As I have said many times before, I routinely | ||
Line 154: | Line 156: | ||
write a language file. And make sure that his language is supported in | write a language file. And make sure that his language is supported in | ||
SMW_Aliases.php and SMW_Messages.php. | SMW_Aliases.php and SMW_Messages.php. | ||
=== HKp wiki === | |||
'HKp wiki' is a bilingual (potentially multilingual) spanish-catalan | |||
wiki in the same installation. | |||
http://enlloc.net/hkp/w | |||
I'm using Polyglot extension [1] to redirect to appropriate language | |||
pages depending on the browser language settings or the user wiki | |||
settings. | |||
I'm using Language Selector extension for providing a language | |||
selector for every page in the sidebar. | |||
I wanted to use the Multilang extension for changing the language in | |||
pages and forms depending on the user settings. But unfortunately this | |||
extension don't work in MW higher of 1.10. | |||
Alternatively I'm using the [http://enlloc.net/hkp/w/index.php/Plantilla:International <nowiki>{{international}}nowiki> template]. It is useful | |||
for pages and templates but not for forms because it need a | |||
<nowiki>{{SUBPAGENAME}}</nowiki> with language code (/ca, /es, /en, /fr, /pt, ...). | |||
I'm using [http://enlloc.net/hkp/w/index.php/Plantilla:Entrada_Wlog my own code in templates] to show or hide a "translation | |||
button" depending if the translation page exist or not: | |||
<nowiki>{{#ifeq:{{SUBPAGENAME}}|es| | |||
{{exists | page={{NAMESPACE}}:{{BASEPAGENAME}}/ca | then= | else= | |||
<p style="margin-top:2em; color: rgb(100, 100, 100)">'''Traducci?n'''<br>[[Categoria:Per traduir al Castell?]] | |||
<small>Esta p?gina a?n no est? en catal?n. Quieres colaborar a traducirla?</small></p> | |||
{{#formlink:Entrada Wlog traduir ca|Traducir al catal?n|button| | |||
preload={{FULLPAGENAME}}&Gesti? traduccions[p?gina | |||
original]={{BASEPAGENAME}}&Entrada Wlog[llengua entrada]=es&namespace=Wlog }} | |||
}} | |||
}}</nowiki> | |||
Right now I have not solution for having only one form for all | |||
languages. What is annoying. | |||
== Media == | == Media == |