locale cleanup + additional languages
This commit is contained in:
1 parent
81e230c018
commit
cf73514848
30 files changed
+772
-551
No files matched your search
@@ -4,16 +4,13 @@
|
||||
-- Instead of using Require you can also import it via the manifest.
|
||||
-- The Lang variable is available globally, which tells you what the server is using.
|
||||
-- print("Language: ", Lang)
|
||||
-- print("Locale: ", Language.Locale("locale-unit-test"))
|
||||
-- print("Locale: ", Language.Locale("UNITTEST.locale-unit-test"))
|
||||
|
||||
-- Example outside community bridge resource:
|
||||
|
||||
-- local Language = Require('modules/locales/shared.lua')
|
||||
-- print("Language: ", Lang)
|
||||
-- print("Locale: ", Language.Locale("locale-unit-test"))
|
||||
-- print("Locale: ", Language.Locale("UNITTEST.locale-unit-test"))
|
||||
RegisterCommand("lang", function(source, args, raw)
|
||||
print(Language.Locale("UNITTEST.UNITTEST.UNITTESTA"))
|
||||
print(Language.Locale("UNITTEST.UNITTESTA", "Devil", "GERRRRRRR!"))
|
||||
|
||||
print( "Oh also this works", Language.Locale("place_object_scroll_down"))
|
||||
print( "Oh also this works", Language.Locale("placeable_object.place_object_scroll_down"))
|
||||
end, false)
|
||||
Reference in new issue
Block a user