languages handling done

This commit is contained in:
Quitta 2013-08-03 18:59:21 +02:00
parent 1c1d7575f8
commit 41fcbdd26f
10 changed files with 96 additions and 54 deletions

View file

@ -1,10 +1,38 @@
; This is the ingame layout config file ; This is the ingame layout config file
; Here you can easily change colors of specific elements in the ingame templates. ; Here you can easily change colors of specific elements in the ingame templates.
;-------------------------------------------------------------------------------
[basic] [basic]
;second menu bar bg color
second_menu_bg_color = "#00000040"
;title bg color
title_bg_color = "#303030"
;default info text color ;default info text color
info_color = "#00CED1" info_color = "#00CED1"
;admin/mod name color ;admin/mod name color
team_color = "red" team_color = "red"
;main table bg color
main_tbl_color = "#00000030"
;normal table bg color
normal_tbl_color = "#00000060"
;table bg color for team replies
team_reply_tbl_color = "#F8C8C140"
;table bg color for hidden replies
hidden_reply_tbl_color = "#CFFEFF40"
;table bg color for closed reply
closed_tbl_color = "#FFE69960"
;table header tr bg color
table_header_tr_color = "#00000090"
;-------------------------------------------------------------------------------

View file

@ -1,7 +1,7 @@
{block name=content} {block name=content}
<tr><td> <tr><td>
<table width="100%" bgcolor="#303030" cellspacing="2"> <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
@ -28,7 +28,7 @@
<td> <td>
<table width="100%" height="100%" cellpadding="10"> <table width="100%" height="100%" cellpadding="10">
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>

View file

@ -1,7 +1,7 @@
{block name=content} {block name=content}
<tr><td> <tr><td>
<table width="100%" bgcolor="#303030" cellspacing="2"> <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
@ -28,7 +28,7 @@
<td> <td>
<table width="100%" height="100%" cellpadding="10"> <table width="100%" height="100%" cellpadding="10">
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>

View file

@ -1,7 +1,7 @@
{block name=content} {block name=content}
<tr><td> <tr><td>
<table width="100%" cellspacing="0" cellpadding="0" border="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr bgcolor="#00000040" valign="middle"> <tr bgcolor="{$second_menu_bg_color}" valign="middle">
<td> <td>
<table> <table>
<tr> <tr>
@ -36,7 +36,7 @@
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="#303030" cellspacing="2"> <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
@ -63,7 +63,7 @@
<td> <td>
<table width="100%" height="100%" cellpadding="10"> <table width="100%" height="100%" cellpadding="10">
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
@ -118,7 +118,7 @@
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
@ -151,7 +151,7 @@
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>

View file

@ -1,7 +1,7 @@
{block name=content} {block name=content}
<tr><td> <tr><td>
<table width="100%" bgcolor="#303030" cellspacing="2"> <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
@ -29,7 +29,7 @@
<table width="100%" height="100%" cellpadding="10"> <table width="100%" height="100%" cellpadding="10">
{if isset($isAdmin) && $isAdmin eq 'TRUE'} {if isset($isAdmin) && $isAdmin eq 'TRUE'}
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
@ -76,13 +76,13 @@
</td></tr> </td></tr>
{/if} {/if}
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellspacing="10"> <table cellspacing="10">
<tr><td> <tr><td>
<p><h3>All groups</h3></p> <p><h3>All groups</h3></p>
<table cellpadding="4"> <table cellpadding="4">
<tr bgcolor="#00000090"> <tr bgcolor="{$table_header_tr_color}">
<td>ID</td> <td>ID</td>
<td>Name</td> <td>Name</td>
<td>Tag</td> <td>Tag</td>

View file

@ -1,7 +1,7 @@
{block name=content} {block name=content}
<tr><td> <tr><td>
<table width="100%" cellspacing="0" cellpadding="0" border="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr bgcolor="#00000040" valign="middle"> <tr bgcolor="{$second_menu_bg_color}" valign="middle">
<td> <td>
<table> <table>
<tr> <tr>
@ -23,7 +23,7 @@
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="#303030" cellspacing="2"> <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
@ -50,7 +50,7 @@
<td> <td>
<table width="100%" height="100%" cellpadding="10"> <table width="100%" height="100%" cellpadding="10">
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
@ -60,11 +60,11 @@
<tr> <tr>
<td> <td>
<p> <p>
<font color="#00CED1"> {$reply_timestamp}</font> <font color="{$info_color}"> {$reply_timestamp}</font>
{if $author_permission eq '1'} {if $author_permission eq '1'}
<span class="label label-success"><strong><i class="icon-user icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$author}"><font color="white"> {$authorName}</font>{else} {$authorName} {/if}</a></strong></span> <span class="label label-success"><strong><i class="icon-user icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$author}"><font color="white"> {$authorName}</font>{else} {$authorName} {/if}</a></strong></span>
{else if $reply.permission gt '1'} {else if $reply.permission gt '1'}
<span class="label label-warning"><strong><i class="icon-star icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$author}"><font color="red"> {$authorName}</font>{else} {$authorName} {/if}</a></strong></span> <span class="label label-warning"><strong><i class="icon-star icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$author}"><font color="{$team_color}"> {$authorName}</font>{else} {$authorName} {/if}</a></strong></span>
{/if}</p> {/if}</p>
<p><pre>{$reply_content}</pre></p> <p><pre>{$reply_content}</pre></p>
</td> </td>

