From 4a90d6fac93f707cc745e60619fcce6cd910e7f7 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Wed, 7 Nov 2018 21:58:24 +0100 Subject: [PATCH] Added missing translatable strings --- client/main.lua | 11 ++++++----- locales/br.lua | 37 +++++++++++++++++++++++-------------- locales/de.lua | 33 +++++++++++++++++++++------------ locales/en.lua | 19 ++++++++++++++----- locales/fi.lua | 19 ++++++++++++++----- locales/fr.lua | 19 ++++++++++++++----- locales/sv.lua | 21 +++++++++++++++------ 7 files changed, 107 insertions(+), 52 deletions(-) diff --git a/client/main.lua b/client/main.lua index 70195f0c..e48a38f8 100644 --- a/client/main.lua +++ b/client/main.lua @@ -54,6 +54,7 @@ function OpenRealestateAgentMenu() ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'realestateagent', { title = _U('realtor'), + align = 'top-left', elements = elements }, function(data, menu) @@ -81,7 +82,7 @@ function OpenPropertyMenu() TriggerEvent('esx_property:getProperties', function(properties) local elements = { - head = {_U('property'), 'Actions'}, + head = {_U('property_name'), _U('property_actions')}, rows = {} } @@ -90,7 +91,7 @@ function OpenPropertyMenu() data = properties[i], cols = { properties[i].label, - _U('property_actions') + _U('property_actionbuttons') } }) end @@ -174,7 +175,7 @@ end function OpenCustomersMenu() ESX.TriggerServerCallback('esx_realestateagentjob:getCustomers', function(customers) local elements = { - head = {'Client', _U('property'), 'Type', 'Actions'}, + head = {_U('customer_client'), _U('customer_property'), _U('customer_agreement'), _U('customer_actions')}, rows = {} } @@ -184,8 +185,8 @@ function OpenCustomersMenu() cols = { customers[i].name, customers[i].propertyLabel, - (customers[i].propertyRented and _U('rent') or _U('sell')), - _U('contract') + (customers[i].propertyRented and _U('customer_rent') or _U('customer_sell')), + _U('customer_contractbuttons') } }) end diff --git a/locales/br.lua b/locales/br.lua index 46e8d94c..0f4fd156 100644 --- a/locales/br.lua +++ b/locales/br.lua @@ -1,17 +1,26 @@ Locales['br'] = { - ['properties'] = 'Propriedades', - ['property'] = 'Propriedade', - ['clients'] = 'Clientes', - ['realtor'] = 'Corretor de imóveis', - ['amount_withdraw'] = 'Quantidade de retirada', - ['invalid_amount'] = 'Quantidade inválida', - ['press_to_access'] = 'Pressione ~INPUT_CONTEXT~ para abrir o menu', - ['property_actions'] = '{{Assign [Sell]|sell}} {{Assign [Rent]|rent}} {{GPS|gps}}', - ['amount'] = 'Quantidade', - ['no_play_near'] = 'Nenhum jogador nas proximidades', - ['contract'] = '{{Revoke contract|revoke}} {{GPS|gps}}', - ['rent'] = 'Alugar', - ['sell'] = 'Vender', - ['realtors'] = 'Agente Imobiliário', + ['properties'] = 'propriedades', + ['clients'] = 'clientes', + ['realtor'] = 'corretor de imóveis', + ['amount_withdraw'] = 'quantidade de retirada', + ['invalid_amount'] = 'quantidade inválida', + ['press_to_access'] = 'pressione ~INPUT_CONTEXT~ para abrir o menu', + ['amount'] = 'quantidade', + ['no_play_near'] = 'nenhum jogador nas proximidades', + ['realtors'] = 'agente Imobiliário', ['boss_action'] = 'boss Actions', + + -- Property menu + ['property_name'] = 'propriedade', + ['property_actions'] = 'actions', + ['property_actionbuttons'] = '{{Assign [Sell]|sell}} {{Assign [Rent]|rent}} {{GPS|gps}}', + + -- Customer menu + ['customer_client'] = 'clientes', + ['customer_property'] = 'propriedade', + ['customer_agreement'] = 'agreement', + ['customer_actions'] = 'actions', + ['customer_contractbuttons'] = '{{Revoke contract|revoke}} {{GPS|gps}}', + ['customer_rent'] = 'alugar', + ['customer_sell'] = 'vender', } diff --git a/locales/de.lua b/locales/de.lua index 50be0920..e66d0f0c 100644 --- a/locales/de.lua +++ b/locales/de.lua @@ -1,17 +1,26 @@ Locales['de'] = { ['properties'] = 'Immobilien', - ['property'] = 'Immobilie', - ['clients'] = 'Kunden', - ['realtor'] = 'Makler', - ['amount_withdraw'] = 'Betrag zun abheben', + ['clients'] = 'kunden', + ['realtor'] = 'makler', + ['amount_withdraw'] = 'betrag zun abheben', ['invalid_amount'] = 'ungültiger Betrag', - ['press_to_access'] = 'Drücke ~INPUT_CONTEXT~ um das Menü zu öffnen', - ['property_actions'] = '{{Zuweisen [Verkaufen]|sell}} {{Zuweisen [Vermieten]|rent}} {{GPS|gps}}', - ['amount'] = 'Betrag', - ['no_play_near'] = 'Kein Spieler in der Nähe', - ['contract'] = '{{Revoke contract|revoke}} {{GPS|gps}}', - ['rent'] = 'Mieten', - ['sell'] = 'Verkaufen', - ['realtors'] = 'Makler', + ['press_to_access'] = 'drücke ~INPUT_CONTEXT~ um das Menü zu öffnen', + ['amount'] = 'betrag', + ['no_play_near'] = 'kein Spieler in der Nähe', + ['realtors'] = 'makler', ['boss_action'] = 'boss Actions', + + -- Property menu + ['property_name'] = 'immobilie', + ['property_actions'] = 'actions', + ['property_actionbuttons'] = '{{Zuweisen [Verkaufen]|sell}} {{Zuweisen [Vermieten]|rent}} {{GPS|gps}}', + + -- Customer menu + ['customer_client'] = 'kunden', + ['customer_property'] = 'immobilie', + ['customer_agreement'] = 'agreement', + ['customer_actions'] = 'actions', + ['customer_contractbuttons'] = '{{Revoke contract|revoke}} {{GPS|gps}}', + ['customer_rent'] = 'mieten', + ['customer_sell'] = 'verkaufen', } diff --git a/locales/en.lua b/locales/en.lua index 54e5f377..42e5b608 100644 --- a/locales/en.lua +++ b/locales/en.lua @@ -1,17 +1,26 @@ Locales['en'] = { ['properties'] = 'properties', - ['property'] = 'property', ['clients'] = 'clients', ['realtor'] = 'real Estate Agent', ['amount_withdraw'] = 'amount of withdrawal', ['invalid_amount'] = 'invalid amount', ['press_to_access'] = 'press ~INPUT_CONTEXT~ to access the menu', - ['property_actions'] = '{{Assign [Sell]|sell}} {{Assign [Rent]|rent}} {{GPS|gps}}', ['amount'] = 'amount', ['no_play_near'] = 'no players nearby', - ['contract'] = '{{Revoke contract|revoke}} {{GPS|gps}}', - ['rent'] = 'rent', - ['sell'] = 'sell', ['realtors'] = 'real Estate Agents', ['boss_action'] = 'boss Actions', + + -- Property menu + ['property_name'] = 'property', + ['property_actions'] = 'actions', + ['property_actionbuttons'] = '{{Assign [Sell]|sell}} {{Assign [Rent]|rent}} {{GPS|gps}}', + + -- Customer menu + ['customer_client'] = 'client', + ['customer_property'] = 'property', + ['customer_agreement'] = 'agreement', + ['customer_actions'] = 'actions', + ['customer_contractbuttons'] = '{{Revoke contract|revoke}} {{GPS|gps}}', + ['customer_rent'] = 'rented', + ['customer_sell'] = 'sold', } diff --git a/locales/fi.lua b/locales/fi.lua index 1d293904..eeaa552c 100644 --- a/locales/fi.lua +++ b/locales/fi.lua @@ -1,17 +1,26 @@ Locales['fi'] = { ['properties'] = 'kiinteistöt', - ['property'] = 'kiinteistö', ['clients'] = 'asiakkaat', ['realtor'] = 'kiinteistövälittäjä', ['amount_withdraw'] = 'nostettava määrä', ['invalid_amount'] = 'virheellinen summa', ['press_to_access'] = 'paina ~INPUT_CONTEXT~ avataksesi menu', - ['property_actions'] = '{{Aseta [Myy]|sell}} {{Aseta [Vuokraa]|rent}} {{GPS|gps}}', ['amount'] = 'määrä', ['no_play_near'] = 'ei pelaajia lähettyvillä', - ['contract'] = '{{Pura sopimus|revoke}} {{GPS|gps}}', - ['rent'] = 'vuokraa', - ['sell'] = 'myy', ['realtors'] = 'Kiinteistövälitys', ['boss_action'] = 'pomo Toiminnot', + + -- Property menu + ['property_name'] = 'kiinteistö', + ['property_actions'] = 'actions', + ['property_actionbuttons'] = '{{Aseta [Myy]|sell}} {{Aseta [Vuokraa]|rent}} {{GPS|gps}}', + + -- Customer menu + ['customer_client'] = 'client', + ['customer_property'] = 'kiinteistö', + ['customer_agreement'] = 'agreement', + ['customer_actions'] = 'actions', + ['customer_contractbuttons'] = '{{Pura sopimus|revoke}} {{GPS|gps}}', + ['customer_rent'] = 'vuokraa', + ['customer_sell'] = 'myy', } diff --git a/locales/fr.lua b/locales/fr.lua index 6e66c57d..006d97a9 100644 --- a/locales/fr.lua +++ b/locales/fr.lua @@ -1,17 +1,26 @@ Locales['fr'] = { ['properties'] = 'propriétés', - ['property'] = 'propriété', ['clients'] = 'clients', ['realtor'] = 'agent Immobilier', ['amount_withdraw'] = 'montant du retrait', ['invalid_amount'] = 'montant invalide', ['press_to_access'] = 'appuez sur ~INPUT_CONTEXT~ pour accéder au menu', - ['property_actions'] = '{{Assigner [Vente]|sell}} {{Assigner [Location]|rent}} {{GPS|gps}}', ['amount'] = 'montant', ['no_play_near'] = 'aucun joueur à proximité', - ['contract'] = '{{Révoquer contrat|revoke}} {{GPS|gps}}', - ['rent'] = 'location', - ['sell'] = 'vente', ['realtors'] = 'agents Immobilier', ['boss_action'] = 'action Patron', + + -- Property menu + ['property_name'] = 'propriété', + ['property_actions'] = 'actions', + ['property_actionbuttons'] = '{{Assigner [Vente]|sell}} {{Assigner [Location]|rent}} {{GPS|gps}}', + + -- Customer menu + ['customer_client'] = 'client', + ['customer_property'] = 'propriété', + ['customer_agreement'] = 'agreement', + ['customer_actions'] = 'actions', + ['customer_contractbuttons'] = '{{Révoquer contrat|revoke}} {{GPS|gps}}', + ['customer_rent'] = 'location', + ['customer_sell'] = 'vente', } diff --git a/locales/sv.lua b/locales/sv.lua index 6ced172c..2cf3d418 100644 --- a/locales/sv.lua +++ b/locales/sv.lua @@ -1,17 +1,26 @@ Locales['sv'] = { ['properties'] = 'fastigheter', - ['property'] = 'fastighet', ['clients'] = 'klienter', ['realtor'] = 'mäklare', ['amount_withdraw'] = 'summa', ['invalid_amount'] = 'ogiltigt belopp', ['press_to_access'] = 'tryck ~INPUT_CONTEXT~ för att öppna menyn.', - ['property_actions'] = '{{Sälj fastighet|sell}} {Hyr ut fastighet|rent}} {{GPS|gps}}', ['amount'] = 'summa', ['no_play_near'] = 'det finns inga spelare i närheten!', - ['contract'] = '{{Återkalla kontrakt|revoke}} {{GPS|gps}}', - ['rent'] = 'hyra', - ['sell'] = 'sälj', ['realtors'] = 'mäklare', ['boss_action'] = 'chefmeny', -} \ No newline at end of file + + -- Property menu + ['property_name'] = 'fastighet', + ['property_actions'] = 'åtgärder', + ['property_actionbuttons'] = '{{Sälj fastighet|sell}} {{Hyr ut fastighet|rent}} {{GPS|gps}}', + + -- Customer menu + ['customer_client'] = 'client', + ['customer_property'] = 'fastighet', + ['customer_agreement'] = 'överenskommelse', + ['customer_actions'] = 'åtgärder', + ['customer_contractbuttons'] = '{{Återkalla kontrakt|revoke}} {{GPS|gps}}', + ['customer_rent'] = 'hyrd', + ['customer_sell'] = 'såld', +}