From cdde6fd03bd4380f274e52c95f51d0cc843e1159 Mon Sep 17 00:00:00 2001 From: "tg(x)" <*@tg-x.net> Date: Tue, 1 Mar 2016 14:47:56 +0100 Subject: [PATCH] Revert "Revert "html lang"" This reverts commit ea7fb2d5c8b0e0052a81e48e6d99143dfc233dc5. --- lib/i18n.ts | 6 ++++ pages/confirm-contract.html | 52 +++++++++++++++++-------------- pages/confirm-create-reserve.html | 36 +++++++++++---------- popup/popup.html | 12 ++++--- style/wallet.css | 2 +- 5 files changed, 62 insertions(+), 46 deletions(-) diff --git a/lib/i18n.ts b/lib/i18n.ts index 60da6644f..230bddd7d 100644 --- a/lib/i18n.ts +++ b/lib/i18n.ts @@ -16,6 +16,12 @@ "use strict"; +document.addEventListener( + "DOMContentLoaded", + function () { + document.body.lang = chrome.i18n.getUILanguage(); + }); + declare var i18n: any; const JedModule = window["Jed"]; diff --git a/pages/confirm-contract.html b/pages/confirm-contract.html index 2eac4a8e8..e80fb50c9 100644 --- a/pages/confirm-contract.html +++ b/pages/confirm-contract.html @@ -1,30 +1,34 @@ - - + - - Taler Wallet: Confirm Reserve Creation - - - - - - - - - - -
- -

Payment Confirmation

-
+ + Taler Wallet: Confirm Reserve Creation - + + -
-
-
+ + + + + + + + + + + +
+ +

Payment Confirmation

+
+ + + +
+
+
+ - diff --git a/pages/confirm-create-reserve.html b/pages/confirm-create-reserve.html index e14d10221..b8cfd4a00 100644 --- a/pages/confirm-create-reserve.html +++ b/pages/confirm-create-reserve.html @@ -1,34 +1,36 @@ - - + + Taler Wallet: Select Taler Provider + + + + + - +
+ +

Select Taler Provider

+
-
- -

Select Taler Provider

-
+ - - -
- -
-
-
- -
+
+
+
+
+
+ diff --git a/popup/popup.html b/popup/popup.html index c67085c1b..fbf9c2193 100644 --- a/popup/popup.html +++ b/popup/popup.html @@ -1,8 +1,12 @@ + - + + + + @@ -11,10 +15,10 @@ + - -
+ +
- diff --git a/style/wallet.css b/style/wallet.css index 0af2240e0..230cf671e 100644 --- a/style/wallet.css +++ b/style/wallet.css @@ -135,4 +135,4 @@ button.linky { table, th, td { border: 1px solid black; -} \ No newline at end of file +}