PawelTroka / Computator.NET

Computator.NET is a special kind of numerical software that is fast and easy to use but not worse than others feature-wise. It's features include: - Real and complex functions charts - Real and complex calculator - Real functions numerical calculations including different methods - Over 107 Elementary functions - Over 141 Special functions - Over 21 Matrix functions and operations - Scripting language with power to easy computations including matrices - You can declare your own custom functions with scripting language
GNU General Public License v3.0
234 stars 51 forks source link

Move away from fat resx WinForms designer based localization architecture (resx files containing everything - like positions and margins is simply a design flaw) #89

Closed PawelTroka closed 7 years ago

PawelTroka commented 7 years ago

We should move away from using so huge resx files as we do now. Instead we should define each form as a language independent form and use separate resx files for strings (containing strings only).

The reasons, besides simpler maintenance are quite clear - huge resx files are slow and error prone. For example see resx files related bugs we have encountered in Mono:

PawelTroka commented 7 years ago

For now we can that this is done. Some small touches needs o be implemented like dealing with EditChartMenus.resx but that part is already planned to be removed in later releases of Computator.NET.

sylveon commented 6 years ago

@PawelTroka How was this done? Did you use any automated tool or you manually did it?

PawelTroka commented 6 years ago

@sylveon Unfortunately it was mainly manual labour.

  1. Copying over *.resx files from Form to other location (easy)
  2. Settings Form Localizable property to false (easy)
  3. Setting up Form labels and stuff based on *.resx resource (can be a lot of work)
  4. Clearing up *.resx files so they only contain strings (quite easy)