-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Topology not showing properly when using other language than english #464
Comments
Choices in model IndividualOptions are hard coded in english. This leads to link.termination_type.name won't be found in supported_termination_types in views.py, because the name value represents the translated termination type.
The same applies to
|
Just had a closer look. We could use link.termination_type.model instead. Unfortunately we need to make changes to the model if we go this way. I don't get why link.termination_type.name is being translated. That does not make much sense to me and I'm not sure if this is intended. |
I also thouhgt of that kind of design. Maybe the issue could be resolved by the translator himself. As i'm not quite a developper nor a translator i'm afraid my understanding is quite limited. |
Hope it can be solved as soon as possible |
…han english (#541) * Change termination type name to model * change CHOICES to model names * Change termination type name to model * change CHOICES to model names
NetBox version
v3.7.3
Topology Views version
v3.9.0
Steps to Reproduce
1.Make sure your language is set to "English" and that "ENABLE_LOCALIZATION" is set to "True" in configuration.py
2.Go in Netbox, in the "Topology" page under "Topology View" section, display your devices (at least some patch panels with front and rear ports and end devices connected to it) with "Show Cables" and "Show Logical Connections".
3.Change your language in your profile preferences to "French".
4.Return to "Topology" and select the same things as step 2.
Expected Behavior
The topology should remain the same in any languages when defined with the same filters/parameters. In my case, when using English the patch panels are displayed, and when using French they simply vanish.
Observed Behavior
The topology isn't the same depending on the language used.
Here is the topology when using English :
Here, the same topology and filters, but using French (patch panels vanished) :
The text was updated successfully, but these errors were encountered: