Author Topic: Language strings with duplicated keys are not used  (Read 1419 times)

Offline horus68

  • Coccinella
  • *
  • Posts: 3
  • Karma: +0/-0
  • Keep calm and translate Joomla
    • Alexandria Book Library translations with Transifex
Language strings with duplicated keys are not used
« on: 26 September 2016, 07:02:13 »
The admin en_GB.com_abook.ini language file has 3 strings with duplicated keys.
Even if the values are different, only the first key of the pair will be used in languages by Joomla.
Please fix this so it not causes translations errors.

See:
Code: [Select]
COM_ABOOK_ADD_NEW_TAGGROUP="New tags Group"
COM_ABOOK_ADD_NEW_TAGGROUP="New tag group"

COM_ABOOK_EDITOR_DESC="Editor"
COM_ABOOK_EDITOR_DESC="Editor descending"

COM_ABOOK_YEAR_DESC="Year of publication"
COM_ABOOK_YEAR_DESC="Year descending"
Translate Alexandria Book Library using Transifex
https://www.transifex.com/projects/p/alexandria-book-library-3

Offline horus68

  • Coccinella
  • *
  • Posts: 3
  • Karma: +0/-0
  • Keep calm and translate Joomla
    • Alexandria Book Library translations with Transifex
Re: Language strings with duplicated keys are not used
« Reply #1 on: 26 September 2016, 07:19:34 »
Bug 2 -
plg_loadbook\language\en-GB\en-GB.plg_content_loadbook.sys.ini
is missing an ending tag:

Code: [Select]
PLG_LOADBOOK_XML_DESCRIPTION="Replaces {loadbook id=yourbookid} tag in content with book details --Or-- replaces {loadbook id=yourbookid style=bibliography} with a standard book bibliography.

Bug 3
Duplicated strings (with same value) so it shoudl be deleted to reduce work!
\mod_abook_allinone\language\en-GB\en-GB.mod_abook_allinone.ini

Code: [Select]
MOD_ABOOK_ALLINONE_LATEST="Latest"
MOD_ABOOK_ALLINONE_LATEST="Latest"

MOD_ABOOK_ALLINONE_RANDOM="Random"
MOD_ABOOK_ALLINONE_RANDOM="Random"
Translate Alexandria Book Library using Transifex
https://www.transifex.com/projects/p/alexandria-book-library-3

Offline federica

  • Amministratore
  • Delfino
  • *****
  • Posts: 999
  • Karma: +1/-0
Re: Language strings with duplicated keys are not used
« Reply #2 on: 03 October 2016, 18:39:31 »
Hi horus68,
many thanks! I fixed the duplicated keys, I will insert this fix in the next version
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
http://www.antivirushelp.it
stacca la spina!