Localize on Android

The Equativ Display SDK provides a convenient way to add languages or change the strings used by the ad player on supported languages.

Table of contents

  1. Supported Languages
  2. Adding & changing localization
  3. Localized strings

Supported Languages

By default, the Equativ Display SDK is shipped with the following languages:

  • English
  • French

Adding & changing localization

The Equativ Display SDK relies on the localization mecanism provided by Android platform, using xml files located in the res folder of the AAR library file.

To change the existing strings or to add new languages, you need to:

  1. Create a strings_equativ.xml file containing all keys listed in the next section with their value in the language you want to add/modify.
  2. Add this new file to the resource folder corresponding to the desired language of your application project.

    For instance, if you want to change french strings, you will add the strings_equativ.xml to the res/value_fr.

    Please refer to Android plaftorm documentation for further information about normalized folder names for all languages

All strings defined in XML files of your application will override Equativ Display SDK strings defined in a file of the same name

Localized strings

Here is the XML content containing all keys/values used to localized the Equativ Display SDK in english.

Those values are the labels of the native video player interface used to display video ads.

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="sas_post_video_layout_replay_button_text">replay</string>
    <string name="sas_post_video_layout_clickthrough_button_text">more info</string>
</resources>

Back to top

Copyright Equativ © 2024. All right reserved.

Page last modified: Aug 21 2024.