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
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:
-
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. -
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 theres/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>