Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
Share Thread:
Reddit Facebook Twitter
Where are the Erlang Style/Coding guidelines from Bjorn?
02-07-2015, 11:29 AM
Post: #4
RE: Where are the Erlang Style/Coding guidelines from Bjorn?
(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 Smile)

@MicheusVieira MicheusVieira Micheuss micheus4wings3d
* Wings3D Team stands for: Björn and Dan
Reply


Messages In This Thread
RE: Where are the Erlang Style/Coding guidelines from Bjorn? - micheus - 02-07-2015 11:29 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)