From 044626daf2acceef080b37931100e3c549929ecb Mon Sep 17 00:00:00 2001 From: Stephan Bergemann Date: Mon, 15 Apr 2013 22:31:21 +0200 Subject: [PATCH] fixed some internationalization issues with the bootstrap theme --- htdocs/themes/bootstrap/views/about.php | 13 ++- htdocs/themes/bootstrap/views/api_help.php | 93 ++++++++++--------- .../bootstrap/views/defaults/paste_form.php | 26 +++--- 3 files changed, 72 insertions(+), 60 deletions(-) diff --git a/htdocs/themes/bootstrap/views/about.php b/htdocs/themes/bootstrap/views/about.php index d695820..2a54aaa 100644 --- a/htdocs/themes/bootstrap/views/about.php +++ b/htdocs/themes/bootstrap/views/about.php @@ -1,8 +1,15 @@ load->view("defaults/header");?> -
-

About

- To edit this page edit application/views/about.php. +
+
+ +
+
+ To edit this page edit application/views/about.php. +
load->view("defaults/footer");?> diff --git a/htdocs/themes/bootstrap/views/api_help.php b/htdocs/themes/bootstrap/views/api_help.php index 43982c8..3cd2ea0 100644 --- a/htdocs/themes/bootstrap/views/api_help.php +++ b/htdocs/themes/bootstrap/views/api_help.php @@ -1,64 +1,69 @@ load->view("defaults/header");?> -
-

API

-

Create pastes from the commandline

+
+
+ +
+
+

Create pastes from the commandline

-

API URL

-

+

API URL

+

-

Return values

-

- On success, the API returns the paste URL:
- On error, the API returns the error message: Error: Missing paste text -

+

Return values

+

+ On success, the API returns the paste URL:
+ On error, the API returns the error message: Error: Missing paste text +

-

POST parameters

-

 

+

POST parameters

+

 

- text=[your paste text] -

The paste content. Required.

+ text=[your paste text] +

The paste content. Required.

- title=[title] -

Title for the paste.

+ title=[title] +

Title for the paste.

- name=[name] -

The author's name.

+ name=[name] +

The author's name.

- private=1 -

Make paste private.

+ private=1 +

Make paste private.

- lang=[language] -

- Use alternative syntax highlighting.
- Possible values: -

+ lang=[language] +

+ Use alternative syntax highlighting.
+ Possible values: +

- expire=[minutes] -

Set paste expiration.

+ expire=[minutes] +

Set paste expiration.

- reply=[pasteid] -

Reply to existing paste.

+ reply=[pasteid] +

Reply to existing paste.

-

Examples

-

 

+

Examples

+

 

-

Create paste

- curl -d text='this is my text' -

Create a paste with the text 'this is my text'.

+

Create paste

+ curl -d text='this is my text' +

Create a paste with the text 'this is my text'.

-

Create paste from a file

- curl -d private=1 -d name=Herbert --data-urlencode text@/etc/passwd -

Create a private paste with the author 'Herbert' and the contents of '/etc/passwd'.

+

Create paste from a file

+ curl -d private=1 -d name=Herbert --data-urlencode text@/etc/passwd +

Create a private paste with the author 'Herbert' and the contents of '/etc/passwd'.

-

Create paste from a php file

- curl -d lang=php --data-urlencode text@main.php -

Create a paste with PHP syntax highlighting.

- -

Get paste ;-)

- curl -

Display paste.

+

Create paste from a php file

+ curl -d lang=php --data-urlencode text@main.php +

Create a paste with PHP syntax highlighting.

+

Get paste ;-)

+ curl +

Display paste.

+
load->view("defaults/footer");?> diff --git a/htdocs/themes/bootstrap/views/defaults/paste_form.php b/htdocs/themes/bootstrap/views/defaults/paste_form.php index a7ca65a..121c84f 100644 --- a/htdocs/themes/bootstrap/views/defaults/paste_form.php +++ b/htdocs/themes/bootstrap/views/defaults/paste_form.php @@ -44,7 +44,7 @@
@@ -57,14 +57,14 @@
- +
@@ -86,20 +86,20 @@
"Keep Forever", - "30" => "30 Minutes", - "60" => "1 hour", - "360" => "6 Hours", - "720" => "12 Hours", - "1440" => "1 Day", - "10080" => "1 Week", - "40320" => "4 Weeks" - ); + "0" => lang('exp_forever'), + "30" => lang('exp_30min'), + "60" => lang('exp_1h'), + "360" => lang('exp_6h'), + "720" => lang('exp_12h'), + "1440" => lang('exp_1d'), + "10080" => lang('exp_1w'), + "40320" => lang('exp_4w'), + ); echo form_dropdown('expire', $options, $expire_set, $expire_extra); ?>