-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language Support #22
Comments
What APIs support these things? |
Dunno. |
@xbony2 You realise that English namespaces are supported for non-en langauge wikis? e.g. As for API that support being able to translate? Not possible, unless you're specifically on a language wiki, and query for it's namespaces/site messages |
@Developaws I know that. But putting English names into non-English wikis is unprofessional. |
Then query the name spaces by Id lol? On 12 Nov 2016 10:19 pm, "xbony2" notifications@github.com wrote:
|
Not sure what you mean. It's not about querying, it's about adding categories to pages and that sort of stuff :P |
http://minecraft-es.gamepedia.com/api.php?action=query&meta=siteinfo&siprop=namespaces https://www.mediawiki.org/wiki/Manual:Namespace#Built-in_namespaces result['query']['namespaces']['14']['*'] = 'Categor\u00eda'. |
I suppose that would work... |
#get_language
for the default language of a wiki (would returnen
on our wiki, would returnes
on the Spanish Minecraft Wiki, etc).butt.get_localized_namespace("Category", "pt-br")
=>"Categoria"
.The text was updated successfully, but these errors were encountered: