Open alxbl opened 5 years ago
@alxbl The technical points make sense and I am happy with this design; it would be welcome upstream for sure.
This might be of interest for you : https://github.com/SerpicoProject/Serpico/pull/455
@frisch-raphael Wow, that's almost exactly what I had in mind. I'll see if I can work off of what you have already built instead. I think the only thing missing at this point would be some kind of UI to make it easy to migrate existing findings to the localized version. I'll try to find time to work on it in the coming days.
Feature Discussion: i18n and l10n support
Currently, languages are a simple drop-down selection which results in fully distinct findings in the finding database. This can make multi-language management difficult as there is no clear relationship between a finding and its different localizations. The end result is duplicate findings with slightly different names across multiple languages, and findings updated in a language but being forgotten in another. We're about to start doing some initial work on our fork of Serpico to implement proper i18n and l10n support. Initially, this would be rudimentary and cover our short term needs, but would set the stage for full fledged internationalization in the long term. Before getting too far ahead in this, I wanted to get the ball rolling upstream to see if this would be welcomed changes and whether there is interest in the feature.
In the long term, it would be beneficial to have all static content fully localized in a way that allows to dynamically switch a report's language, but there are issues tied to managing report-specific additions which would need to be solved beforehand.
Here's what we have in mind.
Usage
localization
table in the database, which would have the default (English) localization along with any additional localization that has been submitted and approved.Backward compatibility
Additional UI elements
Modified UI elements