View file

@ -1,7 +1,7 @@
{block name=content} {block name=content}
<tr><td> <tr><td>
<table width="100%" bgcolor="#303030" cellspacing="2"> <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
@ -28,7 +28,7 @@
<td> <td>
<table width="100%" height="100%" cellpadding="10"> <table width="100%" height="100%" cellpadding="10">
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
@ -77,13 +77,13 @@
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>All members</h3></p> <p><h3>All members</h3></p>
<table cellpadding="4"> <table cellpadding="4">
<tr bgcolor="#00000090"> <tr bgcolor="{$table_header_tr_color}">
<td>ID</td> <td>ID</td>
<td>Name</td> <td>Name</td>
{if isset($isAdmin) && $isAdmin eq 'TRUE'}<td>Action</td>{/if} {if isset($isAdmin) && $isAdmin eq 'TRUE'}<td>Action</td>{/if}

View file

@ -1,7 +1,7 @@
{block name=content} {block name=content}
<tr><td> <tr><td>
<table width="100%" cellspacing="0" cellpadding="0" border="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr bgcolor="#00000040" valign="middle"> <tr bgcolor="{$second_menu_bg_color}" valign="middle">
<td> <td>
<table> <table>
<tr> <tr>
@ -24,7 +24,7 @@
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="#303030" cellspacing="2"> <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
@ -51,19 +51,19 @@
<td> <td>
<table width="100%" height="100%" cellpadding="10"> <table width="100%" height="100%" cellpadding="10">
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10" width="100%"> <table cellpadding="10" width="100%">
<tr><td> <tr><td>
<table cellpadding="5" width="100%"> <table cellpadding="5" width="100%">
<tr><td> <tr><td>
<table cellpadding="1" bgcolor="#00000060" border="2" width="100%"> <table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
<tr><td> <tr><td>
<table cellpadding="3" width="100%"> <table cellpadding="3" width="100%">
<tr> <tr>
<td><font color="{$info_color}">Submitted: </font>{$ticket_timestamp}</td> <td><font color="{$info_color}">Submitted: </font>{$ticket_timestamp}</td>
<td><font color="{$info_color}">Last Updated: </font>{$ticket_lastupdate}</td> <td><font color="{$info_color}">Last Updated: </font>{$ticket_lastupdate}</td>
<td><font color="{$info_color}">Status: </font>{if $ticket_status neq 3}<span class="label label-success">Open</span>{/if} <span class="label {if $ticket_status eq 0}label-success{else if $ticket_status eq 1}label-warning{else if $ticket_status eq 2}label-important{/if}"><strong>{$ticket_statustext}</strong></span></td> <td><font color="{$info_color}">Status: </font>{if $ticket_status neq 3}<font color="green">Open</font>{/if} {if $ticket_status eq 3} <font color="red">{$ticket_statustext}</font>{else}{$ticket_statustext} {/if}</td>
</tr> </tr>
<tr> <tr>
<td><font color="{$info_color}">Category: </font>{$ticket_category}</td> <td><font color="{$info_color}">Category: </font>{$ticket_category}</td>
@ -88,36 +88,50 @@
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table cellpadding="1" bgcolor="#00000060" border="2" width="100%"> <table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
{foreach from=$ticket_replies item=reply} {foreach from=$ticket_replies item=reply}
<tr> <tr>
<td {if $reply.permission gt '1'} {if $reply.hidden eq 0} bgcolor="#F8C8C140"{else if $reply.hidden eq 1} bgcolor="#CFFEFF40"{/if}{/if}> <td {if $reply.permission gt '1'} {if $reply.hidden eq 0} bgcolor="{$team_reply_tbl_color}"{else if $reply.hidden eq 1} bgcolor="{$hidden_reply_tbl_color}"{/if}{/if}>
<table cellpadding="3">
<tr><td>
<p> <p>
<font color="{$info_color}"> {$reply.timestamp}</font> <font color="{$info_color}"> {$reply.timestamp}</font>
{if $reply.permission eq '1'} {if $reply.permission eq '1'}
<span class="label label-success"><strong><i class="icon-user icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="white"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span> <span class="label label-success"><strong><i class="icon-user icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="white"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span>
{else if $reply.permission gt '1'} {else if $reply.permission gt '1'}
<span class="label label-warning"><strong><i class="icon-star icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="red"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span> <span class="label label-warning"><strong><i class="icon-star icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="{$team_color}"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span>
{/if} {/if}
</p> </p>
<p><pre>{$reply.replyContent}</pre></p> <p><pre>{$reply.replyContent}</pre></p>
</td></tr>
</table>
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
{if $ticket_status eq 3} {if $ticket_status eq 3}
<tr> <tr>
<td bgcolor="#FFE69960"> <td bgcolor="{$closed_tbl_color}">
<p><pre>Ticket is closed.</pre></p> <table cellpadding="4">
<tr><td>
<p><pre><h4>[Ticket is closed]</h4></pre></p>
</td></tr>
</table>
</td> </td>
</tr> </tr>
{/if} {/if}
<tr> <tr>
<td> <td>
<form id="reply" class="form-vertical" method="post" action="index.php"> <form id="reply" class="form-vertical" method="post" action="index.php">
<table cellpadding="4">
<tr><td height="5"></td></tr>
<tr>
<td>
<p><h4>{$t_reply}:</h4></p> <p><h4>{$t_reply}:</h4></p>
<table> </td>
</tr>
{if $ticket_status neq 3} {if $ticket_status neq 3}
<tr> <tr>
<td><textarea cols="50" id="Content" name="Content"><br><br><br></textarea></td> <td><textarea cols="50" id="Content" name="Content"><br><br><br></textarea></td>
@ -170,7 +184,7 @@
{if isset($isMod) and $isMod eq "TRUE"} {if isset($isMod) and $isMod eq "TRUE"}
<tr><td> <tr><td>
<table cellpadding="1" bgcolor="#00000060" border="2" width="100%"> <table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
<tr><td> <tr><td>
<table cellpadding="3" width="100%"> <table cellpadding="3" width="100%">
<tr> <tr>

