Bug 1014293 - Part 1: Strings and formatting. r=lucas

This commit is contained in:
Chenxia Liu 2014-10-23 16:47:22 -07:00
parent 1da0d1c520
commit 8dffbaa924
4 changed files with 17 additions and 1 deletions

View File

@ -399,6 +399,9 @@ size. -->
<!ENTITY home_last_tabs_empty "Your recent tabs show up here.">
<!ENTITY home_open_all "Open all">
<!ENTITY home_most_recent_empty "Websites you visited most recently show up here.">
<!-- Localization note (home_most_recent_emptyhint): "Psst" is a sound that might be used to attract someone's attention unobtrusively, and intended to hint at "Private browsing" to the user.
The placeholders &formatS1; and &formatS2; are used to mark the location of text underlining. -->
<!ENTITY home_most_recent_emptyhint "Psst: &formatS1;Private browsing&formatS2; mode won\'t save your history.">
<!ENTITY home_reading_list_empty "Articles you save for later show up here.">
<!-- Localization note (home_reading_list_hint): The "TIP" string is synonymous to "hint", "clue", etc. This string is displayed
as an advisory message on how to add content to the reading list when the reading list empty.

View File

@ -28,7 +28,15 @@
android:layout_height="0dip"
android:gravity="top|center"
android:textAppearance="@style/TextAppearance.EmptyMessage"
android:layout_weight="3"/>
android:layout_weight="2"/>
<TextView android:id="@+id/home_empty_hint"
android:layout_width="match_parent"
android:layout_height="0dip"
android:visibility="gone"
android:gravity="top|center"
android:textAppearance="@style/TextAppearance.EmptyHint"
android:layout_weight="4"/>
</LinearLayout>

View File

@ -344,6 +344,10 @@
<style name="TextAppearance.EmptyMessage" parent="TextAppearance.Large"/>
<style name="TextAppearance.EmptyHint" parent="TextAppearance.Medium">
<item name="android:textColor">#FFA62F</item>
</style>
<style name="TextAppearance.Micro">
<item name="android:textSize">12sp</item>
<item name="android:textColor">?android:attr/textColorTertiary</item>

View File

@ -356,6 +356,7 @@
<string name="home_last_tabs_empty">&home_last_tabs_empty;</string>
<string name="home_open_all">&home_open_all;</string>
<string name="home_most_recent_empty">&home_most_recent_empty;</string>
<string name="home_most_recent_emptyhint">&home_most_recent_emptyhint;</string>
<string name="home_reading_list_empty">&home_reading_list_empty;</string>
<string name="home_reading_list_hint">&home_reading_list_hint2;</string>
<string name="home_reading_list_hint_accessible">&home_reading_list_hint_accessible;</string>