Extension talk:ContentTranslation
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
This board is for discussing technical details of the Content Translation extension. If you are not a developer interested in installing the tool in your own system or contribute new code for it, this is probably not the discussion page you are looking for.
Check the discussion page for Content Translation for general discussion about the tool, reporting issues you found while translating, discuss its design or suggesting improvements.
"Your" language
editgot here from wmblabs beta wikipedia thing.
description of the content translation tool says:
"Shows a red link to your language in the language links list if the page is not yet translated to your language"
if i am using a wiki farm where i have a SUL account on 4 russian wikis and 4 english wikis, then i need to set 'my language' to 'english' on the russian ones in order for this tool to show a red link?
this is somewhat inconvenient, i speak 2 languages, i should be able to tell both to the entire wiki farm easily - not to tell 'hi russian wikipedia, my language is english'
...
or did i misinterpret what the meaning of that sentence is? Gryllida 16:20, 22 August 2014 (UTC)
- The red interlanguage link will be shown based on a prediction algorithm. So it is not entirely based on what language you set for your account in any wiki. This algorithm is somewhat similar to the algorithm we use in ULS to suggest languages to choose quickly. The algorithm will be tuned further, but the following will be used to predict - your language preference, your user interface language(changed using ULS), your previous UI language selections, the accept-language of your browser(the one you set in browser configurations), the geo-location from you browse the wiki and common languages in that location. What we implemented right now is a simple version of this algorithm. Also, we plan to provide more entry points than interlanguage link to tell user about the opportunity to translate. Thanks. Santhosh.thottingal (talk) 11:56, 23 August 2014 (UTC)
- The algorithm sounds like an overcomplication. It may be a good idea to just ask me what languages I know, and offer that I translate to these.
- I have added a picture of one more entry point there. Gryllida 11:23, 24 August 2014 (UTC)
delete drafts from dashboard
editIs it currently possible to delete drafts from the dashboard? CennoxX (talk) 17:54, 15 December 2014 (UTC)
- It is in progress. See https://phabricator.wikimedia.org/T75979 Santhosh.thottingal (talk) 06:52, 7 January 2015 (UTC)
- Thanks, I had already subscribed to it. CennoxX (talk) 12:59, 7 January 2015 (UTC)
Database changes
editThe following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
CX doesn't need updates in the usual MediaWiki database tables, but it does use an extra database for the drafts. I'm wondering how to note this here. The needs-updatephp parameter is for update.php, and this doesn't currently works with update.php, and it isn't required. Amir E. Aharoni (talk) 08:42, 20 March 2015 (UTC)
- Out of curiosity, why can't those tables be created in one of the existing central databases? Ricordisamoa 11:41, 24 March 2015 (UTC)
- The CX database tables co-exist with existing shared central database(centralauth use the same). Santhosh.thottingal (talk) 11:51, 24 March 2015 (UTC)
ContentTranslation with Interlanguages from Interwiki links
editHi, I maintain several mediawikis of several languages. Can I use this extension to make easier translate content between them? Or this is only an extension ready to be used just within the same installation? (don't using Interwiki links en.wiki.com/wiki/article using wiki.com/wiki/article/en instead?
Thanks. Ál (talk) 23:36, 23 July 2015 (UTC)
- Thanks a lot for the interest!
- It should be possible, and if it isn't, it's a bug.
- As our FAQ says, we are developing this extension with Wikipedia in mind, so the default configuration definitely has a bias towards Wikipedia itself and sites with a similar configuration. However, most of it is just a MediaWiki extension, so it should work with careful configuration.
- If you get stuck, please ask here or report a bug in Phabricator. Amir E. Aharoni {{🌎🌍🌏}} 14:03, 31 July 2015 (UTC)
- I was searching a lot in Meta and in Mediawiki.org about how Wikimedia foundation does it in Wikipedia.org and there's not a clear information! It is a wiki familiy or what? Thanks if you know it. Ál (talk) 01:31, 20 December 2015 (UTC)
- Yes, ContentTranslation is definitely oriented at wiki families, with domains in the form of LANGUAGE_CODE.DOMAIN.TLD (this is configurable), and we pretty much assume that CentralAuth is used for usernames (by its nature ContentTranslation is cross-project, so the usernames should be cross-project as well, and if you aren't using CentralAuth, we don't know how will user accounts behave - we never tested it).
- I suggest trying to install it and see what breaks ;)
- Bugs and patches are seriously welcome - in practice we are working exclusively on Wikipedia integration. Amir E. Aharoni {{🌎🌍🌏}} 09:43, 22 December 2015 (UTC)
Installation on a Wiki Family Sharing same resources and without CentralAuth
editHI,
I am setting up a new wiki Family on my server using the "Multiple wikis sharing common resources" method. the url setup is like this:
https://wiki.mywebsite.com/en for English, https://wiki.mywebsite.com/de for German...etc
Since it is a new installation, I don't have CentralAuth, I was thinking of using a shared database as suggested by the CentralAuth Extension documentation here.
I read your discussion from a couple of years ago, but I am unable to determine the following:
1- Can the extension translate page names? so can I achieve:
https://wiki.mywebsite.com/en/the_Sun for English, https://wiki.mywebsite.com/de/Die_Sonne for German?
2- Can it work with the type of wikifamily I mentioned above?
3- Can it work withthe shared db, in lieu of the CentralAuth extension?
4- Does it translate Category names?
Thanks a lot. Atef81 (talk) 10:04, 25 April 2017 (UTC)
- Yes, in Content Translation you can give the page any name you want.
- I'm not sure that I understand the kind of wiki family you have. Is it CentralAuth or not? I certainly recommend CentralAuth, because it will allow interlanguage links like in Wikipedia, and clean separation between each language version. It will work also without CentralAuth, and it will simply publish everything to the same wiki, and you'll either have to tell your users to take care of the naming, or to add a patch to Content Translation that will give such names automatically. (We only focus on Wikipedia's needs, but patches that add support for other kinds of architectures are very sincerely welcome.)
- Yes, it has its own shared DB. See the "Translation database" section. CentralAuth is highly recommended for convenient user account handling and separation between languages. It's a bit tricky to set up (to be honest, the last time I did it myself was in 2012), but it's much more convenient once it's done.
- Yes, but only if:
- You set up separate wikis.
- You set up interlanguage links.
- The corresponding category pages exist on both wikis, and are linked using an interlanguage link. Amir E. Aharoni {{🌎🌍🌏}} 16:22, 25 April 2017 (UTC)
- @Amire80 Thanks you very much for the detailed response.
- As for the type of wiki family I have, it is the "Multiple wikis sharing common resources" (link to the exact spot in the documentation). I currently don't have CentralAuth, as the centralAuth documentation advise against installing it for new fresh wiki installation. Please check the link here under (Warning).
- However, I will get it installed to reap the benefits you mentioned.
- As the video demonstration of the Content translation Extension page on Youtube (link) shows the titles as: "https://en.site..etc", https://ca.site..etc, my question was whether there are settings to modify this to be: "https://site..cet/en" "https://site..cet/ca" ? Or is the extension just following the setup of the wiki family and produce content accordingly?
- Thanks again. Atef81 (talk) 18:01, 25 April 2017 (UTC)
- If I'm not mistaken, you'll have to define a custom value for ContentTranslationSiteTemplates. See the file extension.json in the ContentTranslation extension source code for this variable's components. @Nikerabbit may have more precise information.
- (And yes, we really should document all these configuration variables.) Amir E. Aharoni {{🌎🌍🌏}} 19:00, 25 April 2017 (UTC)
- @Atef81 Thanks for asking these questions, they are quite important. As a follow up to your questions, I expanded the documentation at Extension:ContentTranslation a bit. I hope that you find useful.
- Even though at the moment we only have time for making ContentTranslation work with Wikipedia, we do hope that it is useful on other sites as well. Amir E. Aharoni {{🌎🌍🌏}} 07:48, 26 April 2017 (UTC)
Problem with finding article, when try to translate
editHi.
I would like to complain about translation page. When I try to translate, for example, from be-tarask (article Васіль Захарка) into Ukrainian, I just can`t find article and can`t translate.
But, when I do the same action from simple Belorussian to Ukrainian, there is no problem with finding article. What`s the problem?
I can see error when opening be-tarask page in translator .(⧼cx-error-page-not-found⧽)
It seems this is a bug. Viiictorrr (talk) 20:57, 14 June 2017 (UTC)
How to use it on a private wiki?
editNow it will raise a "cx-error-page-not-found" exception if set wgGroupPermissions['*']['read'] = false; . So is there some idea ? Ken Ookami Horo (talk) 05:48, 14 August 2017 (UTC)
Is there a way to make this work with WikiEditor
editI can not get Parsoid to work! And I thus use WikiEditor rather than VisualEditor - can I somehow make Extension:ContentTranslation work with WikiEditor or will i need Parsoid as well?
(Never mind, I can see that I need even more non-wiki setup, so I need to look into my old GoogleTranslate, or use some external translation tool... :-/ )
if we are using contenttranslation tools in mediawiki do we need dump to be imported?
editafter installation of contenttranslation tool i am unable to load page for translation. Ramu ummadishetty (talk) 05:04, 3 January 2020 (UTC)
do we need dump of english wikipedia to load content translation page to other language?
editwhile setting up CT tools i am unable to load the translation page Ramu ummadishetty (talk) 05:07, 3 January 2020 (UTC)
Other Wikimedia projects
editIs it possible to use this extension to other Wikimedia projects like Wikiquote? Klein Muçi (talk) 11:51, 4 January 2020 (UTC)
- And Wikidata as well? Jsamwrites (talk) 07:24, 5 January 2020 (UTC)
- How would you use it at Wikidata? It only has one language. Klein Muçi (talk) 07:37, 5 January 2020 (UTC)
Klein Muçi (talk) 07:37, 5 January 2020 (UTC)
- Wikidata supports multiple languages. If contentTranslation is supported on Wikidata, it would be helpful to translate multilingual labels, aliases and description Jsamwrites (talk) 07:41, 5 January 2020 (UTC)
- Oh, I see now. It is a bit of an unconventional use though comparing but nothing too different. Klein Muçi (talk) 07:49, 5 January 2020 (UTC)
Content translation for our wiki (not wikipedia!)
editHi developer team, I already had the chance to write with Amir, but he asked me to open a discussion here. I really hope you could help me.
Background story: we have a EU project about beekeeping in Ethiopia and Indonesia and therefore created a wiki. The aim is to extend it to other countries and languages. So far, you have to create a new page indepentently of the actual English page to add another language.. Therefore I want to include the awesome content translator.
But we have a problem: it does not work!
we installed the following:
-content translator ext.
-universal language ext.
-cxserver
we also meet the system requirements.
So do you have a clue, what is missing here? Is the row "$wgContentTranslationSiteTemplates ['cx'] = 'https://cxserver.wikimedia.org/v1' enough?
By the way: the wiki is called SAMSwiki. YOu find it here: https://wiki.sams-project.eu/index.php/Main_Page
Thanks in advance,
Kristina Bliblo123456 (talk) 09:45, 3 September 2020 (UTC)
- Hi,
- Can you please post exact errors (from the browser console or anything else)? KartikMistry (talk) 07:31, 22 September 2020 (UTC)
- I would also suggest to use setup described in, https://www.mediawiki.org/wiki/MediaWiki-Docker/Extension/ContentTranslation#Prepare_Extensions (for LocalSettings.php part). KartikMistry (talk) 12:03, 22 September 2020 (UTC)
"Translate to" button not working
editIm trying to translate my content from english to some other language In Translation window, when i try to change language for translation through the slider at right top corner where it says English and its the source language, the button isnt working. It is supposed to show other languages when it slides down.I have already installed other extension like Universal Language selector too but its still not working.
Please help 103.140.2.170 (talk) 14:22, 16 December 2020 (UTC)