The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Name in two languages
Author Message
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #1
Name in two languages
Hello all.
I have a more monsters with russhian names:
Code:
[CHARDEF C_CAMEL]
ID=C_MAN
NAME=Бандит
Some players are not from Russhian and have option: account tag.language=1
They have game interface in English.

How it is possible to realize more simply support of display of a name of monsters/NPC at once in two languages?

I think:
tag.name_1=Бандит tag.name_2=Gangster
ON=@CLICK
MESSAGE <QVAL <SRC.ACCOUNT.TAG0.LANGUAGE>==1 ? <TAG0.NAME_1>:<TAG0.NAME_1>>
Difficult and deadlock way
10-18-2012 03:00 PM
Find all posts by this user Like Post Quote this message in a reply
htid4life
Journeyman
*

Posts: 162
Likes Given: 27
Likes Received: 4 in 3 posts
Joined: Mar 2012
Reputation: 2



Post: #2
RE: Name in two languages
why not do some thing like this

if (<SRC.ACCOUNT.TAG0.LANGUAGE>==1)
Message= Gangster
else
Message=Бандит
ENDIF

or around that lines..

that will if there language is english it will give them Gangster if not Russian

[Image: htid.jpg]
10-18-2012 11:10 PM
Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #3
RE: Name in two languages
you have to do this with tooltips
10-18-2012 11:19 PM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #4
RE: Name in two languages
(10-18-2012 11:19 PM)admin phoenix Wrote:  you have to do this with tooltips
How realise this with Tooltips?

(10-18-2012 11:10 PM)htid4life Wrote:  if (<SRC.ACCOUNT.TAG0.LANGUAGE>==1)
Message= Gangster
else
Message=Бандит
ENDIF
End i must do this for EVERY NPC? That is bad way.
(This post was last modified: 10-19-2012 12:30 AM by Russian.)
10-19-2012 12:29 AM
Find all posts by this user Like Post Quote this message in a reply
ShiryuX
Journeyman
*

Posts: 249
Likes Given: 1
Likes Received: 19 in 14 posts
Joined: Mar 2010
Reputation: 4



Post: #5
RE: Name in two languages
Try using clilocs?
10-19-2012 12:46 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #6
RE: Name in two languages
How i can use cliocs only for anmes?
10-19-2012 02:52 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)