Commit 76b64b83 authored by fv3rdugo's avatar fv3rdugo
Browse files

fix(i18n)

issue #646

- Add new strings
parent 6d8d81b4
......@@ -465,9 +465,6 @@ msgstr ""
msgid "Username"
msgstr ""
msgid "Confirm Password"
msgstr ""
msgid "Hide Private"
msgstr ""
......@@ -525,7 +522,7 @@ msgstr ""
msgid "Yes, remove"
msgstr ""
msgid "Virtual machine"
msgid "Virtual Machine"
msgstr ""
msgid "removed"
......@@ -621,3 +618,72 @@ msgstr ""
msgid "the Windows Clients documentation"
msgstr ""
msgid "It is programmed in"
msgstr ""
msgid "with perl framework"
msgstr ""
msgid "and"
msgstr ""
msgid "Memory"
msgstr ""
msgid "MB available"
msgstr ""
msgid "The machine will shutdown after these minutes"
msgstr ""
msgid "Cancel"
msgstr ""
msgid "Please enter the following information to create the account"
msgstr ""
msgid "Enter Username"
msgstr ""
msgid "Enter Password"
msgstr ""
msgid "Confirm Password"
msgstr ""
msgid "Username is required"
msgstr ""
msgid "Username can not exceed 20 characters"
msgstr ""
msgid "Username must be at least 5 characters"
msgstr ""
msgid "Username can only contain words, numbers, dashes, dots and underscores"
msgstr ""
msgid "Password is required"
msgstr ""
msgid "Password can not exceed 20 characters"
msgstr ""
msgid "Password must be at least 5 characters"
msgstr ""
msgid "Password can only contain words and numbers"
msgstr ""
msgid "Confirm Password is required"
msgstr ""
msgid "Confirm Password can not exceed 20 characters"
msgstr ""
msgid "Confirm Password must be at least 5 characters"
msgstr ""
msgid "Confirm Password can only contain words and numbers"
msgstr ""
......@@ -18,15 +18,15 @@
<h3><%=l 'Development' %></h3>
<p><%=l 'Below are listed the technologies used in this project:' %></p>
<ul>
<li>It's programmed in><a href="https://www.perl.org/">Perl</a>,</li>
<li> with perl framework <a href="http://www.mojolicious.org/">Mojolicious</a>,</li>
<li> and HTML, CSS, and JS framework <a href="http://getbootstrap.com/">Bootstrap</a></li>
<li><%=l 'It is programmed in' %>&nbsp;<a href="https://www.perl.org/">Perl</a>,</li>
<li><%=l 'with perl framework' %>&nbsp;<a href="http://www.mojolicious.org/">Mojolicious</a>,</li>
<li><%=l 'and' %> HTML, CSS, <%=l 'and' %> JS framework <a href="http://getbootstrap.com/">Bootstrap</a></li>
</ul>
<p> <%=l 'The code is available on ' %><a href="http://bit.ly/get_ravada">Github</a>.</p>
<h3><%=l 'License' %></h3>
<p><%=l 'The code is ' %><a href="https://www.gnu.org/licenses/gpl-3.0-standalone.html">GPL</a><%=l ' licensed.' %></p>
<p><%=l 'The code is' %>&nbsp;<a href="https://www.gnu.org/licenses/gpl-3.0-standalone.html">GPL</a>&nbsp;<%=l 'licensed.' %></p>
</div>
</div>
</div>
......
......@@ -37,8 +37,8 @@
<button type="button" class="btn btn-info" ng-click="asRead(message.id)" data-toggle="modal" data-target="#modal{{message.id}}"><%=l 'View' %></button>
</td>
<td>
<a ng-show="{{message.date_read == null}}" ng-click="asRead(message.id)" class="btn btn-success"><%=l 'Mark as Read' %></a>
<a ng-show="{{message.date_read != null}}" ng-click="asUnread(message.id)" class="btn btn-warning"><%=l 'Mark as UnRead' %></a>
<a ng-show="{{message.date_read == null}}" ng-click="asRead(message.id)" class="btn btn-success"><%=l 'Mark as read' %></a>
<a ng-show="{{message.date_read != null}}" ng-click="asUnread(message.id)" class="btn btn-warning"><%=l 'Mark as unread' %></a>
</td>
</tr>
......@@ -65,7 +65,7 @@
</p>
</div>
<div class="modal-footer">
<a ng-show="{{message.date_read != null}}" ng-href="/messages/unread/{{message.id}}.html" class="btn btn-warning"><%=l 'Mark as UnRead' %></a>
<a ng-show="{{message.date_read != null}}" ng-href="/messages/unread/{{message.id}}.html" class="btn btn-warning"><%=l 'Mark as unread' %></a>
<button type="button" class="btn btn-default" data-dismiss="modal"><%=l 'Close' %></button>
</div>
</div>
......
......@@ -14,7 +14,7 @@
<div class="panel-heading">
<hr>
<h2 class="text-center"><%=l 'Requirements' %></h2>
<i class="fab fa-linux fa-3x " aria-hidden="true"> GNU/Linux</i><br><br><p> <%=l 'For spice redirection you will need to install' %><a target=_blank href="https://virt-manager.org/download/"> VirtViewer<i class="fa fa-link" aria-hidden="true"></i></a> <%=l 'in your computer.' %><br>
<i class="fab fa-linux fa-3x " aria-hidden="true"> GNU/Linux</i><br><br><p> <%=l 'For Spice redirection you will need to install' %><a target=_blank href="https://virt-manager.org/download/"> VirtViewer<i class="fa fa-link" aria-hidden="true"></i></a> <%=l 'in your computer.' %><br>
<%=l 'Search in your distro, e.g. in Debian/Ubuntu with' %> <i><b>sudo apt-get install virt-viewer</b></i></p><br>
<i class="fab fa-windows fa-3x" aria-hidden="true"> Microsoft Windows </i>&copy;<br><br><p> <%=l 'You will need to install' %>
......@@ -22,10 +22,10 @@
<%=l 'and USB drivers (' %><a href="https://www.spice-space.org/download/windows/usbdk/UsbDk_1.0.19_x64.msi">64 <i class="fa fa-download" aria-hidden="true"></i> </a><%=l 'or' %><a href="https://www.spice-space.org/download/windows/usbdk/UsbDk_1.0.19_x86.msi"> 32 <i class="fa fa-download" aria-hidden="true"></i> </a><%=l 'bits) in your computer.' %></p>
<p><%=l 'Be aware that in Windows, spice redirection is not automatically. It is necessary associate protocol with the app.' %><br>
<p><%=l 'Be aware that in Windows, Spice redirection is not automatic. It is necessary to associate protocol with the app.' %><br>
<%=l 'To make this possible, download' %><a target=_blank href="https://raw.githubusercontent.com/UPC/ravada/gh-pages/docs/docs/spice.reg"> spice.reg <i class="fa fa-download" aria-hidden="true"></i></a> <%=l 'or copy the following lines in an ASCII file and save with extension .reg, then execute the file.' %><br>
<p><%=l 'For more information, check' %> <a target=_blank href="http://ravada.readthedocs.io/en/latest/docs/windows_clients.html"><%=l 'the Windows Clients documentation' %></a>.</p><br>
<i class="fab fa-apple fa-3x " aria-hidden="true"> OS X</i>&copy;<br><br><p> <%=l 'For spice redirection you will need to install' %> <a target=_blank href="http://people.freedesktop.org/~teuf/spice-gtk-osx/dmg/0.5.7/RemoteViewer-0.5.7-1.dmg">RemoteViewer <i class="fa fa-download" aria-hidden="true"></i></a> <%=l 'in your computer.' %><br></p>
<i class="fab fa-apple fa-3x " aria-hidden="true"> OS X</i>&copy;<br><br><p> <%=l 'For Spice redirection you will need to install' %> <a target=_blank href="http://people.freedesktop.org/~teuf/spice-gtk-osx/dmg/0.5.7/RemoteViewer-0.5.7-1.dmg">RemoteViewer <i class="fa fa-download" aria-hidden="true"></i></a> <%=l 'in your computer.' %><br></p>
</div>
</div>
</div>
......
......@@ -11,15 +11,15 @@
<div class="panel panel-default">
<div class="panel-heading">
% if ($domain->is_base) {
<h2>Virtual Machine
<h2><%=l 'Virtual Machine' %>
<b><%= $domain->name %></b>
Settings
<%=l 'Settings' %>
</h2>
% } else {
<h2>Virtual Machine
<h2><%=l 'Virtual Machine' %>
<a ng-hide="domain_remove_done"
href="/machine/view/<%= $domain->id %>.html"><%= $domain->name %></a>
Settings
<%=l 'Settings' %>
</h2>
% }
</div> <!-- del panel heading-->
......
......@@ -6,7 +6,7 @@
<li class="nav"><a href="#rename" data-toggle="tab"><%=l 'Rename' %></a></li>
% }
% if ($USER->can_change_settings($domain->id) ) {
<li class="nav"><a href="#options" data-toggle="tab">Options</a></li>
<li class="nav"><a href="#options" data-toggle="tab"><%=l 'Options' %></a></li>
% }
% if ($USER->can_change_settings && $domain->drivers) {
<li class="nav"><a href="#drivers" data-toggle="tab"><%=l 'Drivers' %></a></li>
......
......@@ -4,7 +4,7 @@
<form class="form-inline" action="<%= $action %>" method="post">
<div class="row">
<div class="col-md-2">
<label class="control-label" for="ram">Memory</label>
<label class="control-label" for="ram"><%=l 'Memory' %></label>
</div>
<div class="col-md-2">
<input class="form-control" type="text" name="ram" size="5" disabled
......@@ -12,7 +12,7 @@
</div>
<div class="col-md-6">
<b>MB</b> of <%= int($domain->get_info->{max_mem}/1024) %>
MB available.
<%=l 'MB available' %>.
</div>
</div>
<div class="row">
......@@ -26,10 +26,10 @@
% $timeout = '' if $timeout eq '0';
value="<%= $timeout %>" size="5">
</div>
<div class="col-md-6">The machine will shutdown after these minutes</div>
<div class="col-md-6"><%=l 'The machine will shutdown after these minutes' %></div>
</div>
<input type="submit">
<button type="reset" >Cancel</button>
<button type="reset" ><%=l 'Cancel' %></button>
</form>
</div><!-- of form-group -->
</div><!-- of panel-body -->
<div class="panel panel-default">
<div class="panel-heading">
<h3><%=l 'Please enter the following information to create the account.' %></h3>
<h3><%=l 'Please enter the following information to create the account' %>.</h3>
</div>
<div class="panel-body">
<form name="new_userForm" role="form" method="post" action="/users/register" novalidate>
<div class="from-group">
<label for="username"><%=l 'Username' %></label>
<input class="form-control" ng-model="username" placeholder="Enter Username" type="text" ng-maxlength="20" ng-minlength="5" name="username" ng-pattern="/^[a-zA-Z0-9_.-]*$/" id="username" required=""><br/>
<input class="form-control" ng-model="username" placeholder="<%=l 'Enter Username' %>" type="text" ng-maxlength="20" ng-minlength="5" name="username" ng-pattern="/^[a-zA-Z0-9_.-]*$/" id="username" required=""><br/>
</div>
<div class="from-group">
<label for="password"><%=l 'Password' %></label>
<input class="form-control" ng-model="password" placeholder="Enter Password" type="password" ng-maxlength="20" ng-minlength="5" name="password" ng-pattern="/^[a-zA-Z0-9]*$/" id="password" required=""><br/>
<input class="form-control" ng-model="password" placeholder="<%=l 'Enter Password' %>" type="password" ng-maxlength="20" ng-minlength="5" name="password" ng-pattern="/^[a-zA-Z0-9]*$/" id="password" required=""><br/>
</div>
<div class="from-group">
<label for="password"><%=l 'Confirm Password' %></label>
<input class="form-control" ng-model="cpassword" placeholder="Confirm Password" type="password" ng-maxlength="20" ng-minlength="5" name="cpassword" ng-pattern="/^[a-zA-Z0-9]*$/" id="confirm_password" onkeyup="checkPass(); return false;" required><span id="confirmMessage" class="confirmMessage"></span><br/>
<input class="form-control" ng-model="cpassword" placeholder="<%=l 'Confirm Password' %>" type="password" ng-maxlength="20" ng-minlength="5" name="cpassword" ng-pattern="/^[a-zA-Z0-9]*$/" id="confirm_password" onkeyup="checkPass(); return false;" required><span id="confirmMessage" class="confirmMessage"></span><br/>
</div> <body>
<div ng-show="new_userForm.$submitted || new_userForm.username.$touched">
<div ng-show="new_userForm.username.$error.required" class="alert alert-warning fade in">
<strong>Error</strong> Username is required.
<strong><%=l 'Error' %></strong>&nbsp;<%=l 'Username is required' %>.
</div>
<div ng-show="new_userForm.username.$error.maxlength" class="alert alert-warning fade in">
<strong>Error</strong> Username can't exceed 20 characters.
<strong><%=l 'Error' %></strong>&nbsp;<%=l 'Username can not exceed 20 characters' %>.
</div>
<div ng-show="new_userForm.username.$error.minlength" class="alert alert-warning fade in">
<strong>Error</strong> Username must be at least 5 characters.
<strong><%=l 'Error' %></strong>&nbsp;<%=l 'Username must be at least 5 characters' %>.
</div>
<div ng-show="new_userForm.username.$error.pattern" class="alert alert-warning fade in">
<strong>Error</strong> Username can only contain words, numbers, dashes, dots and underscores.
<strong><%=l 'Error' %></strong>&nbsp;<%=l 'Username can only contain words, numbers, dashes, dots and underscores' %>.
</div>
</div>
<div ng-show="new_userForm.$submitted || new_userForm.password.$touched">
<div ng-show="new_userForm.password.$error.required" class="alert alert-warning fade in">
<strong>Error</strong> Password is required.
<strong><%=l 'Error' %></strong>&nbsp;<%=l 'Password is required' %>.
</div>
<div ng-show="new_userForm.password.$error.maxlength" class="alert alert-warning fade in">
<strong>Error</strong> Password can't exceed 20 characters.
<strong><%=l 'Error' %></strong>&nbsp;<%=l 'Password can not exceed 20 characters' %>.
</div>
<div ng-show="new_userForm.password.$error.minlength" class="alert alert-warning fade in">
<strong>Error</strong> Password must be at least 5 characters.
<strong><%=l 'Error' %></strong>&nbsp;<%=l 'Password must be at least 5 characters' %>.
</div>
<div ng-show="new_userForm.password.$error.pattern" class="alert alert-warning fade in">
<strong>Error</strong> Password can only contain words and numbers.
<strong><%=l 'Error' %></strong>&nbsp;<%=l 'Password can only contain words and numbers' %>.
</div>
</div>
<div ng-show="new_userForm.$submitted || new_userForm.password.$touched">
<div ng-show="new_userForm.cpassword.$error.required" class="alert alert-warning fade in">
<strong>Error</strong> Confirm Password is required.
<strong><%=l 'Error' %></strong>&nbsp;<%=l 'Confirm Password is required' %>.
</div>
<div ng-show="new_userForm.cpassword.$error.maxlength" class="alert alert-warning fade in">
<strong>Error</strong> Confirm Password can't exceed 20 characters.
<strong><%=l 'Error' %></strong>&nbsp;<%=l 'Confirm Password can not exceed 20 characters' %>.
</div>
<div ng-show="new_userForm.cpassword.$error.minlength" class="alert alert-warning fade in">
<strong>Error</strong> Confirm Password must be at least 5 characters.
<strong><%=l 'Error' %></strong>&nbsp;<%=l 'Confirm Password must be at least 5 characters' %>.
</div>
<div ng-show="new_userForm.cpassword.$error.pattern" class="alert alert-warning fade in">
<strong>Error</strong> Confirm Password can only contain words and numbers.
<strong><%=l 'Error' %></strong>&nbsp;<%=l 'Confirm Password can only contain words and numbers' %>.
</div>
</div>
<button type="submit" ng-disabled="new_userForm.$invalid || cpassword != password" id="submitbutton" class="btn btn-default">Submit</button>
<button type="submit" ng-disabled="new_userForm.$invalid || cpassword != password" id="submitbutton" class="btn btn-default"><%=l 'Submit' %></button>
% if (scalar @$error) {
% for my $i (@$error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment