02-07-2015, 11:29 AM
(02-06-2015, 10:26 PM)ggaliens Wrote: do you know how a developer is supposed to handle situation where he/she wants to "insert" some new function in existing menu ... but the numbers for string translation are already "PACKED" so that no integer based insert canbe done w/o large resequcing ?You know, the numbers must be unique for each function name defined in a module.
If the new insertions are made in his/her plugin code there is no problem since the strings are stored in .lang for that source file ({source file, [{funcion_name, [{num, string},...]]}, ...]}).
If the new insertions are made in a existent code, then he/she should look for the next available number in the sequence for that function name.
Quote:I assume it would be BAD to renumber all the items in the list as that would break the translation files ?yes.
Have I clarified your doubts? (you know, sometimes I don't know use the right English words )