View file

@ -1,7 +1,7 @@
{block name=content} {block name=content}
<tr><td> <tr><td>
<table width="100%" cellspacing="0" cellpadding="0" border="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr bgcolor="#00000040" valign="middle"> <tr bgcolor="{$second_menu_bg_color}" valign="middle">
<td> <td>
<table> <table>
<tr> <tr>
@ -22,7 +22,7 @@
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="#303030" cellspacing="2"> <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
@ -49,14 +49,14 @@
<td> <td>
<table width="100%" height="100%" cellpadding="10"> <table width="100%" height="100%" cellpadding="10">
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>Title: <a href="index.php?page=show_ticket&id={$ticket_id}">{$ticket_title}</a></h3></p> <p><h3>Title: <a href="index.php?page=show_ticket&id={$ticket_id}">{$ticket_title}</a></h3></p>
<p> <p>
<table cellspacing="5"> <table cellspacing="5">
<tr bgcolor="#00000090"> <tr bgcolor="{$table_header_tr_color}">
<td>ID</td> <td>ID</td>
<td>Timestamp</td> <td>Timestamp</td>
<td>Query</td> <td>Query</td>

View file

@ -1,7 +1,7 @@
{block name=content} {block name=content}
<tr><td> <tr><td>
<table width="100%" cellspacing="0" cellpadding="0" border="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr bgcolor="#00000040" valign="middle"> <tr bgcolor="{$second_menu_bg_color}" valign="middle">
<td> <td>
<table> <table>
<tr> <tr>
@ -36,7 +36,7 @@
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="#303030" cellspacing="2"> <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
@ -63,7 +63,7 @@
<td> <td>
<table width="100%" height="100%" cellpadding="10"> <table width="100%" height="100%" cellpadding="10">
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
@ -120,14 +120,14 @@
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="#00000030" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>Tickets</h3></p> <p><h3>Tickets</h3></p>
<table cellpadding="3"> <table cellpadding="3">
<tr bgcolor="#00000090"> <tr bgcolor="{$table_header_tr_color}">
<td>ID</td> <td>ID</td>
<td>Title</td> <td>Title</td>
<td>Timestamp</td> <td>Timestamp</td>