Testing phone translations using the emulator

David Planella david.planella at ubuntu.com
Tue Jan 21 13:14:04 UTC 2014

Hi Translators,

A few days ago, I mentioned I'd write about how to test translations on a
phone, even without a device. Yesterday I just finished the first article
on the first step of the process: installing and running the emulator:


I'm preparing a separate article for the actual testing, but I thought in
the meantime I'd put together a quick set of instructions so that
translators can already check what translations look like for their
languages on the emulator

The following instructions assume you've installed the emulator and you've
got an instance running.

## Installing new languages

Right now there is only a subset of languages installed on the phone
(English, German, Spanish, French, Portuguese -from Portugal and
Brazilian-, Simplified Chinese). If your language is on that list, you can
skip this and jump to the next section. Otherwise, please read on...

1. Log into the adb shell that appears in the terminal next to the
emulator. Use 'phablet' (without quotes) both for the user name and password
2. Run `sudo apt-get update` on that same terminal session
3. Run `sudo apt-get install language-pack-{gnome-,}-$LANG-base` on that
same terminal session (replace $LANG with your 2-letter or 3-letter
language code, e.g. 'ca', 'it', 'ast', etc)
4. You've now installed your language. Press Ctrl+C on that terminal to
close the emulator

## Switching languages

Once the phone UI is up in the emulator, it's time to chose your language
using your mouse:

1. Slide to the left to go past the welcome screen
2. Slide once more to the left to show the Applications scope
3. Click on the System Settings app
4. Within System Settings, click on Language & Text
5. Scroll up or down the list to select and set your language
6. Once done, close the emulator for the language settings to have effect
on the next boot.
7. Restart the emulator - e.g. run `ubuntu-emulator run myimage`, where
'myimage' was the chosen name you gave to the instance you want to run

And that's it, you should now see the phone in your language!

## Translating and reporting bugs

At this point you'll see parts of the UI that need translation, which you
can complete from the list highlighted here:


>From there, you can also find out the upstream project, so if you see any
internalization issue, you can report it as a bug there.

Let me know how this works for you!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-translators/attachments/20140121/effcd2ac/attachment.html>

More information about the ubuntu-translators mailing list