Raised This Month: $109 Target: $400
 27% 

Translation for webpanel


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 04-06-2015 , 12:10   Translation for webpanel
Reply With Quote #1

What files do I have to edit if I want to translate the webpanel
8guawong is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 04-06-2015 , 13:55   Re: Translation for webpanel
Reply With Quote #2

Source: https://forums.alliedmods.net/showth...72#post2271972

Post 278, 279, 280 & 281

Quote:
Originally Posted by nguyenbaodanh View Post
how to translate the webpanel to different language ?
Quote:
Originally Posted by arne1288 View Post
Quote:
Originally Posted by nguyenbaodanh View Post
how to translate the webpanel to different language ?
Go through every single file and translate what you want / need to translate.
Quote:
Originally Posted by nguyenbaodanh View Post
.tpl files in theme folder right ?
Quote:
Originally Posted by arne1288 View Post
Quote:
Originally Posted by nguyenbaodanh View Post
.tpl files in theme folder right ?
As I said, you have to go through every single file and see.

Most of it seems to be in the .tpl files, but there are also quite a bit of phrases built directly into the .php files, here is a few examples:

Code:
includes/sb-callback.php:       $objResponse->addAssign("steam.msg", "innerHTML", "You must type a Steam ID or Community ID for the admin.");
includes/sb-callback.php:       $objResponse->addAssign("steam.msg", "innerHTML", "Admin ".htmlspecialchars(addslashes($name))."
 already uses this Steam ID.");
pages/admin.edit.ban.php:       $errorScript .= "$('steam.msg').innerHTML = 'You must type a Steam ID or Community ID';";
pages/admin.edit.ban.php:       $errorScript .= "$('steam.msg').innerHTML = 'Please enter a valid Steam ID or Community ID';";
pages/page.protest.php:         $errors .=  '* That Steam ID is not banned!<br>';
pages/page.protest.php:         $errors .=  '* A protest is already pending for this Steam ID.<br>';
So, you have the two choices:

a) Go through every single file.
b) Wait for SourceBans 2.0 (or something based on it), which has support for translations.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 04-06-2015 , 18:39   Re: Translation for webpanel
Reply With Quote #3

damn
8guawong is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:24.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode