mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 13:01:30 +00:00
Fixed duplicate locale strings, closes #95
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ Locales['br'] = {
|
||||
['received_salary'] = 'voce recebeu seu salario: ~g~$%s~s~ ',
|
||||
['received_help'] = 'voce recebeu seu cheque de bem-estar: ~g~$%s~s~ ',
|
||||
['company_nomoney'] = 'a empresa em que voce esta empregado esta muito pobre para pagar seu salario.',
|
||||
['received_money'] = 'recebeu dinheiro',
|
||||
['received_paycheck'] = 'recebeu dinheiro',
|
||||
['bank'] = 'banco',
|
||||
['black_money'] = 'dinheiro sujo',
|
||||
['act_imp'] = 'acao impossivel',
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ Locales['de'] = {
|
||||
['received_salary'] = 'du hast dein Gehalt erhalten: ~g~$%s~s~',
|
||||
['received_help'] = 'you recieved your welfare check: ~g~$%s~s~',
|
||||
['company_nomoney'] = 'the company you\'re employeed at is too poor to pay out your salary.',
|
||||
['received_money'] = 'received money',
|
||||
['received_paycheck'] = 'received paycheck',
|
||||
['bank'] = 'bank',
|
||||
['black_money'] = 'dirty Money',
|
||||
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ Locales['en'] = {
|
||||
['received_salary'] = 'you received your salary: ~g~$%s~s~',
|
||||
['received_help'] = 'you recieved your welfare check: ~g~$%s~s~',
|
||||
['company_nomoney'] = 'the company you\'re employeed at is too poor to pay out your salary.',
|
||||
['received_money'] = 'received money',
|
||||
['received_paycheck'] = 'received paycheck',
|
||||
['bank'] = 'bank',
|
||||
['black_money'] = 'dirty Money',
|
||||
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ Locales['fi'] = {
|
||||
['received_salary'] = 'sinä vastaanotit palkkaa: ~g~$%s~s~',
|
||||
['received_help'] = 'sinä vastaanotit valtion tukea: ~g~$%s~s~',
|
||||
['company_nomoney'] = 'yritys jolle teet töitä on köyhä eikä voi maksaa palkkaasi.',
|
||||
['received_money'] = 'sai rahaa',
|
||||
['received_paycheck'] = 'sai rahaa',
|
||||
['bank'] = 'Pankki',
|
||||
['black_money'] = 'likainen Raha',
|
||||
|
||||
|
||||
+2
-2
@@ -31,8 +31,8 @@ Locales['fr'] = {
|
||||
-- Salary related
|
||||
['received_salary'] = 'vous avez reçu votre salaire: ~g~$%s~s~',
|
||||
['received_help'] = 'vous avez reçu une aide de l\'état: ~g~$%s~s~',
|
||||
['company_nomoney'] = 'votre entreprise n\'a plus d\'argent pour vous payer!', -- fix translation
|
||||
['received_money'] = 'received money',
|
||||
['company_nomoney'] = 'votre entreprise n\'a plus d\'argent pour vous payer!',
|
||||
['received_paycheck'] = 'received paycheck',
|
||||
['bank'] = 'banque',
|
||||
['black_money'] = 'argent Sale',
|
||||
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ Locales['sv'] = {
|
||||
['received_salary'] = 'du har mottagit din lön på ~g~$%s~s~',
|
||||
['received_help'] = 'du har mottagit bidrag på ~g~$%s~s~',
|
||||
['company_nomoney'] = 'företaget du är anställt hos har inte råd att betala ut din lön.',
|
||||
['received_money'] = 'mottagit pengar',
|
||||
['received_paycheck'] = 'mottagit lön',
|
||||
['bank'] = 'bank',
|
||||
['black_money'] = 'svarta pengar',
|
||||
|
||||
|
||||
+4
-4
@@ -11,7 +11,7 @@ ESX.StartPayCheck = function()
|
||||
if salary > 0 then
|
||||
if job == 'unemployed' then -- unemployed
|
||||
xPlayer.addAccountMoney('bank', salary)
|
||||
TriggerClientEvent('esx:showAdvancedNotification', xPlayer.source, _U('bank'), _U('received_money'), _U('received_help', salary), 'CHAR_BANK_MAZE', 9)
|
||||
TriggerClientEvent('esx:showAdvancedNotification', xPlayer.source, _U('bank'), _U('received_paycheck'), _U('received_help', salary), 'CHAR_BANK_MAZE', 9)
|
||||
elseif Config.EnableSocietyPayouts then -- possibly a society
|
||||
TriggerEvent('esx_society:getSociety', xPlayer.job.name, function (society)
|
||||
if society ~= nil then -- verified society
|
||||
@@ -20,19 +20,19 @@ ESX.StartPayCheck = function()
|
||||
xPlayer.addAccountMoney('bank', salary)
|
||||
account.removeMoney(salary)
|
||||
|
||||
TriggerClientEvent('esx:showAdvancedNotification', xPlayer.source, _U('bank'), _U('received_money'), _U('received_salary', salary), 'CHAR_BANK_MAZE', 9)
|
||||
TriggerClientEvent('esx:showAdvancedNotification', xPlayer.source, _U('bank'), _U('received_paycheck'), _U('received_salary', salary), 'CHAR_BANK_MAZE', 9)
|
||||
else
|
||||
TriggerClientEvent('esx:showAdvancedNotification', xPlayer.source, _U('bank'), '', _U('company_nomoney'), 'CHAR_BANK_MAZE', 1)
|
||||
end
|
||||
end)
|
||||
else -- not a society
|
||||
xPlayer.addAccountMoney('bank', salary)
|
||||
TriggerClientEvent('esx:showAdvancedNotification', xPlayer.source, _U('bank'), _U('received_money'), _U('received_salary', salary), 'CHAR_BANK_MAZE', 9)
|
||||
TriggerClientEvent('esx:showAdvancedNotification', xPlayer.source, _U('bank'), _U('received_paycheck'), _U('received_salary', salary), 'CHAR_BANK_MAZE', 9)
|
||||
end
|
||||
end)
|
||||
else -- generic job
|
||||
xPlayer.addAccountMoney('bank', salary)
|
||||
TriggerClientEvent('esx:showAdvancedNotification', xPlayer.source, _U('bank'), _U('received_money'), _U('received_salary', salary), 'CHAR_BANK_MAZE', 9)
|
||||
TriggerClientEvent('esx:showAdvancedNotification', xPlayer.source, _U('bank'), _U('received_paycheck'), _U('received_salary', salary), 'CHAR_BANK_MAZE', 9)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user