Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a6c2b7e authored by Michael W's avatar Michael W Committed by Michael Bestas
Browse files

WallpaperPicker: Move strings for translation

* AOSP didnt translate these for quite a few languages
* Move to cm_strings (creating our own array as well) to allow people
  to translate these to their languages

Change-Id: I063cfad23e6a05e60f65a61e6618ca015af11593
parent 43aefe37
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright (C) 2017 The LineageOS Project
* Copyright (C) 2013 The Android Open Source Project
* Copyright (C) 2017-2018 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,4 +20,11 @@

<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <string name="no_wallpaper">No wallpaper</string>

    <!-- Option for setting the wallpaper only on the home screen. -->
    <string name="which_wallpaper_option_home_screen_cm">Home screen</string>
    <!-- Option for setting the wallpaper only on the lock screen. -->
    <string name="which_wallpaper_option_lock_screen_cm">Lock screen</string>
    <!-- Option for setting the wallpaper on both the home screen and lock screen. -->
    <string name="which_wallpaper_option_home_screen_and_lock_screen_cm">Home screen and lock screen</string>
</resources>
+3 −3
Original line number Diff line number Diff line
@@ -33,10 +33,10 @@ public class WallpaperListBaseAdapter extends BaseAdapter {
    private final Context context;

    private static Pair<Integer, Integer>[] DIALOG_ENTRIES = new Pair[] {
        new Pair(R.drawable.ic_home_screen, R.string.which_wallpaper_option_home_screen),
        new Pair(R.drawable.ic_lock_screen, R.string.which_wallpaper_option_lock_screen),
        new Pair(R.drawable.ic_home_screen, R.string.which_wallpaper_option_home_screen_cm),
        new Pair(R.drawable.ic_lock_screen, R.string.which_wallpaper_option_lock_screen_cm),
        new Pair(R.drawable.ic_home_screen_and_lock_screen,
                R.string.which_wallpaper_option_home_screen_and_lock_screen)
                R.string.which_wallpaper_option_home_screen_and_lock_screen_cm)
    };

    private class ViewHolder {