View Single Post
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