CUAHSI / CUAHSI/HydroServerLite
Time & Units Identification
- Dominant language
- PHP
- Stars
- 7
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
sbolster[CodePlex]
As translation continues to other languages we will need to redo how units and time are read into specific tables and dropdown lists. For example, on the add_variable.php page both the time units and unit type are denoted by the Unit Types Column in the
Units table. When you select the quotTime Unitquot on the add variable page the code searches for units whose unitsType is quottimequot
As translation continues this will become more complicated. As you can see in the attached photo some units have a units type in Spanish quotTiempoquot while other are in English quottime,quot this was to maintain the correct units in this list but
is sloppy and not truely international.
Maybe the best way to select the correct units would be to use their unitID rather than the words. I'm not positive how far this extends and what other issues this brings up.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with add_variable.php and the Units table, especially the Unit Types column and the unitsType filtering used for time units. Trace where unitID and translated unit-type values are read by tables and dropdowns. Done means the affected selections identify units consistently across languages without relying on translated words.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- database, internationalization
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100