Last modified: 2012-02-24 02:52:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33467, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31467 - Getting the Android app on translatewiki (tracking)
Getting the Android app on translatewiki (tracking)
Status: RESOLVED FIXED
Product: Wikipedia App
Classification: Unclassified
Generic (Other open bugs)
1.0.0 (Android)
All All
: High enhancement
: ---
Assigned To: Niklas Laxström
: i18n, tracking
: 32265 (view as bug list)
Depends on: 32324 32326 32327 32350
Blocks: tracking
  Show dependency treegraph
 
Reported: 2011-10-07 01:00 UTC by Tomasz Finc
Modified: 2012-02-24 02:52 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: Android
Assignee Huggle Beta Tester: ---


Attachments

Description Tomasz Finc 2011-10-07 01:00:14 UTC
This is a tracking bug to find out what we need to do to get the Android app on translate wiki.
Comment 1 Brion Vibber 2011-10-07 01:11:03 UTC
The current code has ..... no localization support whatsoever. :)

Need to:

1) pick or create a localization library & file format
2) add stub English files
3) start changing code to use it
4) figure out how to get it set up on TWN

For the StatusNet Desktop client (we never did finish i18n for the mobile version) I made a stub library:

https://www.gitorious.org/statusnet-client/statusnet-client/blobs/master/StatusNet%20Desktop/Resources/model/statusnet_locale.js

using a simple XML key-value file format based on that used by native localization support that Titanium was adding. PhoneGap doesn't seem to have a built-in standard localization helper, so might be good to adapt some of that (there's some basic logic for merging fallback languages iirc).

The key-value format is pretty straightforward and should be easy to adapt to TWN. Or, if there's something TWN already understands natively we could go with that and maybe be easier. :)
Comment 2 Sam Reed (reedy) 2011-10-07 01:13:02 UTC
Don't TW already support a couple of formats used in Java projects?

FreeCol is one Java project
Comment 3 Tomasz Finc 2011-10-07 01:14:25 UTC
Seems like an excellent time to help the phonegap project standardize on locale message files.
Comment 4 Brion Vibber 2011-10-07 01:17:51 UTC
All the UI is done in HTML/JS/CSS (Phonegap), so Android or Java-specific formats don't necessarily help us...

FreeCol uses simple .properties stringlist files, which are a pretty straightforward format though so we could easily build on that, I think.
Comment 5 Sam Reed (reedy) 2011-10-07 01:19:20 UTC
(In reply to comment #3)
> Seems like an excellent time to help the phonegap project standardize on locale
> message files.

Sounds like a nice plan to somewhat helping upstream! :)
Comment 6 Brion Vibber 2011-10-07 01:28:31 UTC
There is a Globalization plugin (thanks IBM!) which can fetch some locale information, format numbers & dates etc -- useful!

https://github.com/phonegap/phonegap-plugins/tree/master/Android/Globalization
etc

Nothing there to help with basic strings and parameter replacement though...

I think my inclination might be to snarf the 'Message' class from MediaWiki's JavaScript code and hook it up to a backend that reads strings from .properties files (unless we find a nicer way to do it). We could repackage that as a nice platform-independent lib...
Comment 7 Brion Vibber 2011-10-07 04:35:24 UTC
Here's a stub using MediaWiki's existing front-end localization framework. Just uses messages to do the loader dialog, but it's an example of basic param composing and using the framework. :)

Included a messages-qqq.js with descriptions too -- I'm full service!

Shouldn't be too hard to load other languages, and can consider switching the file format around to something TranslateWiki-friendly (it's just a .js stub setting a map as a variable, much like our MessagesXx.php files).

https://github.com/nitobi/Wikipedia/pull/28
Comment 8 John Du Hart 2011-10-26 15:33:08 UTC
-patch, no patch in sight.
Comment 9 Tomasz Finc 2011-10-26 15:36:11 UTC
(In reply to comment #8)
> -patch, no patch in sight.

What do you mean? We've already merged in brions patch for this. Now someone just needs to tackle the rest of the strings.
Comment 10 Mark A. Hershberger 2011-11-02 03:03:25 UTC
Talked with Niklas during triage about what it would take to get this
app on twn with the current messages and he said the “yes but output
would be plain ugly”
https://github.com/brion/Wikipedia/commit/100720287c7ab00d8c21e3831046a0ac67254e7f#diff-5
Comment 11 Tomasz Finc 2011-11-08 18:07:39 UTC
*** Bug 32265 has been marked as a duplicate of this bug. ***
Comment 12 Phil Chang 2011-11-09 00:54:07 UTC
Kul says Russian is urgent as well.
Comment 13 Brion Vibber 2011-11-09 15:26:56 UTC
So do we still need to write an input/output module for Extension:Translate? Any further process to go through with setup?
Comment 14 Brion Vibber 2011-11-10 23:00:04 UTC
Ok stuff should be pretty ready to go -- additional things were split out to blocking bugs and have been closed out.

* Files are converted to a TWN-friendly format
* Group .yaml file is prepped (not tested but niklas says it looks ok)
* Stub pages on TWN are up: http://translatewiki.net/wiki/Translating:WikipediaMobile
* Niklas set up with commit access.

On TranslateWiki end remains:
* need to set up the WikipediaMobile namespace
* need to make sure the checkout/import/export/commit cycle works
Comment 15 Niklas Laxström 2011-11-21 15:46:33 UTC
It's now on twn, but I'm unable to export.
Comment 16 Siebrand Mazeland 2011-11-21 17:23:44 UTC
(In reply to comment #15)
> It's now on twn, but I'm unable to export.

You mean unable to push, right?
Comment 17 Niklas Laxström 2011-11-22 12:11:17 UTC
Yes, I can export [not tested yet] and commit, but not push.
Comment 18 Niklas Laxström 2011-11-24 11:05:07 UTC
One more thing: I need a small logo to add this project into the translatewiki.net front page.
Comment 19 Tomasz Finc 2011-12-13 21:49:47 UTC
Looks like we have a logo on translate wiki : http://translatewiki.net/w/images/thumb/7/73/WikipediaMobile-icon.png/45px-WikipediaMobile-icon.png

Closing. Thanks guys!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links