[Android General] grzegorz354:
Upgrading Weather >>> lock screen >>> Nougat

Changing the language on the lockscreen

1. Change what is in blue

<LinearLayout android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/weather_widget" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip">
<mickles.app.mAccuWeatherS7.mWeatherIcon android:gravity="start|center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="2.0dip" />
<mickles.app.mAccuWeatherS7.mWeatherCurrentTemp android:textSize="35.0dip" android:textColor="#ffffffff" android:gravity="start|center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="1.0dip" android:fontFamily="samsung-neo-num3L" style="@style/keyguard_headline_text_shadow" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-1.5dip" android:layout_marginEnd="1.0dip">
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.5dip">
<mickles.app.mAccuWeatherS7.mWeatherHighTemp android:textSize="15.0dip" android:textColor="#ffffffff" android:gravity="end|center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:fontFamily="samsung-neo-num3L" android:layout_marginStart="6.0dip" android:layout_marginEnd="3.0dip" style="@style/keyguard_headline_text_shadow" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.5dip">
<mickles.app.mAccuWeatherS7.mWeatherLowTemp android:textSize="15.0dip" android:textColor="#ffffffff" android:gravity="end|center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:fontFamily="samsung-neo-num3L" android:layout_marginStart="6.0dip" android:layout_marginEnd="3.0dip" style="@style/keyguard_headline_text_shadow" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:gravity="center|left" android:layout_gravity="center_horizontal" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip">
<LinearLayout android:gravity="center|left" android:orientation="horizontal" android:id="@id/sunrise" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:textSize="16.0dip" android:textColor="#fff8ecd0" android:gravity="center|left" android:layout_width="wrap_content" android:layout_height="wrap_content" [COLOR="blue"]android:text="@string/sunrise" [/COLOR]style="@style/keyguard_headline_text_shadow" />
<mickles.app.mAccuWeatherS7.mWeatherSunRise android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="center|left" android:tag="HH:mm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:layout_marginStart="6.0dip" style="@style/keyguard_headline_text_shadow" />
<ImageView android:layout_width="13.0dip" android:layout_height="13.0dip" android:src="@drawable/weather_edge_ic_location_mtrl" android:layout_marginStart="11.0dip" />
<mickles.app.mAccuWeatherS7.mWeatherLocation android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="end|center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:layout_marginStart="1.0dip" style="@style/keyguard_headline_text_shadow" />
</LinearLayout>
<LinearLayout android:gravity="center|left" android:orientation="horizontal" android:id="@id/sunset" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip">
<TextView android:textSize="16.0dip" android:textColor="#ffe2d7cd" android:gravity="center|left" android:layout_width="wrap_content" android:layout_height="wrap_content" [COLOR="blue"]android:text="@string/sunset" [/COLOR]style="@style/keyguard_headline_text_shadow" />
<mickles.app.mAccuWeatherS7.mWeatherSunSet android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="center|left" android:tag="HH:mm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:layout_marginStart="6.0dip" style="@style/keyguard_headline_text_shadow" />
<mickles.app.mAccuWeatherS7.mWeatherText android:textSize="16.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="end|center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:singleLine="true" android:layout_marginStart="12.0dip" style="@style/keyguard_headline_text_shadow" />
</LinearLayout>
</LinearLayout>

2. Add SystemUI/res/values/strings.xml

<string name="sunset">sunset </string>
<string name="sunrise">sunrise </string>

3. Add SystemUI/res/values-xx/strings.xml

<string name="sunset">xxxxxx </string>
<string name="sunrise">xxxxx </string>

xx - - your language

thx [MENTION=5554004]alexega[/MENTION]