+
+
diff --git a/portalcautivo/lv/errors.txt b/portalcautivo/lv/errors.txt
new file mode 100644
index 0000000..2b95d15
--- /dev/null
+++ b/portalcautivo/lv/errors.txt
@@ -0,0 +1,104 @@
+# This file contains error messages which are shown to user, when http/https
+# login is used.
+# These messages can be changed to make user interface more friendly, including
+# translations to different languages.
+#
+# Various variables can be used here as well. Most frequently used ones are:
+# $(error-orig) - original error message from hotspot
+# $(ip) - ip address of a client
+# $(username) - username of client trying to log in
+
+# internal-error
+# It should never happen. If it will, error page will be shown
+# displaying this error message (error-orig will describe what has happened)
+
+internal-error = sistēmas kļūda ($(error-orig))
+
+# config-error
+# Should never happen if hotspot is configured properly.
+
+config-error = konfigurācijas kļūda ($(error-orig))
+
+# not-logged-in
+# Will happen, if status or logout page is requested by user,
+# which actually is not logged in
+
+not-logged-in = Jūs neesat pieslēdzies (ip $(ip))
+
+# ippool-empty
+# IP address for user is to be assigned from ip pool, but there are no more
+# addresses in that pool
+
+ippool-empty = nevaru piešķirt IP adresi - nav vairāk brīvu adrešu krātuvē
+
+# shutting-down
+# When shutdown is executed, new clients are not accepted
+
+shutting-down = hotspot serviss tiek apstādināts, mēģiniet pēc brīža vēlreiz
+
+# user-session-limit
+# If user profile has limit of shared-users, then this error will be shown
+# after reaching this limit
+
+user-session-limit = lietotājam $(username) vairāk sessijas nav atļautas
+
+# license-session-limit
+# Depending on licence number of active hotspot clients is limited to
+# one or another amount. If this limit is reached, following error is displayed.
+
+license-session-limit = ir sasniegts maksimālais sessiju skaits ($(error-orig))
+
+# wrong-mac-username
+# If username looks like MAC address (12:34:56:78:9a:bc), but is not
+# a MAC address of this client, login is rejected
+
+wrong-mac-username = nepareizs lietotāja vārds ($(username)): šī MAC adrese nav tava
+
+# chap-missing
+# If http-chap login method is used, but hotspot program does not receive
+# back encrypted password, this error message is shown.
+# Possible reasons of failure:
+# - JavaScript is not enabled in web browser;
+# - login.html page is not valid;
+# - challenge value has expired on server (more than 1h of inactivity);
+# - http-chap login method is recently removed;
+# If JavaScript is enabled and login.html page is valid,
+# then retrying to login usually fixes this problem.
+
+chap-missing = problēmas ar kodu (mēģiniet vēlreiz, atļaujiet JavaScript)
+
+# invalid-username
+# Most general case of invalid username or password. If RADIUS server
+# has sent an error string with Access-Reject message, then it will
+# override this setting.
+
+invalid-username = nepareizs lietotāja vārds vai parole
+
+# invalid-mac
+# Local users (on hotspot server) can be bound to some MAC address. If login
+# from different MAC is tried, this error message will be shown.
+
+invalid-mac = lietotājam $(username) nav atļauts pieslēgties no šīs MAC adreses
+
+# uptime-limit, traffic-limit
+# For local hotspot users in case if limits are reached
+
+uptime-limit = lietotāja $(username) atļautasi pieslēguma laiks ir beidzies
+traffic-limit = lietotāja $(username) atļautais datu pārraides apjoms ir sasniegts
+
+# radius-timeout
+# User is authenticated by RADIUS server, but no response is received from it,
+# following error will be shown.
+
+radius-timeout = autorizācijas serveris neatbild (mēģiniet vēlreiz)
+
+# auth-in-progress
+# Authorization in progress. Client already has issued an authorization request
+# which is not yet complete.
+
+auth-in-progress = notiek autorizācija (mēģiniet vēlāk)
+
+# radius-reply
+# Radius server returned some custom error message
+
+radius-reply = autorizācijas kļūda ($(error-orig))
diff --git a/portalcautivo/lv/login.html b/portalcautivo/lv/login.html
new file mode 100644
index 0000000..e22c78c
--- /dev/null
+++ b/portalcautivo/lv/login.html
@@ -0,0 +1,96 @@
+
+
+
+mikrotik hotspot > ieeja
+
+
+
+
+
+
+
+
+$(if chap-id)
+