-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CS Miscstats: Fix enemy remaining option displaying the message to the wrong team #611
Conversation
plugins/lang/miscstats.txt
Outdated
@@ -41,7 +41,8 @@ CT = CT | |||
CTS = CTS | |||
TERRORIST = TERRORIST | |||
TERRORISTS = TERRORISTS | |||
REMAINING = %d %s Remaining... | |||
REMAINING_ENEMY = Last enemy remaining... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds weird. I would change it to "Only one enemy remaining".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rsKliPPy said it was fine, but I guess we can't trust him! 🙊
My English is horrible, so I expect people giving me the right default phrase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never trust anyone!
Maybe it would be better if it's just "1 enemy remaining" or "%d enemy remaining" so it remains the same with its plural version "%d enemies remaining".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to avoid `%d' because it will be always 1, and it would be dumb to keep it. Also, it should give more freedom to translate. Like you could say either "1 enemy remaining", or someone would prefer "One enemy remaining".
Here are some more translations: [mk]
REMAINING_ENEMY = Preostanuva ushte samo eden protivnik...
REMAINING_ENEMIES = %d preostanati protivnici...
[bg]
REMAINING_ENEMY = Ostava oshte samo edin vrag...
REMAINING_ENEMIES = %d ostanali vragove... |
plugins/cstrike/miscstats.sma
Outdated
@@ -543,48 +537,26 @@ public client_death(killer, victim, wpnindex, hitplace, TK) | |||
} | |||
} | |||
|
|||
new team = get_user_team(victim) | |||
if (EnemyRemaining && is_user_connected(victim)) | |||
new team = get_user_team(victim); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cs_get_user_team
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually weird this native was not used from the start.
I'd consider removal of core language keys a breaking change. |
c65435b
to
be84725
Compare
be84725
to
16302fb
Compare
Original language key is back. |
I assume this should be in 1.9 as well. |
* Update miscstats.txt #618 * Update statsx.txt #618 * Update and rename mapchooser.txt to admincmd * Rename admincmd to mapchooser.txt * Update admincmd.txt * Update common.txt * Update multilingual.txt * Update multilingual.txt * Update scrollmsg.txt * Update statscfg.txt * Update adminchat.txt * Update adminhelp.txt * Update adminvote.txt * Update cmdmenu.txt * Update common.txt * Update mapchooser.txt * Update mapsmenu.txt * Update menufront.txt * Update miscstats.txt * Update multilingual.txt * Update nextmap.txt * Update pausecfg.txt * Update plmenu.txt plmenu.txt adresses only the behaviour in the "Menü", not the text in the chat! * Update restmenu.txt * Update scrollmsg.txt * Update stats_dod.txt * Update statscfg.txt * Update statsx.txt * Update telemenu.txt * Update timeleft.txt * Update admincmd.txt * Update plmenu.txt * Update adminchat.txt * Update admincmd.txt * Update mapsmenu.txt * Update miscstats.txt added changes due to PR #611 ! * Update miscstats.txt * Update pausecfg.txt * Update admincmd.txt * Update statscfg.txt
* Update miscstats.txt #618 * Update statsx.txt #618 * Update and rename mapchooser.txt to admincmd * Rename admincmd to mapchooser.txt * Update admincmd.txt * Update common.txt * Update multilingual.txt * Update multilingual.txt * Update scrollmsg.txt * Update statscfg.txt * Update adminchat.txt * Update adminhelp.txt * Update adminvote.txt * Update cmdmenu.txt * Update common.txt * Update mapchooser.txt * Update mapsmenu.txt * Update menufront.txt * Update miscstats.txt * Update multilingual.txt * Update nextmap.txt * Update pausecfg.txt * Update plmenu.txt plmenu.txt adresses only the behaviour in the "Menü", not the text in the chat! * Update restmenu.txt * Update scrollmsg.txt * Update stats_dod.txt * Update statscfg.txt * Update statsx.txt * Update telemenu.txt * Update timeleft.txt * Update admincmd.txt * Update plmenu.txt * Update adminchat.txt * Update admincmd.txt * Update mapsmenu.txt * Update miscstats.txt added changes due to PR #611 ! * Update miscstats.txt * Update pausecfg.txt * Update admincmd.txt * Update statscfg.txt
Fixes #560.
Regression from 9e4fe0d#diff-3afb3f242934c594b97f6626a9655704L313.
The second
get_players
overwrites the correct list.victim_alive
check is dropped. It's not needed anymore. It was using the wrong list, the message is not going to be shown to the victim.REMAINING
translation. It was translatingTERRORIST
/CT
with/out anS
separately, that's not really convenient for the user and complexifies the code for nothing. Now, the team name is replaced by "enemy", and two keys have been added:REAMAING_ENEMY
andREMAINING_ENEMIES
. It will be easier for to translate.