From 07999c566178e0804483a8fa7c716dec4bbaee3c Mon Sep 17 00:00:00 2001 From: Stephan Bergemann Date: Mon, 15 Apr 2013 17:33:05 +0200 Subject: [PATCH 1/4] changed bootstrap theme to support multiple languages --- htdocs/themes/bootstrap/views/list.php | 14 +++++------ htdocs/themes/bootstrap/views/trends.php | 16 ++++++------ htdocs/themes/bootstrap/views/view/view.php | 28 ++++++++++----------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/htdocs/themes/bootstrap/views/list.php b/htdocs/themes/bootstrap/views/list.php index 4646f42..ff35b19 100644 --- a/htdocs/themes/bootstrap/views/list.php +++ b/htdocs/themes/bootstrap/views/list.php @@ -1,6 +1,6 @@ load->view('defaults/header');?> @@ -10,11 +10,11 @@ - - - + + + - + @@ -27,14 +27,14 @@ - +
TitleNameLanguage When
ago. .
-

There have been no pastes :(

+

:(

diff --git a/htdocs/themes/bootstrap/views/trends.php b/htdocs/themes/bootstrap/views/trends.php index 58dd7e2..22b5cc1 100644 --- a/htdocs/themes/bootstrap/views/trends.php +++ b/htdocs/themes/bootstrap/views/trends.php @@ -1,6 +1,6 @@ load->view('defaults/header');?> - Title - Name - Language - Hits + + + + UNIX - When + @@ -25,14 +25,14 @@ - ago. + . -

There have been no pastes :(

+

:(

diff --git a/htdocs/themes/bootstrap/views/view/view.php b/htdocs/themes/bootstrap/views/view/view.php index 7e31798..d9adf41 100644 --- a/htdocs/themes/bootstrap/views/view/view.php +++ b/htdocs/themes/bootstrap/views/view/view.php @@ -12,14 +12,14 @@
-
By , ago, written in .
-
This paste is a reply to by
-
URL
+
, , .
+
+
-
Shorturl
+
-
Embed '); ?>" />
-
">Download Paste or ">View RawExpand paste to full width of browser
+
'); ?>" />
+
"> ">
@@ -43,16 +43,16 @@ function checkNum($num){ if(isset($replies) and !empty($replies)){ $n = 1; ?> -

Replies to rss

+

rss

- - - + + + - + @@ -70,7 +70,7 @@ if(isset($replies) and !empty($replies)){ - + @@ -80,8 +80,8 @@ if(isset($replies) and !empty($replies)){ load->view('defaults/paste_form', $reply_form); ?> From f732fdb105f9bf6f0029cc2d5185e44344062223 Mon Sep 17 00:00:00 2001 From: Stephan Bergemann Date: Mon, 15 Apr 2013 17:33:47 +0200 Subject: [PATCH 2/4] added german language to README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e075d82..21ca2a4 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Create you own theme. See doc/CREATING_THEMES.md $config['language'] = 'english'; ``` -You can choose between english and swissgerman ;) +You can choose between english, german and swissgerman ;) Help translating Stikked into your language! See doc/TRANSLATING_STIKKED.md From 80fc7c525896e27be8580141e868fff22b8b173c Mon Sep 17 00:00:00 2001 From: Stephan Bergemann Date: Mon, 15 Apr 2013 20:40:52 +0200 Subject: [PATCH 3/4] also applied the language configurability to the defaults of the bootstrap theme --- .../views/defaults/footer_message.php | 2 +- .../bootstrap/views/defaults/header.php | 10 +++---- .../bootstrap/views/defaults/paste_form.php | 30 +++++++++---------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/htdocs/themes/bootstrap/views/defaults/footer_message.php b/htdocs/themes/bootstrap/views/defaults/footer_message.php index 815e14f..78db813 100644 --- a/htdocs/themes/bootstrap/views/defaults/footer_message.php +++ b/htdocs/themes/bootstrap/views/defaults/footer_message.php @@ -1,3 +1,3 @@ diff --git a/htdocs/themes/bootstrap/views/defaults/header.php b/htdocs/themes/bootstrap/views/defaults/header.php index bc84fb6..eacfedd 100644 --- a/htdocs/themes/bootstrap/views/defaults/header.php +++ b/htdocs/themes/bootstrap/views/defaults/header.php @@ -53,13 +53,13 @@ $this->carabiner->display('css'); diff --git a/htdocs/themes/bootstrap/views/defaults/paste_form.php b/htdocs/themes/bootstrap/views/defaults/paste_form.php index 37351de..aae92dd 100644 --- a/htdocs/themes/bootstrap/views/defaults/paste_form.php +++ b/htdocs/themes/bootstrap/views/defaults/paste_form.php @@ -5,7 +5,7 @@
TitleNameLanguage When
ago. .