You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2017-02-21 12:04:19

tiziano.sartori
Member
Registered: 2012-05-15
Posts: 32

Split strings for Networks and Network equipments

At this time (9.1.2) GLPI is using the same string for Networks (networks, dropdown value) and Networks equipments (networkequipment).

I think is necessary to split these strings.

For example, the Italian translation is this:

  • Network/s -> Rete/i

  • Network equipment/s -> Periferica/he di rete

Offline

#2 2017-02-27 13:27:55

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Split strings for Networks and Network equipments

In which object?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2017-02-27 16:39:30

tiziano.sartori
Member
Registered: 2012-05-15
Posts: 32

Re: Split strings for Networks and Network equipments

Expanding the 'main-menu' Assets leaf, GLPI shows up the '/front/networkequipment.php' link with the string #927.

On the page '/front/networkequipment.php', the breadcrumb label is also wrong.

The right string, already available, is #209.

Offline

#4 2017-03-17 11:26:45

tiziano.sartori
Member
Registered: 2012-05-15
Posts: 32

Re: Split strings for Networks and Network equipments

Do you confirm the bug yllen?

Offline

#5 2017-03-21 20:40:41

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Split strings for Networks and Network equipments

In Setup > dropdown, string using is 'Networks' (Reti)
In asset menu, string using is 'Network devices' (Periferiche di rete)


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#6 2017-03-22 08:50:11

tiziano.sartori
Member
Registered: 2012-05-15
Posts: 32

Re: Split strings for Networks and Network equipments

Are you sure?

Qxhm2f.png

Offline

#7 2017-03-22 20:45:21

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Split strings for Networks and Network equipments

I look at glpi/locales/it_IT.po dans translation are OK

msgid "Network"
msgid_plural "Networks"
msgstr[0] "Rete"
msgstr[1] "Reti"

msgid "Network device"
msgid_plural "Network devices"
msgstr[0] "Periferica di rete"
msgstr[1] "Periferiche di rete"


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#8 2017-03-23 09:01:09

tiziano.sartori
Member
Registered: 2012-05-15
Posts: 32

Re: Split strings for Networks and Network equipments

yllen wrote:

I look at glpi/locales/it_IT.po dans translation are OK

msgid "Network"
msgid_plural "Networks"
msgstr[0] "Rete"
msgstr[1] "Reti"

msgid "Network device"
msgid_plural "Network devices"
msgstr[0] "Periferica di rete"
msgstr[1] "Periferiche di rete"


Yes, translation is ok. I think was an error in the source code when GLPI call the string.

Offline

#9 2017-03-24 20:05:02

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Split strings for Networks and Network equipments

OK i understand the issue: https://github.com/glpi-project/glpi/issues/1970

Corrected: https://github.com/glpi-project/glpi/co … 4da4411d35
You must clean your cache to see the change


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#10 2017-03-24 21:04:15

tiziano.sartori
Member
Registered: 2012-05-15
Posts: 32

Re: Split strings for Networks and Network equipments

Thank you!

Offline

Board footer

Powered by FluxBB