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

Commit 91eccaad authored by Andrew Jiang's avatar Andrew Jiang
Browse files

Gallery2: Localize strings

Undo and redo were hardcoded in the photo editor. This allows their
localization.

Patch Set 2: Use new strings so that it may be better translated for
certain languages. (Translations in separate patch)

Change-Id: I63df977696b74128ca5e6fc45037b6b43d43a465
parent cf85adbd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -39,6 +39,10 @@
    <string name="filtershow_undo">Undo</string>
    <!--  Text for redo menu item [CHAR LIMIT=20] -->
    <string name="filtershow_redo">Redo</string>
    <!--  Text for undo toast message -->
    <string name="filtershow_undo_toast">Undo</string>
    <!--  Text for redo toast message -->
    <string name="filtershow_redo_toast">Redo</string>
    <!--  Text for the history panel menu item [CHAR LIMIT=20] -->
    <string name="show_history_panel">Show History</string>
    <!--  Text for the history panel menu item [CHAR LIMIT=20] -->
+2 −2
Original line number Diff line number Diff line
@@ -601,7 +601,7 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
                HistoryAdapter adapter = mImageShow.getHistory();
                int position = adapter.undo();
                mImageShow.onItemClick(position);
                mImageShow.showToast("Undo");
                mImageShow.showToast(getString(R.string.filtershow_undo_toast));
                invalidateViews();
                return true;
            }
@@ -609,7 +609,7 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
                HistoryAdapter adapter = mImageShow.getHistory();
                int position = adapter.redo();
                mImageShow.onItemClick(position);
                mImageShow.showToast("Redo");
                mImageShow.showToast(getString(R.string.filtershow_redo_toast));
                invalidateViews();
                return true;
            }