Skip to content

Commit 8313de0

Browse files
author
amma35
committed
update version & update locales
1 parent 93bc728 commit 8313de0

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

addressing.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
<author>Nelly Mahu-Lasson</author>
2626
</authors>
2727
<versions>
28+
<version>
29+
<num>2.6.1</num>
30+
<compatibility>9.2</compatibility>
31+
</version>
32+
<version>
33+
<num>2.6.0</num>
34+
<compatibility>9.2</compatibility>
35+
</version>
2836
<version>
2937
<num>2.5.0</num>
3038
<compatibility>9.1.1</compatibility>

inc/reserveip.class.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@ function reserveip($input = []) {
6464
$id = 0;
6565
if (!$item->getFromDBByQuery("WHERE `name`='" . $input["name_reserveip"] . "' AND `entities_id`=" . $input['entities_id'] . " LIMIT 1")) {
6666
// Add computer
67-
$id = $item->add(["name" => $input["name_reserveip"],
68-
"entities_id" => $input['entities_id'],
69-
"locations_id" => $input["locations_id"],
70-
"states_id" => $input["states_id"],
71-
"comment" => $input["comment"]]);
67+
$id = $item->add(["name" => $input["name_reserveip"],
68+
"entities_id" => $input['entities_id'],
69+
"locations_id" => $input["locations_id"],
70+
"states_id" => $input["states_id"],
71+
"comment" => $input["comment"]]);
7272
} else {
7373
$id = $item->getID();
7474
//update item
75-
$item->update(["id" => $id,
76-
"entities_id" => $input['entities_id'],
77-
"states_id" => $input["states_id"],
78-
"locations_id" => $input["locations_id"],
79-
"comment" => $input["comment"]]);
75+
$item->update(["id" => $id,
76+
"entities_id" => $input['entities_id'],
77+
"states_id" => $input["states_id"],
78+
"locations_id" => $input["locations_id"],
79+
"comment" => $input["comment"]]);
8080
}
8181

8282
// Add a new port

locales/tr_TR.mo

28 Bytes
Binary file not shown.

locales/tr_TR.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ msgstr ""
1616
"Content-Type: text/plain; charset=UTF-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"
1818
"Language: tr_TR\n"
19-
"Plural-Forms: nplurals=1; plural=0;\n"
19+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
2020

2121
#: setup.php:70 inc/addressing.class.php:40 inc/menu.class.php:34
2222
#: inc/profile.class.php:105
2323
msgid "IP Adressing"
2424
msgid_plural "IP Adressing"
2525
msgstr[0] "IP Adresleme"
26+
msgstr[1] "IP Adresleme"
2627

2728
#: setup.php:83
2829
msgid "This plugin requires GLPI >= 0.85.3"
@@ -185,6 +186,7 @@ msgstr "Ping Kullanılsın"
185186
msgid "Filter"
186187
msgid_plural "Filters"
187188
msgstr[0] "Süzgeç"
189+
msgstr[1] "Süzgeç"
188190

189191
#: inc/filter.class.php:206
190192
msgid "Add a filter"

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function plugin_version_addressing() {
6767

6868
return [
6969
'name' => _n('IP Adressing', 'IP Adressing', 2, 'addressing'),
70-
'version' => '2.6.0',
70+
'version' => '2.6.1',
7171
'author' => 'Gilles Portheault, Xavier Caillaud, Remi Collet, Nelly Mahu-Lasson',
7272
'license' => 'GPLv2+',
7373
'homepage' => 'https://github.com/pluginsGLPI/addressing',

0 commit comments

Comments
 (0)