From 316d2c2b6de9f45131585dde6713f8443f9a6746 Mon Sep 17 00:00:00 2001 From: vbracco Date: Thu, 30 Oct 2008 01:56:27 +0000 Subject: [PATCH] gettext implementation --- themes/tumblr/index.htm | 59 ++++++++++++++--------------------------- 1 file changed, 20 insertions(+), 39 deletions(-) diff --git a/themes/tumblr/index.htm b/themes/tumblr/index.htm index df7a992..1773d56 100644 --- a/themes/tumblr/index.htm +++ b/themes/tumblr/index.htm @@ -25,8 +25,8 @@ {if {$isAuthenticated}}
Hi, {User}.   - Add/Edit my posts   - Sign out + {__("Add or Edit my posts")}   + {__("Sign out")}
{/if} @@ -37,85 +37,66 @@
{$row.Date_Added}
+
+ Permalink {if {$row.postType}=='post'} -
- Permalink -

{$row.Title}

{$row.Body}
-
{elseif {$row.postType}=='photo'} -
- Permalink
{$row.PhotoAlt}
{$row.Caption}
-
{elseif {$row.postType}=='quote'} -
- Permalink
“ {$row.Quote}
— {$row.Source}
-
{elseif {$row.postType}=='url'} -
- Permalink - {elseif {$row.postType}=='conversation'} -
- Permalink
- ...

{$row.Title}

+ ...

{$row.Title}

{$row.Conversation}
-
{elseif {$row.postType}=='video'} -
- Permalink
{$row.Video}
{$row.Caption}
-
{elseif {$row.postType}=='mp3'} -
- Permalink
{$row.Mp3}
{$row.Caption}
-
{/if} - +
{if !{$id_post}}
-

Posted by {$row.User} {if {$allowComments}}- ( {$row.Comments_Number} ) comments{/if}

+

{__("Posted by")} {$row.User} {if {$allowComments}}- ( {$row.Comments_Number} ) {__("comments")}{/if}

{/if} + {/block} {if {$id_post}} {if {$row.Comments_Number}>0}
-

{$row.Comments_Number} answers to “{$row.Post_Title}”

+

{$row.Comments_Number} {__("answers to")} “{$row.Post_Title}”

    {block {$comments} as {$comment}}
  1. #   - {$comment.Comment_Author} said: + {$comment.Comment_Author} {__("said")}:
    - at {$comment.Date}

    + {__("at")} {$comment.Date}

    {$comment.Comment}

  2. @@ -126,24 +107,24 @@ {if {$allowComments}}
    -

    Add your comment

    +

    {__("Add your comment")}

    @@ -152,7 +133,7 @@

    - Some HTML allowed:
    + {__("Some HTML allowed:")}
         <blockquote> <code> <em> <strong> <a> @@ -175,8 +156,8 @@ {/if}

    \ No newline at end of file