Return to Video

View Daily Special in Different Language

  • 0:00 - 0:03
    Let's see if these changes
    are effected in our app.
  • 0:03 - 0:05
    We can go straight to
    the phone to test the app.
  • 0:05 - 0:08
    There are no code changes to deploy.
  • 0:08 - 0:09
    Not connected to Android Studio.
  • 0:11 - 0:12
    Okay.
  • 0:12 - 0:13
    Here's the app.
  • 0:13 - 0:15
    I'll show the daily special,
    and there it is,
  • 0:15 - 0:18
    gingerbread noodles with orange sauce.
  • 0:18 - 0:21
    Now let's see what happens when
    I switch my language to French.
  • 0:21 - 0:25
    I want you to pay close attention to
    the symbol next to Language & Input, and
  • 0:25 - 0:26
    remember it.
  • 0:26 - 0:27
    It's kind of a globe-y thing.
  • 0:28 - 0:33
    And then Language is the top item
    in the Language & Input list.
  • 0:33 - 0:37
    The reason I want you to notice those
    things is it can be very frustrating if
  • 0:37 - 0:41
    you're messing around with
    a language you don't understand, and
  • 0:41 - 0:44
    then you want to switch back
    to your own language, and
  • 0:44 - 0:48
    you can't remember which of
    these options is Language.
  • 0:48 - 0:49
    So pay attention to it.
  • 0:51 - 0:52
    I'm actually going to try French now.
  • 0:53 - 0:54
    There it is.
  • 0:56 - 0:58
    See what happens in my app.
  • 0:58 - 0:59
    And I've got the French.
  • 1:00 - 1:03
    Now let's see what happens
    if I choose Spanish.
  • 1:03 - 1:08
    I'll start my app up, show the daily
    special, and see we have no value.
  • 1:08 - 1:11
    That's because we have rules
    when the language is English or
  • 1:11 - 1:14
    French, but no catch-all for
    other languages.
  • 1:14 - 1:16
    Let's go back to Tag Manager.
  • 1:16 - 1:22
    So in the daily-special-en variable,
    add back the Always trigger.
  • 1:22 - 1:24
    We need to add exceptions for
  • 1:24 - 1:28
    the languages that we're explicitly
    handling, in which case this is French,
  • 1:28 - 1:33
    save the variable and
    publish the changes.
  • 1:33 - 1:36
    Now over here on the phone,
    we'll start the app again,
  • 1:36 - 1:38
    show the daily special and
    it should come up in English
  • 1:38 - 1:44
    because we've defined English to always
    fire unless the language is French.
  • 1:44 - 1:48
    Feel free to add variables and triggers
    for whatever languages you like.
  • 1:48 - 1:50
    What languages did you try?
  • 1:50 - 1:51
    Go ahead and enter them here.
Title:
View Daily Special in Different Language
Description:

more » « less
Video Language:
English
Team:
Udacity
Project:
UD876-2 - Google Play Services - Analytics
Duration:
01:53

English subtitles

Revisions Compare revisions