Skip to content
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

Open
2 tasks
xbony2 opened this issue Jan 31, 2016 · 8 comments
Open
2 tasks

Language Support #22

xbony2 opened this issue Jan 31, 2016 · 8 comments

Comments

@xbony2
Copy link
Member

xbony2 commented Jan 31, 2016

  • #get_language for the default language of a wiki (would return en on our wiki, would return es on the Spanish Minecraft Wiki, etc).
  • Namespace (and maybe other things that are needed?) language support, like butt.get_localized_namespace("Category", "pt-br") => "Categoria".
@elifoster
Copy link
Member

What APIs support these things?

@xbony2
Copy link
Member Author

xbony2 commented Jan 31, 2016

Dunno.

@ghost
Copy link

ghost commented Nov 12, 2016

@xbony2 You realise that English namespaces are supported for non-en langauge wikis? e.g.
http://minecraft-es.gamepedia.com/File:Minecraft_Wiki_header.svg

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

@xbony2
Copy link
Member Author

xbony2 commented Nov 12, 2016

@Developaws I know that. But putting English names into non-English wikis is unprofessional.

@ghost
Copy link

ghost commented Nov 12, 2016

Then query the name spaces by Id lol?

On 12 Nov 2016 10:19 pm, "xbony2" notifications@github.com wrote:

@Developaws https://github.com/Developaws I know that. But putting
English names into non-English wikis is unprofessional.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#22 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHSUIyzRfuBvrNy4BWaUhIh6nXzFLzlks5q9jtggaJpZM4HQDyB
.

@xbony2
Copy link
Member Author

xbony2 commented Nov 12, 2016

Not sure what you mean. It's not about querying, it's about adding categories to pages and that sort of stuff :P

@ghost
Copy link

ghost commented Nov 13, 2016

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'.
Congratulations, you now have the localised namespace :P That's about the best you can possibly get from the API. Unless you wanted a /little/ bit deeper, and possibly query the site messages?

@xbony2
Copy link
Member Author

xbony2 commented Nov 13, 2016

I suppose that would work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants