Fix a handful of text strings (#2993)

* Fix a handful of text strings

* Missed a few

* Restored the number sign which has reason to be translated
This commit is contained in:
Belle Aerni authored and GitHub committed 2025-11-02 10:23:46 -08:00
1 parent bb9fd8c131
commit bbf80a0dff
14 files changed
+24 -27

No files matched your search

+2 -2
View File
@@ -81,7 +81,7 @@ class Pagination implements InjectionAwareInterface
throw new InformationException("The number of items per page ($perPageParam) must be a positive integer.");
}
if ($perPage > self::MAX_PER_PAGE) {
throw new InformationException("The number of items per page ($perPageParam) must be below the maximum allowed amount (" . self::MAX_PER_PAGE . ').');
throw new InformationException("The number of items per page ($perPageParam) is too large. Please specify a smaller number.");
}
$offset = ($page - 1) * $perPage;
@@ -143,7 +143,7 @@ class Pagination implements InjectionAwareInterface
throw new InformationException("The number of items per page ($perPageParam) must be a positive integer.");
}
if ($perPage > self::MAX_PER_PAGE) {
throw new InformationException("The number of items per page ($perPageParam) must be below the maximum allowed amount (" . self::MAX_PER_PAGE . ').');
throw new InformationException("The number of items per page ($perPageParam) is too large. Please specify a smaller number.");
}
$offset = ($page - 1) * $perPage;
+1 -1
View File
@@ -10,7 +10,7 @@
*/
class Payment_Invoice
{
private $id; // FOSSBilling Invoice Id
private $id; // FOSSBilling Invoice ID
private $number; // Invoice number for accounting
private string $currency = 'USD';
private array $items = [];
+1 -1
View File
@@ -20,7 +20,7 @@ class Server_Client
private ?string $address_1 = null;
private ?string $address_2 = null;
private ?string $street = null;
private ?string $state = 'n/a';
private ?string $state = 'N/A';
private ?string $country = 'US';
private ?string $city = null;
private ?string $zip = null;
@@ -132,8 +132,7 @@
<label class="col-md-3 col-form-label" for="form_type">{{ 'Labels position'|trans }}</label>
<div class="col-md-8">
<select class="form-select" name="type" id="form_type">
<option value="default" {% if form.style.type=='default' %} selected {% endif %}>{{ 'Labels on
top'|trans }}</option>
<option value="default" {% if form.style.type=='default' %} selected {% endif %}>{{ 'Labels on top'|trans }}</option>
<option
value="horizontal" {% if form.style.type=='horizontal' %} selected {% endif %}>{{ 'Labels on the left'|trans }}</option>
</select>
@@ -143,10 +142,8 @@
<label class="col-md-3 col-form-label" for="show_title">{{ 'Form title visibility'|trans }}</label>
<div class="col-md-8">
<select class="form-select" name="show_title" id="show_title">
<option value="1" {% if form.style.show_title=='1' %} selected {% endif %}>{{ 'Show form
title'|trans }}</option>
<option value="0" {% if form.style.show_title=='0' %} selected {% endif %}>{{ 'Do not show form
title'|trans }}</option>
<option value="1" {% if form.style.show_title=='1' %} selected {% endif %}>{{ 'Show form title'|trans }}</option>
<option value="0" {% if form.style.show_title=='0' %} selected {% endif %}>{{ 'Do not show form title'|trans }}</option>
</select>
</div>
</div>
@@ -111,7 +111,7 @@
<label class="form-label col-3 col-form-label">{{ 'Tax rate'|trans }}:</label>
<div class="col">
<div class="input-group">
<input class="form-control" type="text" name="taxrate" value="{{ request.taxrate }}" required placeholder="{{ '18'|trans }}">
<input class="form-control" type="text" name="taxrate" value="{{ request.taxrate }}" required placeholder="18">
<span class="input-group-text">%</span>
</div>
</div>
@@ -23,7 +23,7 @@
<label class="form-label col-3 col-form-label">{{ 'Tax rate'|trans }}:</label>
<div class="col">
<div class="input-group">
<input class="form-control" type="text" name="taxrate" value="{{ tax.taxrate }}" required placeholder="{{ '18'|trans }}">
<input class="form-control" type="text" name="taxrate" value="{{ tax.taxrate }}" required placeholder="18">
<span class="input-group-text">%</span>
</div>
</div>
@@ -56,7 +56,7 @@
<td>{{ transaction.id }}</td>
</tr>
<tr>
<td class="text-end">{{ 'Invoice Id'|trans }}</td>
<td class="text-end">{{ 'Invoice ID'|trans }}</td>
<td>
<a href="{{ 'invoice/manage'|alink }}/{{ transaction.invoice_id }}">{{ transaction.invoice_id|default('-') }}</a>
</td>
@@ -26,7 +26,7 @@
</div>
</div>
<div class="mb-3 row">
<label class="form-label col-3 col-form-label">{{ 'Invoice Id'|trans }}</label>
<label class="form-label col-3 col-form-label">{{ 'Invoice ID'|trans }}</label>
<div class="col">
<input class="form-control" type="text" name="invoice_id" value="{{ request.invoice_id }}">
</div>
@@ -183,7 +183,7 @@
{% if tx.invoice_id %}
<a href="{{ 'invoice/manage'|alink }}/{{ tx.invoice_id }}">#{{ tx.invoice_id }}</a>
{% else %}
{{ 'n/a'|trans }}
{{ 'N/A'|trans }}
{% endif %}
</td>
<td>{{ mf.status_name(tx.type|default('-')) }}</td>
@@ -193,7 +193,7 @@
<table class="table table-hover mt-3 mb-0">
<thead>
<tr>
<th>{{ '#'|trans }}</th>
<th>{{ '#'|trans }}</th>
<th>{{ 'Title'|trans }}</th>
<th>{{ 'Price'|trans }}</th>
<th class="text-end">{{ 'Total'|trans }}</th>
@@ -148,7 +148,7 @@
<table class="table mt-3">
<thead>
<tr>
<th>{{ '#'|trans }}</th>
<th>{{ '#'|trans }}</th>
<th>{{ 'Title'|trans }}</th>
<th>{{ 'Price'|trans }}</th>
<th class="text-end">{{ 'Total'|trans }}</th>
@@ -46,7 +46,7 @@
<div class="mb-3 row">
<label class="form-label col-3 col-form-label">{{ 'Image'|trans }}</label>
<div class="col">
<input class="form-control" type="text" name="image" value="{{ post.image }}" id="post_image" placeholder="{{ 'https://www.yourdomain.com/image.jpg'|trans }}"/>
<input class="form-control" type="text" name="image" value="{{ post.image }}" id="post_image" placeholder="https://www.yourdomain.com/image.jpg"/>
</div>
</div>
<div class="mb-3 row">
@@ -47,7 +47,7 @@
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
<thead>
<tr>
<th>{{ '#'|trans }}</th>
<th>{{ '#'|trans }}</th>
<th>{{ 'Type'|trans }}</th>
<th>{{ 'Category'|trans }}</th>
<th>{{ 'Title'|trans }}</th>
@@ -41,7 +41,7 @@
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
<thead>
<tr>
<th>{{ '#'|trans }}</th>
<th>{{ '#'|trans }}</th>
<th>{{ 'Title'|trans }}</th>
<th>{{ 'IP'|trans }}</th>
<th>{{ 'Server manager'|trans }}</th>
@@ -100,7 +100,7 @@
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
<thead>
<tr>
<th>{{ '#'|trans }}</th>
<th>{{ '#'|trans }}</th>
<th>{{ 'Title'|trans }}</th>
<th>{{ 'Addon domains'|trans }}</th>
<th>{{ 'Disk space'|trans }}</th>
@@ -188,25 +188,25 @@
<div class="mb-3 row">
<label class="form-label col-3 col-form-label">{{ 'Nameserver 1'|trans }}:</label>
<div class="col">
<input class="form-control" type="text" name="ns1" value="" placeholder="{{ 'ns1.yourdomain.com'|trans }}">
<input class="form-control" type="text" name="ns1" value="" placeholder="ns1.yourdomain.com">
</div>
</div>
<div class="mb-3 row">
<label class="form-label col-3 col-form-label">{{ 'Nameserver 2'|trans }}:</label>
<div class="col">
<input class="form-control" type="text" name="ns2" value="" placeholder="{{ 'ns2.yourdomain.com'|trans }}">
<input class="form-control" type="text" name="ns2" value="" placeholder="ns2.yourdomain.com">
</div>
</div>
<div class="mb-3 row">
<label class="form-label col-3 col-form-label">{{ 'Nameserver 3'|trans }}:</label>
<div class="col">
<input class="form-control" type="text" name="ns3" value="" placeholder="{{ 'ns3.yourdomain.com'|trans }}">
<input class="form-control" type="text" name="ns3" value="" placeholder="ns3.yourdomain.com">
</div>
</div>
<div class="mb-3 row">
<label class="form-label col-3 col-form-label">{{ 'Nameserver 4'|trans }}:</label>
<div class="col">
<input class="form-control" type="text" name="ns4" value="" placeholder="{{ 'ns4.yourdomain.com'|trans }}">
<input class="form-control" type="text" name="ns4" value="" placeholder="ns4.yourdomain.com">
</div>
</div>
@@ -262,7 +262,7 @@ class AdminTest extends \BBTestCase
'city' => 'Chicaco',
'state' => 'IL',
'currency' => 'USD',
'tax_exempt' => 'n/a',
'tax_exempt' => 'N/A',
'created_at' => '2012-05-10',
'email' => 'test@example.com',
'group_id' => 1,
@@ -346,7 +346,7 @@ class AdminTest extends \BBTestCase
'city' => 'Chicaco',
'state' => 'IL',
'currency' => 'USD',
'tax_exempt' => 'n/a',
'tax_exempt' => 'N/A',
'created_at' => '2012-05-10',
'email' => 'test@example.com',
'group_id' => 1,